4 ms·
UPDATE: I found it; here's the very nice core of his new WASI implementation -- https://github.com/taybenlor/runno/blob/main/packages/wasi-motor/lib/wasi/wasi.t
by williamstein 4y ago
UPDATE: I found it; here's the very nice core of his new WASI implementation -- https://github.com/taybenlor/runno/blob/main/packages/wasi-motor/lib/wasi/wasi.ts https://github.com/taybenlor/runno/blob/main/packages/wasi-m...
Original comment below:
> " I went through and implemented the whole standard in TypeScript"
Isn't this file in your code a big part of the implementing the WASI standard?
[1] https://github.com/taybenlor/runno/blob/main/packages/wasi/src/index.ts https://github.com/taybenlor/runno/blob/main/packages/wasi/s...
I ask because you didn't write that. I was excited that you said " I went through and implemented the whole standard in TypeScript" since I have been working on that same code [1] as the core of this npm package https://www.npmjs.com/package/wasi-js https://www.npmjs.com/package/wasi-js
and I've found some subtle bugs in it. I was excited to find another implementation to compare, so maybe you also did something else? Thanks!
This is a very exciting space and I greatly appreciate your work.
- benno128 4y agoGood spotto! That's an old WASI runtime from wasmerjs (https://github.com/wasmerio/wasmer-js https://github.com/wasmerio/wasmer-js). That's not the WASI runtime being used in this playground. The one in this playground is @runno/wasi-motor (https://github.com/taybenlor/runno/tree/main/packages/wasi-motor https://github.com/taybenlor/runno/tree/main/packages/wasi-m...). I haven't released it as an NPM package, but it's all MIT so feel free to copy it.