Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Right, so no different than C in this regard.


Really, you should rarely be using raw memory barriers even in C, IMO. The C11/C++11 atomics model (which Rust also uses) is substantially nicer. Though, unfortunately, still extremely tricky to get right.


The only time that I ever had to worry about that was when writing drivers for the Linux kernel.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: