Re:Building a data compression utility in Haskell using Huff...
by freilanzer on Thursday July 04, 2024 @10:46AM
(#40875377)
I'm pretty sure highly optimised code won't be elegant Haskell code though.
[ Parent
| on HN ]
Re:Building a data compression utility in Haskell using Huff...
by rebeccaskinner on Thursday July 04, 2024 @11:07AM
(#40875514)
Highly optimized code tends to be inelegant in any language. That said, you can get really good performance from very elegant looking “normal” Haskell too. The big challenge with performance in Haskell is that the differences between optimized and unoptimized code can be pretty subtle if you’re not used to thinking about Haskell performance.
Re:Building a data compression utility in Haskell using Huff...
by epgui on Thursday July 04, 2024 @09:47PM
(#40879335)
Let me clarify: naive/beautiful/effortless Haskell code tends to be highly performant, although that is not always true. I believe it is much easier to write fast Haskell code than to write fast C/C++ code.