This is true of a lot of those benchmarks, especially for functional languages. I haven't looked recently, but back in the day Haskell seemed very fast on the shootout game. However the code that actually runs that fast is very very far from idiomatic. Again, I haven't looked at the Clojure versions recently but I recall several of them being basically Java written in Clojure form, i.e. lots of interop and not a lot of the sort of higher-order code that makes Clojure such a pleasure to program. The rules around functions accepting and returning primitives are way into expert-level territory.
On 26 April 2016 at 20:15, Niels van Klaveren <niels.vanklave...@gmail.com> wrote: > The only conclusion I can draw from these benchmarks over the years is > that the speed of Clojure is inversely proportional to it's idiomaticity > > > On Tuesday, April 26, 2016 at 7:23:48 AM UTC+2, Mars0i wrote: >> >> On Tuesday, April 26, 2016 at 12:19:23 AM UTC-5, Mars0i wrote: >>> >>> I was going to say that I'd be surprised if Clojure were as fast as SBCL >>> (overall, on average, depends on your application, depends on how you code >>> it, ymmv, etc. ...). Then I stopped back to check the little benchmarks on >>> the Computer Language Benchmarks Game >>> <https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=clojure&lang2=sbcl> >>> . Whatever it is that those comparisons do, or don't prove, I would no >>> longer be surprised. >>> >> >> I forgot how much faster Clojure got in 1.7 and 1.8. I remember Java >> wiping the floor with Clojure on most of those benchmarks a couple of years >> ago, but now it's just a little bit faster on average >> <https://benchmarksgame.alioth.debian.org/u64q/clojure.html> on those >> benchmarks. >> > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.