4 ms·
> There seems to be an unhealthy obsession with beating C in some corner of the Haskell community. I think it's about the same for pretty much any language in
by tom_mellior 7y ago
> There seems to be an unhealthy obsession with beating C in some corner of the Haskell community.
I think it's about the same for pretty much any language in the "statically typed, compiled" camp. You'll see "faster than C" claims for Rust and Go as well, for example.
- simias 7y agoThat's true. I guess what makes Haskell stand out to me is that at this point it's fairly clear that the assertion is mostly wrong (i.e. idiomatic Haskell is not faster than idiomatic C at most algorithmic tasks, and often significantly slower) and instead of doing the reasonable thing and saying "additional safety and expressiveness is more important than raw performance for most applications" (something I'd completely agree with personally) they double-down with these meaningless, unfair benchmarks. Meanwhile Rust is genuinely competitive with C performance-wise and thanks to generics and things like more aggressive inlining can actually equal or even beat C without requiring esoteric micro-optimizations. Of course the drawback is that writing Rust code is significantly more complicated and more restrictive.
- Annatar 7y agoAnd the really funny part for us C practitioners is, we know we'll rarely be as fast as machine code generated from Fortran.