PyCon 2016 in Portland, Or
hills next to breadcrumb illustration

Wednesday 1:10 p.m.–1:40 p.m.

See Python, See Python Go, Go Python Go

Andrey Petrov

Audience level:
Experienced
Category:
Python Core (language, stdlib, etc.)

Description

Being able to run C code from Python is pretty great, but what about running Go code from Python? Or even Python from Go? This talk will walk through the process of executing calls between Python and Go using CFFI bindings to bridge the two runtimes.

Abstract

Python... Oh, Python. You're so lovely and beautiful, and even plenty fast. Sometimes, but sometimes, we want _more_. A sprinkle of C might add just the right flavours for our feast, and imagine how much further we could go! Whether for performance, or access to another language's ecosystem, or to bridge powerful independent components, it's valuable to be able to run code across language barriers. Learn how to call C from Python, Go from C, Python from Go and Go to Python! These concepts can further be applied to many other languages which support C bindings.