The MVP (Minimum Viable Product) doesn't support to use <script type="module">
to require a .wasm
file yet (They plan to do this). The only way to access WebAssembly on the Web is through an explicit JavaScript API.
TODO: write more.
TODO: write more.
Each folder has a README inside. Here is an index:
- simple: A simple example using asm.js.
- cpp: A simple example using C/C++.
- multi-wasm: Using multiple wasm files.
- js-api: Call javascript API in wasm.
- nbody: Performance test (using C).