EuroPython 2018

Rust and Python - Oxidize Your Snake

Speaker(s) Sven-Hendrik Haase

Rust is a safe and modern systems programming language that is easily able to call and be called from Python. As such, it is a prime candidate for replacing C for writing Python modules that have to be fast or that have to interact with other native code. Rust is extremely fast and makes it very hard to get concurrency wrong.

Many ways of making Python call into lower level have appeared over the years such as CFFI, ctypes, boost.python, cython, SWIG. All of them are cumbersome in their own ways. PyO3 is a Rust library that makes it easy and simple to write native Python modules with minimal glue code and no crazy tooling required. It even works cross-platform without problems.

The talk shows some sample code of PyO3-based modules and compares it with the code of the alternatives as well as the alternative’s cross-platform support and tooling.

The goal is for the audience to be informed about a new safe and modern way of writing native Python modules.

The audience doesn’t need any prerequisites except for a healthy interest in native code and Python modules. C knowledge is optional.

in on Friday 27 July at 15:30 See schedule

Comments

  1. Gravatar
    Slides are here: https://github.com/svenstaro/talks/tree/master/europython-2018

    Use git and recursively clone that repo to get the submodules and then use a local web server to run it and access index.html.

    Alternatively, the uploaded file already contains all files you'll require.
    — Sven-Hendrik Haase,

New comment