Fun fact: 1 of the biggest criticisms I received regarding mozilla::pkix was that we spent too much time making a secure ASN.1 parser. Nope.
@sleevi_ @BrendanEich @SickingJ @slightlylate It's impl dependent, in theory. After all a really smart JIT could convert async to sync.
-
-
@sleevi_@BrendanEich@SickingJ@slightlylate But, AFAIU Fx's implementation (may be out of date), threading overhead is high for digesting.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@BRIAN_____ No, JIT = Just In Time. Whole-program analysis is AOT.@sleevi_@SickingJ@slightlylate -
@BrendanEich@sleevi_ Has to be done by the JIT/runtime because the code needs to call an internal sync. version the AoT compiler can't see -
@BRIAN_____ You're describing something different from async/await, here -- but what? Got a gist?@sleevi_ -
@BrendanEich@sleevi_ I mean transforming asnyc + await sequence into a synchronous execution of the body of the asynchronous function. -
@BrendanEich@sleevi_ e.g. write a synchronous SHA256 function in terms of the async WebCrypto digest API w/o any async overhead.
End of conversation
New conversation -
-
-
@BRIAN_____@BrendanEich@SickingJ That was@slightlylate 's argument. That you could chain through promise chains if they're native->native -
@sleevi_@BrendanEich@slightlylate OTOH if you've gone through the trouble of putting your crypto in a worker, why also make it unreadable? -
@BRIAN_____@BrendanEich@slightlylate Eh, for readability problem, I'd rather see a generic solution for Promises than per-API solutions. -
@sleevi_@BRIAN_____ : its coming (*far* too slowly): http://jakearchibald.com/2014/es7-async-functions/ … /cc@BrendanEich : -
@slightlylate Agree on taking too long. ES7 proposal https://github.com/lukehoban/ecmascript-asyncawait … still at stage 1. Let's advance next week.@sleevi_@BRIAN_____
End of conversation
New conversation -
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.