3 ms·
Rust does not require a mutex on all stateful objects.
by steveklabnik 8y ago
Rust does not require a mutex on all stateful objects.
- rurban 8y agoeither a mutex or a rwlock. both are a sign of bad concurrency design and dead locks. why dont you fix your docs finally regarding your wrong claim of "fearless" concurrency. they are still many people believing your hype.
- GolDDranks 8y agoRust also supports atomics, plus plain access of immutable data.
- steveklabnik 8y agoNot even that! It requires that you prevent data races. Scopes threads, for example, can have no synchronization primitives at all! When you do need one, there are far more options than Mutex or RwLock, you have atomics, for example. Someone made a monitor the other day, I think. Really, anything works.
- rurban 8y agoThat's what I meant, totally concurrency unsafe. A proper and "fearless" concurrency safe language is thread-safe without manual mutex/locks/atomics/semaphores.