Hacker News new | past | comments | ask | show | jobs | submit login

Does the Rust stdlib include concurrent data structures that make use of hardware-supported compare and swap? I'm thinking of an analogue to java.util.concurrent.



Not yet, but Aaron Turon, working full time on Rust, has a personal goal to make Rust have awesome support for these sort of things (lock-free data structures and other abstractions for concurrent programming). I suspect that Rust could very well become the "best" in this area.

You can see Aaron's initial work on the basics (memory management) on his blog[1], and a higher-level introduction into the power of Rust's concurrency on the main Rust blog (also written by Aaron)[2].

[1]: http://aturon.github.io/blog/2015/08/27/epoch/

[2]: http://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.ht...




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: