122 points · by gdw2 · 14y ago · 53 comments
The things that come to my mind are things like Numpy, Scipy, PySide, boost.python and all other sorts of Python bindings to C, C++ and Fortran code that aren't readily available on the JVM. Also, the startup time that the JVM can't match, the Python standard library and the other random bits people have developed that make Python such a wonderfully flexible scripting environment.
If you have excellent interop, there will be plenty of interest in this project regardless of how fast or slow it is. If it's fast, all the better.
I think you may be abusing Big-O notation a little here since, technically O(10) is equivalent to O(1000)—and both are O(1).
In general I think Common Lisp's virtues as an implementation substrate for other languages are much greater than most people appreciate. It is flexible, expressive, and fast. Its dynamicity comes in very handy. And some of its vices -- its sheer size, its lack of orthogonality, and its occasionally archaic naming conventions -- are much less problematic for a language implementation task than they are for general programming.
There are exceptions, of course. You wouldn't want to implement C++ in Common Lisp. But for dynamically typed languages it ought to be a leading candidate.
If you want to do lisp programming with CL libraries, you could just use CL.
I'm not sure what the advantage of clojure in CL is over just using CL.
Python:
(time (reduce1 + (range 100000)))
Elapsed time: 3882.57193565 msecs
4999950000
PyPy: user=> (time (reduce1 + (range 100000)))
Elapsed time: 259.984970093 msecs
4999950000
Clojure via Java Hotspot: user=> (time (reduce + (range 100000)))
"Elapsed time: 75.35225 msecs"
4999950000 user=> (time (reduce1 + (range 100000)))
Elapsed time: 903.011083603 msecs
4999950000
user=> (time (reduce1 + (range 1000000)))
Elapsed time: 777.748823166 msecs
499999500000
user=> (time (reduce1 + (range 10000000)))
Elapsed time: 8764.57095146 msecs
49999995000000
user=>
Clojure via hotspot:
user=> (time (reduce + (range 100000)))
"Elapsed time: 174.768593 msecs"
4999950000
user=> (time (reduce + (range 1000000)))
"Elapsed time: 267.60421 msecs"
499999500000
user=> (time (reduce + (range 10000000)))
"Elapsed time: 1131.77367 msecs"
49999995000000
user=>
But yes, we still have some room for improvement.Atoms, refs and agents seem like an integral part of the Clojure language however.
While I definitely think this is a cool project, when I think about using it in production it strikes me as more Sisyphus than Prometheus.
Truth is, you only need one, as long as it's a good one.