Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any clojurescript tutorials? [closed]

Are there already some good tutorial on ClojureScript? I would like to try it out, but don't know where to start exactly.

like image 899
Michiel Borkent Avatar asked Jul 28 '11 16:07

Michiel Borkent


People also ask

How does ClojureScript work?

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.

What is the difference between Clojure and ClojureScript?

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).

Should I use ClojureScript?

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.

Is ClojureScript fast?

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.


1 Answers

Fogus is writing a series on ClojureScript which you may find interesting.

  • Compiling Clojure to Javascript Jul 21, 2011
  • Compiling Clojure to JavaScript, pt. 2 – Why No Eval? Jul 29, 2011
  • Compiling Clojure to JavaScript, pt. 3 – The Himera Model Mar 27, 2012
  • The ClojureScript Compilation Pipeline Apr 25, 2012
like image 70
4 revs, 2 users 76% Avatar answered Oct 29 '22 14:10

4 revs, 2 users 76%