The intent of my question is not to start a flame war, but rather to determine in what circumstances each language is "the best tool for the job."
I have read several books on Clojure (Programming Clojure, Practical Clojure, The Joy of Clojure, and the Manning Early Access edition of Clojure in Action), and I think it is a fantastic language. I am currently reading Let Over Lambda which mostly deals with Common Lisp macros, and, it too, is a very interesting language.
I am not a Lisp expert (more of a newbie), but this family of languages fascinates me, as does functional programming, in general.
Advantages of Clojure (and disadvantages of "others"):
Runs on the JVM.
The JVM is a very stable, high-performance language environment that pretty well meets Sun's dream of "Write once, run [almost] anywhere". I can write code on my Macbook Pro, compile it into an executable JAR file, and then run it on Linux and Microsoft Windows with little additional testing.
The (Hotspot, and other) JVM supports high-quality garbage collection and very performant just-in-time compilation and optimization. Where just a few years ago, I wrote everything that had to run fast in C, now I do not hesitate to do so in Java.
Standard, simple, multithreading model. Does Common Lisp have a standard multithreading package?
Breaks up the monotony of all those parentheses with
[]
,{}
, and#{}
, although Common Lisp experts will probably tell me that with reader macros, you can add those to CL.
Disadvantages of Clojure:
- Runs on the JVM.
- No tail recursion or continuations. Does Common Lisp support continuations? Scheme requires support for both, I believe.
Advantages of Others (Common Lisp, in particular) (and disadvantages of Clojure):
User-definable reader macros.
Other advantages?
Thoughts? Other differences?