![]() ![]() This article explains the Wasm text format. Exported WebAssembly functionsĮxported WebAssembly functions are the JavaScript reflections of WebAssembly functions, which allow calling WebAssembly code from JavaScript. In this article, we show you how to use WebAssembly via the WebAssembly JavaScript API. Once you've loaded a Wasm module, you'll want to use it. Loading and running WebAssembly codeĪfter you have a Wasm module, this article covers how to fetch, compile and instantiate it, combining the WebAssembly JavaScript API with the Fetch or XHR APIs. 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. ![]() Compiling an Existing C Module to WebAssemblyĪ core use-case for WebAssembly is to take the existing ecosystem of C libraries and allow developers to use them on the web. When you've written code in C/C++, you can then compile it into Wasm using a tool like Emscripten. Compiling a New C/C++ Module to WebAssembly Get started by reading the high-level concepts behind WebAssembly - what it is, why it is so useful, how it fits into the web platform (and beyond), and how to use it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |