Some small demos written by hand to explore WASM
- wasm - small examples in pure wasm. Additional code (js) needed to load and run them.
- wasm-wasi - wasm programs that can be executed via runtime with WASI system interface support (e.g. wasmer).
- wabt to compile
*.wat
source codes to binary*.wasm
progs - wasmer to run compiled
*.wasm
files with WASI interface - (optional) nodejs to run tests
There is also nix flake with everything needed
npm test
To run wasm-wasi examples, use run script to build and run *.wat
files.
wasm-wasi/run wasm-wasi/hello-world
WAT Spec
WASM Semantics
Index of instructions
MDN:
Web WASM files explorer WAT to WASM online
WASM Feature Extensions and their support table
WASI docs
- preview1 docs
webassemblyjs - WASM related stuff for JS
A complete novice writes Wasm by hand series:
- Wasm: A technical view
- Dive into Wasm: Functions
- Writing Wasm: modules
- Dive into Wasm: Control flow instructions
- Accessing and storing to memory in Wasm
- Wasm variable instructions
- Step by step towards wasm tables
- Wasm: SIMD operations
- Wasm: The Garbage Collection proposal
wabt.js - library to compile wat to wasm right in your js code without invoking external tools
Examples: