Discover how to extend and embed Python with C++ in this informative conference talk from Meeting C++ 2022. Learn about Python's communicative nature, allowing easy integration of C++ functionality into Python (extend) and direct use of Python from a C++ runtime (embed). Explore techniques for offloading performance-critical parts to C++ and overcoming Python's Global Interpreter Lock (GIL). Gain insights into including existing shared libraries and extending Python with custom shared libraries using the ctypes module. Delve into frameworks like SWIG and pybind11 that streamline the integration process. Finally, understand the reverse process of embedding a Python interpreter in C++ applications, providing a scripting interface to your C++ programs.
Overview
Syllabus
Extend and Embed Python with C++ - Rainer Grimm - Meeting C++ 2022
Taught by
Meeting Cpp