logoalt Hacker News

steveklabniktoday at 3:59 PM1 replyview on HN

It wasn’t implemented for the same reason. Rust uses C++20 ordering.


Replies

gpderettatoday at 4:08 PM

right, so I would expect that the equivalent of READ_ONCE is converted to an acquire in rust, even if slightly pessimal.

But the article says that the suggestion is to convert them to relaxed loads. Is the expectation to YOLO it and hope that the compiler doesn't break control and data dependencies?

show 1 reply