Book description
WebAssembly is the revolutionary new web standard that enables high-performance programs and computer-intensive web applications to run at peak performance inside a browser. Different from a programming language like JavaScript, it’s a fast, compact, portable compilation target for a variety of languages, in a binary code format. This book will give you a solid understanding of WebAssembly, how it works under the hood, when to use it, when not to use it, how to write it, and ways to develop and deploy your own WebAssembly apps.
Author and expert Rick Battagline eases you through all the technology’s complexities using clear explanations, illustrations, and plenty of examples. He’ll show you how to optimize and compile low-level code, as well as how to debug and evaluate WebAssembly, and represent WebAssembly in its human-readable format, WebAssembly Text (WAT) – skills that will set you apart from other programmers as WebAssembly expands into all modern architectures. Once you grasp the basics, you’ll build a collision-detection program to measure the performance of WebAssembly in Chrome and Firefox. You’ll also work with browser rendering technologies to create graphics and animations for your apps, and you’ll see how WebAssembly interacts with other web languages.
You’ll learn how to:
•Use Node.js and web browsers as the JavaScript embedding environment for WebAssembly apps
•Write web applications that use WebAssembly for optimal performance
•Debug WebAssembly code using a variety of tools, including browser debuggers
•Format variables, loops, functions, strings, data structures, and conditional logic in WAT
•Manipulate memory through WebAssembly, and build a program that spawns graphical objects randomly and detects when the objects collide
•Evaluate the output of a WebAssembly compiler (AssemblyScript)
This book doesn’t focus on any particular language toolchains, so the skills learned are applicable to whatever you’re working with.
Table of contents
- Title Page
- Copyright
- Dedication
- About the Author
- Foreword
- Acknowledgments
- Introduction
- Chapter 1: An Introduction to WebAssembly
- Chapter 2: WebAssembly Text Basics
- Chapter 3: Functions and Tables
- Chapter 4: Low-Level Bit Manipulation
- Chapter 5: Strings in WebAssembly
- Chapter 6: Linear Memory
- Chapter 7: Web Applications
- Chapter 8: Working with the Canvas
- Chapter 9: Optimizing Performance
- Chapter 10: Debugging WebAssembly
- Chapter 11: AssemblyScript
- Final Thoughts
- Index
Product information
- Title: The Art of WebAssembly
- Author(s):
- Release date: June 2021
- Publisher(s): No Starch Press
- ISBN: 9781718501447
You might also like
book
Learning Modern Linux
If you use Linux in development or operations and need a structured approach to help you …
book
Container Security
To facilitate scalability and resilience, many organizations now run applications in cloud native environments using containers …
book
Database Internals
When it comes to choosing, using, and maintaining a database, understanding its internals is essential. But …
book
Designing Secure Software
Designing Secure Software consolidates Loren Kohnfelder's more than twenty years of experience into a concise, elegant …