Go編程語言 1.3 版本發布
Go語言是谷歌2009發布的第二款開源編程語言。Go語言專門針對多處理器系統應用程序的編程進行了優化,使用Go編譯的程序可以媲美C或C++代碼的速度,而且更加安全、支持并行進程。
今天 Go 1.3 發布,提供更好的性能,改進的工具,支持在新的環境中運行Go等。所有用戶應該升級到去1.3。詳細發布日志 release notes。以下是一些亮點。
- Godoc,Go文檔服務器,目前支持靜態分析;支持查看文檔包、資源視圖功能,查看文檔細節;
- GC工具鏈支持在本地客戶端(NaCl)32位、64位英特爾架構執行sandbox ;
- 支持平臺包括:DragonFly BSD、 Plan 9、 Solaris操作系統,查看安裝資源;
- Go編譯器生成二進制代碼的性能得到了改善;提升垃圾回收機制;一種新的“ contiguous”堆棧管理策略;更快的race detector(數據檢測)以及改進正則表達式處理程序。
- 顯著改進鏈接器和編譯器,可以更快地編譯程序。
Godoc, the Go documentation server, now performs static analysis. When enabled with the -analysis flag, analysis results are presented in both the source and package documentation views, making it easier than ever to navigate and understand Go programs. See the documentation for the details.
The gc toolchain now supports the Native Client (NaCl) execution sandbox on the 32- and 64-bit Intel architectures. This permits the safe execution of untrusted code, useful in environments such as the Playground. To set up NaCl on your system see the NativeClient wiki page.
Also included in this release is experimental support for the DragonFly BSD, Plan 9, and Solaris operating systems. To use Go on these systems you must install from source.
Changes to the runtime have improved the performance of Go binaries, with an improved garbage collector, a new "contiguous" goroutine stack management strategy, a faster race detector, and improvements to the regular expression engine.
As part of the general overhaul of the Go linker, the compilers and linkers have been refactored. The instruction selection phase that was part of the linker has been moved to the compiler. This can speed up incremental builds for large projects.
The garbage collector is now precise when examining stacks (collection of the heap has been precise since Go 1.1), meaning that a non-pointer value such as an integer will never be mistaken for a pointer and prevent unused memory from being reclaimed. This change affects code that uses package unsafe; if you have unsafe code you should read the release notes carefully to see if your code needs updating.
We would like to thank the many people who contributed to this release; it would not have been possible without your help.
So, what are you waiting for? Head on over to the downloads page and start hacking.