Polyglot Virtual Machine

There are two major projects that promise to bring polyglot programmingwithin reach:

It’s by now a cliché that JS has become the assembly language of the Web. Rather, JS is one syntax for a portable and safe machine language, let’s say. Today I’m pleased to announce that cross-browser work has begun on WebAssembly, a new intermediate representation for safe code on the Web - brendaneich.com

YOUTUBE PlmsweSNhTw ECMAScript Harmony: Rise of the Compilers - Brendan Eich keynote - youtube

# What

WebAssembly, “wasm” for short, .wasm filename suffix, a new binary syntax for low-level safe code, initially co-expressive with asm.js, but in the long run able to diverge from JS’s semantics, in order to best serve as common object-level format for multiple source-level programming languages.

# How

If you use Emscripten, then wasm support via a command-line flag will at first include and target the prototype polyfill.

# See also