Ziglings Welcome to Ziglings! This project contains a series of tiny broken programs (and one nasty surprise). By fixing them, you'll learn how to read and write Zig code. Those broken programs need your help! (You'll also save the planet from evil aliens and help some friendly elephants stick together, which is very sweet of you.) This project was initiated by Dave Gauer and is directly inspired by the brilliant and fun rustlings project. Indirect inspiration comes from Ruby Koans and the Little LISPer/Little Schemer series of books. Intended Audience This will probably be difficult if you've never programmed before. But no specific programming experience is required. And in particular, you are not expected to have any prior experience with "systems programming" or a "systems" level language such as C. Each exercise is self-contained and self-explained. However, you're encouraged to also check out these Zig language resources for more detail: Also, the Zig community is incredibly friendly and helpful! Getting Started Install a development build of the Zig compiler. (See the "master" section of the downloads page.) Verify the installation and build number of zig like so: $ zig version 0.15.0-dev.xxxx+xxxxxxxxx Clone this repository with Git: git clone https://codeberg.org/ziglings/exercises.git ziglings cd ziglings Then run zig build and follow the instructions to begin! zig build Note: The output of Ziglings is the unaltered output from the Zig compiler. Part of the purpose of Ziglings is to acclimate you to reading these. A Note About Versions Hint: To check out Ziglings for a stable release of Zig, you can use the appropriate tag. The Zig language is under very active development. In order to be current, Ziglings tracks development builds of the Zig compiler rather than versioned release builds. The last stable release was 0.14.1, but Ziglings needs a dev build with pre-release version "0.15.0" and a build number at least as high as that shown in the example vers...
First seen: 2025-07-07 04:25
Last seen: 2025-07-07 06:26