News for hackers. Stuff that matters.
Re:Making calls to WebAssembly fast and implementing anyref by Game_Ender on Wednesday July 04, 2018 @10:13PM (#17460488)
I am curious to know if this also makes calls from WASM into JS faster. One of the issues with WASM is that you need the JS DOM API, it is essentially your OS abstraction layer, so faster that is, the better WASM will be.
Re:Making calls to WebAssembly fast and implementing anyref by bnjbvr on Thursday July 05, 2018 @05:53AM (#17461998)
We've had optimizations to make wasm -> JS calls fast for a long time, and they became even slightly faster (around 10 or 15%) last year. There is a proposal to add DOM integration within wasm, so one could import DOM functions in wasm and call them directly (from wasm to C++, without a "trampoline" in JS).
Re:Making calls to WebAssembly fast and implementing anyref by msoad on Wednesday July 04, 2018 @11:15PM (#17460634)
JS DOM API is a bridge to a native implementation. I wish we could use DOM directly in WS. Problem is DOM calls are blocking but removing the JS layer can help.