Go 1.26 introduces significant language and runtime improvements. Key features include `new(expr)` for creating pointers from expressions, type-safe error checking with `errors.AsType`, the Green Tea garbage collector for better memory efficiency on multi-core systems, faster cgo/syscalls and memory allocation, experimental

39m read timeFrom antonz.org
Post cover image
Table of contents
# new(expr)# Type-safe error checking# Green Tea garbage collector# Faster cgo and syscalls# Faster memory allocation# Vectorized operations (experimental)# Secret mode (experimental)# Reader-less cryptography# Goroutine leak profile (experimental)# Goroutine metrics# Reflective iterators# Peek into the buffer# Process handle# Signal as cause# Compare IP subnets# Context-aware dialing# Fake example.com# Optimized fmt.Errorf# Optimized io.ReadAll# Multiple log handlers# Test artifacts# Modernized go fix# Final thoughts
3 Comments

Sort: