Get Started Using WebAssembly (wasm)
Course on egghead by Guy Bedford
- 56 min
- LengthVideo runtime
- Subscription
- Price modelegghead plan
- 15
- Lessons
- 4.8
- Rating out of 53 ratings on egghead
- Jun 2017
- Published7 Jun 2017
About this course
This course begins with some small steps for working with WebAssembly straight away using online tools wasm Explorer and wasm Fiddle to try out the examples in the browser. We start by calling a WebAssembly function from JS, then a JS function from WebAssembly, then go on to reading and writing WebAssembly memory from JS. To move beyond these online sandboxes, we show the exact steps for setting up and running a complete local WebAssembly build workflow using the experimental LLVM WebAssembly build target. We then take a demo WebGL application written in JS and show how we can optimize this with WebAssembly to get a real world example of a WebAssembly performance improvement, although it isn’t as obvious a process as we might have hoped.
What it covers
- 1Create and Run a Native WebAssembly Function
- 2Compile C Code into WebAssembly
- 3Call a JavaScript Function from WebAssembly
- 4Read WebAssembly Memory from JavaScript
- 5Write to WebAssembly Memory from JavaScript
- 6Allocate Dynamic Memory in WebAssembly with Malloc
- 7Create and Import a WebAssembly Memory
- 8Compiling C/C++ to WebAssembly using LLVM, Binaryen and WABT
- 9Clone and Build LLVM with the Experimental WebAssembly Target
- 10Install Binaryen and the WebAssembly Binary Toolkit (WABT)
- 11Typed Arrays in High Performance JavaScript
- 12Step-by-Step JS to WebAssembly Conversion
- 13A First Comparison of the Performance between JS and WebAssembly
- 14Optimize Collision Detection in JS with a Grid
- 15Surpass JS Performance with Optimized Collision Detection in WASM using a Linked List Grid
Similar JavaScript courses
Same topic, nearest in length, up to three from any one provider.
Data read from the egghead catalogue on 28 Nov 2026. How the data is collected.