W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: What changes to Web Messaging spec are proposed? [Was: Re: Using ArrayBuffer as payload for binary data to/from Web Workers]

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 21 Jun 2011 07:39:23 +0000 (UTC)
To: Jonas Sicking <jonas@sicking.cc>
cc: Andrew Wilson <atwilson@google.com>, Kenneth Russell <kbr@google.com>, David Levin <levin@chromium.org>, Arthur Barstow <art.barstow@nokia.com>, Glenn Maynard <glenn@zewt.org>, Dmitry Lomov <dslomov@google.com>, ben turner <bent.mozilla@gmail.com>, "public-webapps@w3.org" <public-webapps@w3.org>, Travis Leithead <Travis.Leithead@microsoft.com>
Message-ID: <Pine.LNX.4.64.1106210738260.14203@ps20323.dreamhostps.com>
On Mon, 20 Jun 2011, Jonas Sicking wrote:
> 
> If data appears both in the .ports array and the .data property, then 
> people will be tempted to create protocols which only work if the array 
> buffer is transferred, i.e. if the receiver only looks in .ports. I.e. 
> people will likely end up with equally ugly solutions like:
> 
> postMessage('vend-reply', [createClone(arraybuffer)]);

Yeah, that's a very good point.

It really seems like part of the problem here is that ports and 
arrayBuffers are quite different (in that one will always want to be 
transferred, but for the other you might want to sometimes transfer and 
sometimes not).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 21 June 2011 07:39:56 GMT

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