WebAssembly is an actively used bytecode format created in 2015. WebAssembly (Wasm, WA) is a web standard that defines a binary format and a corresponding assembly-like text format for executable code in Web pages. It is meant to enable executing code nearly as fast as running native machine code. It was envisioned to complement JavaScript to speed up performance-critical parts of web applications and later on to enable web development in languages other than JavaScript. Read more on Wikipedia...

5Years Old 1,726Users ?Jobs

Example code from the web:

20 00
04 7E
42 01
20 00
20 00
42 01
10 00

Example code from Linguist:

  (import "env" "printInt" (func $printInt (param i32)))
  (func $add (param $lhs i32) (param $rhs i32) (result i32)
    get_local $lhs
    get_local $rhs

  (func $main
    (call $printInt
      (call $add (i32.const 9) (i32.const 8))))

  (export "main" (func $main))

Example code from Wikipedia:

  (import "math" "exp" (func $exp (param f64) (result f64)))
  (func (export "doubleExp") (param $0 f64) (result f64)
      (call $exp
        (get_local $0))
      (f64.const 2))))

Trending Repos

repo stars description
assemblyscript 6742 Definitely not a TypeScript to WebAssembly compiler 🚀

Last updated August 9th, 2020

Edit WebAssembly on GitHub