Skip to content
JS

Get Started Using WebAssembly (wasm)

Course on egghead by Guy Bedford

View on egghead (opens in a new tab)
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

Description from egghead

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

15 lessons
  1. 1Create and Run a Native WebAssembly Function
  2. 2Compile C Code into WebAssembly
  3. 3Call a JavaScript Function from WebAssembly
  4. 4Read WebAssembly Memory from JavaScript
  5. 5Write to WebAssembly Memory from JavaScript
  6. 6Allocate Dynamic Memory in WebAssembly with Malloc
  7. 7Create and Import a WebAssembly Memory
  8. 8Compiling C/C++ to WebAssembly using LLVM, Binaryen and WABT
  9. 9Clone and Build LLVM with the Experimental WebAssembly Target
  10. 10Install Binaryen and the WebAssembly Binary Toolkit (WABT)
  11. 11Typed Arrays in High Performance JavaScript
  12. 12Step-by-Step JS to WebAssembly Conversion
  13. 13A First Comparison of the Performance between JS and WebAssembly
  14. 14Optimize Collision Detection in JS with a Grid
  15. 15Surpass JS Performance with Optimized Collision Detection in WASM using a Linked List Grid

Similar JavaScript courses

  1. Gatsby Theme Authoring

    egghead · Jason Lengstorf · 14 lessons · 5.0 from 2 ratings · Jul 2019

    58 minFree
    egghead145.0 (2)Jul 2019
  2. Quickly Transform Data with Transducers

    egghead · Paul Frend · 13 lessons · 4.9 from 7 ratings · Nov 2017

    53 minSubscription
    egghead134.9 (7)Nov 2017
  3. Beginner1 h
    CourseraOct 2020
  4. How to Deploy a Website

    Codecademy · 3 lessons · Apr 2018

    Beginner1 h
    Codecademy3Apr 2018
  5. Beginner1 h
    CourseraMay 2024
  6. Learn ES6 (ECMAScript 2015)

    egghead · John Lindquist · 15 lessons · 4.2 from 100 ratings · Apr 2016

    52 minSubscription
    egghead154.2 (100)Apr 2016
  7. Beginner1 h
    Codecademy2Nov 2018
  8. Learn jQuery: DOM Traversing

    Codecademy · 1 lessons · Jan 2023

    Intermediate1 h
    Codecademy1Jan 2023

A hyphen means the provider's catalogue does not state the value.

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.

    Compare