3 ms·
It's a runtime for WASI blobs (basically a WASM based standard for crossplatform command line tools), for instance: emcc hello.c -o hello.wasm wasmer h
by flohofwoe 2y ago
It's a runtime for WASI blobs (basically a WASM based standard for crossplatform command line tools), for instance:
emcc hello.c -o hello.wasm
wasmer hello.wasm
Hello World!
This uses Emscripten as C compiler, but alternatively you can use the wasi-sdk toolchain instead of Emscripten to build WASI blobs:
- https://github.com/WebAssembly/wasi-sdk https://github.com/WebAssembly/wasi-sdk
...or Zig as C compiler:
zig cc -target wasm32-wasi hello.c -o hello.wasm
wasmer hello.wasm
Hello World!
...or of course Zig as Zig compiler :)
zig -target wasm32-wasi hello.zig
wasmer hello.wasm
Hello World!
(not sure if the Rust toolchain comes with builtin WASI support, but probably yes).
...or instead of wasmer use another WASI runtime:
- https://github.com/wasmerio/awesome-wasi?tab=readme-ov-file#wasi-compatible-runtimes https://github.com/wasmerio/awesome-wasi?tab=readme-ov-file#...
...this is probably the best part of WASM and WASI, there's no 'vendor lock-in'.
- thiht 2y ago> It's a runtime for WASI blobs (basically a WASM based standard for crossplatform command line tools) Thanks! I wish this was the subtitle on their homepage :)
- flohofwoe 2y agoI mean, it's a Californian tech startup, what did you expect ;) Anything that isn't "earth-shattering" and "world-changing" would be too pedestrian, especially when your product is essentially a simple cmdline tool for coders (a very useful tool of course but not exactly "glamorous").