Skip to content
WebAssembly Examples from My Experiments
HTML WebAssembly Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example1
example2
example3
example4
example5
.gitignore
LICENSE
Makefile
README.md
index.html
server.py

README.md

WASM Examples

This repo contains a few folders, each with a html file and wasm module in them.

To get started, install the WABT Toolkit via homebrew or your usual package manager:

Building

brew install wabt

Next, run make:

make

And then run the server:

Running

We need the python server to properly serve the webassembly binaries with the correct content types:

python3 server.py

Then, you can navigate to one of the examples:

  1. Hello World http://localhost:8888/example1
  2. Addition http://localhost:8888/example2
  3. Function Calls http://localhost:8888/example4
  4. Memory http://localhost:8888/example4
  5. Globals http://localhost:8888/example5

License: MIT

You can’t perform that action at this time.