5 ms·
People (including me) always talk about how memory safety without GC is the most important feature of Rust, but just as important is how easy Rust makes fine-gr
by pcwalton 8y ago
People (including me) always talk about how memory safety without GC is the most important feature of Rust, but just as important is how easy Rust makes fine-grained parallelism. In Rust, you can often start off writing sequential code and then bolt parallelism on after the fact and have it all "just work" with improved performance, thanks to libraries like Crossbeam and Rayon and the way the ownership/borrowing rules enforce data race freedom. That's really powerful.
- deepsun 8y agoWait, but Crossbeam does have a GC inside it.
- kinghajj 8y agoYes, but that's only to support its goal of efficient lock-free data structures, not for Rust's goal of memory safety.
- est31 8y agoAnd if it doesn't "just work" then there will be a clear error message pointing to the problem instead of nasal demons haunting you. That way you can debug and fix the problem much more easily.