News for hackers. Stuff that matters.
Re:Async and Await in Rust: a full proposal by yazaddaruvala on Sunday July 15, 2018 @03:37PM (#17536666)
This seems like the next logical step. A language where all functions are async/await.

And it’ll likely pull in some nice features from academia like, building a dependency graph of async statements so it can automatically reorder async statements to get optimal concurrency.

Re:Async and Await in Rust: a full proposal by arianvanp on Sunday July 15, 2018 @03:50PM (#17536724)
This is Haskell's IO type and its do notation !

And the reordering of statements exists too. It's called ApplicativeDo[0] and is heavily used at Facebook[1]

[0] https://www.microsoft.com/en-us/research/wp-content/uploads/...

[1] https://youtu.be/sT6VJkkhy0o

Re:Async and Await in Rust: a full proposal by Peaker on Sunday July 15, 2018 @04:17PM (#17536834)
There's a huge advantage to not everything being async/await. Knowing exactly when you yield control can give you atomicity and more determinism for free.