News for hackers. Stuff that matters.
Re:Async Rust Is A Bad Language by vilunov on Friday September 08, 2023 @01:41PM (#37436813)
I disagree with you in the last point, async is definitely painful for end users. It indeed feels like you're using a completely different language, which has Rust's core features removed – lifetimes and explicit types, sprinkled with a mess of Pins on top.

You cannot run scoped fibers, forcing you to "Arc shit up", Pins are unusable without unsafe, and a tiniest change in an async-function could make the future !Send across the entire codebase.

Re:Async Rust Is A Bad Language by zamalek on Friday September 08, 2023 @02:36PM (#37437575)
It may no longer be necessary for pins to exist for async implementation: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.new_c... (but the current async interface requires using them, so my point is definitely a whatifism).
Re:Async Rust Is A Bad Language by kprotty on Saturday September 09, 2023 @01:03PM (#37447540)
Replacing Pin with Rc is what they refer to as "Arc shit up". Pin avoids the need for a heap allocation like Rc/Arc entirely.