W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2012

[whatwg] API for encoding/decoding ArrayBuffers into text

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 16 Mar 2012 19:19:13 -0400
Message-ID: <4F63CA71.5030806@mit.edu>
On 3/16/12 5:44 PM, Charles Pritchard wrote:
> The DataView set of methods already does this work. The raw arrays are
> supposed to have platform endianness.

I haven't seen anyone actually using the DataView stuff in practice, or 
presenting it to developers much...

> If you see some evangelists skipping the endian check, send them an
> e-mail and let them know.

I've done that... then I stopped because it just wasn't worth the 
effort.  Every single WebGL demo I've seen recently was doing this. 
People were being told that typed arrays are a good way to load binary 
(integer and float) data from servers using the arraybuffer facilities 
of XHR at SXSW last week, with no mention of endianness.

I think that trying to get web developers to do this right is a lost 
cause, esp. because none of them (to a good approximation) have any 
big-endian systems to test on.

Received on Friday, 16 March 2012 16:19:13 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC