WebAssembly

爷,独闯天下 提交于 2021-01-17 20:43:32

WebAssembly

From Wikipedia, the free encyclopedia
 
 
Jump to navigation Jump to search
WebAssembly
WebAssembly Logo.svg
Paradigm Imperative, structured, expression-oriented
Designed by W3C
Developer
First appeared March 2017; 3 years ago
Typing discipline Static
License Apache License 2.0
Filename extensions
  • .wat
  • .wasm
Website webassembly.org
Influenced by

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.[1][2][3][4] 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.[5][6]

WebAssembly became a World Wide Web Consortium recommendation on 5 December 2019[7] and, alongside HTML, CSS, and JavaScript, is the fourth language to run natively in browsers.[8] 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.[note 1] Emscripten provides bindings for several commonly used environment interfaces like WebGL. There is no direct Document Object Model (DOM) access; however, it is possible to create proxy functions for this, for example through stdweb,[13] web_sys,[14] and js_sys[15] when using Rust language.

The World Wide Web Consortium (W3C) maintains the standard with contributions from Mozilla, Microsoft, Google, and Apple.[16]

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!