From Jason Turner
Watch on YouTube

Summary

Jason explores cppyy, a Python library that enables C++ code to be compiled and executed within Python scripts. He demonstrates how cppyy dynamically compiles C++ header files and makes functions, structs, and even templates available to Python at runtime. Through practical examples, he shows how to include and execute C++ code, create and manipulate C++ structs, instantiate template classes with both type and value parameters, and access array elements - all from within Python. Despite being limited to C++17 and Clang 9 in the demonstration, Jason highlights this as a powerful tool for integrating high-performance C++ code into Python applications.

Resources

Tags