News for hackers. Stuff that matters.
Re:Bugs that the Rust compiler catches for you by pjmlp on Friday May 06, 2022 @01:44AM (#31281696)
Data race is only helpful for threaded code accessing data structures in-memory.

For all the other scenarios of distributed computing or OS IPC, it does very little.

Plus Rust lacks a story how it can work with OpenMP and OpenACC.

Re:Bugs that the Rust compiler catches for you by oconnor663 on Friday May 06, 2022 @04:37AM (#31282842)
> For all the other scenarios of distributed computing or OS IPC, it does very little.

It might be worth clarifying that catching data races isn't just about catching race-conditions-which-are-probably-bugs. Data races are full-blown undefined behavior in the C/C++/Rust memory models, which can (not necessarily frequently but under the right conditions) corrupt memory just as badly as a use-after-free or an out-of-bounds write.

Re:Bugs that the Rust compiler catches for you by pjmlp on Friday May 06, 2022 @04:45AM (#31282886)
Agreed, however when talking about how great Rust deals with those, we should not forget it is only one use case among many others where Rust currently doesn't do any better than the competition.

Specially if we take into consideration that focusing back into processes is the only solution to prevent certain exploits.

Re:Bugs that the Rust compiler catches for you by shaklee3 on Friday May 06, 2022 @09:17AM (#31284750)
Rust does not have a memory model.