Website message overhaul

bearophile bearophileHUGS at lycos.com
Sun Nov 20 03:30:19 PST 2011


Paulo Pinto:

> Haskell is a good example. It can run as fast as C in most cases, but 
> you need to aproach your problem with a completely different mindset.

My small experience tells me otherwise: with Haskell you are able to approach something vaguely like C performance only if you use complex weird things (sometimes mutability too). Normal Haskell programs are usually not near C programs speed, unless they use a better algorithm compared to the C programs (this sometimes happens because Haskell is lazy, and lazyness sometimes allows to express certain better algorithms in a simpler way, that are harder to express correctly in C).

Bye,
bearophile


More information about the Digitalmars-d mailing list