4 ms·
WASM is honestly fantastic but it took me awhile to see the benefits. Figma is the usual example. Another good example I learned about recently is StackBlitz,
by Klonoar 4y ago
WASM is honestly fantastic but it took me awhile to see the benefits. Figma is the usual example.
Another good example I learned about recently is StackBlitz, which uses it to run Node in the browser for localhost-less dev environments.
- yesimahuman 4y agoOne thing about wasm I’m trying to understand: isn’t the bottleneck accessing DOM, WebGL, etc through JS? You’d have to have a workload that stayed away from those operations as much as possible to truly matter performance wise, no?
- FridgeSeal 4y agoA couple of years ago now, Mozilla had a blog post where they demonstrated that they could stream the DOM to a WASM blob and they could parse the stream, perform the diffs and updates to the DOM and stream it back, faster than the same operations could be completed in the JS runtime.
- yesimahuman 4y agoInteresting, but round trip is that still the case (i.e. performing the diffs and then applying them on the JS/DOM side)? Either way unlocking access to Web APIs from wasm will be transformational if it ever happens.
- deleted 4y ago[deleted]