You've spent years writing code in languages that handle memory for you. Garbage collectors, runtimes, and frameworks have abstracted away the details of what's actually happening on the machine. You've built solid systems this way—but you've also hit walls where you needed more control, more performance, or just a clearer understanding of what your code is doing.
Then you start learning Zig.
The syntax isn't the problem. You can learn new syntax in a weekend. The real challenge is that Zig doesn't hide anything. There's no garbage collector. No hidden allocations. No implicit behavior. Every allocation is explicit, every error must be handled, and what you write is what runs. If you're coming from Python, JavaScript, or Java, this feels unfamiliar. If you're coming from C, it feels cleaner. If you're coming from Rust, it feels simpler.
This book bridges that gap.
This is not a reference manual. It's a practical guide to thinking in Zig—how to manage memory confidently with allocators, how to use compile-time evaluation for zero-cost abstractions, and how to structure programs that are fast because you understand exactly what they're doing.
Through real projects—a cryptographic CLI, an HTTP server, custom memory allocators, a binary format parser, and a compile-time serialization framework—you'll build the intuition that makes Zig's explicitness feel like a feature, not a burden.
Luís Soares nasceu em 1972 e sempre viveu em Lisboa, apesar do fascínio pela viagem. Não se lembra de não gostar de música, cinema e livros. Outros gostos e desgostos foram sendo adquiridos. Por só precisar de uma caneta ou lápis, começou a escrever muito cedo. A sua primeira história era policial e passava-se em Londres. A segunda era interminável e passava-se em Lisboa e outros lugares imaginados. Em 2003 editou o primeiro de quatro romances pela Oficina do Livro, "Aquariofilia". A este e na mesma editora sucederam-se "Os Adultos" (2005), "Em Silêncio, Amor" (2007) e "Regresso a Barcelona" (2009). Escreve e lê todos os dias e gostava de só fazer isso, mas não pode. Paralelamente, sempre se interessou por tecnologias, particularmente as digitais e os ecossistemas que criam para uma expressão criativa e política mais desintermediada. Trabalhou no CITI, no Ministério da Cultura (quando ainda havia), na Associação Terràvista, como freelancer, na TV Cabo, PT Conteúdos, Beactive e no portal SAPO. Faz parte da equipa que gere o projeto MEO Kanal. Escreveu também sobre as questões da era digital das comunicações, textos com títulos como "O Utilizador é o Conteúdo", "Um Ponto Zero", "O Lugar de Hamlet", "A Inquietude Dinâmica" ou "Estranhos Anjos". Recentemente contribuiu também para o livro "Ideias Perigosas para Portugal" organizado por Gustavo Cardoso e João Caraça com o texto "Transformar as Escolas em Media".