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

Supporting additional WASM runtime #1303

Open
hardiksd opened this issue Sep 13, 2023 · 5 comments
Open

Supporting additional WASM runtime #1303

hardiksd opened this issue Sep 13, 2023 · 5 comments

Comments

@hardiksd
Copy link

Hi, I'm new here but exploring using crun on baremetal linux embedded system. Going through the build files I figure WASM is supported experimentally and few WASM runtime options are available.

I wanted to know what would be good place to look into adding one more wasm runtime. I'm specifically interested in adding WAMR and hoping it can be added as one additional option for WASM - https://github.com/bytecodealliance/wasm-micro-runtime

any pointers would be helpful.

@giuseppe
Copy link
Member

we can add other runtimes, you can take a look at the existing ones for an idea of how it should be done.

The support for a specific handler must be specified at configure time ./configure so that it is not added by default.

Are you interested in working on it?

@flouthoc
Copy link
Collaborator

@hardiksd Have you looked at wasmtime (crun already has integration for wasmtime) ? or does wasmtime has higher footprint than wasm-micro-runtime ?

@hardiksd
Copy link
Author

we can add other runtimes, you can take a look at the existing ones for an idea of how it should be done.

The support for a specific handler must be specified at configure time ./configure so that it is not added by default.

Are you interested in working on it?

Thanks. Yes, I can work and enable WAMR runtime. It has much smaller footprint compared to wasmtime. I went through old commit's to see how this can be done. So I should be able to work on it.

Thanks for the pointers.

@macko99
Copy link

macko99 commented Jul 9, 2024

@hardiksd do you have any progress with the work on adding wamr support?

@macko99
Copy link

macko99 commented Jul 16, 2024

Hello, I have created a PR with a preview of WAMR runtime implementation. It does work! It is not yet fully developed and needs some polishing but the WASM containers are executing.

The env vars are being passed and you can see the container logs. The memory footprint is much much lower than the one of Wasmedge. Simple wait containers use about 54% less memory due to the WAMR library being super lightweight!

It seems very promising!

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

4 participants