Jump to ratings and reviews
Rate this book

Practical WebAssembly: Explore the fundamentals of WebAssembly programming using Rust

Rate this book
Understand the basic building blocks of WebAssembly and learn, install, and use various tools from the Rust and WebAssembly ecosystem

Key FeaturesUnderstand the Rust programming language and WebAssembly concepts for web developmentBuild web, mobile, and embedded apps using WebAssemblyEnhance the scalability and resilience of your web appsBook DescriptionRust is an open source language tuned toward safety, concurrency, and performance. WebAssembly brings all the capabilities of the native world into the JavaScript world. Together, Rust and WebAssembly provide a way to create robust and performant web applications. They help make your web applications blazingly fast and have small binaries. Developers working with JavaScript will be able to put their knowledge to work with this practical guide to developing faster and maintainable code.

Complete with step-by-step explanations of essential concepts, examples, and self-assessment questions, you’ll begin by exploring WebAssembly, using the various tools provided by the ecosystem, and understanding how to use WebAssembly and JavaScript together to build a high-performing application. You’ll then learn binary code to work with a variety of tools that help you to convert native code into WebAssembly. The book will introduce you to the world of Rust and the ecosystem that makes it easy to build/ship WebAssembly-based applications.

By the end of this WebAssembly Rust book, you’ll be able to create and ship your own WebAssembly applications using Rust and JavaScript, understand how to debug, and use the right tools to optimize and deliver high-performing applications.

What you will learnExplore WebAssembly and the different tools available in the WebAssembly ecosystemUnderstand the raw WebAssembly binary and the WebAssembly text formatUse the Web and JavaScript API with wasm-bindgenOptimize Rust and WebAssembly for high performanceRun and debug WebAssembly and Rust codeExplore various tools available in the RustWASM ecosystemWho this book is forThis book is for JavaScript developers who want to deliver better performance and ship type-safe code. Rust developers or backend engineers looking to build full-stack applications without worrying too much about JavaScript programming will also find the book useful.

Table of ContentsUnderstanding LLVMUnderstanding EmscriptenExploring WebAssembly ModulesUnderstanding WebAssembly Binary Toolkit Understanding Sections in WebAssembly ModuleInstalling and Using BinaryenIntegrating Rust with WebAssemblyBundling WebAssembly Using wasm-packCrossing the Boundary between Rust and WebAssemblyOptimizing Rust and WebAssembly

232 pages, Kindle Edition

Published May 2, 2022

5 people are currently reading
7 people want to read

About the author

Sendil Kumar N

2 books1 follower

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
2 (50%)
4 stars
0 (0%)
3 stars
1 (25%)
2 stars
1 (25%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Andrea Santambrogio.
9 reviews1 follower
January 27, 2025
I liked the intro, decent overview of formats and tooling. From Chapter 3, some explanations are missing, for instance why is asm.js needed in the browser and why is it not optimised by default. Descriptions of WAST instructions is sometimes vague or wrong (for instance tee_local) and I really can’t believe the author mistakes BYTES for BITS while describing the hexdumps. It’s embarrassing for any engineer to make such rookie mistakes!
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.