r/rust • • 3d ago

📸 media GitHub Language Trends - November: Rust all time high at position 3

Post image
630 Upvotes

129 comments sorted by

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.