Go 1.28 Enters Freeze: Stable SIMD API by Default and Automatic GOCACHE TrimmingNote · digest for November 28
Minimalist sculptural scene of the Go 1.28 branch freeze with crystallizing code, SIMD blocks, and build cache cleanup
Note3 sections≈ 4 min

Go 1.28 Enters Freeze: Stable SIMD API by Default and Automatic GOCACHE Trimming

Picture this: you're building a Go project inside a tight VM or CI sandbox with limited disk space, you run tests, and the system starts failing from a full disk. When free space hits zero, even resilient apps like Chrome lose data. In a November commit for Go 1.28, a toolchain developer explained the new patch plainly: cmd/go should act like a "good neighbor" and avoid filling the rest of the disk with cache writes.

That fix slipped in right before the release freeze. Alongside it, Go 1.28 locked in another long-awaited update: SIMD vector operations are no longer a hidden experiment.

Go 1.28 freeze and the RC1 schedule

The golang-dev mailing list announced the start of the Go 1.28 release freeze. The Go team follows a strict six-month cycle: four months of merging new features, followed by a freeze for stabilization. From this point on, only bug and regression fixes go in.

The first release candidate (RC1—a preview build for testing on real projects) is expected around the week of December 10, 2026, with the final release in early 2027. The headline feature list is now locked, though minor thresholds may still be tuned before final release.

Stable SIMD API works out of the box

In short, SIMD (Single Instruction, Multiple Data) refers to CPU instructions that apply one operation to a batch of numbers in a single cycle. Instead of looping one item at a time, the CPU adds 4 or 8 values at once. For parsing, compression, cryptography, and numeric math, that delivers a clear speedup.

Previously, Go gave you two unpleasant choices: write Plan 9 assembly by hand or pull in cgo with call overhead and lost portability. On November 24, 2026, CL 866013 landed, making the simdstable flag part of the default configuration across all architectures.

Now the stable simd and simd/archsimd APIs—along with compiler and runtime support—work out of the box with no flags. The boundary is clear: experimental parts of the SIMD API remain behind the GOEXPERIMENT environment variable (used to toggle transitional compiler modes). If RC1 reveals a regression, rolling back stable SIMD is easy.

# Standard Go 1.28 build: simd and simd/archsimd are already active
go build ./...

# Enable experimental SIMD APIs on top of the stable set
GOEXPERIMENT=simd go build ./...

# Disable the stable SIMD API if you hit a regression on RC1
GOEXPERIMENT=nosimdstable go build ./...

High-speed data processing libraries can now adopt a standard vector API without assembly blocks or cgo, while teams testing RC1 get a safe one-run rollback switch.

Automatic GOCACHE trimming after seven years

The second major change closes golang/go#29561, an issue roughly seven years old. GOCACHE stores build artifacts and test results locally to speed up repeat compiles. The downside was painful: on laptops, CI runners, and containers, the cache folder grew to tens of gigabytes. Teams worked around it with manual go clean -cache, cron jobs, or GOCACHEPROG wrappers like AlekSi/hardcache.

On November 24–25, 2026, Go 1.28 merged a series of patches adding generational cache auto-trimming under GOEXPERIMENT=trimbuildcache (enabled by default).

Internally, cmd/go tracks estimated cache size in size.txt and writes a rotating cache.log. Cleanup triggers based on cache growth (similar to the garbage collector's GOGC=50 and GOGC=25 model) rather than wall-clock time. Leave for the weekend, and your cache won't expire pointlessly. Run a burst of heavy builds, and the trimmer cuts the spike.

All 256 cache subdirectories are cleaned in parallel. The minimum interval between cleanups is 1 hour, and "young" files aren't touched until they are at least 90 minutes old and idle for 60 minutes. Long-running go commands re-touch needed files every 20 minutes so the trimmer doesn't delete them mid-build.

Linux also gets an emergency brake: if the GOCACHE partition drops below 512 MiB or 5% free blocks (whichever is smaller), cmd/go triggers cleanup and skips non-essential object and archive writes. That safety net is Linux-specific, not a hard quota across all OSes.

# Print the local GOCACHE path
go env GOCACHE

# Disable cache auto-trimming for one run while debugging RC1
GOEXPERIMENT=notrimbuildcache go test ./...

# Disable permanently (revert with: go env -u GOEXPERIMENT)
go env -w GOEXPERIMENT=notrimbuildcache

If your project already runs custom go clean -cache scripts or a GOCACHEPROG layer, test them against RC1 and compare behavior with the new built-in trimmer using GOEXPERIMENT=notrimbuildcache.

Want a deep diveVotes help us choose what to break down in detail. This material has 0 votes.
Sources · 4