News for hackers. Stuff that matters.
Re:Some notes on Rust, mutable aliasing and formal verification by klabb3 on Thursday May 16, 2024 @12:21PM (#40380175)
> Scoped threads have been reintroduced to Rust

Right, but those are a mere shadow of what they used to be, which was JoinHandle with a lifetime parameter. You can’t build a thread pool or async runtime with static borrowing across tasks, which makes the use case very narrow.

> There's also significant interest in introducing true linear types to Rust, where destructors would be guaranteed to run

I’m glad to hear that. I’ve always hoped it’s possible to introduce non-breaking through a new auto trait but there are many delicate details around unwinds and such that may be gnarly. As well as an accumulated dependence on Arcs in library code.

There are no comments on this comment yet.