2 WebAssembly Text Basics

In this chapter, we’ll dive into the basics of WAT code. We’ll write most of the code in this book in WAT, the lowest level of programming you can write for deployment to WebAssembly (although for experienced assembly coders, it might seem rather high level).

This chapter covers a lot of ground. We’ll begin by showing you the two comment styles in WebAssembly. Next, we’ll write the traditional hello world application. We don’t start with hello world because working with strings from within WAT is more challenging than you might expect.

Then we’ll discuss how to import data from JavaScript into our WebAssembly module ...

Get The Art of WebAssembly now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.