3 ms·
Really the only available use case is inserting a wasm component into a traditional web application framework. Wasm code can only be loaded from JS, it can onl
by ajross 7y ago
Really the only available use case is inserting a wasm component into a traditional web application framework. Wasm code can only be loaded from JS, it can only be invoked from JS, and it's only way to affecting the world outside the VM is to call functions in JS that are going to do something to a user-visible DOM.
This is all still traditional web development. It's just a way to target other runtimes to a sandbox in the same environment.
- voxic11 7y agoActually with the WebAssembly System Interface you can interface WebAssembly with any platform, it doesn't need to be a javascript vm. https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webassembly-system-interface/ https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webas...
- krapp 7y ago>Wasm code can only be loaded from JS, it can only be invoked from JS, and it's only way to affecting the world outside the VM is to call functions in JS that are going to do something to a user-visible DOM. Incorrect. WASM was designed from the beginning to be run both on and off the web[0], and native clients already exist[1]. [0]https://webassembly.org/docs/non-web/ https://webassembly.org/docs/non-web/ [1]https://github.com/mbasso/awesome-wasm#non-web-embeddings https://github.com/mbasso/awesome-wasm#non-web-embeddings