• Home
  • Interviews
  • Business Wisdom
  • Tech & Business
  • Business News
  • Economy
  • Community
  • Login
ValiantCEO
  • Home
  • Interviews
  • Business Wisdom
  • Tech & Business
  • Business News
  • Economy
  • Community
No Result
View All Result
ValiantCEO
  • Home
  • Interviews
  • Business Wisdom
  • Tech & Business
  • Business News
  • Economy
  • Community
No Result
View All Result
valiant
No Result
View All Result

Go 1.16 moves to beta with library, runtime enhancements

Jarvis Dobrik by Jarvis Dobrik
March 1, 2021
in Tech & Business
Go 1.16 moves to beta with library, runtime enhancements
hyper convergence speed burning rubber tire binary fast by tao55 getty images 100780208 large

Go 1.16, a planned upgrade to the Google-developed open source programming language, has been published as a beta release, with core library and runtime improvements anchoring a host of new capabilities. There are no changes to the language itself.

Changes to the core library in Go 1.16 include the new embed package, which offers access to files embedded in the program during compilation, via the //go:embed directive. Minor changes and updates have been made to the library as well. Changes range from the deprecation of crypto/dsa to upgrading the unicode package to Unicode 13.0.0.

[ Also on InfoWorld: Application monitoring: What devops can do better ]

The core library also gains file systems enhancements. A new io/fs package defines an abstraction for read-only trees of files, the fs.FS interface, and standard library packages have been adapted to make use of the interface when appropriate. On the producer side of the interface, the new embed.FS type implements fs.FS as does zip.Reader. A new os.DirFS function provides an implementation of fs.FS backed by a tree of operating system files. On the consumer side, a new http.FS function converts an fs.FS to an http.Handler. And the html.template and text/template packages’ ParseFS functions and methods read templates from fs.FS. To test code implementing fs.FS, a new testing/fstest package provides a TestFS function to report common mistakes. It also provides a simple in-memory file system implementation, MapFS, for testing code that accepts fs.FS implementations.

Go 1.16 also brings improvements to the runtime. A new runtime/metrics package introduces a stable interface for reading implementation-defined metrics. On Linux, the Go runtime now defaults to releasing memory to the operating system promptly, rather than lazily when the OS is under memory pressure. Go 1.16 also fixes a discrepancy between the race detector and the Go memory model. The detector now more precisely follows the channel synchronization rules of the memory model. Thus the detector now may report races that previously had been missed.

The release of the first beta was announced on December 17. Go 1.16 is due as a production release in February 2021. The current Go 1.15 release line arrived in August. Binary and source distribution files for Go 1.16 can be downloaded from golang.org.

Other changes cited in the Go 1.16 release notes include:

  • The 64-bit ARM architecture on MacOS, also known as Apple Silicon, is supported, with G00S=darwin, GOARCH=arm64. An ios/amd64 port has been added, targeting the iOS simulator running on AMD64-based MacOS.
  • The compiler now can inline functions with non-labeled for loops, method values, and type switches. The inliner also can detect more inlining calls when inlining is a possibility.
  • Improvements to the linker reduce resource usage and improve code maintainability. This is part of a plan to modernize the linker.
  • Module-aware mode is enabled by default.
  • The go command now supports inclusion of static files and file trees as part of the final executable, via the new //go:embed directive.
  • The new GOVCS environment variable limits which version control tools the go command may use to download source code. This mitigates security issues with tools typically used in trusted, authenticated environments.
  • Go 1.16 is the last release that will run on MacOS Sierra. Go 1.17 will require MacOS 10.13 High Sierra or later.
Tags: Tech
Previous Post

An Interview with Samuel Hurley, Co-founder of NOVOS

Next Post

Coronavirus latest: Joe Biden receives first dose of vaccine

Jarvis Dobrik

Jarvis Dobrik

Valuer | Photographer | Writer Motivating the world through Entrepreneurship and Self-Growth Quality over quantity.

Next Post
Coronavirus latest: Joe Biden receives first dose of vaccine

Coronavirus latest: Joe Biden receives first dose of vaccine

Please login to join discussion
Chris Cheang
Interviews

Chris Cheang – Post Capital – Investing in Companies With Repeat or Recurring Revenue Models Across a Wide Range of Industries

by Jed Morley
May 27, 2022
0

"One of the most important qualities of a successful executive from Post Capital’s perspective is a CEO’s willingness to get...

Read more
The Watches of NFL Stars

The Watches of NFL Stars

May 27, 2022
Itzik Levy

Itzik Levy – vcita – Empowering Small Businesses With Digital Transformation

May 27, 2022
9 Tips To Look Perfect When You Wear A Red Leather Jacket

9 Tips To Look Perfect When You Wear A Red Leather Jacket

May 27, 2022
How to Build a Company Location Map

How to Build a Company Location Map

May 27, 2022

Valiant CEOs & Entrepreneurs Share, Inspire, and Celebrate Outrageously Successful Ethical Businesses and their Leaders.

Contact Us

staff@valiantceo.com

Follow Us

Browse by Category

  • Business News
  • Business Wisdom
  • Interviews
  • Community
  • Tech & Business
  • Economy

Links

  • About us
  • Cookie Policy
  • Editorial Policy
  • Privacy & Policy
  • Contact
  • VIP Author

Recent News

Chris Cheang

Chris Cheang – Post Capital – Investing in Companies With Repeat or Recurring Revenue Models Across a Wide Range of Industries

May 27, 2022
The Watches of NFL Stars

The Watches of NFL Stars

May 27, 2022

© 2021 ValiantCEO - All rights reserved

No Result
View All Result
  • Home
  • Interviews
  • Business Wisdom
  • Tech & Business
  • Business News
  • Economy
  • Community

© 2021 valiantceo

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In