Comment by vlovich123
7 hours ago
Hate to break it to you but Rust is equally capable of doing all the same memory management optimizations.
7 hours ago
Hate to break it to you but Rust is equally capable of doing all the same memory management optimizations.
I mean you can, but C/C++ is way more ergonomic for dealing with memory layouts.
Is it? How so?
You don't have to deal with Rust's aliasing rules for &mut and &.
It doesn’t have a stable abi, how could it be easier? I would argue that the vast majority of what rust gives you comes at a direct cost of precisely the ergonomics of manual memory management. It’s a tradeoff that makes sense much of the time, but it’s still very obviously a tradeoff.
1 reply →