Université du Québec à Montréal, Montreal, Quebec, Canada
November 18-21, 2017
Have you ever wanted to speed up a slow part of your Python program by rewriting part of it in C? Maybe you needed to use a C/C++ library, but couldn't find a Python binding? This talk will get you started with CFFI, a modern approach to calling into C code from Python. CFFI (FFI stands for 'foreign function interface') produces code that works with both CPython and PyPy, and across Python 2 and 3. It doesn't require learning a custom 'wrapping' language, and can have less runtime overhead than ctypes.
In my talk, I'll walk through the process of exposing a small C-based data structure in Python, and then packaging it up with setuptools. You don't need to be an expert C programmer to get great results!
I'm Zack, and I've been involved in the Python and Django open-source communities since 2009. Right now I'm an engineer at Google in San Francisco, where I build software to track and optimize resource usage in our data centers. Before Google, I worked on analytics systems at Twitter and Dropbox, and most recently helped build Color Genomics' website and lab software with Django. In my free time I love cooking BBQ, weightlifting, and hanging out with dogs.