Saturday, July 16, 2022
HomeITGo language revises reminiscence mannequin

Go language revises reminiscence mannequin

Go 1.19, an replace of the Google-developed programming language due in August, introduces a revised reminiscence mannequin and new varieties that make it simpler to make use of atomic values.

Now in a preview stage, Go 1.19 may be downloaded from The discharge remains to be thought-about unstable at this level.

With Go 1.19, the language’s reminiscence mannequin has been revised to align Go along with the reminiscence mannequin utilized by C, C++, Java, JavaScript, and Swift, in keeping with launch notes. Go 1.19 additionally options new varieties within the sync/atomic bundle that make it simpler to make use of atomic values reminiscent of atomic.int64 and atomic.Pointer(T).

The Go reminiscence mannequin specifies situations beneath which reads of a variable in a single goroutine may be assured to look at values produced by writes to the identical variable in a unique goroutine. Go solely supplies sequentially constant atomics, not any of extra relaxed varieties provided in different languages.

Go 1.19 additionally introduces a “small” change to the language, consisting of a correction to the scope of sort parameters in technique declarations. Current applications are unaffected. Go 1.19 follows the momentous launch in March of Go 1.18, which featured long-sought generics capabilities. 

Different new options and enhancements in Go 1.19:

Copyright © 2022 IDG Communications, Inc.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments