4 ms·
I switch between both depending on my mood and the particular application. For me: Rust killed C++ but not C I have an on-again off-again love affair with C.
by xorvoid 3y ago
I switch between both depending on my mood and the particular application.
For me: Rust killed C++ but not C
I have an on-again off-again love affair with C. And in its domain it’s still unmatched: low-level close to hardware where you directly need to deal with concepts that are normal abstracted away: alignment, custom layouts, type punning, pointer tagging, different types of memory, cache coherency, DMA, kernel bypass, etc etc
Sure you can do it in rust unsafe but it’s (intentionally) a world of pain.
But, when you start needing bigger abstractions or you work with a team larger than say 5, C falls on its face super fast.
But it Feels Oh So Nice otherwise.
Here’s to me hoping Rust unsafe becomes more usable and can be a proper C successor someday. But.. I’m happy to be rid of C++ :-)
(I’ve been meaning to write a blog post on this for some time)
- xorvoid 3y agoOne more thing: codegen Getting good codegen out of Rust is 5 times harder than C. And sometimes it’s not really possible.