logoalt Hacker News

gpderettatoday at 3:52 PM2 repliesview on HN

Very interesting. AFAIK the kernel explicitly gives consume semantics to read_once (and in fact it is not just a compiler barrier on alpha), so technically lowering it to a relaxed operation is wrong.

Does rust have or need the equivalent of std::memory_order_consume? Famously this was deemed unimplementable in C++.


Replies

steveklabniktoday at 3:59 PM

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

show 1 reply
loegtoday at 4:20 PM

Does anything care about Alpha? The platform hasn't been sold in 20 years.

show 2 replies