2 ms·
Author of the article here! I've actually come to agree with you since writing that article. I'm actually not a fan of mutexes in general and miss having things
by expede 7mo ago
Author of the article here! I've actually come to agree with you since writing that article. I'm actually not a fan of mutexes in general and miss having things like TVars from my Haskell days. Just to shout out a deadlock freedom project that I'm not involved in and haven't put in production, but would like to see more exploration in this direction: https://crates.io/crates/happylock https://crates.io/crates/happylock
- Twey 7mo agoThanks for the article! As someone who writes a lot of Rust/JS/Wasm FFI it gave me some good food for thought :) Yes! Mutexes are much nicer in Rust than a lot of languages, but they're still much too low-level for most use-cases. Ironically Lindsey Kuper was an early contributor to the Rust project and IIRC at roughly the same time started talking about LVars [1]. But we still ended up with mutexes as the primary concurrency mechanism in Rust. [1]: https://dl.acm.org/doi/10.1145/2502323.2502326 https://dl.acm.org/doi/10.1145/2502323.2502326