Lecture: Mixing C/C++ and Python

An introduction to integrating the best of both worlds with SWIG

Event_large

This short tutorial will illustrate an easy path to integrate C/C++ with Python, highlight some Dos and Don'ts for successful integration and show examples from the scientific computing domain.

As software projects emerge, developers sometimes reach the limits of the programming language they chose initially. Python programmers might find that computationally expensive loops could be a lot faster if implemented in a compiled language, a problem that is symptomatic for numerics or signal processing for example. C/C++ programmers on the other hand have a hard time writing boiler plate code for I/O processing, text parsing, networking, and the application logic that is necessary to interface their code with the real world. Also, an external library in need might be only available in C++, while the project was already started in Python or vice versa.

This short tutorial will illustrate an easy path to integrate C/C++ with Python, highlight some Dos and Don'ts for successful integration and show examples from the scientific computing domain. The main tool used is SWIG, the Simplified Wrapper and Interface Generator. Examples make use of autotools and focus on Unix/Linux development strategies, although Windows developers will still be able to follow the talk.

Info

Day: 2011-08-20
Start time: 13:00
Duration: 00:30
Track: Python

Links

Feeback

Click here to let us know how you liked this event.