Re:Comparing clojure and node.js for speed
by ibdknox on Thursday April 07, 2011 @06:39PM
(#2421513)
I commented with a much better version of your clojure code. I'm still not convinced that this is the best way to calculate primes though. Moreover, I could imagine coming up with a better implementation that uses a lazy seq to just calculate the next prime when it is needed. Here's the code again:
As far as I can tell this is also faster on my machine, but as others suggest, I don't know that this is a particularly valuable benchmark.
[ Parent
| on HN ]
There are no comments on this comment yet.