Google Go 1.8 steps up compilation, garbage collection

(Image: Go Lang)



Read More:

20 February 2017 | 0

Go 1.8, the latest version of Google’s popular open source language, is now available.

The newly released version 1.8 focuses on compilation, garbage collection, and HTTP support. “The compiler back end introduced in Go 1.7 [last August] for 64-bit x86 is now used on all architectures, and those architectures should see significant performance improvements,” said Chris Broadfoot on behalf of the Go team. “For instance, the CPU time required by our benchmark programs was reduced by 20-30% on 32-bit ARM systems.”

In version 1.8, usually less than 100 milliseconds and possibly as little as 10 milliseconds, Broadfoot said, standard library optimisations improve performance as well. HTTP/2 Push support lets servers pre-emptively send responses to a client, which minimises network latency by eliminating round trips, and graceful shutdown of the HTTP server minimises downtime by shutting down only after serving all requests in flight.

The Slice function in Go 1.8’s sort package makes it easier to sort slices, such as sorting a slice of structs in their Name field. The upgrade also increases support for contexts in more parts of the standard library, providing a mechanism for cancellation and timeout. Available in the Go 1.7 standard library, it has been expanded for usage in the database/sql and net packages and Server.shutdown in the net/http package.

Go 1.8 had been in a release candidate stage prior to this week’s general release. Offering capabilities in native concurrency and consistent behaviour across platforms, Go has been a language making a mark on computing lately. Its most famous applications include the Docker container system and Kubernetes orchestration project for Docker. It has been ascending the charts in language popularity indexes, such as the Tiobe and PyPL indexes.


IDG News Service

Read More:

Comments are closed.

Back to Top ↑