Hacker News new | ask | show | jobs
by clouddrover 3048 days ago
> My big hangup is understanding a low level use case for it.

Two real world use cases for WebAssembly are image decoding and audio decoding.

WebP image decoding: https://webmproject.github.io/libwebp-demo/webp_wasm/index.h...

Opus audio decoding: https://www.scirra.com/blog/211/opus-audio-in-construct-3

2 comments

Emulating entire computers: http://blog.archive.org/2018/02/13/emulation-in-the-browser-... This is powerful because it makes the emulator itself platform-independent. Any wasm-capable browser can now emulate a ton of other platforms.
Alternatively you could compile proprietary desktop applications to webasm and use nodejs as a standalone VM.
I hadn't thought about using it for decoding images, clever! I'd been dreaming of translating my favorite python package over to the web to use without having to spin up django, but from what I'm hearing that isn't really the purpose.