2 ms·
Obligatory Rust comment: Rust's type system relates allocation to variable lifetime in such a way that garbage collection is not needed, and almost all dealloca
by twic 12y ago
Obligatory Rust comment: Rust's type system relates allocation to variable lifetime in such a way that garbage collection is not needed, and almost all deallocation is deterministic, and yet safe.
Rust is still in flux, and its documentation is a bit all over the place, but here are some references:
http://doc.rust-lang.org/guide-lifetimes.html http://doc.rust-lang.org/guide-lifetimes.html
http://pcwalton.github.io/blog/2013/03/18/an-overview-of-memory-management-in-rust/ http://pcwalton.github.io/blog/2013/03/18/an-overview-of-mem... (warning: contains old syntax and defunct features!)