News for hackers. Stuff that matters.
Re:When Rust Makes Sense, or The State of Typed Languages by osullivj on Monday September 28, 2015 @07:33AM (#10289864)
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.
Re:When Rust Makes Sense, or The State of Typed Languages by lmm on Monday September 28, 2015 @08:04AM (#10289969)
How does borrowing help with concurrency? You can only borrow on the same stack, no?
Re:When Rust Makes Sense, or The State of Typed Languages by osullivj on Monday September 28, 2015 @08:54AM (#10290173)
Re:When Rust Makes Sense, or The State of Typed Languages by steveklabnik on Monday September 28, 2015 @10:20AM (#10290570)
You 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