9. 9
• A new browser language
• Compilation target from other language
• Typed variables
• Multi threaded
• Garbage collection
• Load fast (quick parsing)
10. asm.js
function () {
"use asm";
function add(x, y) {
x = x | 0;
y = y | 0;
return x + y | 0;
}
return { add: add };
}
(module
(export $add “add” $add)
(func $add
(param $x i32)
(param $y i32)
(result i32)
(i32.add
(get_local $x)
(get_local $y)
)
)
)
web assembly
11.
12. Web Applications• Games
• CAD
• Video editing
• Image editing
• Scientific visualization
• Virtual reality
• Augment reality
13. 48
photo: panoramio.com
Summary
New “low level” language of browsers
It is a “target” language (from C/C++)
Fast almost as native languages
For running “heavy” applications on the browser
Still under development
May affect future of JavaScript@bmihaylov | Voxxed Days Thessaloniki 2016