Found 12 pages:
# | Page | Tags and summary |
---|---|---|
1 | WebAssembly | Landing, WebAssembly, wasm |
WebAssembly is a new type of code that can be run in modern web browsers — it is a low-level assembly-like language with a compact binary format that runs with near-native performance and provides languages such as C/C++ with a compilation target so that they can run on the web. It is also designed to run alongside JavaScript, allowing both to work together. | ||
2 | Caching compiled WebAssembly modules | Caching, IndexedDB, JavaScript, Module, WebAssembly, compile, wasm |
Caching is useful for improving the performance of an app — we can store compiled WebAssembly modules on the client so they don't have to be downloaded and compiled every time. This article explains the best practices around this. | ||
3 | Compiling a New C/C++ Module to WebAssembly | C, C++, Compiling, Emscripten, WebAssembly, wasm |
When youβve written a new code module in a language like C/C++, you can compile it into WebAssembly using a tool like Emscripten. Letβs look at how it works. | ||
4 | Compiling an Existing C Module to WebAssembly | C++, Compiling, Emscripten, WebAssembly, wasm |
A core use-case for WebAssembly is to take the existing ecosystem of C libraries and allow developers to use them on the web. | ||
5 | Compiling from Rust to WebAssembly | Compiling, WebAssembly, rust, wasm |
If you've written some Rust code, you can compile it into WebAssembly! This tutorial takes you through all you need to know to compile a Rust project to wasm and use it in an existing web app. | ||
6 | Converting WebAssembly text format to wasm | WebAssembly, assembly, conversion, text format, wabt, wasm, wast2wasm, wat2wasm |
WebAssembly has an S-expression-based textual representation, an intermediate form designed to be exposed in text editors, browser developer tools, etc. This article explains a little bit about how it works, and how to use available tools to covert text format files to the .wasm assembly format. |
||
7 | Exported WebAssembly functions | Guide, JavaScript, WebAssembly, export, exported functions, exported wasm functions, wasm |
Exported WebAssembly functions are how WebAssembly functions are represented in JavaScript. This article describes what they are in a little more detail. | ||
8 | Index | Index, WebAssembly |
Found 12 pages: | ||
9 | Loading and running WebAssembly code | Fetch, JavaScript, WebAssembly, XMLHttpRequest, bytecode |
To use WebAssembly in JavaScript, you first need to pull your module into memory before compilation/instantiation. This article provides a reference for the different mechanisms that can be used to fetch WebAssembly bytecode, as well as how to compile/instantiate then run it. | ||
10 | Understanding WebAssembly text format | Functions, JavaScript, S-expressions, WebAssembly, calls, memory, shared address, table, text format, was, wasm |
This finishes our high-level tour of the major components of the WebAssembly text format and how they get reflected in the WebAssembly JS API. | ||
11 | Using the WebAssembly JavaScript API | API, DevTools, JavaScript, WebAssembly, compile, instantiate, memory, table |
This article has taken you through the basics of using the WebAssembly JavaScript API to include a WebAssembly module in a JavaScript context and make use of its functions, and how to use WebAssembly memory and tables in JavaScript. We also touched on the concept of multiplicity. | ||
12 | WebAssembly Concepts | C, C++, Emscripten, JavaScript, WebAssembly, concepts, rust, text format, web platform |
This article has given you an explanation of what WebAssembly is, why it is so useful, how it fits into the web, and how you can make use of it. | ||