W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: [whatwg] ArrayBuffer and ByteArray questions

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Thu, 9 Sep 2010 10:04:29 +1000
Message-ID: <AANLkTin+MmZaCoH1F2nD+1C6ErOn1yJE=u3X2pBgMeo9@mail.gmail.com>
To: Chris Marrin <cmarrin@apple.com>
Cc: Oliver Hunt <oliver@apple.com>, whatwg@lists.whatwg.org, Web Applications Working Group WG <public-webapps@w3.org>, Simon Pieters <simonp@opera.com>
On Thu, Sep 9, 2010 at 4:37 AM, Chris Marrin <cmarrin@apple.com> wrote:

>
> On Sep 8, 2010, at 11:21 AM, Oliver Hunt wrote:
>
> >
> > On Sep 8, 2010, at 11:13 AM, Chris Marrin wrote:
> >
> >> Web Sockets is certainly another candidate, but I meant Web Workers.
> There have been informal discussions on using ArrayBuffers as a way to
> safely share binary data between threads. I don't believe anything has been
> formalized here.
> >
> > You can't share data between workers.  There is no (and there cannot be)
> any shared state between multiple threads of JS execution.
>
> Right. I didn't mean literal sharing. But you can imagine some
> copy-on-write semantics which would make it more efficient to pass data this
> way.
>
>
Is this then similar to posting ImageData with Web Workers? (
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#imagedata)
. I know that these can already be put into a postMessage and they are
effectively arrays.

Cheers,
Silvia.
Received on Thursday, 9 September 2010 00:05:21 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:40 GMT