Would that return a Promise, or just somehow synchronously spin?
-
-
Replying to @littledan @domenic
We need a quick way to 1) check for new input like mouse events or rAF. 2) see if any promises will immediately resolve.
2 replies 0 retweets 0 likes -
Right now we reimplement our own stack in user land to be able to yield quickly. Very complex.
1 reply 0 retweets 0 likes -
Replying to @sebmarkbage @domenic
Well, if you can afford to implement your stack now, sounds like some perf delta is acceptable, no?
1 reply 0 retweets 0 likes -
Replying to @littledan @domenic
Yes but we accomplish that by reusing work we have to do regardless to memoize.
1 reply 0 retweets 0 likes -
However we have shown that OCaml's algebraic effects (fibers) are sufficient too. So in theory it could be doable.
1 reply 0 retweets 1 like -
I worry about JS semantics getting in the way though. Such as the fact that `await foo()` isn't the same as inlining it.
1 reply 0 retweets 1 like -
let's talk about this offline. We could improve the zones proposal to make it work for what you want.
1 reply 0 retweets 4 likes -
Replying to @wycats @sebmarkbage and
yes, sounds similar to some zones use cases I've heard of... curious to hear more as well.
1 reply 0 retweets 0 likes -
unclear to me how zones relates to controlling event loop.
1 reply 0 retweets 2 likes
let's talk at the next TC39. Zones literature is pretty misleading imo.
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.