wasmer-js icon indicating copy to clipboard operation
wasmer-js copied to clipboard

Information sparcity

Open mundusnine opened this issue 5 years ago • 3 comments

So this project really needs a wiki. I could share the info I have gathered as of now and project maintainers could share when they have time.

The info that I found in this pr is a good example:

Actually, both WASI and Emscripten will use the same filesystem. What you think on renaming it to WasmerFileSystem ?

Originally posted by @syrusakbary in https://github.com/wasmerio/wasmer-js/pull/5

Basicaly, it's great to know we can have interactions between wasm generated from emcc and from wasienv.

mundusnine avatar Jan 07 '20 16:01 mundusnine

Hello!

Thank you for bringing this up!

We recently launched an official documentation resource across the wasmer js stack.

And related to that specific comment, We haven't really highlighted that feature yet, as it's not quite working yet if I am not mistaken. Currently, only the WASI ABI works, and the Emscripten ABI would be coming later (if that is what you are reffering to) 😄 Otherwise, can you expand on what you mean?

Thank you! 😄

torch2424 avatar Jan 07 '20 19:01 torch2424

Hi,

Basically, if I have a wasm compiled with emscripten, will it share the filesystem with wasmFs ?

Because right now compilling with wasienv is, well, less documented then emscripten and I am literally trying to compile a compiler to wasm and the compiler(haxe compiler) uses other c libs and its unclear how to add those with wasienv compared to emscripten.

Good day and thank you,

mundusnine avatar Jan 08 '20 22:01 mundusnine

Hello!

So both should use WasmFs when used in the Wasm Terminal, or WebAssembly.sh.

And woah! That sounds like a really cool / fun project! 😄 Excited to see it!

No matter what tool you use to compile your Wasm modules, they should have access to their FileSystem if they have the correct WASI bindings, which in turn means they can use WasmFs. @syrusakbary please correct me if I am wrong 😄

Let me know if that helps! Thanks!

torch2424 avatar Jan 08 '20 22:01 torch2424

We have now added full docs into Wasmer-JS, which should make clearer how to use the SDK moving forward

syrusakbary avatar Dec 13 '23 18:12 syrusakbary