Book description
WebAssembly in Action introduces the WebAssembly stack and walks you through the process of writing and running browser-based applications. Expert developer Gerard Gallant gives you a firm foundation of the structure of a module, HTML basics, JavaScript Promises, and the WebAssembly JavaScript API.
About the Technology
Write high-performance browser-based applications without relying only on JavaScript! By compiling to the WebAssembly binary format, your C, C++, or Rust code runs at near-native speed in the browser. WebAssembly delivers greater speed, opportunities to reuse existing code, and access to newer and faster libraries. Plus, you can easily interact with JavaScript when you need to.
About the Book
WebAssembly in Action teaches you how to write and run high-performance browser-based applications using C++ and other languages supported by WebAssembly. In it, you’ll learn to create native WebAssembly modules, interact with JavaScript components, and maximize performance with web workers and pthreads. And you’ll love how the clearly organized sections make it a breeze to find the important details about every function, feature, and technique.
What's Inside
- Dynamic linking of multiple modules at runtime
- Communicating between modules and JavaScript
- Debugging with WebAssembly Text Format
- Threading with web workers and pthreads
About the Reader
Written for developers with a basic understanding of C/C++, JavaScript, and HTML.
About the Author
Gerard Gallant is a Microsoft Certified Professional and a Senior Software Developer at Dovico Software. He blogs regularly on Blogger.com and DZone.com.
Quotes
This step-by-step practical guide demystifies the complex ecosystem of technologies around WebAssembly.
- Daniel Budden, Envato
A deep dive into WebAssembly, an exciting enabler of the new wave of high-performing web applications.
- Milorad Imbra, Galgo Marketing
Concepts are well explained and fun to read and try. Loved it!
- Satej Sahu, Ellucian
A great introduction to the future of the web.
- Denis Kreis, Zalando
Publisher resources
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Preface
- Acknowledgments
- About this Book
- About the Author
- About the Cover Illustration
-
Part 1. First steps
- Chapter 1. Meet WebAssembly
- Chapter 2. A look inside WebAssembly modules
-
Chapter 3. Creating your first WebAssembly module
- 3.1. The Emscripten toolkit
- 3.2. WebAssembly modules
- 3.3. Emscripten output options
- 3.4. Compiling C or C++ with Emscripten and using the HTML template
- 3.5. Having Emscripten generate the JavaScript plumbing code
- 3.6. Having Emscripten generate only the WebAssembly file
- 3.7. Feature detection: How to test if WebAssembly is available
- Real-world use cases
- Exercises
- Summary
- Part 2. Working with modules
- Part 3. Advanced topics
- Part 4. Debugging and testing
- Appendix A. Installation and tool setup
- Appendix B. ccall, cwrap, and direct function calls
- Appendix C. Emscripten macros
- Appendix D. Exercise solutions
- Appendix E. Text format extras
- WebAssembly in Action
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: WebAssembly in Action
- Author(s):
- Release date: November 2019
- Publisher(s): Manning Publications
- ISBN: 9781617295744
You might also like
book
Blazor in Action
An example-driven guide to building reusable UI components and web frontends—all with Blazor, C#, and .NET. …
book
Flutter in Action
In 2017, consumers downloaded 178 billion apps, and analysts predict growth to 258 billion by 2022. …
book
Practical WebAssembly
Understand the basic building blocks of WebAssembly and learn, install, and use various tools from the …
book
React: Up & Running, 2nd Edition
Hit the ground running with React, the open source technology from Facebook for building rich web …