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

Seems like checking the docs for atomicity of every operation is a huge pain in the ass.


Best to avoid sharing data, and never mutating shared data!

Rust has a great rule: Sharing XOR Mutation.

Python is higher level, so message passing and passing "owned" values between threads is all the more feasible and sensible.


It really is, they don't make it clear at all. Every time I have to ask the question of "is this atomic under the GIL" I struggle to find the right answer.




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

Search: