Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Debugging Remove topic Debugging Clear all 3 posts RSS

2026

TigerBeetle

Index, Count, Offset, Size

Opinion 3 min +30 XP

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

TigerBeetle

Fuzzer Blind Spots (Meet Jepsen!)

Case study 7 min +70 XP

Jepsen found a missing-results bug in TigerBeetle's query engine despite four fuzzers covering it, because the VOPR and LSM query fuzzer pre-registered disjoint queries whose matching objects were always consecutive in every secondary index, so zig-zag merge join probing was never exercised.

2023

The quest for software engineering knowledge.

Look:
Layout: