28 ms·
Having a global flat address space has its tradeoffs. We use a GC because we don't want to have to specify the lifetime of memory ourselves. Rust also has no fa
by sitkack 12y ago
Having a global flat address space has its tradeoffs. We use a GC because we don't want to have to specify the lifetime of memory ourselves. Rust also has no false sharing between threads, much like Erlang, a thread always owns the memory it operates on.
Technology always forces architecture.
- dbaupp 12y agoRust does allow shared memory, either via unsafe code, or using a safe wrapper provided by the standard library (or an external library). http://doc.rust-lang.org/nightly/std/sync/struct.Arc.html http://doc.rust-lang.org/nightly/std/sync/struct.Arc.html