Topic

WebAssembly

Learning resources

About WebAssembly

WebAssembly (wasm) is a new, portable, size- and load-time-efficient format for compilation to the web.

wasm is designed to be a "compiled C++" to the web. It aims to execute at near-native speed by taking advantage of common hardware capabilities available on a wide range of platforms.

WebAssembly is a low-level bytecode format for in-browser client-side scripting, designed as a portable target for compilation of high-level languages like C and Rust. As part of the HTML5 standard, it is supported in major browsers like Google Chrome, Microsoft Edge, Apple Safari and Mozilla Firefox. Despite being designed to improve performance, it is also considered to improve security compared to JavaScript.

WebAssembly is being designed as an open standard by a W3C Community Group.

Learning WebAssembly

There are a number of ways to get started with learning WebAssembly. One great way is to use an online Emscripten compiler. This will allow you to write code in C or C++ and compile it to webassembly. Another option is to use the WebAssembly Binary Toolkit, which can be used to compile webassembly code from any language that can emit LLVM bitcode.

Once you have a basic understanding of how to compile code to webassembly, you can start learning how to use it on web pages. There are a number of excellent resources available for this, including the Mozilla Developer Network and the WebAssembly specification.

Overall, learning WebAssembly is a great way to get started with using this powerful new technology. With a little effort, you can be writing code that runs quickly and efficiently on web pages.