[webkit-dev] web timing

2014-05-05 Thread Alex Christensen
I’m working on web timing based on https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html and the current ResourceLoadTiming class has more information than is required for the spec. I’ve trimmed it down, but it appears to be used in ResourceHandleSoup.cpp and a

[webkit-dev] support for navigator.cores or navigator.hardwareConcurrency

2014-05-05 Thread Rik Cabanier
All, there's a thread on blink-dev [1] and whatwg [2] to create a new parameter on the navigator object that returns the maximum number of tasks that can run in parallel. [3] Is this something that WebKit would support? 1:

Re: [webkit-dev] support for navigator.cores or navigator.hardwareConcurrency

2014-05-05 Thread Filip Pizlo
I like this.  Personally, I don't see any downside. Is there a bug (on bugs.webkit.org), and if not, can you create one? :-) -Phil On May 5, 2014 at 4:49:35 PM, Rik Cabanier (caban...@gmail.com) wrote: All, there's a thread on blink-dev [1] and whatwg [2] to create a new parameter on the

Re: [webkit-dev] support for navigator.cores or navigator.hardwareConcurrency

2014-05-05 Thread Rik Cabanier
On Mon, May 5, 2014 at 4:58 PM, Filip Pizlo fpi...@apple.com wrote: I like this. Personally, I don't see any downside. Is there a bug (on bugs.webkit.org), and if not, can you create one? :-) Done! https://bugs.webkit.org/show_bug.cgi?id=132588 I volunteer to implement this. (I love

Re: [webkit-dev] support for navigator.cores or navigator.hardwareConcurrency

2014-05-05 Thread Simon Fraser
It allows attackers to know even more about my system, exposing more data for fingerprinting. Do you really want a page to know that you have a fancy-pants 24-core Mac Pro rather than a little Mac mini? Simon On May 5, 2014, at 4:58 PM, Filip Pizlo fpi...@apple.com wrote: I like this.

Re: [webkit-dev] support for navigator.cores or navigator.hardwareConcurrency

2014-05-05 Thread Rik Cabanier
On Mon, May 5, 2014 at 5:52 PM, Simon Fraser simon.fra...@apple.com wrote: It allows attackers to know even more about my system, exposing more data for fingerprinting. People can already approximate this today. Approximations are fuzzy so this might hurt performance if you're not a popular

Re: [webkit-dev] support for navigator.cores or navigator.hardwareConcurrency

2014-05-05 Thread Oliver Hunt
On May 5, 2014, at 6:13 PM, Rik Cabanier caban...@gmail.com wrote: Do you really want a page to know that you have a fancy-pants 24-core Mac Pro rather than a little Mac mini? Yes! If I have 24 cores ready to do work and the page can put them to use, I would like it to do so. At the

Re: [webkit-dev] support for navigator.cores or navigator.hardwareConcurrency

2014-05-05 Thread Karen Shaeffer
On Mon, May 05, 2014 at 06:23:54PM -0700, Oliver Hunt wrote: On May 5, 2014, at 6:13 PM, Rik Cabanier caban...@gmail.com wrote: Do you really want a page to know that you have a fancy-pants 24-core Mac Pro rather than a little Mac mini? Yes! If I have 24 cores ready to do work

Re: [webkit-dev] support for navigator.cores or navigator.hardwareConcurrency

2014-05-05 Thread Rik Cabanier
On Mon, May 5, 2014 at 6:23 PM, Oliver Hunt oli...@apple.com wrote: On May 5, 2014, at 6:13 PM, Rik Cabanier caban...@gmail.com wrote: Do you really want a page to know that you have a fancy-pants 24-core Mac Pro rather than a little Mac mini? Yes! If I have 24 cores ready to do work

Re: [webkit-dev] support for navigator.cores or navigator.hardwareConcurrency

2014-05-05 Thread Filip Pizlo
+1, I agree with all that you say. I think that having more sophisticated forms of concurrency than just workers would eventually be great. But every time I've written parallel code, no matter what programming model I used (threads, processes, tasks, whatever...) I always end up wanting the