News for hackers. Stuff that matters.
Re:Rust means never having to close a socket by wycats on Tuesday October 07, 2014 @02:28PM (#8422984)
In Rust, you often use stack allocation, which, as you pointed out, is much more efficient. There's some heap allocation in Rust, but in my experience it's actually a minority of all allocations.

Rust also has an Arena library (http://doc.rust-lang.org/0.11.0/arena/index.html), which can be used for cases where you know that you have enough memory for a given operation and are willing to throw out the entire thing when the operation (or program ;) ) is done.

Re:Rust means never having to close a socket by eddyb on Wednesday October 08, 2014 @04:01AM (#8425754)
That link is outdated, see http://doc.rust-lang.org/arena/.
Re:Rust means never having to close a socket by spullara on Tuesday October 07, 2014 @04:03PM (#8423658)
Arena allocation has similar efficiencies as GC.
Re:Rust means never having to close a socket by pcwalton on Tuesday October 07, 2014 @05:25PM (#8424114)
Except for not having the mark phase (also not having to copy). The mark phase can take a lot of time.