~/talk

Python, C, C++, and Fortran Relationship Status: It’s Not That Complicated

Talkat PyData Carolinas 2016 · 2016-09-14..09-16· [python]
links:none on file
slides:none on file

Clear actionable claims: three practical paths — wrap / extension / embed — with concrete pros and cons; tools that actually work include ctypes (no C++), cffi (parses headers), f2py for Fortran, SWIG (ambitious but can mismanage ownership), boost.python, and cython (compiles Python to C and speeds numeric code with numpy). Examples show ctypes passing by reference to Fortran, cython emitting C then compiling, and embedding pulling a Python interpreter into an executable; xdress for automated cython bindings appears stalled.

AI-written summary · about

  1. 0:00Introduction
  2. 3:53Python's C API
  3. 8:26Connecting Python with C/C++/Fortran
  4. 15:54Foreign language tools
  5. 21:29Wrapping C++ with Swig
  6. 24:45Cython performance
  7. 29:43Summary
  8. 30:49Q&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.