llrt icon indicating copy to clipboard operation
llrt copied to clipboard

Will llrt have plans to support WebAssembly ?

Open ahaoboy opened this issue 1 year ago • 4 comments

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.

ahaoboy avatar Jul 23 '24 08:07 ahaoboy

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

richarddavison avatar Jul 25 '24 19:07 richarddavison

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

ahaoboy avatar Jul 26 '24 03:07 ahaoboy

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

Sytten avatar Jul 26 '24 04:07 Sytten

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) https://github.com/saghul/txiki.js/issues/629#issuecomment-2244498155

ahaoboy avatar Jul 26 '24 08:07 ahaoboy