~/talk

Introduction to C++ python extensions and embedding Python in C++ Apps

Talkat CppCon 2016 · 2016-09-18..09-23· [python, c-and-cpp]
links:none on file
slides:none on file

Shows working C++ extension code, build scripts and a GitHub repo that currently builds on Windows + Visual Studio with Python 2.7, demonstrating raw Python C API plus two C++ approaches: Boost.Python (more manual, custom STL converters, explicit refcounting) and Pybind11 (automatic STL mapping, std::function callbacks). Explains reference-count bugs, how callbacks require GIL scope acquire, and embedding a Python interpreter in a C++ app; all examples compile and exercises run.

AI-written summary · about

  1. 0:00Why mix Python and C++
  2. 1:29Extension approaches
  3. 2:57Python C API basics
  4. 5:28Boost.Python and pybind11
  5. 7:28Advanced binding techniques
  6. 10:20Mapping STL containers
  7. 13:54Memory management
  8. 16:45Callback mechanisms
  9. 18:35Concurrency and the GIL
  10. 21:17Library comparison
  11. 23:08Embedding Python in C++
  12. 25:06Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.