Tagged articles

vtprotobuf

2 articles · Page 1 of 1
Golang Shines
Golang Shines
Jul 1, 2026 · Fundamentals

Go Compile‑Time Constant Folding: An Investigation

The article examines how Go’s compiler handles constant folding, using the vtprotobuf SizeVT function to illustrate compile‑time size calculations, and explains that inlining feasibility and compile‑time known arguments are key factors that determine whether expressions are folded into constants.

Gocompile-time evaluationcompiler
0 likes · 5 min read
Go Compile‑Time Constant Folding: An Investigation
Golang Shines
Golang Shines
Jun 29, 2026 · Backend Development

Why Assigning Array Elements from the End First Speeds Up Go Code

The article explains how the vtprotobuf library writes to a byte slice from the tail toward the head, eliminating bounds‑check instructions, and demonstrates this effect with simple functions, compiler diagnostics, and references to the Go compiler source.

GoPerformancebounds check elimination
0 likes · 5 min read
Why Assigning Array Elements from the End First Speeds Up Go Code