Loading…
CppNorth2022 has ended
CppNorth, The Canadian C++ Conference, July 17-20, 2022,
The Omni King Edward Hotel, Toronto, Ontario M5C 1 E9
Monday, July 18 • 15:15 - 16:15
Lets Talk: Extend and Embed Python with C++

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Python is very communicative. On the one hand, it is very easy to call C++ functionality from Python (extend), and on the other hand, Python can be used directly from a C++ runtime (embed). Extending allows you to offload performance-critical parts of your program to C++ or to overcome the GIL (global interpreter lock) in Python. Thanks to embedding a Python interpreter in your C++ application, the C++ application has a scripting interface.

I show how you can include existing shared libraries and extend Python with your own shared libraries thanks to the ctypes module. Furthermore, I introduce the frameworks SWIG and pybind11 to almost automate this process. Finally, I go into the mirror image process: How to embed Python in a C++ application.

Speakers
avatar for Rainer Grimm

Rainer Grimm

CEO, Modernes C++ GmbH
Rainer has worked as a software architect, team lead, and instructor since 1999. In 2002, Rainer created a company-intern meeting for further education and had given training courses since 2002. Rainer's first tutorials were about proprietary management software, but he began teaching... Read More →


Monday July 18, 2022 15:15 - 16:15 EDT
B - Knightsbridge