Re: [webkit-dev] Proposal: Add support for Promises

2013-08-25 Thread Adam Barth
On Sun, Aug 25, 2013 at 11:41 AM, Geoffrey Garen  wrote:
>> The blink people are running into a bunch of issues by implementing them on 
>> the C++ side as opposed to inside the VM.
>
> I don’t think we can reason by analogy here.
>
> Is there a specific problem you’re concerned about?

The tension in Blink is between making it easy to subclass Promise in
WebIDL versus making it easy for the garbage collector to trace object
graphs that includes Promises.  These considerations are different in
WebKit because the integration between WebCore and JavaScriptCore
works differently than the integration between Blink and V8.

I'm happy to explain these issues in more detail if you would find
that helpful, but I agree with ggaren that there's probably not much
to learn from the Blink implementation because the design pressures
are different than in WebKit.

Adam
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Proposal: Add support for Promises

2013-08-25 Thread Geoffrey Garen
> The blink people are running into a bunch of issues by implementing them on 
> the C++ side as opposed to inside the VM.

I don’t think we can reason by analogy here.

Is there a specific problem you’re concerned about?

Geoff
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Proposal: Add support for Promises

2013-08-24 Thread Rik Cabanier
That sounds like a great idea!

The blink people are running into a bunch of issues by implementing them on
the C++ side as opposed to inside the VM.
Implement them in JavaScript seems like the right approach.


On Fri, Aug 23, 2013 at 11:32 AM, Sam Weinig  wrote:

> Hey WebKittens,
>
> I’d like to add support for Promises.  Promises are currently specified in
> the DOM Living Standard (http://dom.spec.whatwg.org/#promises) but will
> probably be moved to an ECMAScript standard at some point in the future.
>  As such, I plan to implement them in JavaScriptCore.
>
> The main motivation for adding Promises is that many upcoming specs have
> them as a dependency, including WebCrypto (
> https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html),
> the updated FileSystem API (
> http://lists.w3.org/Archives/Public/public-webapps/2013JulSep/0071.html)
> and others.
>
> Thoughts?
>
> -Sam
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
>
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Proposal: Add support for Promises

2013-08-23 Thread Filip Pizlo
I like it!

-Filip


On Aug 23, 2013, at 11:32 AM, Sam Weinig  wrote:

> Hey WebKittens,
> 
> I’d like to add support for Promises.  Promises are currently specified in 
> the DOM Living Standard (http://dom.spec.whatwg.org/#promises) but will 
> probably be moved to an ECMAScript standard at some point in the future.  As 
> such, I plan to implement them in JavaScriptCore.
> 
> The main motivation for adding Promises is that many upcoming specs have them 
> as a dependency, including WebCrypto 
> (https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html), the 
> updated FileSystem API 
> (http://lists.w3.org/Archives/Public/public-webapps/2013JulSep/0071.html) and 
> others.
> 
> Thoughts?
> 
> -Sam
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Proposal: Add support for Promises

2013-08-23 Thread Sam Weinig
Hey WebKittens,

I’d like to add support for Promises.  Promises are currently specified in the 
DOM Living Standard (http://dom.spec.whatwg.org/#promises) but will probably be 
moved to an ECMAScript standard at some point in the future.  As such, I plan 
to implement them in JavaScriptCore.

The main motivation for adding Promises is that many upcoming specs have them 
as a dependency, including WebCrypto 
(https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html), the 
updated FileSystem API 
(http://lists.w3.org/Archives/Public/public-webapps/2013JulSep/0071.html) and 
others.

Thoughts?

-Sam
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev