News for hackers. Stuff that matters.
Re:Several core problems with Rust by littlestymaar on Monday November 24, 2025 @02:22AM (#46031268)
> It might be counterintuitive, but garbage collectors in multithreaded code can be very efficient.

It is indeed. But on the flip side, no other programming language is going to give you a compile error if you forgot to wrap you data into a mutex before sharing it between threads, and you'll either end up with a ConcurrentModificationException exception at runtime (Java) or with an undefined behavior.

But otherwise yes, there are plenty of situations where a GC is a totally valid solution. Just not for most of Rust's niche.

There are no comments on this comment yet.