12 ms·
Very cool. I like ClojureScript and believe that immutability is usually the better choice, but I don't always want to deal with the Closure compiler and somewh
by danenania 13y ago
Very cool. I like ClojureScript and believe that immutability is usually the better choice, but I don't always want to deal with the Closure compiler and somewhat involved build process. This takes some of the best qualities of ClojureScript and makes them portable. Writing highly functional CoffeeScript with these data structures sounds quite appealing in situations where ClojureScript might be overkill or doesn't fit well into the stack.
- python3 13y agoUse 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 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 https://himera.herokuapp.com/synonym.html One of the most obvious additions to JavaScript is the ability to partition your JavaScript with namespaces.
- arkx 13y agoDefinitely 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.
- swannodette 13y agoHmm, sounds like you have a fairly large namespace instead of separate ones?