Hello Mathieu,

Friday, April 16, 2010, 12:06:06 PM, you wrote:

> actions and then running them using sequence_. But still this program
> runs 3 times slower than it's C counterpart:

ghc low-level code optimization cannot be compared with best modern C
compilers that's result of 20 years of optimization. ghc generates
machine code in rather simple idiomatic way, so it should be compared
to non-optimizing C compiler

another haskell compiler, jhc, generates idiomatic C code, that
therefore can be compiled by gcc to efficient machine code. but
overall jhc is pretty experimental compiler ATM


-- 
Best regards,
 Bulat                            mailto:bulat.zigans...@gmail.com

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to