Book Image

Learn WebAssembly

By : Mike Rourke
Book Image

Learn WebAssembly

By: Mike Rourke

Overview of this book

WebAssembly is a brand-new technology that represents a paradigm shift in web development. This book teaches programmers to leverage this technology to write high-performance applications that run in the browser. This book introduces you to powerful WebAssembly concepts to help you write lean and powerful web applications with native performance. You start with the evolution of web programming, the state of things today, and what can be done with the advent and release of WebAssembly. We take a look at the journey from JavaScript to asm.js to WebAssembly. We then move on to analyze the anatomy of a WebAssembly module and the relationship between binary and text formats, along with the corresponding JavaScript API. Further on, you'll implement all the techniques you've learned to build a high-performance application using C and WebAssembly, and then port an existing game written in C++ to WebAssembly using Emscripten. By the end of this book, you will be well-equipped to create high-performance applications and games for the web using WebAssembly.
Table of Contents (18 chapters)
Title Page
Copyright and Credits
Dedication
PacktPub.com
Contributors
Preface
Index

Configuring VS Code


Out of the box, VS Code is a powerful text editor with a lot of great functionality. In addition to being highly configurable and customizable, it possesses an incredibly rich extensions ecosystem. We'll need to install some of these extensions so we won't need to use different editors for different programming languages. In this section, we will cover how to configure VS Code and which extensions to install to simplify the WebAssembly development process.

Managing settings and customization

Customizing and configuring VS Code is simple and intuitive. You can manage custom settings such as editor font and tab sizes by selecting Code | Preferences | Settings on macOS or File | Preferences | Settings on Windows. User and workspace settings are managed separately in JSON files and auto completion is provided in case you can't remember the exact name of a setting. You can also change the themes or keyboard shortcuts by selecting the appropriate option in the Preferences menu...