News for hackers. Stuff that matters.
Re:Microsoft to Explore Using Rust by pornel on Thursday July 18, 2019 @10:39AM (#20470272)
Rust protects from data races. AFAIK C# will not tell you where you need to put mutexes.
Re:Microsoft to Explore Using Rust by loonyphoenix on Thursday July 18, 2019 @11:33AM (#20470871)
Yes, it's quite possible to cause tearing in C#. It does not cause undefined behavior, but it can, for example, break invariants (supposedly enforced by privacy) in large enough structs.

See this example where I break encapsulation in a struct by abusing a race condition:

https://github.com/VictorGavrish/MultiThreading/blob/master/...