~/talk

Improve extension API: C++ as better language for extension

Talkat RubyKaigi 2017 · 2017-09-18..09-20· [ruby, c-and-cpp]
slides:none on file

Proposal replaces manual C bindings with a C++ layer that wraps Ruby’s C API to provide cleaner, template‑based conversions, lambdas, default args and initializer lists; existing prototypes Ext++ and Rice implement these ideas and reuse C macros so no extra bindings are needed. Ext++ adds delayed method definition and measures defining 10,000 methods at 5 ms vs 1 ms when delayed (a 5× relative speedup, 4 ms absolute). Notes cover implicit cast traps, exception bridging, and tradeoffs in build complexity.

AI-written summary · about

  1. 0:00Introduction and announcements
  2. 3:41Why improve extension APIs
  3. 9:50Goals for extension API design
  4. 13:38Advantages of C++ for APIs
  5. 27:21C++ API benefits and optimizations
  6. 35:47Challenges and future plans
  7. 36:08Q&A on API stability
~/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.