News for hackers. Stuff that matters.
Re:Several core problems with Rust by adastra22 on Monday November 24, 2025 @11:10AM (#46035617)
It is hard to use because you can’t just access the shared state. You have to annoyingly lock it, handle the guard object, etc. Each one of those layers has protocols.
Re:Several core problems with Rust by bryanlarsen on Monday November 24, 2025 @12:47PM (#46036830)
Of course you have to lock a mutex. You'd have to do that no matter the language, right?

And that's what I meant by verbose/ugly. Each of those steps is usually an if let / else error. None of those steps are hard, but you have to do them every time.

Re:Several core problems with Rust by adastra22 on Monday November 24, 2025 @03:14PM (#46038656)
Oh, plenty of people access shared state without proper locks all the time. Even experienced developers.
Re:Several core problems with Rust by bryanlarsen on Monday November 24, 2025 @03:27PM (#46038841)
Heh. You're pedantically correct, the best kind. I meant "have to" in terms of "for correct operation you must" not "the compiler forces you to" since the latter isn't a thing in some languages.