Hacker News new | ask | show | jobs
by python3 4769 days ago
Use lein-cljsbuild to compile ClojureScript as soon as the file change is made. After the intial JVM startup, compilation is instant. https://github.com/emezeske/lein-cljsbuild

-- more --

ClojureScript is the Clojure language compiler that targets JavaScript. It compiles to Google Closure (not Clojure) JavaScript, but it can also target NodeJS. ClojureScript lets you use Clojure in the browser, adds Clojure data types to the JavaScript language, and allows for JavaScript to interact with the Clojure datatypes. Here's the side by side comparison https://himera.herokuapp.com/synonym.html

One of the most obvious additions to JavaScript is the ability to partition your JavaScript with namespaces.

1 comments

Definitely not instant compilation. The app I'm currently working on has 6k lines of code and the incremental compilations take a little over 6 seconds.
Hmm, sounds like you have a fairly large namespace instead of separate ones?