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

Add WASI API to wasm-interp / wasm2c #1409

Closed
sbc100 opened this issue May 10, 2020 · 2 comments · Fixed by #1411
Closed

Add WASI API to wasm-interp / wasm2c #1409

sbc100 opened this issue May 10, 2020 · 2 comments · Fixed by #1411
Assignees

Comments

@sbc100
Copy link
Member

sbc100 commented May 10, 2020

Seems like adding a dependency on https://github.com/cjihrig/uvwasi might be a good start.

@sbc100 sbc100 self-assigned this May 10, 2020
@sbc100
Copy link
Member Author

sbc100 commented May 10, 2020

Decided to take a quick look into the feasibility this weekend.

sbc100 added a commit that referenced this issue May 10, 2020
sbc100 added a commit that referenced this issue May 10, 2020
sbc100 added a commit that referenced this issue May 10, 2020
This is proof of concept that only implements the `proc_exit` API.
Extending this to the full WASI API will to follow assuming this
approach seems reasonable.

Fixes #1409
sbc100 added a commit that referenced this issue May 11, 2020
This is proof of concept that only implements the `proc_exit` API.
Extending this to the full WASI API will to follow assuming this
approach seems reasonable.

Fixes #1409
sbc100 added a commit that referenced this issue May 11, 2020
This is proof of concept that only implements the `proc_exit` API.
Extending this to the full WASI API will to follow assuming this
approach seems reasonable.

Fixes #1409
sbc100 added a commit that referenced this issue May 11, 2020
This is proof of concept that only implements the `proc_exit` API.
Extending this to the full WASI API will to follow assuming this
approach seems reasonable.

Fixes #1409
sbc100 added a commit that referenced this issue May 11, 2020
This is proof of concept that only implements the `proc_exit` API.
Extending this to the full WASI API will to follow assuming this
approach seems reasonable.

Fixes #1409
sbc100 added a commit that referenced this issue May 12, 2020
This is proof of concept that only implements the `proc_exit` API.
Extending this to the full WASI API will to follow assuming this
approach seems reasonable.

Fixes #1409
sbc100 added a commit that referenced this issue May 12, 2020
This is proof of concept that only implements the `proc_exit` API.
Extending this to the full WASI API will to follow assuming this
approach seems reasonable.

Fixes #1409
@sbc100
Copy link
Member Author

sbc100 commented May 13, 2020

Next steps after #1411 lands:

  1. Hooks up the rest of the API!
  2. Auto-generate the host-side structs and marshaling code. Coordinate with Add serdes API nodejs/uvwasi#69.
  3. Looks into implementing from the "outside" using the C API, such that the implementation can run on any implementation of the C API (Perhaps this should in uvwasi itself though).

sbc100 added a commit that referenced this issue May 13, 2020
This is proof of concept that only implements the `proc_exit` and
`fd_write` APIs.

Extending this to the full WASI API will to follow assuming this
approach seems reasonable.

Fixes #1409
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

Successfully merging a pull request may close this issue.

1 participant