awslabs / llrt

LLRT (Low Latency Runtime) is an experimental, lightweight JavaScript runtime designed to address the growing demand for fast and efficient Serverless applications.
Apache License 2.0
8.12k stars 359 forks source link

Will llrt have plans to support WebAssembly ? #493

Open ahaoboy opened 3 months ago

ahaoboy commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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

Sytten commented 3 months ago

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

ahaoboy commented 3 months ago

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