Async/await is strictly worse than green threads, except that the latter might require runtime and/or ABI changes that you cannot push out, whereas async is front-end sugar mostly hiding the fact that you're passing callbacks to enable "single-stack green threading." Am I wrong?
-
-
Replying to @YossiKreinin
The main argument is that you know what may block. But maybe it is the same as checked exceptions in Java? In a modern system everything may block and everything may raise lots of exceptions. It’s impossible to micromanage both - you need to pin them down on architectural level.
2 replies 0 retweets 0 likes
Replying to @jpclap
This is also the main argument against async/await. This is like having to annotate functions using floats or files - very interesting info but there goes seamless composability
9:04 PM - 27 Aug 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.