[whatwg] ArrayBuffer and ByteArray questions

On Wed, 08 Sep 2010 20:13:19 +0200, Chris Marrin <cmarrin at apple.com> wrote:

>>> ArrayBuffer certainly has momentum behind it. It started as a part of  
>>> the WebGL spec as a way of passing buffers of data of various types  
>>> (sometimes heterogeneous types) to the WebGL engine. Since then, it  
>>> has found uses in the Web Audio proposal, the File API and there has  
>>> been talk in using it as a way to pass data to Web Workers.
>>
>> Do you mean WebSockets?
>
> 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.

Oh, as in posting to a worker with postMessage? Yeah that could be useful.  
A side-effect of speccing this would be that other stuff that use the  
structured clone algorithm would also support ArrayBuffer, e.g.  
localStorage.

-- 
Simon Pieters
Opera Software

Received on Wednesday, 8 September 2010 11:19:24 UTC