Wednesday, 27 July 2011

ClojureScript

I watched the ClojureScript talk with great interest as I have in the past spent some time learning Clojure. I quite like it as a modern day lisp. Unfortunately It was also at that time I was starting to get into mobile development and using Java more. Using Clojure on the phone did not seem an easy thing to do so eventually I left it behind.

Now ClojureScript is starting to rear it's head I am going to keep my eye on it. ClojureScript basically compiles a significant portion of Clojure to Javascript. Watching the talk was interesting as they have decided to build their whole system on closure (a google tool) which is not compatible with things like JQuery but gives the ability to to dead code removal. This means you can import a 300k library but only ship with 10K from it. This is good for them it means they can easily ship the core libraries as one lib which you import with worrying about how big it is all going to get. 

Closure also provides UI stuff that ClojureScript to use. It all seems like a well thought out idea given their goal is to let you build complicated web app not web pages.

I am pretty sure there will be plenty of people who bemoan ther fact they can't use JQuery or similar. Personally I really like using JQuery and more rescently JQueryMobile but am happy people are exploring alternative ideas. 

Once ClojureScript moves on a bit and has had a few Beta's released I plan on taking a look as the idea of coding in the browser using lisp is quite appealing. 

No comments:

Post a Comment