A very small calculator written in native WASM, hosted by the browser
-
Install wabt
-
Run wat2wasm (compiling WebAssembly in text format to WebAssembly binary)
wat2wasm calculator.wast
- Spin a local http server. for example python-livereload
livereload -p 8000
- Open the browser and go to
http://0.0.0.0:8000
(will returnindex.html
file)