Tagged articles

new(expr)

3 articles · Page 1 of 1
Radish, Keep Going!
Radish, Keep Going!
Aug 20, 2026 · Fundamentals

Why Go’s URL.Clone Method Was Rejected for 5 Years Yet Used Internally for 6

The article examines the five‑year rejection and six‑year hidden use of Go’s net/url Clone method, presents benchmark data showing it’s up to seven times faster than Parse‑String, recounts the proposal’s history, the internal cloneURL implementation, and explains when the new API is truly beneficial.

API designGoStandard Library
0 likes · 11 min read
Why Go’s URL.Clone Method Was Rejected for 5 Years Yet Used Internally for 6
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