- /
- Posts/
Posts
2026
Zig and HTTP
·6 mins
Making HTTP requests (GET, PUT, POST, DELETE) in Zig and why a wrapper is useful here.
Zig and JSON
·4 mins
Working with JSON in Zig, the std.json.Parsed wrapper, memory management, and what breaks when your JSON doesn’t match your struct.
Reading from files using buffers in Zig
·2 mins
Learn how to read from a file in zig using a buffer for temporary store of bytes.
Writing to files using buffers in Zig
·4 mins
Learn how to write to a file in zig using a buffer for temporary store of bytes.
Zig Juice Has Arrived in 0.16.0
·3 mins
Zig’s new Init and Minimal structs for accessing command line arguments and environment variables in main.
2025
Error Handling in Zig
·3 mins
Zig error handling mechanisms using try, catch, switch, panic, unreachable, and C-style return codes.
To Owned
·2 mins
Implementing a toOwned() method in Zig to copy data from managed buffers to heap-allocated memory.
Sliding Window
Implementing a sliding window algorithm in Zig.
Stack Data Structure using Zig
How I built a generic stack data structure in Zig using comptime.
2024
Advent of Code: Day 1
Solving Advent of Code 2024 Day 1 in Zig.
Zig Optionals
·2 mins
Learning how to declare and unwrap zig optionals to access the underlying values using if, while, orelse and .? notation.
Zig Structs
·5 mins
Let’s learn zig structs. How to declare them, add methods, instantiate them, and @This() super powers.