~/talk

Call a C API from Python becomes more enjoyable with CFFI

Talkat PyCon AU 2017 · 2017-08-03..08-08· [python, embedded-and-hardware]
links:none on file
slides:none on file

Claims that using CFFI cuts development and maintenance effort when wrapping low‑level C APIs: a hand‑written C binding for the VidCon graphics API takes 1.5 months vs 2 weeks with CFFI, generated code explodes to a 60,000-line C file while the CFFI version stays compact Python. Uses CFFI API and inline modes, a generator driven by Khronos XML, produces bindings for thousands of structs and functions, compiles cross‑platform, and powers a working Vulkan/VidCon‑based 3D engine and demo game.

AI-written summary · about

  1. 0:00Intro
  2. 1:55Why Python Extension
  3. 15:09Generator
  4. 16:08Passing
  5. 17:56Binding
  6. 19:39Code
  7. 24:40Bonus
~/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.