Skip to content

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

Go Remove topic Go Clear all 99 posts RSS

2026

ClickHouse

Fixed cadence to seconds: making ClickHouse Cloud autoscaling more reactive

Case study 13 min +130 XP

ClickHouse Cloud's vertical autoscaling recommender moved from a fixed timer loop to a controller-runtime based design, so services that hit memory pressure get a recommendation in seconds instead of waiting for the next scheduled pass.

2025

From hand-tuned Go to self-optimizing code: Building BitsEvolve

Case study 17 min +170 XP

Datadog cut CPU in Go hot paths by removing compiler bounds checks in NormalizeTag (25% faster, 0.75% service CPU) and adding an ASCII fast path to NormalizeTagArbTagValue (90% faster, hundreds of thousands of dollars in projected annual savings), guided by production data showing nearly all inputs were ASCII.

How Go 1.24’s Swiss Tables saved us hundreds of gigabytes

Deep dive 17 min +170 XP

Go 1.24's new map implementation, based on Swiss Tables and extendible hashing, cut roughly 500 MiB of live heap (about 1 GiB of RSS with GOGC=100) from a 3.5-million-entry routing cache map, enough to more than offset a separate Go 1.24 mallocgc memory regression.

2024

2023

2022

Adding the V8 CPU Profiler to v8go

Case study 10 min +100 XP

Exposing V8's CPU profiler through v8go, the Go library for running JavaScript in V8 isolates via Cgo, came down to a choice between lazily fetching each profile node property with its own Cgo call or eagerly building the whole call tree in C++ and rebuilding it in Go from a single pointer.

2021

incident.io

Using context.Context to mock API clients

How-to 7 min +70 XP

Go code that builds external API clients through a single constructor can be mocked by stashing a mock in context.Context: the constructor (ClientFor) returns the context-held client if present, otherwise builds a real slack.Client. incident.io generates a SlackClient interface from the concrete slack-go struct with interfacer, then a gomock mock via mockgen, both driven by go:generate directives.

Updating Illustrations at Scale

Case study 8 min +80 XP

Shopify's Polaris team built @shopify/get-repo-images, an open-source crawler that finds image files and every line of code referencing them across GitHub repositories, then serves a browsable, sortable website so illustrators could update illustrations fragmented across thousands of repos during a design-language refresh.

2017

The quest for software engineering knowledge.

Look:
Layout: