2 ms·
In terms of safe programs (e.g. programs that, if failing, could kill people), dynamic allocation is not allowed anyway (at least, dynamic deallocation is not a
by jeromel 10y ago
In terms of safe programs (e.g. programs that, if failing, could kill people), dynamic allocation is not allowed anyway (at least, dynamic deallocation is not allowed). So this makes this point void.
Rust makes user-land programs less prone to crashes, but safe programs found a better way years ago to deal with deallocated pointers issues.
That's also one of the reasons that prevented Ada compilers back in the days to create a garbage collector: there's no sound way to have a garbage collector compatible with real time constraints (which is sometimes safety critical: just imagine an air bag waiting for a garbage collection when it would instead need to pop out), and people creating safe applications don't need it anyway. So why bother?