The long of it: The competition right now in this space as I see it is: C, Rust, C++. Even C++ doesn't fully fit because you have to turn off language features like exceptions to have the guarantees you need for systems programming. So in turn.
C hasn't really changed in 40 years so all it's warts are still intact and has specific pain points that will never be addressed.
C++ conversely has added every language feature plus the kitchen sink over the past 30 years. People say: "Just don't use the features you don't want", but that is unrealistic when you have to interoperate with third party libraries etc. If you have to drop a large portion of the C++ ecosystem to use the subset of the language you like then you've lost a major benefit of choosing C++ in the first place.
Rust, while being more thoughtful about it than C++, has provided a large set of features to work with. It is a much bigger language than C. It's also taken a very opinionated stance on safety with the borrow checker which causes a large learning curve and a lot of mental overhead.
Finally Zig is an attempt to be more safe than C where it can without being as overbearing as Rust. Add just the necessary features that a huge boost to quality of life while not flooding the programmers mental model of the language. I think of it as kind of a C+.
It imposes design constraints that in the end work out for the better. This is why Rust users are so fanatical about it.
I'd also add that there are (small) warts on Rust's current implementation of borrow checking which everyone agrees are minor annoyances, even to experienced users:
https://github.com/rust-lang/rust/issues/43234
Judging by that issue thread, some of these issues are about to be fixed.
I feel the jury is still out on this. It does impose design constraints that remove a certain subclass of errors, whether this correlates to actually causing better designed programs in the sense of readability, maintainability, etc. I'm unsure. I understand the desire for this to be true and I feel that some of the fanaticism around the language is the belief that this is true. Developers like to have the 'one true way' to solve problems. Go's popularity I feel is in part because of this as well but achieved it by having a bare bones language with less options instead of a restrictive compiler. If you take the 'restrictive compiler' argument to its logical conclusion for a program that accepts input x and produces output y there would only be one valid way to code this program. This would be good in the sense that presumably the compiler has proven that your program works and is correct. On the other hand though I have no inclination to believe that this program would be the most understandable, modifiable way to get from x -> y.
What are some of those?
Looked it up, found these links, for anyone interested:
https://blog.regehr.org/archives/490
https://stackoverflow.com/questions/11276259/are-data-races-...
But, it'll still be orders of magnitude larger than the Zig ecosystem is likely to be anytime in the next couple of decades.
I'm not saying one shouldn't use Zig or that one should use C++...I've never been able to grok C++, as it is far too large for the small amount of time I have to spend on learning about systems languages (I can barely read it, much less write it effectively). I just think it's weird to argue for Zig with a point about ecosystem size. Zig will likely never look good on that metric, compared to C or C++.
Personally I cheer for Zig and think that it has the biggest potential to really become a C replacement for me. Other then that I hope that Myrddin [0] will see stable development till 1.0 and beyond. Myrddin has my vote, because it uses QBE [1] compiler backend instead of LLVM. Now that I think about it it would be cool to see Zig on QBE. I just don't think that the current LLVM monoculture is healthy in a long run.
Maybe I'm weird, but I would like to imagine a language like Zig compiled also to DEX for Android and CIL for Windows. Then it could have mostly free platform-native calls. So one could really write truly first-class cross-platform apps.
from https://c9x.me/compile/:
> Text input only. A C library interface is work in progress.
this is a bit of a non-starter
> Some ongoing work on the Myrddin compiler aims to use QBE as backend.
sounds like myrddin does not use QBE as a backend.
----
It is unlikely that Zig will ever use QBE as a backend, optional or otherwise. However, it is quite possible that in some distant future Zig has its own backend that avoids the LLVM dependency entirely. This would be in pursuit of fast compile times.
It's great to hear that a home grown backend is something even considered for future. I know that it's a long way there, but that's life.
Thank you for your efforts with Zig. From all the new systemish languages I find Zig with it's current momentum the most probable to become the C replacement for me.
Previous HackerNews discussion on Zig: https://news.ycombinator.com/item?id=17184407
Also, perhaps not as objective as you'd like but still good resources:
Whirlwind tour of the basic thinking behind Zig: https://andrewkelley.me/post/intro-to-zig.html
A ~50 minute talk on Zig, by its creator: https://www.youtube.com/watch?v=Z4oYSByyRak