~/talk

Bringing a Mobile C++ Codebase to the Web

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

Claim: adding full WebAssembly support to Djinni lets the same interface definitions expose existing C++ to JavaScript/TypeScript with almost no C++ changes. Implementation uses WebAssembly and embind for primitive and object marshalling, generates TypeScript bindings for static checks, uses FinalizationRegistry to free C++ objects automatically, and preserves object identity across the boundary. Result: a large mobile C++ codebase powers Snapchat for Desktop Web, and the extension is available on GitHub.

AI-written summary · about

  1. 0:00Start
  2. 0:24Snapchat for Desktop web
  3. 1:51A Brief History of Djinni at Snap
  4. 3:55Compare to the alternatives
  5. 5:16TypeScript Interface Output
  6. 5:56Better Support for C++ Containers
  7. 7:30Asynchronous Methods
  8. 8:21Building Web Apps with Djinni
  9. 10:15Djinni Primitive Types
  10. 10:57Djinni Composite Types
  11. 18:58Crossing the WebAssembly/Javascript boundary
  12. 21:31Automatic Memory Management
  13. 22:43Retaining Object Identity
  14. 25:27Exception Handling
  15. 26:07Limitations
~/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.