3 ms·
Assuming that also implies access to typed arrays in general, then applications that involve number crunching become a lot more feasible in JS too.
by vanderZwan 8y ago
Assuming that also implies access to typed arrays in general, then applications that involve number crunching become a lot more feasible in JS too.
- mrec 8y agoHuh? 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.