michalporeba / learning-wasm

Code created while learning WebAssembly through its text format (WAT)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learning WASM

Setup

Many modern programming languages can procue now WebAssembly binary files WASM. To learn the virtual machine I will write the Writing WebAssembly Text (WAT) by hand. Because I plan to use JavaScript to invoke them I will use wat-wasm module.

npm i wat-wasm -g

Example with the first addition file

wat2wasm add.wat -o add.wasm
node add.js

Exercises can be executed with make

make add
make collatz
make grains
make pop-count
make root

About

Code created while learning WebAssembly through its text format (WAT)

License:MIT License


Languages

Language:WebAssembly 52.7%Language:JavaScript 42.2%Language:Makefile 5.1%