News for hackers. Stuff that matters.
Re:A brief history of Rust at Facebook by imron on Friday April 30, 2021 @07:29AM (#26992075)
Your “only” clause captures the entire definition of data race - compared to the broader category of race conditions [0]

Safe rust prevents data races at compile time. It doesn’t prevent other race conditions.

And “only” preventing data races, is still a non-trivial achievement!

0: https://blog.regehr.org/archives/490

Re:A brief history of Rust at Facebook by pjmlp on Friday April 30, 2021 @11:01AM (#26994325)
No need for the exclamation point.

Yes it is a non-trivial achievement, just I get the feeling that the advocacy for it tends to forget about the other ones.

By the way, John Regehr's example won't work if the transferXXX functions are using SQL statements without transactions across threads each with its own connection, instead of in-memory variables.