Writing Python Bindings for C++ Libraries for Performance and Ease of Use
Offered By: CppNow via YouTube
Course Description
Overview
Explore a comprehensive conference talk on creating Python bindings for C++ libraries to enhance performance and usability. Delve into the intricacies of integrating C++ code with Python, covering topics such as memory management, data container interoperability, multi-threading, and cross-module data sharing. Learn practical API design strategies and build system considerations for seamless integration. Gain insights from real-world examples and discover how to leverage boost::python to expose C++ libraries as Python functions and objects, enabling efficient scripting and local memory state management within Python programs.
Syllabus
Introduction
Why Python
Hello World
C Python
Overheads
Classes
API Design
Python vs C bindings
Get by Value
Return a Reference
What If
Return Internal Reference
Exceptions
Internal Reference
Dispatchers
Design Decisions
Taught by
CppNow
Related Courses
Your Favorite Undefined Behavior in C++CppNow via YouTube Under the Hood - Assembly, System Calls, and Hardware in C++
CppNow via YouTube Carbon Language Successor Strategy - From C++ Interop to Memory Safety
CppNow via YouTube Value Oriented Programming Part 1 - You Say You Want to Write a Function
CppNow via YouTube Introducing a Memory-Safe Successor Language in Large C++ Code Bases
CppNow via YouTube