/wasm-demo

Egghead.io WASM Introduction Demo Project

Primary LanguageHTMLMIT LicenseMIT

Demo Project: Introduction to WebAssembly

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.

  1. demo-js.html: Introduction to the renderer.
  2. demo-wasm.html: Used in the JS to WASM conversion step-by-step example.
  3. demo-js-coll.html: Includes collisions between circles.
  4. demo-wasm-coll.html: Used to compare performance between JS and WASM.
  5. demo-js-opt.html: Optimized grid-based collision algorithm.
  6. demo-wasm-opt.html: WebAssembly conversion demonstrating the faster-performing grid of linked-lists.

Build

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.

License

MIT