Working with C Extensions
May 30, 2026 | 5 min read
Cython Interop
Pyvorin compiles Python code to machine code independently of Cython. Cython modules are treated as external C libraries — calls to them fall back to CPython but execute at C speed.
Custom C Extensions
If you have a hand-written C extension:
- The extension runs at native speed regardless of Pyvorin.
- Pyvorin compiles the Python glue code that calls the extension.
Rust (PyO3)
Rust extensions built with PyO3 are fully compatible. Pyvorin compiles the Python orchestration around Rust calls.
ctypes / cffi
Direct memory manipulation via ctypes is unsupported in compiled code and will fall back to CPython. Restructure to pass data as Python objects.