Do any browsers currently support or plan to support fast array math operations, similar to what NumPy provides for Python? Here is an example to demonstrate what I mean:
var a = new NumericArray('uint32', [1, 2, 3, 4]);
var b = new NumericArray('uint32', [2, 2, 2, 2]);
var c = a.add(b); // c == [3, 4, 5, 6]
In that example, add
is not meant to represent a function implemented in JavaScript. That would be trivial to write. It is meant to represent a function that is written in C (or whatever language the JavaScript implementation is written in) and is optimized specifically for math operations over the array.