4 ms·
Huh? We've had typed arrays in JS for years. I think they originally went in to support WebGL, but you can use them for other stuff too. https://developer.mozi
by mrec 8y ago
Huh? We've had typed arrays in JS for years. I think they originally went in to support WebGL, but you can use them for other stuff too.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- vanderZwan 8y agoDirect access to typed arrays from WASM without having to copy them over whole first, or use the memory buffer of the WASM module. You can't really write a "true" generic in-place sort in WASM right now, so to speak, because there is always a copying back and forth step.