Rainer Stropek

Wasm Deep Dive - A Glance Behind the Scenes

How does WebAssembly guarantee security without OS-level virtualization? This talk demystifies its stack-based VM and isolated linear memory.

Wasm Deep Dive - A Glance Behind the Scenes
#1about 6 minutes

Defining WebAssembly as a portable compilation target

WebAssembly is a binary instruction format for a stack-based virtual machine that allows code from languages like Rust and C++ to run in the browser and on the server.

#2about 11 minutes

Building and running a simple Wasm module

A simple function is written in WebAssembly Text (WAT), compiled to a binary Wasm file using wat2wasm, and then executed from a JavaScript host.

#3about 14 minutes

A deep dive into the stack-based virtual machine

An Advent of Code example demonstrates how all operations, from memory loads to arithmetic and comparisons, use the stack to pass arguments and receive results.

#4about 11 minutes

Wasm's sandboxed memory and host communication model

WebAssembly modules operate on a dedicated linear memory block for security, and they communicate with the host environment through defined imports and exports.

#5about 6 minutes

Extending Wasm capabilities with WASI and WASIX

The WebAssembly System Interface (WASI) provides a standard API for modules to access system resources like file I/O and networking, which are not available in core Wasm.

#6about 10 minutes

Answering common questions about WebAssembly

The Q&A covers practical topics including when to use Wasm over JavaScript, the WebAssembly Component Model (WIT), and approaches to debugging and profiling.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
DC
Daniel Cranney
Dev Digest 198: 30 years of JS, In-Browser AI, How Attackers Abuse GenAI
Inside last week’s Dev Digest 198 . 🎂 30 years of JavaScript ⏰ How long is a JavaScript second 💻 Clean code in Angular 🤦‍♂️ AI makes different mistakes than humans 👨‍💻 In-browser and offline AI 🟠 Undocumented Hacker News features 🐋 DeepSeek censored...
Dev Digest 198: 30 years of JS, In-Browser AI, How Attackers Abuse GenAI
CH
Chris Heilmann
All the videos of Halfstack London 2024!
Last month was Halfstack London, a conference about the web, JavaScript and half a dozen other things. We were there to deliver a talk, but also to record all the sessions and we're happy to share them with you. It took a bit as we had to wait for th...
All the videos of Halfstack London 2024!
CH
Chris Heilmann
WeAreDevelopers LIVE days are changing - get ready to take part
Starting with this week's Web Dev Day edition of WeAreDevelopers LIVE Days, we changed the the way we run these online conferences. The main differences are:Shorter talks (half an hour tops)More interaction in Q&AA tips and tricks "Did you know" sect...
WeAreDevelopers LIVE days are changing - get ready to take part
BR
Benjamin Ruschin
What Developers Really Need to Create Great Code Demos
Every developer on earth has, at some point, had another developer to thank for a breakthrough, a success, an aha moment they wouldn’t have had without coming across that blog post, that open-source contribution, that reply on socials or that humble ...
What Developers Really Need to Create Great Code Demos

From learning to earning

Jobs that call for the skills explored in this talk.

Rust and GoLang

Rust and GoLang

NHe4a GmbH
Karlsruhe, Germany

Remote
55-65K
Intermediate
Senior
Go
Rust