Re: Clojure speed

2009-02-03 Thread Gregory Petrosyan
On Feb 3, 12:50 pm, André Thieme wrote: > Hi, welcome in the group. > Can you please write that program in Java and see how well it > performs for you? Will try to compare Java and Clojure later. Here http://leonardo-m.livejournal.com/75825.html you can find similar microbenchmark. Java is mor

Re: Clojure speed

2009-02-03 Thread Gregory Petrosyan
On Feb 2, 10:29 pm, David Nolen wrote: > Heh, this is a more reasoned reply than my own as it points out an actual > implementation difference between Python and Clojure. And of course you > might need arbitrary precision arithmetic in your program, but again this > just reinforces the insignific

Clojure speed

2009-02-02 Thread Gregory Petrosyan
Hello everybody, Althrough I am new to Clojure, I like it a lot. Because it is advertised as native JVM language, I expected it to demostrate decent performance in simple numeric tests, so I decided to compare it to Python. Clojure rev. 1173: user=> (defn fac [#^Integer n] (reduce * (range 1 (+