Am 20.11.2011 12:30, schrieb bearophile:
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
That is what I meant with a "completely different mindset".