[Haskell-cafe] Why Perl is more learnable than Haskell
Valery V. Vorotyntsev
vvv at umc.com.ua
Thu Apr 12 03:00:40 EDT 2007
Dave Feustel <dfeustel at mindspring.com> writes:
> A serious omission in Haskell tutorials is a collection of examples of how to
> write Haskell solutions for problems that would use arrays in any imperative language.
> I see that arrays can be defined in Haskell, but I don't see their use as
> computationally efficient in Haskell.
"By replacing the string type with our ByteString representation,
Haskell is able to approach the speed of C, while still retaining the
elegance of the idiomatic implementation. With stream fusion enabled,
it actually beats the original C program. Only by sacrificing clarity
and explicitly manipulating mutable blocks is the C program able to
"The ability to fuse all common list functions allows the programmer
to write in an elegant declarative style, and still produce excellent
low level code. We can finally write the code we *want* to be able to
write without sacrificing performance!"
Don't give up.
More information about the Haskell-Cafe