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

[whatwg] Endianness of typed arrays

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 28 Mar 2012 01:50:45 -0700
Message-ID: <4F72D0E5.6070206@mit.edu>
On 3/28/12 1:22 AM, Charles Pritchard wrote:
> You are making the assertion that "deliberately misleading in terms of
> what it takes to achieve interoperable behavior".


> And you and Robert have given reasons why you believe developers will
> make many mistakes.

No, I'm just saying developers are, today, writing code that assumes 
little endian typed arrays.  Some are doing it deliberately, some are 
doing it because they don't know better, some are not doing it it all. 
But the net effect is that there is some code on the web.

> I brought up adding some additional text to aide developers...

This won't change the dynamic...

> What would it take, without changing the behavior of the current spec,
> for it to contain terms that you do not feel are "deliberately misleading"?

I don't think that's possible.

> Do you feel the spec is misleading implementers?

Yes, precisely.  The point of a spec is that it can be implemented and 
then the implementation would interoperate with other implementations. 
An implementation of the typed array spec that actually followed the 
spec and happened to run on big-endian hardware would not interoperate 
with other implementations and would not work with existing content.

Received on Wednesday, 28 March 2012 01:50:45 UTC

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