際際滷

際際滷Share a Scribd company logo
Asm.js- native apps in
web world
Micha Ko添miski <@michalkozminski>
Emscripten
LLVM to asm.js
Asm.js vs Javascript
Interacting with browser
Meet.js: asm.js - native apps in web world
Automation
Meet.js: asm.js - native apps in web world
Javascript in C++
Meet.js: asm.js - native apps in web world
Community
 http://beta.unity3d.com/jonas/DT2/
 http://vps2.etotheipiplusone.com:30176/redmine/proj
ects/emscripten-qt
 https://github.com/kripken/box2d.js/
 http://www.libraw.org/
Thanks for watching

More Related Content

Meet.js: asm.js - native apps in web world

Editor's Notes

  • #3: Emscripten takes in C/C++ code, passes it through LLVM, and converts the LLVM-generated bytecode into Asm.js. If the compiled Asm.js code is doing some rendering then it is most likely being handled by WebGL (and rendered using OpenGL).
  • #4: Works with old browsers, lazy compile (we can skip evaluation by wrapping code in function, eval), hard to debug, 2 compilers: Mandreel, Emscripten(in this presentation) types, no garbage collection
  • #5: There are to ways that we can interact with browser. There are 2 ways to interact expose c++ methods to javascript or go other hipster way and show js libs to our c++ code
  • #9: Lets go other way emscripten offers us also evaluation of javascript inside c++. We use for that val type to store global scope.
  • #11: Emmscripten supports SDL 1.2 out of box but community added support for QT4 and OpenGL ES, BOX 2D and Unity 3d is supported as alpha.