
Hello Neil, Friday, January 26, 2007, 3:06:18 AM, you wrote:
One could point to O'caml or others in the ML family, or even more interesting is the case of Clean, whose syntax heavily borrows from Haskell.
ML is strict, this makes a big difference. Things that Haskell compilers do easily (inlining) are harder in a strict language. Things that strict languages do easily (unboxing) are harder in Haskell. There are enough differences to make it not a "same thing" issue.
actually, Haskell code in shootout is highly optimized and use, among other tricks, `seq` to make all required variables strict and/or unboxed. so the difference only because ML/Clean generates faster code for low-level imperative programs -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com