Demo project from the Introduction to WebAssembly egghead.io course.
Due to the use of ES Modules and WebGL 2, these demos are currently only supported in Chrome Canary with the Experimental Web Platform Flag enabled from chrome://flags.
- demo-js.html: Introduction to the renderer.
- demo-wasm.html: Used in the JS to WASM conversion step-by-step example.
- demo-js-coll.html: Includes collisions between circles.
- demo-wasm-coll.html: Used to compare performance between JS and WASM.
- demo-js-opt.html: Optimized grid-based collision algorithm.
- demo-wasm-opt.html: WebAssembly conversion demonstrating the faster-performing grid of linked-lists.
make
is structured assuming ../llvm-wasm/bin/clang
, ../binaryen/bin/s2wast
and ../wabt/out/wast2wasm
executables.
See the setup lessons for a direct install command, and for installing LLVM, Binaryen and WABT.
MIT