Y
Hacker News
new
|
ask
|
show
|
jobs
by
amelius
221 days ago
I'm curious if it can be done in Rust entirely though. Maybe some assembly instructions are required e.g. for trapping or setting memory fences.
1 comments
nicoburns
221 days ago
If it comes to it then Rust has excellent support for inline assembly
link
amelius
221 days ago
But how well does it play with memory fences?
link
steveklabnik
221 days ago
You don’t even need inline assembly for those
https://doc.rust-lang.org/stable/std/sync/atomic/fn.fence.ht...
link