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

Create uvwasi executable based on C API ? #123

Open
sbc100 opened this issue May 13, 2020 · 3 comments
Open

Create uvwasi executable based on C API ? #123

sbc100 opened this issue May 13, 2020 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@sbc100
Copy link
Collaborator

sbc100 commented May 13, 2020

Can we take uvwasi and hooks it up the wasm runtime with the C API?

Then we could have a common WASI runtime that would work with any wasm engine that exposes the C-API.

For example we could take uivwasi and wee8 (https://docs.google.com/document/d/1oFPHyNb_eXg6NzrE6xJDNPdJrHMZvx0LqsD6wpbd9vY/edit#heading=h.4tfb7x3beh2l) and create something like node but without any JS.

Ideally the uvwasi executable would dynamically link to libwasm.so (providing the C API) so that any wasm engine would be dropped in without even re-compiling.

@cjihrig
Copy link
Collaborator

cjihrig commented May 13, 2020

That sounds like a great idea in theory. I only say in theory because I'm not very familiar with the specifics of the c-api and there don't seem to be many docs, so it's hard for me to gauge what work would be involved.

If you or anyone else wants to take this on, or can help point me in the right direction, I'd be in favor of seeing uvwasi support it.

@sbc100
Copy link
Collaborator Author

sbc100 commented May 13, 2020

I'm looking into moving this direction once the wabt API hookup is done. If it works I can try to upstream it here.

@cjihrig
Copy link
Collaborator

cjihrig commented May 13, 2020

That would be great. Thank you!

@cjihrig cjihrig added the help wanted Extra attention is needed label May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants