3 ms·
The only significant perf advantage WebAssembly has in browser vs JS is currently access to (Pentium II era) SIMD. This is a regrettable choice, because most l
by fulafel 5y ago
The only significant perf advantage WebAssembly has in browser vs JS is currently access to (Pentium II era) SIMD.
This is a regrettable choice, because most languages targeting the browsers are now lacking access to SIMD.
Heavier computation is currently being done with WebGL shaders (eg Google Meet background swap, TensorFlow tfjs).
- ignoramous 5y ago> Heavier computation is currently being done with WebGL shaders Re: in-browser heavy-computation: Where can I learn more about these patterns to get started? Books / blogs? Thx.
- fulafel 5y agoAbout the BG swap feature there's at least this blog post: https://ai.googleblog.com/2020/10/background-features-in-google-meet.html https://ai.googleblog.com/2020/10/background-features-in-goo... Rereading the blog post, they do seem to use WebAssembly as well there and the abovementioned SIMD feature (through XNNPACK).