News for hackers. Stuff that matters.
Re:From 60 Frames per Second to 500 in Haskell by jgalt212 on Wednesday October 15, 2014 @12:31PM (#8459445)
Haskell and Clojure are both functional languages with Haskell being purer. That being said, I fairly regularly see posts about how fast Haskell is (Bryan O'Sullivan has a great blog[1]) and I rarely if ever see posts about how fast Clojure is.

What is/are the reason(s) for this? Is it the fault of the JVM, or the bytecode the Clojure compiler emits?

[1] http://www.serpentine.com/blog/

Re:From 60 Frames per Second to 500 in Haskell by skittles on Wednesday October 15, 2014 @12:42PM (#8459555)
Haskell is strongly and statically typed which means its compiler can generate more optimized code. The compiler also creates programs that run without a virtual machine. Clojure is dynamically typed and runs on the JVM. It is still really fast compared to many other dynamic languages.
Re:From 60 Frames per Second to 500 in Haskell by wereHamster on Wednesday October 15, 2014 @01:30PM (#8460112)
> The compiler also creates programs that run without a virtual machine.

To be honest, the whole GHC runtime is sortof a VM. It manages thunks, evaluates them etc. It may not have the same overhead as JVM, but there definitely is some.

Re:From 60 Frames per Second to 500 in Haskell by rwosync on Wednesday October 15, 2014 @12:59PM (#8459775)
Static typing is mostly orthogonal, Haskell is mostly blazing fast because of all the aggressive compiler optimizations and the last decade of hard work by Simon Marlow and others on the parallel runtime.
Re:From 60 Frames per Second to 500 in Haskell by tome on Wednesday October 15, 2014 @01:19PM (#8460005)
Static types provide guarantees that help the compiler know when optimizations are valid.
Re:From 60 Frames per Second to 500 in Haskell by Ericson2314 on Wednesday October 15, 2014 @01:23PM (#8460043)
The second part is true, but that optimization would have been much harder, if not impossible, to implement had they had to rely on some sort of flow analysis instead of static typing.
Re:From 60 Frames per Second to 500 in Haskell by jgalt212 on Wednesday October 15, 2014 @02:13PM (#8460533)
so is Typed Clojure much faster than regular dynamic Clojure?
Re:From 60 Frames per Second to 500 in Haskell by taeric on Wednesday October 15, 2014 @03:10PM (#8460978)
I would think that few are interested in speed tests of clojure directly.

Specifically, I don't think it is a belief that clojure makes things slower than not using clojure on the jvm. At that point, the concern is jvm versus native. And there are plenty of those comparisons.

Quickly googling, looks like I may be a wrong, though. So, tough to say.