~/talk

WebAssembly: Taking Your C++ and Going Places

Talkat CppCon 2022 · 2022-09-11..09-16· [webassembly]
links:none on file
links:none on file
slides:none on file

Claims that WebAssembly runs C++ on the web about 4.2× faster than JavaScript and compiles with Emscripten (emcc); demos show a logger that writes to IndexedDB, posts logs to a server, and runs on a separate pthread-based worker using shared array buffer, so threading actually works when browser flags allow it. Tooling includes DWARF for DWARF source-level debugging in Chrome, default linear memory 16 MB (browser caps ~4 GB Chrome, ~2 GB Firefox/Safari), and the repo contains Docker/setup and working examples.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27What is WebAssembly
  3. 3:58Core features
  4. 6:03Toolchain setup
  5. 8:11C++ to WebAssembly
  6. 13:48C++ and JavaScript
  7. 14:52Basic C++ to JS demo
  8. 20:12C++ classes and templates
  9. 23:40Smart pointers in WASM
  10. 27:39Porting C++ app
  11. 36:27Logger with IndexedDB
  12. 41:01Network in WebAssembly
  13. 44:11Threading in WebAssembly
  14. 47:01Debugging WebAssembly in the browser
  15. 50:09Pitfalls and best practices
~/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.