Holy crap Swift's async/await proposal using delimited continuation-style control flow:https://gist.github.com/lattner/429b9070918248274f25b714dcfc7619#entering-and-leaving-async-code …
-
-
Replying to @jlongster
Practically I think that means async/await can capture more than just one frame on the stack. Thus it's not just a simple shallow `yield`.
1 reply 0 retweets 9 likes -
Replying to @jlongster
The shallow yield is a feature not a bug. It permits a great deal of local reasons for a relative low cost.
2 replies 0 retweets 1 like -
Replying to @wycats @jlongster
There's a great post by
@littlecalculist on this from 2011:http://calculist.org/blog/2011/12/14/why-coroutines-wont-work-on-the-web/ …3 replies 0 retweets 6 likes -
"Coroutines aren't going to happen in JS. They'd break one of the best features of JS: the simplicity of the event loop execution model"
2 replies 0 retweets 0 likes
Generators on the other hand "give you just enough power to write non-blocking I/O in a synchronous style without being “threads lite.”"
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.