Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to cljc #14

Closed
wants to merge 4 commits into from
Closed

Conversation

fredZen
Copy link

@fredZen fredZen commented Feb 21, 2016

This builds upon pull-request #12

The goal is to switch from the obsolete cljx to the newer cljc.
In order to do this, I had to upgrade Clojure and ClojureScript.
In turn, in order to upgrade ClojureScript, I had to upgrade lein-cljsbjuild and austin.

Finally, I updated codox to a version that is able to handle cljc.

@@ -84,8 +80,9 @@

(def time
"A behavior that tracks the current time in seconds."
#+clj (behavior (/ (System/nanoTime) 1000000000.0))
#+cljs (behavior (/ (.getTime (js/Date.)) 1000.0)))
#?(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the blank line here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@fredZen fredZen force-pushed the update-to-cljc branch 4 times, most recently from 0ef68b7 to 860b3ec Compare March 4, 2016 18:50
@fredZen
Copy link
Author

fredZen commented Mar 4, 2016

Note: I found out that all the cljc compatible versions of clojurescript are incompatible with java 6. Is this a problem?

I checked back as far as clojurescript 0.0-3196 (the version that introduced reader conditionals), and that version already had the lookahead regex that trips up the regex engine in java 6.

@fredZen fredZen force-pushed the update-to-cljc branch 2 times, most recently from 4c3f68a to 268e66b Compare March 4, 2016 19:23
The core.async page seems to imply that 1.6.0 is the minimum clojure version
required, so I'm upgrading just to be on the safe side, although the tests do
pass with clojure 1.5.1.
Surprisingly, no upgrade to clojurescript seems to be necessary.
This forces upgrades to lein-cljsbuild and austin
Also, with the update to lein-cljsbuild, :whitespace doesn't seem to be the
default optimization anymore so I set it manually.
This forces to upgrade to a newer version of codox
@fredZen fredZen closed this Sep 12, 2018
@fredZen fredZen deleted the update-to-cljc branch September 12, 2018 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants