node-wasi icon indicating copy to clipboard operation
node-wasi copied to clipboard

Using node-wasi on the WebAssembly waterfall

Open sbc100 opened this issue 6 years ago • 3 comments

I've been working on a similar affort to support wasi in JS. Currently we use it to test generated wasm modules on the WebAssembly waterfall:

https://github.com/WebAssembly/waterfall/blob/master/src/wasi.js

https://wasm-stat.us/console

I was previously unaware of this effort but it looks similar enough that it would probably make sense to us to combine efforts.

sbc100 avatar May 30 '19 15:05 sbc100

oh very nice! we're actually integrating this module into node.js itself, so you might want to wait until we finish that.

check out https://github.com/nodejs/node/pull/27850 for tracking.

I'm planning to merge it once I finish up the last few bugs here.

devsnek avatar May 30 '19 15:05 devsnek

Oh wow! Thats exciting. Would it not make sense to wait for wasi to stabilize though? Baking wasi_unstable into node seems a little early no?

sbc100 avatar May 30 '19 21:05 sbc100

it's behind a flag, and also has "unstable" in the name. from a development perspective we do this quite often, and releases of node will just have the experimental feature in whatever state it was at when that version was cut.

devsnek avatar May 30 '19 22:05 devsnek