~/talk

Open Is Good: Fast, Orthogonal Open (Multi) Methods with YOMM2

Talkat Core C++ 2024 · 2024-11-26..11-28· [c-and-cpp]
links:none on file
slides:none on file

YOMM2 implements open methods (free, runtime-virtual functions) as a header-only C++ library and delivers multiple-dispatch plus plug-in extensibility without modifying existing class hierarchies. It builds dispatch tables at startup via a global perfect integer hash of type_info and an update step, adds support for friend/member methods, templated definitions and a virtual ptr fast-path, and can precompute offsets. Benchmarks show dispatch compiles to ~10 instructions and costs on the order of tens of cycles (measured ~15–65% slower than a raw virtual call), and the library is on GitHub, Compiler Explorer, vcpkg and Conan.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:13Expression problem in C++
  3. 8:36Solutions to expression problem
  4. 10:02Open methods introduction
  5. 19:45YOMM2 implementation example
  6. 25:08Separating logic from data
  7. 29:50Performance comparison with virtual functions
  8. 33:04Multimethods and multiple dispatch
  9. 36:41Is this object-oriented?
  10. 41:02How YOMM2 works internally
  11. 53:01History and future of open methods
  12. 57:49Template support and macros
  13. 1:00:22How to use YOMM2
  14. 1:03:36Boost review and next steps
  15. 1:05:02Q&A and closing remarks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.