4 ms·
The author wonders why Rust is getting attention in 2015, despite lacking GC. The answer is concurrency, a much more difficult problem than avoiding null ptr de
by osullivj 11y ago
The author wonders why Rust is getting attention in 2015, despite lacking GC. The answer is concurrency, a much more difficult problem than avoiding null ptr derefs. C++ advocates are right to say that with Boost libs and C++ 11 and 14 it's much easier to avoid mem mgmt problems. Concurrency remains hard, and Rust's borrow mechanism is the biggest step forward since the late 90s IMHO.
- lmm 11y agoHow does borrowing help with concurrency? You can only borrow on the same stack, no?
- osullivj 11y agohttp://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.html http://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.ht...
- steveklabnik 11y agoYou can borrow something that's on the heap as well. And you can safely share pointers into stacks across threads with the right libraries, too. See https://crates.io/crates/crossbeam https://crates.io/crates/crossbeam