Book description
WebAssembly is a powerful new technology for developing and running applications on the web, in browsers, and elsewhere. Learning how to harness this technology is essential to understanding the future of web development. By using WebAssembly to run code from a variety of languages in the browser without plugins or external technologies, the web is moving beyond the HTML, CSS, and JavaScript paradigm.
With this practical, hands-on book, web developers will learn how to interact with and create WebAssembly modules. Author Kassian Wren shows you which languages and toolchains are available for WebAssembly, how to write WebAssembly modules in Rust and AssemblyScript, and how to optimize WebAssembly modules for more performant websites. You'll quickly understand how this technology will impact not just the web, but also the way we think about developing applications across a variety of platforms.
With this book, you'll learn:
- How WebAssembly works and when it should be used
- Some languages and toolchains that are available for WebAssembly
- How to write and use a WebAssembly module, in Rust and AssemblyScript
- How to write WebAssembly modules in Rust and use WebAssembly with web workers
- How to optimize WebAssembly modules for better site performance
Publisher resources
Table of contents
- Brief Table of Contents (Not Yet Final)
-
1. Introduction to WebAssembly
- What is WebAssembly?
- A set of standards
- A technology stack
- An evolution of the web
- What WebAssembly isn’t
- Benefits of WebAssembly
- History of WebAssembly
- WebAssembly Today
- The WebAssembly Ecosystem Today
- WebAssembly Use Cases
- The WebAssembly Runtime
- The WebAssembly module lifecycle
- Setting up your development environment
- What’s Next
- 2. Getting Started with WebAssembly
- 3. How WebAssembly Works
- 4. Writing WebAssembly Medules with AssemblyScript
- 5. Writing WebAssembly Modules in Rust
-
6. Running WebAssembly Outside the Browser and WASI
- Running WebAssembly Outside the Browser
- WebAssembly Runtimes
- When can I choose my WebAssembly runtime?
- Demo: wasmtime
- WASI: the WebAssembly System Interface
- What is WASI?
- How does WASI work?
- What can WASI do?
- Real-world WASI examples
- Demo: Rust, wasmtime, and WASI
- The future of WebAssembly in runtimes and WASI
- Use cases for WebAssembly outside the browser
- The future of the WASI standard
- 7. Using wasm-bindgen to expand capabilities
- 8. Optimizing WebAssembly Modules
- 9. Debugging WebAssembly
-
10. Serverless With WebAssembly
- What is Serverless?
- How Serverless functions are (generally) written and deployed
- How Serverless (tends to) run functions without WebAssembly
- Why WebAssembly?
- Benefits of WebAssembly with Serverless
- How Serverless WebAssembly (typically) works
- Use Cases for Serverless WebAssembly
- Developing for Serverless WebAssembly
- Deploying your own WebAssembly Workers server
- Summary
- About the Author
Product information
- Title: Practical WebAssembly
- Author(s):
- Release date: October 2024
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781098142520
You might also like
book
Practical WebAssembly
Understand the basic building blocks of WebAssembly and learn, install, and use various tools from the …
book
WebAssembly: The Definitive Guide
WebAssembly: The Definitive Guide is a thorough and accessible introduction to one of the most transformative …
book
Building Micro-Frontends
What's the answer to today's increasingly complex web applications? Micro-frontends. Inspired by the microservices model, this …
book
Effective Rust
Rust's popularity is growing, due in part to features like memory safety, type safety, and thread …