@nicolas17@social.treehouse.systems
Post #469056
2026-02-27 04:48 UTC
For no good reason, I made my own concurrent queue in Rust using a mutex and a condvar, and used it instead of an mpsc channel. Once I got it to compile, it worked first try.
I think I love Rust.
Replies (1)
-
@bal4e@tech.lgbt 2026-02-27 06:27
@nicolas17 I'm a huge fan of writing concurrent data structures, especially with my own atomic variables and low-level controls. I can't imagine doing that outside Rust -- the type system provides so many helpful guides (e.g. you can build wrapper types around atomic variables with higher-level functionality, pick whether your types are Send/Sync and rely on it for soundness, and mark dangerous functions as unsafe).