Skip to Content
What Is WebAssembly?
book

What Is WebAssembly?

by Colin Eberhardt
September 2019
Beginner
47 pages
1h 4m
English
O'Reilly Media, Inc.
Content preview from What Is WebAssembly?

Chapter 5. Beyond the Browser

The main goal of WebAssembly was to allow the creation of high-performance applications on the web, using a range of programming languages. It was anticipated that people would use WebAssembly for video editing, CAD, Augmented Reality (AR)/Virtual Reality (VR) and various other computationally intensive tasks, and as we’ve seen in the previous chapters, this has been a success.

However, the WebAssembly specification was carefully designed to allow the integration into other, nonbrowser, environments. A WebAssembly module communicates with a host, but makes no assumptions about the nature of the hosting environment itself. The extent of WebAssembly adoption as a nonbrowser runtime has been greater than most initially envisaged. We cover some concrete examples later in this chapter, but first, let’s take a look at some of the features of WebAssembly that make it an appealing option as a runtime:

Secure

Modules execute within a sandboxed environment that is separate from the host runtime. This provides isolation in the case of faulty or compromised code. Even though this is an important requirement for execution of code delivered over the web, there are many other contexts for which isolation is also required.

Language and vendor independent

The WebAssembly specification was designed with a range of languages in mind, and while certain languages are easier to compile with the Minimum Viable Product (MVP) featureset, as new features such as garbage ...

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.

Read 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

WebAssembly in Action

WebAssembly in Action

Gerard Gallant
Practical WebAssembly

Practical WebAssembly

Sendil Kumar Nellaiyapen
What Is Distributed SQL?

What Is Distributed SQL?

Paul Modderman, Jim Walker, Charles Custer

Publisher Resources

ISBN: 9781492076902