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

better wasi #5

Open
konsumer opened this issue Nov 4, 2024 · 0 comments
Open

better wasi #5

konsumer opened this issue Nov 4, 2024 · 0 comments

Comments

@konsumer
Copy link
Member

konsumer commented Nov 4, 2024

I have been working on a few projects for interacting with devices on WASI, on web:

This adds things like /dev/fb0.

I think this can be leveraged a few ways, but what i really want is to give users access to full wasi (zip + virtual devices) as well as the helper-functions I use now. I would prefer if the helpers did not need to be included in cart, though, to keep size down.

I think there are a few ways to accomplish this:

  • like on web: create a shared fs. expose it to cart-wasi and host (helpers) then connect them together.
  • figure out how to load 2 wasms properly. Make a helper wasm that translates into lower-level file-calls. dynamic linking or wasi-sdk style may have some hints. wamr may have trouble. I think null0 could essentially be dynamic-linked to cart, and then both have fs access via wasi.

I like the 2nd approach better, but I am not sure how to do it.

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

1 participant