typed array strawman proposal
P T Withington
ptw at pobox.com
Wed Jan 27 10:36:44 PST 2010
On 2010-01-27, at 13:17, Brendan Eich wrote:
> On Jan 27, 2010, at 10:15 AM, P T Withington wrote:
>> On 2010-01-27, at 13:06, Brendan Eich wrote:
>>> Anyway, we do not want to require exotic techniques. We want to allow C++ implementations, which require constants to avoid obvious performance hits for no good reason. Competition will kill any browser foolish enough to take such hits.
>> That seems inconsistent with the philosophy that classes can be syntactic sugar on closures that will be magically optimized.
> That philosophy cannot possibly implement native GPU-oriented fixed-size machine-int-element-typed arrays!
I must be missing something. You can optimize:
new Int16Array(foo, n)
new IndirectArray(foo, 'int', 16, 0);
More information about the es-discuss