Implementing behind the flag LGTM. There is clear consensus among TC39 members, browser vendors and web platform champions that Promises are an important addition to ECMAScript. At a Sept TC39 meeting, promises has been put on a fast track to ES6 - the next release of ECMAScript spec. Also, Modules - another important ES6 feature - are likely to take dependency on promises. There is a broad consensus on the API as well.
I have a couple of points re your intent-to-implement though: - please clarify your testing plans, both w.r.t. conformance and performance - as Jochen mentioned, let's work together to fit promises' needs into a larger work to unify threading between Blink and V8 - generally, it will be nice to have a design document describing promises implementation (maybe there is one already and I missed it?) Thanks and cheers, Dmitry former F# asynchrony guy: http://goo.gl/Z3RhB8 On Fri, Oct 4, 2013 at 12:19 PM, Yutaka Hirano <[email protected]> wrote: > Promises are currently being specified at [1] and according to [2] they > will be introduced in ES6. > I would like to implement them behind a flag. > The implementation will replace the Promises implementation in Blink in > the future. > > Other implementations > > Promises are also defined in whatwg[3] and some web browsers are > implementing it. > - WebKit https://bugs.webkit.org/show_bug.cgi?id=120954 > - Blink https://code.google.com/p/chromium/issues/detail?id=243345 > - Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=911216 > > Technical considerations > > Promises need an asynchronous task execution mechanism. > Currently I plan to provide a "postTask" function from Blink to V8. > > [1] https://github.com/domenic/promises-unwrapping/blob/master/README.md > [2] > https://mail.mozilla.org/pipermail/es-discuss/2013-September/033560.html > [3] http://dom.spec.whatwg.org/#promises > > -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
