Skip to Content
Level up your web apps with WebAssembly
conference

Level up your web apps with WebAssembly

by Robert Aboukhalil
December 2019
Intermediate
35m
English
O'Reilly Media, Inc.
Closed Captioning available in German, English, Spanish, French, Japanese, Korean, Portuguese (Portugal, Brazil), Chinese (Simplified), Chinese (Traditional)

Overview

WebAssembly is a powerful tool for porting applications to the web and for speeding up data-intensive web apps. If you don’t know what WebAssembly is, how it works, or how to practically get started using it, now’s your chance.

Robert Aboukhalil (Invitae) leads a deep dive into WebAssembly, demonstrating how it can be used to speed up web tools. As a concrete case study, he’ll use fastq.bio, a web tool for analyzing DNA sequencing data in the browser. By rewriting portions of this tool into WebAssembly, he demonstrates how it’s possible to obtain a greater than 10x speedup compared to the original JavaScript implementation. Robert will also show you how to leverage WebWorkers alongside WebAssembly to maintain the UI’s responsiveness and how this enables you to more easily mount and parse files within a virtual filesystem.

He concludes by exploring how WebAssembly can be useful outside the browser—demonstrating how it’s possible to rearchitect fastq.bio so that the WebAssembly code runs in a serverless fashion instead of directly in the browser.

And because WebAssembly isn’t always the right tool, Robert also explores some rules of thumb on when to use WebAssembly and when to avoid it.

Prerequisite knowledge

  • Intermediate knowledge of JavaScript

What you'll learn

  • Understand what WebAssembly is and how it works
  • Learn to compile C/C++ code to WebAssembly and run it in the browser, use WebWorkers to run computations in the background, and run WebAssembly in a serverless setting
  • Know when to use WebAssembly and when to avoid it

This session was recorded at the 2019 O'Reilly Open Source Software conference in Portland.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Watch now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

jQuery for Application Development: From Fundamentals to jQuery Projects

jQuery for Application Development: From Fundamentals to jQuery Projects

SkillSprints Inc., Mark Lassoff
WebAssembly in Action

WebAssembly in Action

Gerard Gallant

Publisher Resources

ISBN: 0636920335801