Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASI: Make the module, browser compatible #2745

Closed
cdecompilador opened this issue Oct 4, 2022 · 3 comments
Closed

WASI: Make the module, browser compatible #2745

cdecompilador opened this issue Oct 4, 2022 · 3 comments

Comments

@cdecompilador
Copy link

If wasmer-js could do it, making something similar with deno should be possible, right?

@cjihrig
Copy link
Contributor

cjihrig commented Oct 4, 2022

Since the WASI module is already written in TypeScript, I think shims for the Deno are the only missing piece for browser compatibility, right?

@cdecompilador
Copy link
Author

I've been looking at the code and it would require some rethinking of the API to make the needed calls to Deno just at the user side, for example while initializing the Context it sets by default the stdin, stdout and stderr to actual descriptors, when this ones could be abstacted to a ByteStream or something similar, also the ContextConfig handles the filesystem in a very native oriented way, it would mean a lot of changes from what I can see.

I just wanted to open this so future work on wasi has browser compatibility in mind, since its possible and something that in my oppinion is going to be used a lot on the near future

@iuioiua
Copy link
Collaborator

iuioiua commented Nov 3, 2023

Closing this as std/wasi is now deprecated. If you still need to use WASI in Deno, use wasmer-js instead.

@iuioiua iuioiua closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants