How to call C libraries from C++
summary
Shows a concrete method and a tiny support library for converting POSIX APIs into idiomatic C++: a short set of design rules (type-for-type, function-for-function, ownership via unique_…), automation that generates wrappers (Plus+ / p7 invoke and Caesar/wrapper hooks), and examples that turn raw sockets into unique_socket with enum wrappers and explicit close semantics. Demonstrates how many repetitive conversions are automated, what must be provided by hand, and that the wrapped server example fits on one slide.
AI-written summary · about
chapters (7)
- 0:00Start
- 9:12Design rules for names
- 12:02Design rules for types
- 14:25Design rules for conversions
- 15:36Design rules for parameters
- 17:38Design rules for results
- 24:15Mostly, a computer can do that.
related talks
01h 01mClean CMake for C++ (library) developers
01h 03mWriting sustainable software. The how and the what!
01h 02mEmbedded Friendly C++: Features That Make a Difference
01h 10mCustomization Methods: Connecting User and C++ Library Code
01h 01mBack to Basics: C++ API Design
50mThinking Functionally in C++
29mC++ ♥ Python: from modules to hybrid applications
01h 30mC++ in Constrained Environments
