News for hackers. Stuff that matters.
Re:Examining ARM vs. x86 Memory Models with Rust by truth_seeker on Saturday June 27, 2020 @08:02AM (#23661261)
Isn't this something Rust std lib api or perhaps LLVM backend should take care of ?
Re:Examining ARM vs. x86 Memory Models with Rust by secondcoming on Saturday June 27, 2020 @08:31AM (#23661415)
The problem is that there's likely to be a fair amount of logically broken 3rd party code out there because x86's memory model semantics doesn't reveal the issues. The compiler can't help here, it'll just do what the developer told it to do.

It's a whole new 'it works on my machine' issue (for some people).

Re:Examining ARM vs. x86 Memory Models with Rust by devit on Saturday June 27, 2020 @11:12AM (#23662330)
It does as long as the programmer uses it properly (i.e. you don't use atomics weaker than SeqCst or unsafe code with shared + mutable accesses unless you have proven that it's correct).
Re:Examining ARM vs. x86 Memory Models with Rust by monocasa on Saturday June 27, 2020 @01:33PM (#23663186)
See how the functions are all unsafe? The primitives given by the Rust standard library actually do handle this; the author is simply going off the beaten path to illustrate one of the aspects those primitives need to paper over for you.