Re: [whatwg] [WebWorkers] About the delegation example

2009-11-30 Thread Ian Hickson
On Thu, 5 Nov 2009, David Bruant wrote: First of all, there is a typo error in this example. The main HTML page is a copy/paste of the first example (Worker example: One-core computation). Fixed. My point here is to ask for a new attribute for the navigator object that could describe

Re: [whatwg] [WebWorkers] About the delegation example

2009-11-07 Thread Chris Jones
Chris Jones wrote: If I were writing a computationally-bound webapp, I would want an interface like [main thread] SharedWorker.parallelMap(workerfn [, ...]]) [worker thread] function workerfn(myThreadIndex, numberOfworkerfns [, ...]) { // partition problem dataset [...] based on

Re: [whatwg] [WebWorkers] About the delegation example

2009-11-06 Thread Chris Jones
David Bruant wrote: On the other hand, on a 16-core processor (which doesn't exist yet, but is a realistic idea for the next couple of decades), the task could be executed faster with 16 workers. Maybe you mean hardware thread instead of core? If so, the machine I'm writing this message on

[whatwg] [WebWorkers] About the delegation example

2009-11-05 Thread David Bruant
Hi, First of all, there is a typo error in this example. The main HTML page is a copy/paste of the first example (Worker example: One-core computation). My point here is to ask for a new attribute for the navigator object that could describe the best number of workers in a delegation use case.