Programming Books

Main Menu

  • Home
  • Phyton programming
  • Java programming
  • Php programming
  • C++ programming
  • Additional Topics
    • Programming industry
    • Privacy Policy
    • Terms and Conditions

Programming Books

Header Banner

Programming Books

  • Home
  • Phyton programming
  • Java programming
  • Php programming
  • C++ programming
  • Additional Topics
    • Programming industry
    • Privacy Policy
    • Terms and Conditions
Java programming
Home›Java programming›Go 1.19 improves generics and memory model

Go 1.19 improves generics and memory model

By Brandy J. Richardson
August 3, 2022
0
0

Go 1.19, the latest version of Google’s Go (Golang) programming language, is available for production. The update improves recently added generics and launches an improved memory model.

With Go 1.19, released on August 2, generic development focused on fixing subtle issues and critical cases reported by the community as well as improving performance (up to 20% in some generic programs) . Long-sought generic features were added to the language with Go 1.18, which was released in March.

The GB memory modelmeanwhile, now explicitly defines the behavior of the sync/atomic package, providing low-level atomic memory primitives to implement synchronization algorithms. The formal definition of the happens-before relationship has been revised to align with the memory models used by C, C++, Java, JavaScript, Rust, and Swift. Existing programs are not affected. In addition to the memory model update, there are new types in the sync/atomic package, such as atomic.int64 and atomic. Pointer (T)which makes it easier to use atomic values.

Go 1.19 can be downloaded from go.dev for Windows, macOS and Linux. Other features of Go 1.19:

  • A soft memory limit has been added to the garbage collector. The limit can be useful for optimizing Go programs to run as efficiently as possible in containers with dedicated amounts of memory.
  • Performance and implementation improvements include dynamic coroutine stack sizing to reduce stack copyrights, automatic use of additional file descriptors on most Unix systems, jump tables for large switch instructions on x86-64 and ARM64, and support for debugger-injected function calls on ARM64.
  • A small correction was made for typing parameters into method declarations. Existing programs are not affected.
  • Documentation comments now support links, lists, and header syntax, to help users write clearer documentation comments, especially in packages with large APIs.
  • For security reasons, the os/exec package no longer respects relative paths in PATH searches.
  • A new construction constraint, unixis satisfied when the targeted operating system is a Unilx type operating system.

Copyright © 2022 IDG Communications, Inc.

Related posts:

  1. Goa, 13-year-old boy, manages millions of dollars in cryptocurrency | Goa News
  2. 4 “exotic” programming languages ​​popular with malware developers
  3. Intimidated by Kafka? Discover the new Confluent developer site
  4. Why is it essential for data scientists to learn Python?

Archives

  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • January 2021
  • December 2019
  • November 2019
  • October 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2017

Categories

  • C++ programming
  • Java programming
  • Php programming
  • Phyton programming
  • Programming industry

Recent Posts

  • Senior Center launches new dementia program
  • Shopping for Private Student Loans | Company
  • The Faculty Development Center prepares the University for the new academic year
  • Go 1.19 improves generics and memory model
  • Forget disruptions. Technology must fetishize stability
  • Privacy Policy
  • Terms and Conditions