unit icon indicating copy to clipboard operation
unit copied to clipboard

Support for wasm-micro-runtime (WAMR)

Open jirutka opened this issue 7 months ago • 2 comments

Feature Overview

Can you please add support for wasm-micro-runtime (WAMR) as an alternative to wasmtime?

wasmtime is a huge dependency, about 20 MiB. WAMR is less than ~440 kiB (and zero dependencies) without JIT, ~760 kiB (plus libgcc_s and libstdc++) with FastJIT.

Alternatives Considered

No response

Additional Context

No response

jirutka avatar May 13 '25 23:05 jirutka

I do have a patch for this (though can't remember what actual state it's in) though it's an alternative for the original wasm language module that only supports WASM modules and not the component model that the wasm-wasi-component language module supports...

ac000 avatar May 14 '25 01:05 ac000

This should go into browser part including mobiles to reduce download size... But browser part in apps is not common, but could be(there are shims for that to enable that on program side to retrofit)... also in games one day maybe but this support of web browser stack could be costly today(WebGPU) or even not possible everywhere(MAUI, webview2) on desired marketshare, but bca think is going that way somehow for browser stack and there are also other (game) (platform like) engines...

For future developer onboarding: https://webassembly.org/features/ https://bytecodealliance.org/articles/ and https://docs.wasmtime.dev/introduction.html

https://code.visualstudio.com/blogs/2023/06/05/vscode-wasm-wasi https://code.visualstudio.com/blogs/2024/06/07/wasm-part2

https://wasmcon24.sched.com/

for security considerations, it is OS possible sad thing: https://web-platform-dx.github.io/web-features-explorer/browse/ maybe also iff accessible https://exercism.org/tracks/x86-64-assembly

game engines could vary also on weight, not prepared fully yet...

hifron avatar Jul 17 '25 16:07 hifron