Main announcements from the Golang conference: what awaits developers in 2024
At the annual conference on the Go programming language (Golang), held in early 2024, core developers and the community presented a number of significant innovations. The event traditionally brought together thousands of engineers working with microservices, cloud solutions, and high-load systems. Here is an overview of key announcements that will change the approach to development in Go.
New package iter and improved iterators
One of the most anticipated innovations was the experimental support for the iter package. It standardizes working with iterators, allowing for more readable and performant loops. Developers can now easily define custom iterators for their data structures without needing to write boilerplate code. This is especially relevant for data processing and streaming libraries.
Improved Scheduler
In the latest version of the Go scheduler, the mechanism for working with goroutines has been significantly reworked. Key improvements include:
- Smart goroutine redistribution — reduced latency when switching context on multi-core systems.
- Optimization for CPU-bound tasks — the scheduler now adapts better to processor-intensive workloads.
- Improved handling of network calls — reduced memory consumption when waiting for I/O operations.
These changes promise a performance increase of up to 15% in typical server applications.
Code generation based on Generic types
Developers introduced the gen utility, which automatically generates specialized implementations of generics. Previously, using generic types could lead to binary bloat, but now gen analyzes usage and creates only the necessary instantiations. This makes generics in Go even more practical for high-performance libraries and frameworks.
New tools for microservices
The Go community announced several tools that simplify microservice architecture development:
- Next-generation Mesh proxy — a Go-based project providing transparent traffic encryption and load balancing with minimal overhead.
- OpenTelemetry SDK for Go — an updated version with automatic tracing and support for new backends.
- Standard CLI for gRPC — a tool for testing and debugging gRPC services without needing to write additional code.
Security and compatibility
During the conference, it was emphasized that Go continues to strengthen security by default. The next release will prohibit the use of deprecated cryptographic algorithms in the standard library. Also presented was a tool for automatic dependency auditing, built into go mod, which warns about vulnerabilities at the build stage.
The conference confirmed that Go remains one of the most dynamically developing programming languages. The new features not only improve performance but also make development more convenient and secure. Stay tuned for updates on PythonLib — we will publish detailed guides on each of the presented features.