Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: