I didn't quite get the point. In the example from this article, we have concurrent r/w access to a global shared variable (singleton) that leads to a failure. That sample demonstrates that concurrent access will lead to a failure. Ok. What is novel there? This is a classical concurrency issue presented in most programming languages.
I get that in safe Rust such cases will be prevented by the compiler/linter -- that's fine; Rust is just special in this case -- that's fine.
View all comments
Show parent comment
0
u/0xfeedcafebabe 3d ago
I didn't quite get the point. In the example from this article, we have concurrent r/w access to a global shared variable (singleton) that leads to a failure. That sample demonstrates that concurrent access will lead to a failure. Ok. What is novel there? This is a classical concurrency issue presented in most programming languages.
I get that in safe Rust such cases will be prevented by the compiler/linter -- that's fine; Rust is just special in this case -- that's fine.