News for hackers. Stuff that matters.
Re:The State of WebAssembly 2022 by martin_drapeau on Monday June 20, 2022 @09:41AM (#31810249)
Can someone point out a known web page/service that uses WebAssembly?
Re:The State of WebAssembly 2022 by capableweb on Monday June 20, 2022 @09:50AM (#31810343)
Figma is probably the biggest web application that uses it for the main feature they offer (the entire in-browser editor is C++ compiled to Wasm).

You can read more about how they use it here: https://www.figma.com/blog/webassembly-cut-figmas-load-time-...

> Because our product is written in C++, which can easily be compiled into WebAssembly, Figma is a perfect demonstration of this new format’s power. If you haven’t used Figma before, it’s a browser-based interface design tool with a powerful 2D WebGL rendering engine that supports very large documents.

Re:The State of WebAssembly 2022 by martin_drapeau on Monday June 20, 2022 @10:04AM (#31810485)
Ok, this is a great example. I will check that out!
Re:The State of WebAssembly 2022 by jphilip on Monday June 20, 2022 @10:02AM (#31810469)
Mozilla uses WebAssembly in it's offline translation extension. Here's a web-page demonstrating the same stuff:

- https://mozilla.github.io/translate/

These are neural models that are compressed and optimized to run on user's CPU. I write some of the code which repurposes the underlying (C++) library for extension's needs, all of which gets compiled via emscripten to WebAssembly for use in the browser.

Previous discussion on HN: https://news.ycombinator.com/item?id=31596888

Re:The State of WebAssembly 2022 by azakai on Monday June 20, 2022 @10:48AM (#31810976)
Whenever you use Zoom or Meet in a browser you're using WebAssembly. Lots of other sites do too, but you just need to open the devtools to notice it.

Other big examples: Unity games, Photoshop, Figma, Google Earth, etc.

Re:The State of WebAssembly 2022 by astlouis44 on Monday June 20, 2022 @01:24PM (#31812977)
Unreal Engine games on the web soon as well :)

https://venturebeat.com/2022/05/12/wonder-interactives-the-i...

Re:The State of WebAssembly 2022 by meheleventyone on Monday June 20, 2022 @09:43AM (#31810264)
Google Meet uses it for a bunch of processing.

Figma uses it.

We're using it right now to drive a new physics integration.

Re:The State of WebAssembly 2022 by neriymus on Monday June 20, 2022 @11:09AM (#31811278)
Just curious what your thought are regarding this (https://zaplib.com/docs/blog_post_mortem.html) if you have seen it. Does implementing a physics engine in Rust and complied in wasm provide you guys with quite a big performance boost? Asking because I've considered doing so for my team, but have reservations about the performance increase.
Re:The State of WebAssembly 2022 by meheleventyone on Monday June 20, 2022 @01:24PM (#31812978)
We’re not implementing in Rust but taking an existing piece of middleware (Bullet) and using it. Performance wise it’d be an apples to oranges comparison but our general understanding from benchmarks, our own personal experiments and blogs like the one you posted there is not to expect miracles but more consistency and less footguns (e.g. megamorphic behaviour).

This is another good summary: https://ianjk.com/webassembly-vs-javascript/

I would say there is hope when SIMD is supported across major browsers if your workload will make use of it. Just waiting on Safari. And there might well be more performance to eek out of the JIT compilation.

Re:The State of WebAssembly 2022 by neriymus on Monday June 20, 2022 @04:46PM (#31815724)
Thanks! This was useful
Re:The State of WebAssembly 2022 by Extigy on Monday June 20, 2022 @09:59AM (#31810437)
You can run Python directly in the browser via Pyodide: https://pyodide.org/en/stable/
Re:The State of WebAssembly 2022 by m00dy on Monday June 20, 2022 @10:34AM (#31810817)
well, I have just implemented webgpu support for Pyodide ;). Soon, we will able to train neural nets right in the browser :). So, right now I'm working a very minimal grad based nn framework
Re:The State of WebAssembly 2022 by nonima on Monday June 20, 2022 @04:03PM (#31815096)
How do I know it's running in the browser?
Re:The State of WebAssembly 2022 by pjmlp on Monday June 20, 2022 @01:30PM (#31813055)
Adobe Photoshop and Autodesk for example.