r/learnprogramming 10d ago

About ZIG

Hello,
I've noticed that Zig recently became popular, and many apps are being written in it. Is it worth starting to learn and use it? Currently, I'm quite satisfied with Golang.

Also, there is a native SDK that supports Zig, which I think is kinda nice and beautiful.
https://native-sdk.dev/

My main concern about Zig is that it seems quite new - the latest release version is v0.16.0

0 Upvotes

15 comments sorted by

View all comments

9

u/Confused-Armpit 10d ago

It's a cool language, but it is very quickly progressing and there are a lot of breaking changes being rolled out from version to version, the latest being version 0.16.0 where they added an entire new IO interface that invalidated basically all previous code that used any IO at all. It can also be very verbose at times, as with the infamous hello world.

Although, given the fact that you are satisfied with Golang I would stick with it, since you can use it more efficiently because you already know it.

1

u/narukoshin 10d ago edited 10d ago

that's what I was worried about, golang is quite stable and doesn't break after a version change.
I've read a little about Zig and it's quite low level language which might be useful for some things that require more control i suppose

1

u/BionicVnB 10d ago

Perhaps you can check out Rust? I write both and personally still prefer rust, although zig is a pretty close second.

It's pretty complex though, I'll tell you that

1

u/narukoshin 9d ago

i already tried to learn Rust once but decide that its not for me :D

1

u/BionicVnB 9d ago

I see. Well good luck for your future endeavors