Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How did you learn Zig if it has no book?


Read the docs, do ziglings for a couple of nights to make it stick a bit better.

Then just start making small things like the "ray tracing in a week" or "Writing an interpreter in Go" book but only the parser part. I usually don't even finish those starter projects its just to get a better feel how to do structs, modules etc.


Not sure about OP, but here's how I did it back when I dabbled in it: had prior programming experience, read the docs. =)


besides the docs, there is also all the source code in /usr/lib/zig/std... very useful to learn zigisms and the API of the std library itself...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: