Re:Calls between JavaScript and WebAssembly are finally fast
by vanderZwan on Monday October 08, 2018 @03:50PM
(#18170729)
Assuming that also implies access to typed arrays in general, then applications that involve number crunching become a lot more feasible in JS too.
[ Parent
| on HN ]
Re:Calls between JavaScript and WebAssembly are finally fast
by mrec on Monday October 08, 2018 @07:04PM
(#18172084)
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/Refe...
Re:Calls between JavaScript and WebAssembly are finally fast
by vanderZwan on Monday October 08, 2018 @09:44PM
(#18172750)
Direct 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.