This repository contains the examples from the book Learn WebAssembly, released by Packt Publishing.
Select a chapter link below to navigate to the corresponding README.
- Chapter 3: Setting Up A Development Environment
- Chapter 4: Installing the Required Dependencies
- Chapter 5: Creating and Loading a WebAssembly Module
- Chapter 6: Interacting with JavaScript and Debugging
- Chapter 7: Creating an Application from Scratch
- Chapter 8: Porting a Game with Emscripten
- Chapter 9: Integrating with Node.js
- Chapter 10: Advanced Tools and Upcoming Features
This is the code repository for Learn WebAssembly, published by Packt.
Build web applications with native performance using Wasm and C/C++
WebAssembly is a brand-new technology that represents a paradigm shift in web development. This book aims to teaches programmers how to leverage this technology to write high- performance applications that run in the browser.
This book covers the following exciting features:
- Learn how WebAssembly came to be and its associated elements (text format, module, and JavaScript API)
- Create, load, and debug a WebAssembly module (editor and compiler/toolchain)
- Build a high-performance application using C and WebAssembly
- Extend WebAssembly’s feature set using Emscripten by porting a game written in C++
- Explore upcoming features of WebAssembly, Node.js integration, and alternative compilation methods
If you feel this book is for you, get your copy today!
All of the code is organized into folders.
The code will look like the following:
int addTwo(int num) {
return num + 2;
}
Following is what you need for this book: If you are a web developer or C/C++ programmer keen to leverage the powerful technology of WebAssembly to build high-performance web applications, then this book is for you.
With the following software and hardware list you can run all code files present in the book (Chapter 1-10).
Chapter | Hardware required | OS required |
---|---|---|
All | 1.6 GHz or faster processor | Mac OS X Yosemite or higher |
All | 2 GB of RAM | Ubuntu 16.04 LTS or higher |
All | 4 GB of hard drive space | Windows 7, 8.0, 8.1 or 10 (32-bit and 64-bit)* |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
-
Angular 6 for Enterprise-Ready Web Applications [Packt] [Amazon]
-
Mastering The Faster Web with PHP, MySQL, and JavaScript [Packt] [Amazon]
Mike Rourke has been writing code for over a decade. He got his start creating Microsoft Access applications using VBA and decided he wanted to work with JavaScript full-time after building a Mozilla Firefox extension. He has a B.S. in mechanical engineering technology and worked primarily in product design/manufacturing engineering roles before starting a career as a software engineer in 2017. Currently, he works for a Chicago-based consulting company and is focused primarily on frontend JavaScript development. When's he not writing code, he's out in the woods camping with his wolf brothers.
Click here if you have any feedback or suggestions.