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 behavi
by coldtea 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.
As of Rust, it's not even 1.0-stable out yet. Even if it was, it would take 4-5 years to mature, get enough support, tooling etc to be something you'd use instead of C/C++ for everything.
- 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.