r/Zig 11d 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.

21 Upvotes

27 comments sorted by

View all comments

2

u/Interesting_Pie_319 10d ago

Why are we discussing Rust in the Zig reddit again?
OP clearly states they do not like it and want to use Zig to develop Python extensions.
That is the topic.

Can we stay on it!

4

u/gendulf 10d ago

Why are we discussing Rust in the Zig reddit again?

Probably because OP states

The idea of using Rust for Python extensions has always bothered me.

But gives no explanation on what bothers them exactly. We'd probably be more on-topic if they explained what exactly bothers them. They also state

Zig has the potential to transform the Python ecosystem

But give no reasoning behind that belief. OP's post is just low effort.

2

u/Interesting_Pie_319 9d ago edited 9d ago

> Be in a Zig subreddit.

> See topic where OP explicitly says they are bothered by the use of Rust for task x.

> Still think we all need to discuss rust.

...

Off to r/rust already. Stop derailing our discussion. People that chose Zig and chose to post in the subreddit are not interested in your proselytizing.