Extending Cython with GIL-Free Types
Offered By: EuroPython Conference via YouTube
Course Description
Overview
Explore an experimental extension to Cython called Cython+ in this 30-minute EuroPython 2021 conference talk. Dive into the development of GIL-free reference-counted types and a type system for thread-safe concurrency. Learn how Cython was extended to bridge the gap between Python's high-level semantics and C's low-level memory management, allowing for GIL bypassing while maintaining a Python-like syntax. Discover the process of creating new language features that translate to GIL-agnostic C or C++, including a new class system, thread-safe reference counting, and an ownership type system inspired by Pony and Rust. Gain insights into how these extensions can provide massive speedups and seamless interoperability with C libraries while maintaining a familiar programming experience for Python developers.
Syllabus
Intro
Introduction
What is siphon
What is GIL
The class system
Reference capabilities
Questions
Taught by
EuroPython Conference
Related Courses
Multithreaded Python without the GILEuroPython Conference via YouTube Is It Me, or the GIL
EuroPython Conference via YouTube Addressing Multithreading and Multiprocessing in Transparent and Pythonic Ways
EuroPython Conference via YouTube Running Python Code in Parallel and Asynchronously
EuroPython Conference via YouTube Fast Async Code with Cython and AsyncIO
EuroPython Conference via YouTube