News for hackers. Stuff that matters.
Re:Building a data compression utility in Haskell using Huff... by GrantMoyer on Thursday July 04, 2024 @11:48AM (#40875817)
> The reality is that for any language, including C, compiler optimized code will never be as fast as hand optimized code

That's not strictly true; sometimes a C compiler can optimize away my whole program.

Re:Building a data compression utility in Haskell using Huff... by wyager on Thursday July 04, 2024 @05:14PM (#40878104)
You're doing extremely simple constant arithmetic here. GHC can optimize this type of thing away to nothing as well. Are we talking about contrived examples or real numerical bottlenecks?
Re:Building a data compression utility in Haskell using Huff... by Twisol on Thursday July 04, 2024 @09:24PM (#40879266)
I think it was a joke about compilers removing code by reasoning about undefined behavior.