Tagged articles

new(expr)

2 articles · Page 1 of 1
TonyBai
TonyBai
Feb 14, 2026 · Backend Development

What’s New in Go 1.26? From the Long‑Awaited new(expr) to Faster GC and Smarter Toolchain

Go 1.26 introduces a suite of engineering‑focused enhancements—including the native new(expr) pointer initializer, relaxed generic self‑reference constraints, the Green Tea garbage collector with 10‑40% lower CPU overhead, a 30% Cgo speed‑up, stack‑allocated slice backing stores, a modernized go fix engine, version‑aware go mod init, and several standard‑library upgrades such as testing.ArtifactDir, slog.MultiHandler, and errors.AsType—making the release a practical win for developers and ecosystem stability.

Cgo performanceGo 1.26Green Tea GC
0 likes · 17 min read
What’s New in Go 1.26? From the Long‑Awaited new(expr) to Faster GC and Smarter Toolchain
Radish, Keep Going!
Radish, Keep Going!
Oct 6, 2025 · Fundamentals

How Go 1.26’s new(expr) Simplifies Pointer Creation

The Go 1.26 release extends the built‑in new function to accept expressions, allowing direct allocation of pointers with initial values, which reduces boilerplate, improves readability, and introduces a more consistent syntax for developers.

Go 1.26language featurenew(expr)
0 likes · 6 min read
How Go 1.26’s new(expr) Simplifies Pointer Creation