~/talk

Typescripten: Generating Type-safe JavaScript Bindings for emscripten

Talkat CppCon 2021 · on Wednesday, 2021-10-27· at 07:45· online· [compilers-and-language-design, webassembly]
slides:none on file

Generates type-safe C++ wrappers from TypeScript declaration files using the TypeScript compiler API and targets emscripten via emscripten/embind so JavaScript APIs (7000+ libraries) become callable from C++; claims preserve idiomatic C++ shapes, handle generics and many unions, and the tool is self-hosting. Demonstrated embedding a Tableau visualization and a DOM-based demo; live demo hiccups occurred but core workflow works. Notes a measurable runtime cost from string-based marshaling and plans to reduce that overhead.

AI-written summary · about

  1. 0:00Start
  2. 3:24Sorting in Javascript Array
  3. 6:18Write a Web Application in C
  4. 7:03Webassembly
  5. 7:25Introduction to Webassembly
  6. 11:59Runtime Support
  7. 22:41Interface Definitions
  8. 23:14Type Definition Libraries
  9. 27:42Valid Typescript
  10. 28:58Typescript Constructs
  11. 35:31Mixed Enumerations
  12. 36:28Function Callbacks
  13. 38:19Create a Javascript Function Object
  14. 44:35Detached Function
  15. 46:25Generic Classes
  16. 53:00Open Challenges
  17. 53:27Questions
~/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.