Web Assembly Logo

Web Assembly

Igor Saroko

Before Web Assembly

asm.js

asm.js example

Native Client (Google)

Native Client work scheme

WebCl

Web Assembly introduction

What is WebAssembly?

.wasm files

C to .wasm example

.wat (.wast) files

s-expression code and linear assembly bytecode

How to add some C/C++ code to your web application using WebAssembly?

The most straightforward way

wasm chain

Javascript glue code examples

Loading wasm modules from JS Loading wasm modules from JS WebAssembly JavaScript API documentation

Apart from Emscripten you can also use more advanced tools

WABT Binaryen

Security

Web Assembly work scheme

Examples of some games exported in WebAssembly

Tanks! Demo

Web Assembly work scheme Play tanks

Zen Garden (by Epic)

Web Assembly work scheme Play Zen Garden

May the Force of WebAssembly be with you