On Sun, Sep 18, 2011 at 11:20 AM, Andy Fingerhut <andy.finger...@gmail.com> wrote: > One more detail. The Scala program, and I think all of the fastest programs > for that problem, use the GNU GMP library for big integer arithmetic.
If that's true, then it indicates that the Java BigInteger class is less than maximally efficient -- otherwise, the JIT should likely turn it into native code of speed the equal of GMP's (perhaps superior, since the JIT could optimize for the exact architecture of the hardware it was running on while your libgmp.so would be compiled for generic x86 hardware so as to be compatible with any x86 box, whether or not it supported 3DNow, MMX, or any of the other various extensions that have cropped up on x86 descendants over the years). Can the BigInt class introduced in Clojure 1.3, perhaps, be made to JIT into code as fast as GMP's? -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en