W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2010

RE: Adoption of the Typed Array Specification

From: Allen Wirfs-Brock <Allen.Wirfs-Brock@microsoft.com>
Date: Fri, 14 May 2010 03:32:55 +0000
To: Erik Arvidsson <erik.arvidsson@gmail.com>, "arun@mozilla.com" <arun@mozilla.com>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>, "es-discuss@mozilla.org" <es-discuss@mozilla.org>
Message-ID: <90EDC335A511F2479C63F7337D3CE7DB41DFEDFF@TK5EX14MBXC116.redmond.corp.microsoft.com>
I agree that you'd probably want make use of the Array.prototype methods in this domain but that doesn't necessarily require that (ab instanceof Array) is true.  Also I would think that it is the various view objects where you would really want to make use of the Array methods.

Allen

> -----Original Message-----
> From: es-discuss-bounces@mozilla.org [mailto:es-discuss-
> bounces@mozilla.org] On Behalf Of Erik Arvidsson
> Sent: Thursday, May 13, 2010 4:58 PM
> To: arun@mozilla.com
> Cc: public-script-coord@w3.org; es-discuss@mozilla.org
> Subject: Re: Adoption of the Typed Array Specification
> 
> I'm surprised no one has said this yet but here goes:
> 
> ArrayBuffer needs to extend Array. In other words instances of ArrayBuffer
> needs to also be instances of Array
> 
> var ab = new ArrayBuffer;
> assert(ab instanceof ArrayBuffer);
> assert(ab instanceof Array);
> 
> You will also need to make sure that all the internal methods are defined. See
> 8.12 Algorithms for Object Internal Methods of ES5. For example what does it
> mean to do [[Delete]] on a byte array?
> 
> 
> On Thu, May 13, 2010 at 05:57, Arun Ranganathan <arun@mozilla.com> wrote:
> > Greetings, TC-39 WG and script mavens!
> >
> > Browser vendors participating in the WebGL WG intend to implement the
> > "Typed Arrays" specification, allowing for greater manipulation of binary data:
> >
> > https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/doc/spec

> > /TypedArray-spec.html
> >
> > The draft specification (a work in progress) resides at Khronos, which
> > is typically an unusual home for something integral to the rest of the
> > web platform.  Khronos is where we work on WebGL, which enjoys Google,
> > Opera, Mozilla, and Apple participation, amongst other organizations.
> >
> > The general usefulness of constructs such as ArrayBuffers (covered in
> > the "Typed Arrays" draft specification) lends itself to other web
> > platform specifications, such as the File API, parts of which are
> > implemented in Firefox 3.6.3:
> >
> > http://dev.w3.org/2006/webapi/FileAPI/

> >
> > In the above draft (also a work in progress), the Blob interface
> > exposes an ArrayBuffer property, which can then be used with different views.
> >
> > While implementations are currently proceeding unimpeded by
> > standards-track considerations, it would be useful if Typed Arrays
> > were taken on as a work item by TC-39, for more general inclusion in
> > JavaScript.  Should it live elsewhere, and if so, where?
> >
> > -- A*
> > _______________________________________________
> > es-discuss mailing list
> > es-discuss@mozilla.org
> > https://mail.mozilla.org/listinfo/es-discuss

> >
> 
> 
> 
> --
> erik
> _______________________________________________
> es-discuss mailing list
> es-discuss@mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

Received on Friday, 14 May 2010 03:33:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:02 UTC