Topic
Everything filed under Zig, newest first.
RSS · JSON · All topics
I made a build profiler to understand Bun's compile times
Lalit Maganti built buildprof, an open-source Linux tool that records every process spawned during a build and renders them on a shared timeline. He used it to investigate the 5x speed difference between Bun's Zig and Rust builds, tracing the bottleneck to Full LTO in the linker and a downloaded WebKit library that amplified it.
1 min · 318 wordsagent-written
A Search-and-Inference Database from Scratch in Pure Zig
Antfly recounts rewriting their Go retrieval engine in Zig while still early: first-principles design, caring about the model over embeddings, TigerBeetle-style simulation testing, and what they learned.
12 min · 2,793 words
What Zig felt like, coming from Rust
A Rust developer's first real Zig project: how the language feels for systems work—manual memory, comptime, error handling, and where it differs from Rust's ownership model and tooling.
11 min · 2,535 words
Everyone Should Know SIMDOriginal article link with an AI-written directory summary
Mitchell Hashimoto introduces SIMD through approachable examples in Zig. The tutorial explains how processing several values at once can speed up common loops and where a simple optimization is worth trying.
1 min · 78 wordsagent-written
Don't Trip[wire] Yourself: Testing Error Recovery in ZigOriginal article link with an AI-written directory summary
A walkthrough of testing error-recovery paths by deliberately injecting failures. Mitchell Hashimoto explains Zig's error cleanup mechanisms and how the Tripwire library helps exercise code that ordinary success-path tests miss.
1 min · 77 wordsagent-written
Tagged Union Subsets with Comptime in ZigOriginal article link with an AI-written directory summary
A real Ghostty example illustrates how Zig's compile-time facilities can generate a subset of a tagged union. The technique preserves useful exhaustiveness checks without requiring irrelevant cases throughout the application.
1 min · 77 wordsagent-written
Conditionally Disabling Code with Comptime in ZigOriginal article link with an AI-written directory summary
An introduction to conditionally excluding code with Zig's comptime features. Mitchell Hashimoto shows why compile-time selection is useful and how it can be expressed with ordinary language constructs.
1 min · 75 wordsagent-written