3 ms·
> Because you might need the low-level, reasoning about memory/cpu/etc capabilities of C -- which Haskell doesn't offer -- but don't want all the undefined beha
by lmm 12y ago
> Because you might need the low-level, reasoning about memory/cpu/etc capabilities of C -- which Haskell doesn't offer -- but don't want all the undefined behavior and extra unneeded complexity.
Surely if you need that low-level reasoning then you do need unions and strict-aliasing, and for the kernel not to be doing extra zeroing of your memory when you didn't ask for it. If you were willing to accept a factor of 2 overhead, you wouldn't be using C at all.