Are there already some good tutorial on ClojureScript? I would like to try it out, but don't know where to start exactly.
ClojureScript is a compiler for Clojure that targets JavaScript. It emits JavaScript code which is compatible with the advanced compilation mode of the Google Closure optimizing compiler. It inherits most of the properties of Clojure, a dynamic programming language supporting interactive development.
At the time of writing, Clojure can run on the Java JVM, . NET CLR and JS engines. ClojureScript refers to the Clojure → JS compiler but within the community it's also used for Clojure code that runs on JS engines (i.e. doesn't contain Java API calls).
ClojureScript atoms are superior to JavaScript variables in the same way that JavaScript functions are superior to, say, Java methods: because they're first-class. They can be passed to functions, referenced by data structures, and abstractions can be built atop them.
Compiling Clojure is usually done at runtime, which is not the speediest process. Likewise the translation of Clojurescript into Javascript is not fast either. V8's translation of Javascript to executable form is obviously quite fast.
Fogus is writing a series on ClojureScript which you may find interesting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With