3 ms·
> I would be very interested in hearing from experienced folks about how important this is/what useful patterns it unlocks. For Rust it allows thread to play b
by masklinn 4y ago
> I would be very interested in hearing from experienced folks about how important this is/what useful patterns it unlocks.
For Rust it allows thread to play better with lifetimes, which means there are scenarios where you don’t need the overhead of a lock (and usually the Arc that does with it, unless you go with a global) or queue, you can just work with on-stack “unsynchronised” borrows and it’s thread safe.
That means lower syntactic and runtime overhead in the cases where it’s an option.
It was already available in crossbeam so it’s not novel novel, but not needing a dependency for it is useful still.
- davidatbu 4y agoThanks! I didn't know that it was already available in crossbeam, that helps a lot in understanding the significance of this feature.