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
- 1. Introduction to WebAssembly
- 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
- 7. Using wasm-bindgen to expand capabilities
- 8. Optimizing WebAssembly Modules
- 9. Debugging WebAssembly
-
10. Using WebAssembly with Web Workers
- What are Web Workers?
- How Web Workers work with WebAssembly
- How to incorporate Web Workers into your project
- Using Web Workers with WebAssembly in the Browser
- Using Web Workers with WebAssembly in Deno
- Use cases for Web Workers and WebAssembly
- Things to keep in mind when using Web Workers with WebAssembly
- 11. Writing Web Applications with WebAssembly
-
12. 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
- 13. The Future of WebAssembly
- About the Author
Product information
- Title: Practical WebAssembly
- Author(s):
- Release date: November 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
FastAPI
FastAPI is a young yet solid framework that takes advantage of newer Python features in a …
book
WebAssembly: The Definitive Guide
WebAssembly: The Definitive Guide is a thorough and accessible introduction to one of the most transformative …
book
AI-Assisted Programming
Get practical advice on how to leverage AI development tools for all stages of code creation, …