Overview
Explore the Cython compiler, the most widely used static compiler for Python, in this 48-minute EuroPython Conference talk by core developer Stefan Behnel. Gain insights into compiling Python code into fast native extension modules and connecting native code to the CPython runtime. Learn how to optimize Python code for C-like speed through static typing and Cython language extensions. Discover techniques for interfacing with external C/C++ APIs and leveraging special features for high-performance computing, including NumPy integration, memory views, fused types, and parallel loops. Understand the project's goals, compiler usage, and major features through practical examples and demonstrations. Delve into topics such as distutils integration, type system intricacies, and efficient ways to wrap large C-APIs. Perfect for developers seeking to enhance Python performance and extend CPython capabilities.
Syllabus
Intro
Who am I
Siteon
Example
Distribution
Versions
Language Features
Speed
Static type declarations
Demo
Lang
Manual decoding
Hy function
Callbacks
Function Calls
Strikes
Python syntax
Python code
Performance features
Slicing
Fuse Types
Parallel Code
Efficiency
Pareto Principle
Questions
Taught by
EuroPython Conference