When will golang 1.9 be released?

(*-*)浩
Release: 2019-12-13 11:21:50
Original
2591 people have browsed it

When will golang 1.9 be released?

The development team of Go 1.9 hopes that almost all Go programs can run as before. The focus of this version is to improve performance and compile while maintaining compatibility. and scaling large code bases. The official version was released on August 25, 2017.

New features and improvements: (Recommended learning: Go )

Accelerate, better code and core library Optimization will make the program run a little faster.

math/bits package, which optimizes the operation of bits. Functions in this package are treated as inline functions by the compiler to improve performance.

The Go 1.9 compiler supports parallel compilation of functions in a package, taking advantage of multiple processor cores. Go 1.9 retains support for parallel compilation of separate packages from previous versions of the go command.

By default, parallel compilation is turned on, but can be disabled.

For scalability, Go 1.9 adds support for type-alias declarations for code fixes. A change to the Go language, type aliases enable line-by-line code fixes, as well as support for moving types between packages.

It should assist with code fixes during large-scale refactorings by changing references to types in the old package to types in the new package that are interoperable.

Basically, the introduction of class aliases provides a transition period where APIs are available from both new and old packages, and references to both old and new versions can exist simultaneously.

Go 1.9 adds transparent monotonic time support, which makes it always safe to calculate durations between two time values, even when the clock is adjusted in the case of.

Go 1.9 improves testing capabilities, using the new (T).Helper and (B).Helper methods to mark calling functions as test helper functions.

New Map type in the sync package, a concurrent Map with amortized-constant-time loading, storage, and deletion.

Multiple goroutines can safely call it concurrently.

The above is the detailed content of When will golang 1.9 be released?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template