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

Will llrt have plans to support WebAssembly ? #493

Open
ahaoboy opened this issue Jul 23, 2024 · 4 comments
Open

Will llrt have plans to support WebAssembly ? #493

ahaoboy opened this issue Jul 23, 2024 · 4 comments

Comments

@ahaoboy
Copy link
Contributor

ahaoboy commented Jul 23, 2024

Rust has a very fast WebAssembly runtime wasmtime, its speed is close to v8's WebAssembly

However, wasmtime will significantly increase the program size. If our program size reaches 40mb, then it seems that using v8 will be a better choice.

@richarddavison
Copy link
Contributor

Hi @ahaoboy, that's true! We have no current plans supporting WASM. If we add this in the future, it will be a lightweight WASM runtime such as https://github.com/bytecodealliance/wasm-micro-runtime

@ahaoboy
Copy link
Contributor Author

ahaoboy commented Jul 26, 2024

WAMR is much smaller than wasmtime and is indeed more suitable for llrt.

@Sytten
Copy link
Contributor

Sytten commented Jul 26, 2024

I would also consider https://github.com/wasmi-labs/wasmi

@ahaoboy
Copy link
Contributor Author

ahaoboy commented Jul 26, 2024

I would also consider https://github.com/wasmi-labs/wasmi

wasmi does not support simd, which may limit some image processing libraries
txiki.js may also use WAMR (I guess) saghul/txiki.js#629 (comment)

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