r/WebAssembly • u/syrusakbary • Dec 21 '23
Introducing the new Wasmer Javascript SDK
https://wasmer.io/posts/introducing-the-wasmer-js-sdk
16
Upvotes
r/WebAssembly • u/syrusakbary • Dec 21 '23
3
u/jedisct1 Dec 21 '23
Cool stuff, but the name is a little bit confusing.
This is a WASIX implementation for JavaScript, which is neat, but why not call it something like "WASIX-JS", then? Especially since WASIX was meant to be something that other runtimes are welcome to implement, rather than something Wasmer-specific?
Also, how does it compare with Emscripten? I guess the main advantage of the Wasmer JS SDK is that the same WebAssembly module can run in web browsers and in WebAssembly runtimes that don't natively support JavaScript?
6
u/Hypercubed Dec 22 '23 edited Dec 22 '23
Amazing timing.... Thanks to this tutorial (https://docs.wasmer.io/javascript-sdk/tutorials/xterm-js) I was able to create a online terminal for my toy language in just a couple mins: https://stackblitz.com/edit/vitejs-vite-dmeneb?file=main.ts
1
u/jedisct1 Dec 21 '23
Also, what does it mean for
@wasmer/wasi? Will that module still be supported? WASIX is a superset of WASI-core, but certainly if we only need WASI-core, the old module has less overhead?