3 ms·
It does. A lot of people have written ignorant blog posts whereby they show their first "real" Haskell program is extremely slow compared to their heavily optim
by chongli 14y ago
It does. A lot of people have written ignorant blog posts whereby they show their first "real" Haskell program is extremely slow compared to their heavily optimized C version (with years of experience behind it).
A cursory glance at the code, however, reveals that their Haskell program is using linked lists of linked lists of boxed arbitrary precision integers while the C version uses a 2D array of ints.
Okay, perhaps that's a bit of an exaggeration but you get the idea.