What are the use cases for zig? The website says general purpose and tool chain but people who have used it, what it excels at?
Zig 0.11
11–20 of 193 posts
Re: Zig 0.11
#12> Backed by the Zig Software Foundation, the project is financially sustainable. These core team members are paid for their time: (lists five people) That's quite impressive. For comparison, Python had 2 full time paid devs in 2019 (not sure about now).
Re: Zig 0.11
#13What are the use cases for zig? The website says general purpose and tool chain but people who have used it, what it excels at?
I also heard someone say "Zig is to C what Rust is to C++". Which I interpret as, it's another maximum-performance modern language, but smaller than Rust; "smaller" meaning that it has less safety and also abstraction (no encapsulation [1]), but less requirements and complexity.
Particularly with games, many devs want to build a working prototype really fast and then iterate fast. They don't want to deal with the borrow checker especially if their code has a lot of complex lifetime rules (and the borrow checker is a real issue; it caused evanw to switch esbuild to Go [1]). In small scripts with niche uses, safety and architecture are a waste of effort, the script just has to be done and work (and the latter is only partly necessary, because the script may not even be fed enough inputs to cover edge cases). Plus, there are plenty of projects where custom allocation is especially important, and having every type support custom allocation is a big help vs. having to rewrite every type yourself or use `no_std` variants.
[1] https://github.com/ziglang/zig/issues/2974
[2] https://github.com/evanw/esbuild/issues/189#issuecomment-647...
Re: Zig 0.11
#14Anybody here who is using zig on daily basis?
Re: Zig 0.11
#15Re: Zig 0.11
#16Re: Zig 0.11
#17What are the use cases for zig? The website says general purpose and tool chain but people who have used it, what it excels at?
Re: Zig 0.11
#18Anybody here who is using zig on daily basis?
It's nowhere near usable yet, but Zig has been a joy to work with for over a year, and I can definitely see myself using it for a big piece of software.
Re: Zig 0.11
#19What are the use cases for zig? The website says general purpose and tool chain but people who have used it, what it excels at?
My understanding is that Zig has all of the power and modernity of Rust, without the strictness and borrow checker. Unlike Rust, it also has powerful compile-time evaluation and custom allocators, and probably more improvements I'm not familiar with (in Rust you can effectively emulate custom allocators, but you have to rewrite every allocating structure to use them; or you can use nightly, but most third-party libra…
Re: Zig 0.11
#20What are the use cases for zig? The website says general purpose and tool chain but people who have used it, what it excels at?
Being Modula-2 like (in safety), with a syntax that is more appealing to C minded folks, with nice compile time execution support.