3 ms·
> One of the basic ideas behind Rust's memory safety story is that eliminating race conditions Rust does not prevent race conditions. You're getting confused w
by SkiFire13 3mo ago
> One of the basic ideas behind Rust's memory safety story is that eliminating race conditions
Rust does not prevent race conditions. You're getting confused with data races.
However GC's solution to data races (make every load/store act as very relaxed atomic instructions) makes race conditions much easier to write.
- adhamsalama 3mo agoRust does prevent race conditions.
- whytevuhuni 3mo agoRust helps prevent some race conditions, but an unqualified "prevents race conditions" sounds like it eliminates them, hence why GP says it does not.
- inigyou 3mo agoIt prevents "user A kicked B" and "user B revoked moderator permission from A" from arriving in a queue near the same moment?
- SkiFire13 3mo agoIs this the classic "split out obviously wrong facts to get corrected"? I'll take the bait then. Here's rust official documentation stating that it doesn't prevent race conditions: https://doc.rust-lang.org/nomicon/races.html https://doc.rust-lang.org/nomicon/races.html