Skip to content

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

Zig Remove topic Zig Clear all 17 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

2024

2023

2022

The quest for software engineering knowledge.

Look:
Layout: