Go 1.24 Adds Generic Type Alias Support
Monday, 17 February 2025

Go 1.24 has been released. This version adds support for generic type aliases, and is also faster.

Since its initial development by Google, Go has matured as an open source project maintained by a team at Google with input from many contributors from the open source community. Go was designed as a systems programming language, and has also been used in high profile commercial successes such as Docker.

goicon2

The new version comes with support for generic type aliases. A type alias may be parameterized like a defined type, and provides a way around the previous restriction that while a type alias may refer to a generic type, the type alias couldn't have its own parameters. This restriction was imposed because it is unclear how to handle a type alias with type parameters that have constraints.

Several performance improvements in the runtime have decreased CPU overhead by an average of two to three percent. One way this has been achieves is through a new built-in map implementation based on Swiss Tables. Swiss Tables is a family of hash tables from Google's open-source C++ library Abseil that were developed as a faster, smaller replacement for the std::unordered_map from the C++ standard library.

Other ways the performance has been improved include more efficient memory allocation of small objects, and a new runtime-internal mutex implementation.

This release also has some tool improvements, including a
a mechanism for tracking tool dependencies for a module. There's also improved WebAssembly support with a new
directive that Go programs can use to export functions to the WebAssembly host, and the ability to build a Go program as a WASI reactor/library.

Go 1.24  is available for download now.

goicon2

More Information

Go Download Page

GoLang Org Webpage

Related Articles

Go 1.23 Improves Tools

Go 1.21 Adds New Built-Ins 

Golang Back In TIOBE Top 10 

Why Is Go Good?

Go Survey 2021

Go 1.18 Released With Generics And Fuzzing

Insights Into Where Go Is Going

A Programmer's Guide To Go

A Programmer's Guide To Go Part 2 - Objects And Interfaces

A Programmer's Guide To Go Part 3 - Goroutines And Concurrency

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Vesuvius Challenge 2024 Concludes
02/02/2025

Two submissions, from Hendrik Schilling and Sean Johnson and from Paul Henderson for the Vesuvius Challenge First Augmented Segmentation Prize have each been awarded $30,000. The 2024 G [ ... ]



Get Ready For Google Summer Of Code 2025
24/01/2025

2025 will be the  21st consecutive year of Google Summer of Code and the 4th year in which it will accept anybody aged 18 years and over who is a newcomer to open source software. As us [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info