Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Filip Pizlo
Why can't these data structures be implemented as JavaScript built-ins that behave as if they were DOM objects? -Filip On Jun 12, 2014, at 10:45 PM, Dirk Schulze k...@webkit.org wrote: On Jun 13, 2014, at 1:54 AM, Benjamin Poulain benja...@webkit.org wrote: On 6/12/14, 11:24 AM, Dirk

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Dirk Schulze
On Jun 13, 2014, at 8:36 AM, Filip Pizlo fpi...@apple.com wrote: Why can't these data structures be implemented as JavaScript built-ins that behave as if they were DOM objects? I am not sure. What do you have in mind? How could it look like? Greetings, Dirk -Filip On Jun 12, 2014, at

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Ryosuke Niwa
On Thu, Jun 12, 2014 at 11:42 PM, Dirk Schulze k...@webkit.org wrote: On Jun 13, 2014, at 8:36 AM, Filip Pizlo fpi...@apple.com wrote: Why can't these data structures be implemented as JavaScript built-ins that behave as if they were DOM objects? I am not sure. What do you have in mind?

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Anne van Kesteren
On Fri, Jun 13, 2014 at 9:53 AM, Ryosuke Niwa rn...@webkit.org wrote: I think Phil and Ben are suggesting to implement these types in JSC like we did for typed arrays. If you were to do that you probably want to ping TC39 this time around. -- http://annevankesteren.nl/

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Benjamin Poulain
On 6/13/14, 12:53 AM, Ryosuke Niwa wrote: On Thu, Jun 12, 2014 at 11:42 PM, Dirk Schulze k...@webkit.org mailto:k...@webkit.org wrote: On Jun 13, 2014, at 8:36 AM, Filip Pizlo fpi...@apple.com mailto:fpi...@apple.com wrote: Why can't these data structures be implemented as

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Ryosuke Niwa
On Fri, Jun 13, 2014 at 12:59 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jun 13, 2014 at 9:53 AM, Ryosuke Niwa rn...@webkit.org wrote: I think Phil and Ben are suggesting to implement these types in JSC like we did for typed arrays. If you were to do that you probably want to

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Anne van Kesteren
On Fri, Jun 13, 2014 at 10:12 AM, Ryosuke Niwa rn...@webkit.org wrote: What I'm saying is that we can implement it in JavaScriptCore for performance and we still make it look like a regular DOM object with wrappers to preserve the semantics. I understand that, but given that it is in the

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Dirk Schulze
On Jun 13, 2014, at 10:17 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jun 13, 2014 at 10:12 AM, Ryosuke Niwa rn...@webkit.org wrote: What I'm saying is that we can implement it in JavaScriptCore for performance and we still make it look like a regular DOM object with wrappers to

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Ryosuke Niwa
On Fri, Jun 13, 2014 at 1:16 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jun 13, 2014 at 10:12 AM, Ryosuke Niwa rn...@webkit.org wrote: What I'm saying is that we can implement it in JavaScriptCore for performance and we still make it look like a regular DOM object with wrappers

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Ryosuke Niwa
On Fri, Jun 13, 2014 at 1:27 AM, Dirk Schulze dschu...@adobe.com wrote: On Jun 13, 2014, at 10:17 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jun 13, 2014 at 10:12 AM, Ryosuke Niwa rn...@webkit.org wrote: What I'm saying is that we can implement it in JavaScriptCore for

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Anne van Kesteren
On Fri, Jun 13, 2014 at 10:32 AM, Ryosuke Niwa rn...@webkit.org wrote: I understand your concern and sentiment but I'm having a hard time imagining what kind of problems/concerns would TC39 have with these interfaces that are clearly prefixed with DOM. That if they end up as objects in

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Ryosuke Niwa
On Fri, Jun 13, 2014 at 1:53 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jun 13, 2014 at 10:32 AM, Ryosuke Niwa rn...@webkit.org wrote: I understand your concern and sentiment but I'm having a hard time imagining what kind of problems/concerns would TC39 have with these interfaces

Re: [webkit-dev] Implement Geometry Interfaces

2014-06-13 Thread Ryosuke Niwa
On Fri, Jun 13, 2014 at 2:05 AM, Ryosuke Niwa rn...@webkit.org wrote: On Fri, Jun 13, 2014 at 1:53 AM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, Jun 13, 2014 at 10:32 AM, Ryosuke Niwa rn...@webkit.org wrote: I understand your concern and sentiment but I'm having a hard time