Python Previous Work¶
There a several available tools to creating a Python interface to a C or C++ library.
- No need for compiler.
- Difficult wrapping C++ due to mangling and object ABI.
I ran Cython (a Python->C converter) on the previous benchmark, and it runs in exactly the same amount of time: 2.11s. I wrote a simplified C extension in 36 lines compared to Cython’s 3600, and it too runs in 2.11s.
Sip was developed to create PyQt.
Shiboken was developed to create PySide.