Cython and SWIG are excellent, and yet very different tools for using C libraries from Python. The goal of this talk is to introduce both tools, discuss their strengths, their weaknesses, and the situations that clearly favor one tool over the other.
Introduction (2 minutes)
What is SWIG? (2 minutes)
An Aside: Anatomy of C Libraries (3 minutes)
Alternatives to Cython and SWIG (2 minutes)
SWIG Code Walkthrough (5 minutes)
Typemaps (2 minutes)
What is Cython? (2 minutes)
Cython, the Language (2 minutes)
Cython: How is that possible? (2 minutes)
Cython Code Walkthrough (5 minutes)
SWIG Advantages and Disadvantages(1 minute)
Cython Advantages and Disadvantages (1 minute)
Chart of Use Cases and Tool Recommendation (1 minute)