Portable efficient bytecode format for compiling machine code for the web
The main goal of WebAssembly is to enable high-performance applications on web pages, but the format is designed to be executed and integrated in other environments as well, including standalone ones.WebAssembly (i.e. WebAssembly Core Specification and WebAssembly JavaScript Interface) became a World Wide Web Consortium recommendation on 5 December 2019 and, alongside HTMLHTML, CSS, and JavaScript, is the fourth language to run natively in browsers.
WebAssembly (often shortened to Wasm) is an open standard that defines a portable binary-code format for executable programs, and a corresponding textual assembly languageassembly language, as well as interfaces for facilitating interactions between such programs and their host environment.
In order to use Wasm in browsers, users may use EmscriptenEmscripten SDK to compile C++ (or any other LLVM-supported language such as D or Rust) source code into a binary file which runs in the same sandbox as regular JavaScript code.
WebAssembly (often shortened to Wasm) is an open standard that defines a portable binary-code format for executable programs, and a corresponding textual assembly language, as well as interfaces for facilitating interactions between such programs and their host environment.
The main goal of WebAssembly is to enable high-performance applications on web pages, but the format is designed to be executed and integrated in other environments as well, including standalone ones.WebAssembly (i.e. WebAssembly Core Specification and WebAssembly JavaScript Interface) became a World Wide Web Consortium recommendation on 5 December 2019 and, alongside HTML, CSS, and JavaScript, is the fourth language to run natively in browsers.
In order to use Wasm in browsers, users may use Emscripten SDK to compile C++ (or any other LLVM-supported language such as D or Rust) source code into a binary file which runs in the same sandbox as regular JavaScript code.
Wasm has also great properties to be used server-side thanks to it's universality and sanboxing properties.
There are runtimes that enables running WebAssembly server-side, such as Wasmer.