~/talk

Hourglass Interfaces for C++ APIs

Talkat CppCon 2014 · on Wednesday, 2014-09-10· at 16:45· Leibnitz· [frontend-architecture]
links:none on file
slides:none on file

Explains the concrete hourglass pattern: rich C++ API and implementation separated by a thin C89 ABI layer, with code for C++98 and C++11. Shows exact techniques: opaque C structs and extern "C" entry points, error T double‑pointer plus a throw_on_error RAII shim and translate_exceptions wrapper, callback trampolines from capturing lambdas to C function pointers, and visibility macros for exports. Demonstrates with a small hairpoll example and supplies slides and source at the GitHub link so you can build and test it yourself.

AI-written summary · about

  1. 0:00Start
  2. 0:49Hourglass Interfaces for C++ APIs
  3. 1:32Motivation and Introduction
  4. 17:40Best Practices
  5. 56:15Interfacing with those "other" languages
  6. 57:01Languages with support for calling functions in shared libraries include . Common Lisp. Java. JavaScript. Matlab.NET
~/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.