3 ms·
I agree, especially for mere mortals. However, a talented writer, like Don Stewart and a few others, can write high performance Haskell code. The high perform
by eru 11y ago
I agree, especially for mere mortals. However, a talented writer, like Don Stewart and a few others, can write high performance Haskell code.
The high performance part of your Haskell code might not look much like idiomatic Haskell in the end, but you can write abstractions around that. (The holy grail is high performance idiomatic code. If you befriend the compiler just right, it's possible for many problems.)
Text.Bytestring is a good example in Haskell land.
- Patient0 11y agosmall correction: Don StewarT not Steward
- eru 11y agoHah, I even looked it up, because I wasn't sure, but forgot to change it. Edited now.
- skimpycompiler 11y agoData.Bytestring is still not as fast as it could be. Just try counting the number of eol characters in the bytestring (or any kind of character). Now do the same with `wc -l`. They did make the library perform well, but there are tiny details that squeeze the most out of your hardware and they seem to be a nuisance to do, even when you're thinking about performance. Despite that, fusion is beautiful and happens without all of that verboseness that makes the same thing in C++ work.