~/talk

Emscripten and asm.js: C++'s role in the modern web

Talkat CppCon 2014 · on Monday, 2014-09-08· at 11:00· Newton· [web-platform, javascript]
slides:none on file

LLVM+clang → Emscripten emits JavaScript (an asm.js subset) that views program memory as an ArrayBuffer heap with typed‑array views, uses tricks like or|0 coercion for 32‑bit integers, and maps C++ exceptions onto JS exceptions. Measured performance sits around 50–67% of native on large benchmarks (Box2D, Bullet, Lua VM, zlib); big builds take seconds (roughly 5–10s) to compile, current limits include 32‑bit integer emulation and no shared‑memory threads (only web workers).

AI-written summary · about

  1. 0:00The case for C++ on the web
  2. 2:00Compiling C++ to JavaScript
  3. 4:29Working with Emscripten
  4. 6:06Architecture and libraries
  5. 8:28Emitted code and asm.js
  6. 14:49Fundamental design differences
  7. 21:06Performance optimization
  8. 25:15Benchmarks and real-world use
  9. 31:43Handling exceptions
  10. 37:54Q&A and closing thoughts
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.