Go at 17: Faster JSON, Leak Profiling and More
Brief
The Go team marked the language’s 17th anniversary by reviewing two releases focused on safer APIs, performance, production diagnostics and developer tooling.
Language, library and performance
- Go 1.27 made encoding/json/v2 and encoding/json/jsontext generally available. The new JSON API offers up to 10× faster unmarshaling; existing encoding/json callers also get faster unmarshaling when they upgrade.
- A generally available goroutine leak profiler helps identify unreachable goroutines in production; Go 1.27’s HTTP transport can also drain small unread response bodies, enabling up to 5× faster sequential HTTP/1 requests.
- Go 1.26 made the Green Tea garbage collector the default, reducing GC overhead by 10–40% in real-world workloads. Go 1.27’s specialized small-object allocation paths make those allocations up to 30% faster.
Security and developer tools
- Go 1.26 and 1.27 expanded post-quantum cryptography support and added security hardening across cryptographic APIs and the runtime.
- After notification of weak certificate keys, the Go Security team shipped Go 1.27.3 and 1.26.10 in an urgent release within seven and a half hours, before the keys were publicly disclosed the next morning.
- The Go team highlighted go fix modernizers, gopls improvements and the pkg.go.dev API as tools for updating code and helping developers and coding agents query package and vulnerability data.
Generated by AI from the original article. Check the source for full details.