Zig by Example
75 points by dariubs 2 hours ago | 10 comments

code-blooded 51 minutes ago
I just looked this up yesterday so sharing some more up-to-date resources for those interested in Zig:

- Learning Zig by Karl Seguin: https://www.openmymind.net/learning_zig/

- https://zig.guide/

- Free project-based online book Introduction to Zig by Pedro Park: https://pedropark99.github.io/zig-book.

- Ziglings, almost working programs you need to fix: https://codeberg.org/ziglings/exercises

reply
shaftoe444 55 minutes ago

  Examples target Zig 0.14.
Been some significant changes since then, not least to printing and formatting (see writergate).
reply
gren236 50 minutes ago
Also build system and c interop is outdated
reply
pezgrande 26 minutes ago
I like Zig but stopped learning it when I realized that all project based on it requires a specific version of the compiler to build.
reply
noelwelsh 24 minutes ago
Very brief. I'm not sure what this adds over reading the language documentation (which itself is not great). As it's entirely organized by language features it doesn't really talk about any larger scale design decisions, which is where I think language proficiency is really found.
reply
fallingmeat 32 minutes ago
for those new, start with why: https://ziglang.org/learn/why_zig_rust_d_cpp
reply
fallingmeat 52 minutes ago
lots of people into zig this morning apparently!
reply
dominotw 11 minutes ago
I am really looking into zig now because founder seems like a cool dude.
reply
aselimov3 30 minutes ago
Is this much different than ziglings?
reply
miroljub 23 minutes ago
Looking for a resource (MCP, CLI, Skill, ...) that would improve Zig support in LLMs.

Currently, doing something with Zig as a target language would spend many more tokens and produce subpar results.

reply