Re:My Go Resolutions for 2017
by dbaupp on Wednesday January 18, 2017 @04:15PM
(#13430351)
Rust lets you be precise about placing the locks exactly where they are needed, with compile time errors if a lock isn't locked when accessing data, or a lock is missing. Fixing data races with locks for arbitrary code, without more static guarantees in the language, essentially means locks have to be held for most memory accesses: it's hard/impossible to tell if that location will be accessed concurrently. (This is why CPython has a GIL: it's easier to only let one piece of code execute at a time than to handle data races in arbitrary code.)
https://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.h... is interesting reading.