Let's talk about Zig

Blackthorn@programming.dev to Programming@programming.dev – 102 points –

I have been reading about this new language for a while. It's a C competitor, very slim language with very interesting choices, like supporting cross platform compilation out of the box, supports compiling C/C++ code (and can be used as a drop in replacement for C) to the point in can be used as replacement of (c)make and executables are very small.

But, like all languages, adoption is what makes the difference. And we don't know how it goes.

Is anyone actually using Zig right now? Any thoughts?

40

You are viewing a single comment

I’ve heard of it for sure, and have seen some examples. I’ve never seen a real good use case for my personal or professional projects that I couldn’t fulfill with Rust or Dart in the same capacity or better. Then again, I don’t work with C projects basically at all, so other people’s mileage may vary.

I also prefer Rust, but I saw a pretty good argument for Zig (and actually a pretty big hole/problem with Rust) when it comes to unsafe stuff. The title of this is clickbait but the content is really good: https://www.youtube.com/watch?v=CbQVR4v5PZw

1 more...
1 more...