4 ms·
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
by yazaddaruvala 8y ago
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.
- arianvanp 8y agoThis 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/2016/08/desugaring-haskell-haskell16.pdf https://www.microsoft.com/en-us/research/wp-content/uploads/... [1] https://youtu.be/sT6VJkkhy0o https://youtu.be/sT6VJkkhy0o
- Peaker 8y agoThere'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.