---
title: "Zig"
description: "Zig language"
url: "https://swe.quest/tags/zig?per=48"
---

# Zig

Topic in Languages: Zig language

By difficulty: [Easy](https://swe.quest/tags/zig.md?difficulty=easy) · [Medium](https://swe.quest/tags/zig.md?difficulty=medium) · [Hard](https://swe.quest/tags/zig.md?difficulty=hard)

Posts 1–26 of 26, page 1 of 1, newest first.

## 2026-07-08

- [Rewriting Bun in Rust](https://swe.quest/articles/rewriting-bun-in-rust-9aa67adf0dcbde60.md): Bun · 2026-07-08 · Medium · 29 min read · Rust, Zig, AI for coding, Refactoring & migrations, Memory safety
  Bun, a 535k-line Zig JavaScript runtime, was mechanically ported to Rust over 11 days using about 50 continuously running Claude Code workflows.

## 2026-04-14

- [Automation That Screams Joy](https://swe.quest/articles/automation-that-screams-joy-12ca888c10f15b42.md): TigerBeetle · 2026-04-14 · Medium · 3 min read · Developer productivity, Deployment, Testing, Zig
  Custom automation that doesn't fit CI, such as TigerBeetle's fleet running the VOPR deterministic simulation fuzzer, works best when it lives in the main repository, is written in the project's own language, and auto-deploys from the tip of main.

## 2026-02-16

- [Index, Count, Offset, Size](https://swe.quest/articles/index-count-offset-size-8c9106813a691acc.md): TigerBeetle · 2026-02-16 · Medium · 3 min read · Zig, Debugging, Type systems
  TigerBeetle uses a strict naming convention to catch off-by-one and index-space bugs that types don't easily prevent: \`count\` is a number of items, \`index\` points at an item (invariant \`index \< count\`), \`size\` is a byte count (\`size = @sizeOf(T) \* count\`), and \`offset\` is the bytewise counterpart of index. \`length\` is banned because it is ambiguous, for example Rust's byte-size \`str::len\` versus Python's code-point \`len\`.

## 2025-11-28

- [A Tale Of Four Fuzzers](https://swe.quest/articles/a-tale-of-four-fuzzers-88cabf77780814b8.md): TigerBeetle · 2025-11-28 · Hard · 32 min read · Testing, Replication, Distributed systems, Formal methods, Zig
  TigerBeetle's Adaptive Replication Routing (ARR) puts the primary in the middle of a replication ring so no single dropped message is critical.

## 2025-10-25

- [Synadia and TigerBeetle Pledge $512,000 to the Zig Software Foundation](https://swe.quest/articles/synadia-and-tigerbeetle-pledge-512-000-to-the-zig-software-foundation-124e30142ae18e3c.md): TigerBeetle · 2025-10-25 · Easy · 8 min read · Zig, Language design, Memory safety, Open source
  Synadia and TigerBeetle are jointly donating $512,000 to the Zig Software Foundation over two years, with no strings attached.

## 2025-10-21

- [Tracking Time Without Clock](https://swe.quest/articles/tracking-time-without-clock-7964e27d177f0db1.md): TigerBeetle · 2025-10-21 · Medium · 2 min read · Time & clocks, Testing, Zig, System design
  Instead of threading a full virtualized Clock interface through every component, two lighter patterns often suffice for handling time in reliable systems.

## 2025-09-10

- [Behind The Scenes of Bun Install](https://swe.quest/articles/behind-the-scenes-of-bun-install-9bbc4e6531f354d4.md): Bun · 2025-09-10 · Medium · 32 min read · JavaScript, Performance engineering, Build systems, Zig, Operating systems
  Bun's package manager installs dependencies roughly 7× faster than npm, 4× faster than pnpm and 17× faster than yarn because it treats installation as a systems programming problem: the bottleneck on modern NVMe hardware is system call and thread-coordination overhead, not I/O wait. strace benchmarks show bun making ~166k syscalls versus ~1M for npm and ~4M for yarn, with almost no futex contention, because its Zig code calls the kernel directly instead of going through Node's libuv thread pool.

## 2025-04-23

- [Swarm Testing Data Structures](https://swe.quest/articles/swarm-testing-data-structures-dcd11950dc8316b7.md): TigerBeetle · 2025-04-23 · Medium · 5 min read · Testing, Zig, Data structures
  Zig's comptime reflection (std.meta.DeclEnum) can turn a data structure's public API into an enum that drives a model-based property test, so adding a new public method triggers a compile error from the non-exhaustive switch until the test covers it.

## 2025-02-27

- [Why We Designed TigerBeetle's Docs from Scratch](https://swe.quest/articles/why-we-designed-tigerbeetle-s-docs-from-scratch-671fe3cbec15ed75.md): TigerBeetle · 2025-02-27 · Medium · 14 min read · Zig, Build systems, Documentation, Supply chain security
  TigerBeetle replaced its Docusaurus docs site with a custom static site generator built on Zig's build system and Pandoc.

## 2025-02-13

- [A Descent Into the Vörtex](https://swe.quest/articles/a-descent-into-the-vortex-6dcd52020263ac13.md): TigerBeetle · 2025-02-13 · Medium · 3 min read · Testing, Chaos engineering, Distributed databases, Zig
  TigerBeetle has added Vortex, a non-deterministic, generative full-system test harness that complements its Deterministic Simulation Testing by exercising real production binaries and client libraries from the outside in.

## 2025-01-27

- [Bun v1.2.1](https://swe.quest/articles/bun-v1-2-1-aab3e8d9e0004536.md): Bun · 2025-01-27 · Medium · 7 min read · JavaScript, Runtimes & VMs, Memory management, Zig
  Bun v1.2.1 fixes 32 bugs and adds S3 storage class support, X25519 key generation in crypto.generateKeyPair, Node's --zero-fill-buffers flag, indented inline snapshots in bun test, and a bunfig option to disable minification for HTML imports.

## 2024-12-19

- [Enum of Arrays](https://swe.quest/articles/enum-of-arrays-39cf1c2fe738e424.md): TigerBeetle · 2024-12-19 · Medium · 3 min read · Performance engineering, Data structures, Zig, Hardware
  Struct-of-Arrays has a dual for tagged unions: an Enum of Arrays, where one tag covers a whole batch of homogeneous payloads instead of each element carrying its own tag.

## 2024-12-17

- [Bun's new text-based lockfile](https://swe.quest/articles/bun-s-new-text-based-lockfile-e3afd1bb6d635a28.md): Bun · 2024-12-17 · Medium · 5 min read · Build systems, JavaScript, Performance engineering, Zig
  Bun v1.1.39 introduces bun.lock, a JSONC text lockfile enabled via \`bun install --save-text-lockfile\`, replacing the hard-to-review binary bun.lockb and planned as the default in Bun v1.2.

## 2024-10-24

- [Bun v1.1.33](https://swe.quest/articles/bun-v1-1-33-09d0bd1fe2378d8c.md): Bun · 2024-10-24 · Medium · 2 min read · JavaScript, Build systems, Developer tools, Zig
  Bun v1.1.33 fixes 8 bugs, mostly in \`bun install\`. The default maximum of simultaneous network connections drops from 256 to 64 to avoid install slowdowns, \`optional = false\` in bunfig.toml now actually skips optional dependencies, and failed optional-dependency postinstall scripts are ignored and their half-installed directories removed.

## 2024-06-25

- [Bun v1.1.17](https://swe.quest/articles/bun-v1-1-17-36691cca78554f0f.md): Bun · 2024-06-25 · Medium · 3 min read · JavaScript, Runtimes & VMs, Performance engineering, Zig
  Bun v1.1.17 fixes four bugs and makes two small macOS performance improvements.

## 2024-05-14

- [Snapshot Testing For the Masses](https://swe.quest/articles/snapshot-testing-for-the-masses-1d23ec44f416430c.md): TigerBeetle · 2024-05-14 · Medium · 8 min read · Testing, Zig, Developer tools
  A minimal snapshot testing library can be built without macros, external tools or editor integration: the core primitive is a self-updating string literal that records its source file and line (via Zig's @src()) and rewrites itself in place on mismatch.

## 2024-04-26

- [bun.report is Bun's new crash reporter](https://swe.quest/articles/bun-report-is-bun-s-new-crash-reporter-19b1535d615212f4.md): Bun · 2024-04-26 · Medium · 8 min read · Debugging, Zig, Developer tools, Privacy
  Bun v1.1.5 replaces unsymbolicated crash output with a compact ~150-byte bun.report URL that encodes platform, subcommand, commit SHA, a 64-bit feature-usage bitfield, crash type and message, and ASLR-adjusted stack addresses as base64 VLQs, with no personal information.

## 2023-12-27

- [It Takes Two to Contract](https://swe.quest/articles/it-takes-two-to-contract-371fa399d9d81617.md): TigerBeetle · 2023-12-27 · Medium · 6 min read · Zig, Testing, Consensus, Distributed systems, Language design
  Design by contract mostly reduces to types and assertions, but a real contract needs two parties: the same condition asserted at both the definition site and the call site.

## 2023-07-26

- [Copy Hunting](https://swe.quest/articles/copy-hunting-7c2f19f97f1f7edc.md): TigerBeetle · 2023-07-26 · Medium · 11 min read · Zig, Compilers, Performance engineering, Debugging, Developer tools
  Reading Zig's emitted LLVM IR as plain text and grepping it is a practical substitute for staring at disassembly when chasing implicit memcopies and binary bloat.

## 2023-07-11

- [We Put a Distributed Database In the Browser – And Made a Game of It!](https://swe.quest/articles/we-put-a-distributed-database-in-the-browser-and-made-a-game-of-it-0b24aa4c3e59c84b.md): TigerBeetle · 2023-07-11 · Easy · 5 min read · Formal methods, Consensus, Testing, WebAssembly, Zig
  TigerBeetle's deterministic simulator, the VOPR, is compiled to WebAssembly via Zig and wrapped in a playable browser game that runs real TigerBeetle replicas across three levels.

## 2023-07-04

- [Bun v0.6.13](https://swe.quest/articles/bun-v0-6-13-5f1989130c08b5c9.md): Bun · 2023-07-04 · Medium · 5 min read · JavaScript, Runtimes & VMs, Testing, Zig
  Bun v0.6.13 adds Date mocking in bun test via setSystemTime, which affects Date.now(), new Date() and Intl.DateTimeFormat without mutating the Date object as Jest does.

## 2023-03-28

- [Random Fuzzy Thoughts](https://swe.quest/articles/random-fuzzy-thoughts-74b3f2f1b21a2499.md): TigerBeetle · 2023-03-28 · Medium · 9 min read · Testing, Formal methods, Distributed systems, Zig
  Treating a fuzzer's byte slice as a finite PRNG unifies coverage-guided fuzzing with structured property-based testing: the entropy length measures input complexity, gives test-case minimization almost for free, and tells interactive simulations when to stop injecting faults.

## 2023-02-21

- [Writing High-Performance Clients for Tigerbeetle](https://swe.quest/articles/writing-high-performance-clients-for-tigerbeetle-359130491cf9dbd8.md): TigerBeetle · 2023-02-21 · Medium · 6 min read · Zig, API design, Performance engineering, Java & JVM, Memory management
  TigerBeetle builds every language client as a thin wrapper over a single Zig client library, tb\_client, exposed through FFI.

## 2022-11-23

- [A Programmer-Friendly I/O Abstraction Over io\_uring and kqueue](https://swe.quest/articles/a-programmer-friendly-i-o-abstraction-over-io-uring-and-kqueue-bad0e5e3b22be88a.md): TigerBeetle · 2022-11-23 · Hard · 9 min read · Linux, Concurrency, Zig, Performance engineering, Networking
  TigerBeetle's I/O layer wraps io\_uring on Linux and kqueue on macOS behind a single callback-based, completion-oriented API, so business logic can schedule reads and writes anywhere instead of in one giant switch loop.

## 2022-10-12

- [A Database Without Dynamic Memory Allocation](https://swe.quest/articles/a-database-without-dynamic-memory-allocation-4be7684fa723cb5d.md): TigerBeetle · 2022-10-12 · Medium · 6 min read · Memory management, Zig, Databases, Storage engines, Testing
  TigerBeetle allocates all memory once at startup and never again, using fixed limits for connections, in-flight messages per client, replicas, message size and queries per message so that total memory is a simple compile-time sum.

## 2022-08-18

- [Bun v0.1.9](https://swe.quest/articles/bun-v0-1-9-4ecfe167e5b29929.md): Bun · 2022-08-18 · Medium · 3 min read · Runtimes & VMs, JavaScript, Zig, Performance engineering, Compilers
  Bun v0.1.9 starts using JavaScriptCore's DOMJIT API to JIT-optimize native functions, making \`ptr()\` in \`bun:ffi\` 6-10x faster and \`TextEncoder.encodeInto\` 1.5-5x faster.

Same list as RSS: [https://swe.quest/feed.xml?tag=zig](https://swe.quest/feed.xml?tag=zig). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
