News for hackers. Stuff that matters.
Re:Pitfalls of Safe Rust by ViewTrick1002 on Monday April 07, 2025 @04:57AM (#43609320)
Safe rust prevents you from writing data races. All concurrent access is forced to be guarded by synchronization primitives. Eliminating an entire class of bugs.

You can still create a mess from logical race conditions, deadlocks and similar bugs, but you won’t get segfaults because you after the tenth iteration forgot to diligently manage the mutex.

Personally I feel that in rust I can mostly reason locally, compared to say Go when I need to understand a global context whenever I touch multithreaded code.

There are no comments on this comment yet.