Tagged articles

Zero Allocation

2 articles · Page 1 of 1
TonyBai
TonyBai
Jul 4, 2026 · Backend Development

Why ‘Easy’ Isn’t ‘Simple’: The Architecture Philosophy Behind Gin’s 88k‑Star Success

Manu Martínez‑Almeida explains how Gin’s commitment to ‘Simple over Easy’—rejecting reflection‑based injection, using a minimal routing language with a radix tree, zero‑allocation context pooling, and strict backward‑compatible API design—produced a high‑performance, maintainable Go web framework that now powers hundreds of thousands of projects.

GinWeb FrameworkZero Allocation
0 likes · 11 min read
Why ‘Easy’ Isn’t ‘Simple’: The Architecture Philosophy Behind Gin’s 88k‑Star Success
Tech Musings
Tech Musings
Feb 17, 2026 · Backend Development

Why Go’s Empty Struct Takes Zero Bytes and How to Leverage It

This article explains the zero‑byte nature of Go’s empty struct, how the runtime treats zero‑size allocations, why multiple instances share the same address, and demonstrates practical patterns such as set maps, signal channels, and worker coordination that improve memory efficiency and performance.

Zero Allocationchannel signalingempty struct
0 likes · 11 min read
Why Go’s Empty Struct Takes Zero Bytes and How to Leverage It