News for hackers. Stuff that matters.
Re:Rust async/await hits stable tomorrow by monocasa on Wednesday November 06, 2019 @02:20PM (#21466034)
It's really nice on embedded systems for one. Share a single stack, but have blocking looking code. I really like the Rust model where astnc/await is mainly syntax sugar, and you can just code the state machine manually if you want.

Edit: It's also nice on servers, because even if you have memory for all of those stacks in a no astnc world, you def don't have cache for all of them. Splitting the data that needs to be saved between blocking points from the temporary data that gets you to the next block point (and reusing that memory on the next task) has benefits in a modern memory architecture.

Re:Rust async/await hits stable tomorrow by Argorak on Wednesday November 06, 2019 @02:23PM (#21466061)
Note that the current implementation still needs thread local state, which is sometimes not available on embedded systems, but this is going away.
Re:Rust async/await hits stable tomorrow by monocasa on Wednesday November 06, 2019 @02:24PM (#21466081)
It's also pretty easy to hack in thread local state for a single threaded app.