~/talk

Building a Modern Ruby <-> C++ Toolchain

Talkat RubyKaigi 2026 · 2026-04-22..04-24· [ruby, c-and-cpp]
links:none on file
slides:none on file

Modernized Rice adds C++11+ templates, STL support, ownership semantics and buffer/pointer handling, FFI‑Clang parses headers into an AST and RubyBindGen auto‑generates Rice or FFI glue plus CMake projects, and RubyGems now understands modern CMake. Result: a working OpenCV Ruby gem with ~1,158 classes, ~10,000 methods, 160 enums and ~1,000 fields, a ported test suite, and live demos (webcam face detection, filters and a neural‑net person detector). Builds compile and pass the added unit tests.

AI-written summary · about

  1. 0:00Introduction and background
  2. 3:14Rice library limitations
  3. 8:34Ruby C++ ecosystem overview
  4. 10:23FFI clang parsing C++
  5. 11:45Ruby Bind Genen creation
  6. 12:48Challenges in C++ binding
  7. 14:56CMake build system updates
  8. 17:24RubyGems CMake support
  9. 18:48OpenCV Ruby binding issues
  10. 20:57Testing and debugging process
  11. 21:17Current state of gems
  12. 22:23Live demo of OpenCV Ruby
  13. 23:47Documentation and type info
  14. 26:57Example gem bitmap++ Ruby
  15. 27:42Conclusion and call to action
~/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.