~/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

Djinni gains full WebAssembly support so the same IDL and generated bindings reuse Snapchat’s large mobile C++ codebase to produce Snapchat for Desktop Web with minimal C++ change, released months before this talk. It generates TypeScript interface output, forwards primitives via embind, maps C++ containers to JS arrays/maps, and models async as futures→Promises. Automatic lifetime uses the browser FinalizationRegistry to drop shared_ptrs. Known limits: no user‑defined map keys, no multithreading, and recent browsers are required.

AI-written summary · about

  1. 0:00Introduction
  2. 8:21Genie workflow
  3. 11:29Live demo
  4. 18:05Implementation
  5. 20:44JavaScript Implementation
  6. 24:09Marshalling Data
~/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.