News for hackers. Stuff that matters.
Re:Ask YC: Best book for Java by richhickey on Thursday June 19, 2008 @08:10AM (#221713)
> Clojure objects are Java Objects, so they must be boxed & unboxed by the JVM.

I presume you meant Clojure numbers, because there is no notion of 'boxing' for reference types. For all non-numeric objects, the Clojure representation is the same as the Java representation. Type-hinted calls to methods of said objects generate the same bytecode as Java, with the same performance.

As far as numbers, recent enhancements ( http://clojure.org/java_interop#primitives ) allow Clojure to produce primitive arithmetic with the same speed as Java, but with a more-powerful, macro-amenable syntax.

While Clojure offers higher-order constructs with an attendant, but not prohibitive, cost, performance-oriented Clojure code can match the speed of Java.

Re:Ask YC: Best book for Java by icey on Thursday June 19, 2008 @09:53AM (#221775)
Rich, you're seriously some kind of linguistic superhero. Or maybe like the Monty Python version of the Spanish Inquisition. Either way, it's impressive.

This:

    As far as numbers, recent enhancements allow Clojure to 
    produce primitive arithmetic with the same speed as Java, 
    but with a more-powerful, macro-amenable syntax."
Just blows me away.
Re:Ask YC: Best book for Java by icey on Thursday June 19, 2008 @03:07PM (#222050)
Eh, it's too late to edit my other post, but the new design at Clojure.org looks great!