3 ms·
That's a legitimate criticism of a systems programming language. You'd like your OS kernel to never panic on an out of memory condition. (The serious end of the
by Animats 9y ago
That's a legitimate criticism of a systems programming language. You'd like your OS kernel to never panic on an out of memory condition. (The serious end of the embedded world insists on this.) There are people working on this problem.[1]
Core Rust avoids almost all implicit heap allocations that aren't triggered by operations the programmer sees as allocations.[2] But there are many library functions which allocate and panic if the allocation fails.
[1] https://internals.rust-lang.org/t/notes-interviews-on-fallible-collection-allocations/5619 https://internals.rust-lang.org/t/notes-interviews-on-fallib...
[2] https://www.reddit.com/r/rust/comments/69awhl/how_to_know_where_allocations_are/ https://www.reddit.com/r/rust/comments/69awhl/how_to_know_wh...