36
you are viewing a single comment's thread
view the rest of the comments
[-] SorteKanin@feddit.dk 1 points 2 days ago

I already told you, convenience, developer experience. Ergonomics basically. None of this is fixed by some code snippet, whether it's an extension trait or wrapper type. That just makes things worse. This has nothing to do with performance, as I already said.

[-] BB_C@programming.dev 1 points 2 days ago

convenience, developer experience. Ergonomics basically.

Can you point the notable relevant inconvenience, bad developer experience, and poor ergonomics developers are suffering from?

Is it all caused by a lock() method returning a Result?
Anything else?

[-] SorteKanin@feddit.dk 2 points 1 day ago

Yes? I think I am done with this conversation. If you don't think this is a problem, we just disagree. Just move on, you don't have to convince everyone else who's been discussing this problem for years that it isn't a problem.

[-] BB_C@programming.dev 0 points 1 day ago

everyone else who’s been discussing this problem for years that it isn’t a problem.

I haven't seen anyone else concede the performance talking point (under different banners), but proceeding to make this out to be a big issue. This includes this thread's OP which literally starts on-topic arguments with:

How poisoning harms every single piece of code

As discussed in too much detail above, (un)locking mutexes is cheap as long as they’re not contended, and when contended, they are at least cheap instruction wise. This is where poisoning mutexes get you.

This is what makes your positioning weird.

My replies here, starting with pointing out the lack of benchmarks of real-world use-cases, come from actually bothering to read OP, IN FULL.

this post was submitted on 18 Nov 2026
36 points (100.0% liked)

Rust

8379 readers
30 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS