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

While Rust won't let you share a non-atomic variable across threads without going through a lock of some form or using `unsafe`.

So for both Rust and Go you'll get atomic accesses when you need them, and for C etc you only get atomic accesses if you ask for them. Which pretty much speaks to the different programming models: Rust and Go will only compile the subset of possibly-valid programs that can be expressed by the language and proven by the compiler. C compilers will only reject code they can prove is incorrect.



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

Search: