Skip to content

jkingston/zig_guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zig: Zero to Hero — Workspace Scaffold

This repository hosts the in-progress Zig: Zero to Hero guide focused on modern Zig idioms and best practices for Zig 0.15.2.

This is a comprehensive guide to Zig development teaching current best practices. All code examples and runnable programs target Zig 0.15.2. For users on Zig 0.14.1, migration guidance is provided in Appendix A & B. See versioning.md for version support policy.

The guide includes 14 chapters covering Quick Start through Logging/Diagnostics, plus 3 appendices (0.14.1 Quick Reference, Migration Guide, Reference Material).

Quick Start

# Build all examples
zig build

# Build the book
bash scripts/prepare-mdbook.sh
mdbook build

# Serve locally
mdbook serve

See CONTRIBUTING.md for detailed development instructions.

Project Status

📖 See todo.md for detailed task tracking and progress.

Current State (November 11, 2025)

✅ Beta Release Ready! 🎉

All critical priority items complete:

  • ✅ 15 chapters (Quick Start through Appendices) - ~22,000+ lines
  • ✅ Introduction with Quick Start guide
  • ✅ 100 Zig example files (4,430+ lines of code)
  • ✅ 97+ examples, 100% compilation success on Zig 0.15.2
  • ✅ Complete CI/CD pipeline (validation + GitHub Pages)
  • ✅ Comprehensive proofreading (433 footnotes, 74 cross-refs validated)
  • ✅ mdBook integration with automated deployment

Next: 1.0 Release

See todo.md for the full roadmap. High priority items:

  • Additional hands-on projects
  • Technical review from Zig community
  • Visual diagrams for key concepts
  • Exercise sections with solutions
  • Final copyediting pass

🎯 What Makes This Guide Unique

This is the only comprehensive production-focused Zig resource for experienced developers:

  • Zero to Hero Coverage: From Quick Start guide through advanced topics
  • Real-World Focus: Examples from major Zig projects (Bun, TigerBeetle, Ghostty, Mach, ZLS)
  • Production Ready: 100% validated code examples on Zig 0.15.2, comprehensive CI/CD
  • Modern & Focused: Teaches current best practices (Zig 0.15.2) with migration support
  • Complete: 14 chapters + 3 appendices, 22,000+ lines of content, 100 Zig example files
  • Professional: Testing, benchmarking, CI/CD, project layout, interoperability

Documentation

About

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •