Miro Hrončok

Miro Hrončok (CZ)

https://hroncok.cz/

Miro Hrončok is a free software engineer at Red Hat and also a teacher at FIT ČVUT (Faculty of Information Technology in Prague), where he teaches (among other things) about some advanced concepts and libraries in Python.

Miro loves writing stuff in Python and Cython. He hates to write in C, but he'd rather write in C than in Java :)

Miro is part of the large group of people who help to create the Fedora Linux distribution. His current mission is to make Fedora the best OS for Python developers.

Cython: Speed up your code without going insane
Czech flag Workshop Python General
SPy - Hall A (-1.57)
Sunday 11. March: 13:30

Let's learn how to write Cython. Cython let's you write Python extension modules as if they were written in C or C++, but using a superset of Python. It's easy, it's fun, the result is fast and you are not furious.

Preliminary agenda:

* Python C API - what, why, how, why not
* Building extension modules with setuptools
* Python C API internals - PyObject, Reference counting, GIL
* Cython - what it does, why it's better, basics
* Compiling Python code with Cython
* Annotating with Cython, basic profiling, where's my code slow?
* Let's add types. Wrrrrm, speed ups!
* Writing Cython functions
* Creating "classes" (extension types)
* Using Cython with NumPy
* Cython directives
* C structs, pointers, malloc etc.
* Using C libraries from Cython
* (optional - if there's time left) pyximport and %%cython IPython magic
* (optional - if there's time left) Using Cython with C++
* (optional - if there's time left) Building wheels (in the cloud)