How To Learn Zig 9 February 2025·3 mins Language/Zig The resources I used to learn Zig in 2025, including the official docs, Ziglings, a couple of YouTube channels and the Ziggit forum.
Advent of Code 2024 Day 1 in Zig 1 December 2024·6 mins Language/Zig Zig/0.13.0 Advent-of-Code/2024 My Zig solution to Advent of Code 2024 Day 1. We read two lists into an ArrayList, sort them and add up the total distance and similarity score.
Zig Optionals 26 November 2024·2 mins Language/Zig Zig/0.13.0 Zig/Optionals Declaring optionals in Zig and the four ways to unwrap them to get to the value, using if, while, orelse and the .? shorthand.
Zig Structs 14 October 2024·5 mins Language/Zig Zig/0.13.0 Zig/Structs Let’s learn Zig structs, how to declare them, create instances, add functions and methods, and use @This() to give them super powers.