News for hackers. Stuff that matters.
Re:ClojureScript's persistent data structures in vanilla Jav... by danenania on Saturday May 25, 2013 @09:07AM (#5767161)
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.
Re:ClojureScript's persistent data structures in vanilla Jav... by python3 on Saturday May 25, 2013 @09:10AM (#5767169)
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.

Re:ClojureScript's persistent data structures in vanilla Jav... by arkx on Saturday May 25, 2013 @03:31PM (#5768522)
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.
Re:ClojureScript's persistent data structures in vanilla Jav... by swannodette on Saturday May 25, 2013 @09:06PM (#5769587)
Hmm, sounds like you have a fairly large namespace instead of separate ones?