3

编程也要升级系统?谷歌Go语言将停止对Win7等系统支持

 1 year ago
source link: https://www.techug.com/post/do-you-also-need-to-upgrade-the-system-for-programming-google-go-language-will-stop-supporf5cc46489e74e45e6401/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

编程也要升级系统?谷歌Go语言将停止对Win7等系统支持

今天,谷歌发布了旗下编程语言Go语言的1.20版本,宣布将取消对老版本Windows与macOS的支持,并加入了大量新特性。

根据更新日志显示,1.20版本将是Go语言最后一个支持Winodws 7/8与Server 2008/2012的最后一个版本,从1.21开始,用户就需要在Windows 10或Windows Server 2016及更高版本上运行。

同时,1.20也将是最后一个支持macOS 10.13和10.14的版本。

其他方面,此次1.20版本的更新内容如下:

-引入了对RISC-V上的FreeBSD的实验性支持。

-$GOROOT/pkg目录不再存储标准存档的预编译包存档,可以减少Go发行版的大小。

-go命令现在可以定义AMD64.V2等架构功能Flag,以允许根据特定CPU架构功能的存在或不存在来选择包实现文件。这对于x86_64微架构特性级别的工作来说是个好消息。

-go build和go install以及其他与构建相关的命令现在支持“-cover”标志,用于启用带有代码覆盖检测的构建。

-优化垃圾收集器,减少内存占用,提高CPU性能最多 2%。

-对Profile Guided Optimizations (PGO) 的预览支持。

-在Linux上,链接器(linker)可为glibc或musl选择动态解释器。

-引入新的crypto/ecdh包,为NIST曲线和Curve25519上的椭圆曲线Diffie-Hellman密钥交换提供明确支持。

本文文字及图片出自 驱动之家


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK