MIT: Independent Activities Period: IAP

IAP 2014



Subprocess to FFI in Python: Memory, Performance, and Why You Shouldn't Shell Out

Christine Spang

Jan/29 Wed 07:00PM-08:00PM 4-231

Enrollment: Unlimited: No advance sign-up

Python is a great language for building systems fast, but sometimes, the code you need to get something done just isn't available for the language. Your first instinct may be to shell out from your Python program to an external binary, but it turns out this has serious performance implications. Come learn how to solve this problem by wrapping C libraries for use in Python, and see how various options for doing so stack up in terms of performance and ease-of-use.

Intermediate-level programming experience with Python encouraged, but no need to be a UNIX guru; you'll learn more if you aren't. :)

Sponsor(s): Student Information Processing Board, Electrical Engineering and Computer Science
Contact: Christine Spang, sipb-iap-cpython@mit.edu