~/talk

Accelerating Python With C++

Talkat ACCU 2025 · 2025-04-01..04-04· [python, c-and-cpp]
links:none on file
slides:none on file

Argues C++ should be paired with Python for speed and shows concrete trades: using pybind11 naïvely makes tiny calls slower (5.7s vs C++ 4.25ms) unless batching or numpy array_t is used (example down to ~62ms); pure-Python sum 64s vs numpy 3s; PyTorch CPU 40s vs GPU 4ms but PCIe round trips cost ~31s for 100 runs; package resolution: pip 4.63s vs uv 0.06s; interactive C++ via CPPY hits ~724ms close to C++ while preserving rapid development.

AI-written summary · about

  1. 0:00Introduction
  2. 2:56C++ and Python usage
  3. 4:24Python popularity among C++ devs
  4. 5:51C++ syntax like Python
  5. 15:09Python performance limits
  6. 26:11Python performance tools
  7. 36:15C++ and Python bindings
  8. 53:18Advanced binding with Syon
  9. 1:01:16Python from C++
  10. 1:08:05Dynamic binding with CPPY
  11. 1:20:59Q&A
~/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.