Zig 0.10.0 Release Notes
ziglang.org
ziglang.org
and I type there something like `"someMethod(" lang:zig`, then I open several results in a new tab and quickly skim through that and close the ones which are not interesting, and that's pretty much it
https://old.reddit.com/r/Zig/comments/ygiir2/release_party_a...
I've been learning Zig as a side project for a couple months now. It's been kind of hard since I don't have a lot of experience with low-level coding and Zig is a bit less user-friendly than Swift, but the folks in the IRC channel (and yes, its primary real-time chat community is an IRC channel, not some Slack/Discord nonsense) have always been super friendly with this newbie, right up to the project lead himself. I really suggest you give Zig a look if you want to have some fun learning a new language.
Any recommendations for resources/books to learn knowledge and programming patterns applicable to Zig?(memory management best practices, low level programming, et cetera)
As a counterpoint, I have only interacted with the Discord communities and they've been great for all my dumb questions! I barely go a minute before getting a response when I ask something.
Whether you prefer IRC or Discord, it sounds like you're well supported by the chat communities.
Rust is a whole another conversation. You can pretty much do whatever you can do in Zig with Rust, and Rust has the advantage of hardcore memory safety using the borrow checker. It is also a very nice language to use, but it is complicated.
You see, Zig is sort of the C to Rust's C++. I don't mean this in the sense that Zig can't replace C++ (it can) or Rust can't replace C (it can), but it is obvious that C is a simpler language to learn than C++.
So yeah, you kind of don't need Zig when you have Rust and willing to use it for everything, but if you don't want to deal with a complicated language and the borrow checker, Zig is the language for you. It is basically C with some footguns removed + some features added (tagged unions, proper error handling, etc).
Ah, and Rust has long compile times. It is being worked on since 2013 [0] or earlier. Zig is serious about their compile times as you can read about the self-hosted backends for debug compilation speed in the release notes.
I don't know if Rust has any production-ready alternative backends that are fast. People always say LLVM is the reason Rust is slow to compile and you can use cargo check to confirm that, but it is obvious that is more of a priority for Zig team when compared to Rust team.
I sort of don't care about compile times of Rust at this point since the guarentees Rust make is more important to me than the compile times, but that may not be the case for everyone. I'll also use Zig when it is stable enough for my taste for non-safety critical stuff.