Go 1.26 Release Notes
3 months ago
- #Release Notes
- #Go 1.26
- #Programming
- Go 1.26 introduces new language features, including allowing the built-in `new` function to take an expression as an operand.
- Generic types can now refer to themselves in their type parameter lists, enabling more powerful type constraints.
- The `go fix` command has been revamped to modernize Go codebases, incorporating fixes from the Go analysis framework.
- A new garbage collector, 'Green Tea', is enabled by default, offering performance improvements and reduced overhead.
- Cgo calls now have reduced runtime overhead, and heap base address randomization is introduced for security.
- An experimental goroutine leak profile is available to detect permanently blocked goroutines.
- The compiler optimizes slice allocations on the stack, improving performance.
- New packages include `crypto/hpke` for Hybrid Public Key Encryption and experimental `simd/archsimd` for SIMD operations.
- Significant library updates include changes to cryptographic functions, TLS enhancements, and new methods in various packages.
- Port updates include the last support for macOS 12 Monterey and changes to PowerPC and RISC-V ports.