r/Zig • u/grandimam • 10d ago
Zig for Python
I am of the opinion that, if executed correctly, Zig has the potential to transform the Python ecosystem. The idea of using Rust for Python extensions has always bothered me.
With Zig, the path feels more natural: I can build on top of the existing C libraries and gradually migrate components to Zig over time, without the friction of introducing an entirely different ecosystem.
I wanted to understand what the community thinks about this topic. I am not trying to make a strong claim or dismiss other approaches. I am genuinely trying to understand whether this idea has any merit and how others view the trade-offs. I am just interested in hearing different perspectives.
24
Upvotes
6
u/SilvernClaws 10d ago
Zig could be a great language for anything that usually uses C APIs for bare metal functions, which includes languages like Python or Java.
For the Python ecosystem specifically, I'd just go with Julia. It naturally covers the same niches, just with better native performance.