This book is for you if you're tired of watching JavaScript struggle with complicated calculations while your users get impatient. I wrote this second edition because WebAssembly 2.0 changes everything, and I wanted to show you exactly how to use it without the usual technical book problems. The first thing we'll do is go through the basics, like memory management and control flow, which are the most important.
Then we'll move on to putting together C, C++, Rust, and Python into Wasm modules that actually work. I'll show you how to use multi-threading, profiling and optimisation techniques that I've used in real projects, not just theoretical exercises. I know a lot of you have old Wasm 1.0 code, so I've written a whole chapter about how to move it over without causing any problems. And we'll also learn how to use WebAssembly in other ways, not just in browsers.
You'll learn to work with Dapr for distributed microservices, deploy on Kubernetes, and build cloud-native applications that scale well. There is working code in every chapter that you can use right away. There is no unnecessary information, just practical techniques that solve real problems. I've figured out the tricky parts and the things that can go wrong, and I'm sharing them what actually works.
By the time you finish this book, it will have taught you everything you need to build WebAssembly applications so quickly that people will be amazed. Key FeaturesUse WebAssembly, manage memory, and control the flow of a program. Put together C, C++, Rust, and Python into high-performance WebAssembly modules using Emscripten. Build advanced multi-threaded apps using atomic operations, shared memory and thread-safe synchronization patterns.
Migrate old Wasm 1.0 projects to version 2.0 using proven strategies. Combine WebAssembly with Dapr for microservices using patterns for managing data and sending messages. Deploy and scale Wasm workloads on Kubernetes clusters with complete control over configuration and secrets management. Make performance better by using systematic profiling and advanced compilation techniques for production apps.
Take care of module imports, exports, and JavaScript interoperability. Use tables, memory semantics and dynamic dispatch mechanisms for complex logic. Manage networking, security, monitoring, and debugging for WebAssembly cloud-native deployments at scale.
This book is for you if you're tired of watching JavaScript struggle with complicated calculations while your users get impatient. I wrote this second edition because WebAssembly 2.0 changes everything, and I wanted to show you exactly how to use it without the usual technical book problems. The first thing we'll do is go through the basics, like memory management and control flow, which are the most important.
Then we'll move on to putting together C, C++, Rust, and Python into Wasm modules that actually work. I'll show you how to use multi-threading, profiling and optimisation techniques that I've used in real projects, not just theoretical exercises. I know a lot of you have old Wasm 1.0 code, so I've written a whole chapter about how to move it over without causing any problems. And we'll also learn how to use WebAssembly in other ways, not just in browsers.
You'll learn to work with Dapr for distributed microservices, deploy on Kubernetes, and build cloud-native applications that scale well. There is working code in every chapter that you can use right away. There is no unnecessary information, just practical techniques that solve real problems. I've figured out the tricky parts and the things that can go wrong, and I'm sharing them what actually works.
By the time you finish this book, it will have taught you everything you need to build WebAssembly applications so quickly that people will be amazed. Key FeaturesUse WebAssembly, manage memory, and control the flow of a program. Put together C, C++, Rust, and Python into high-performance WebAssembly modules using Emscripten. Build advanced multi-threaded apps using atomic operations, shared memory and thread-safe synchronization patterns.
Migrate old Wasm 1.0 projects to version 2.0 using proven strategies. Combine WebAssembly with Dapr for microservices using patterns for managing data and sending messages. Deploy and scale Wasm workloads on Kubernetes clusters with complete control over configuration and secrets management. Make performance better by using systematic profiling and advanced compilation techniques for production apps.
Take care of module imports, exports, and JavaScript interoperability. Use tables, memory semantics and dynamic dispatch mechanisms for complex logic. Manage networking, security, monitoring, and debugging for WebAssembly cloud-native deployments at scale.