From: Rob Pike Date: Wed, 9 Apr 2014 05:20:00 +0000 (+1000) Subject: doc/go1.3.html: go command, major library changes X-Git-Tag: go1.3beta1~149 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=56294f4adfb880e41c6a4111241d795191d5dc0b;p=gostls13.git doc/go1.3.html: go command, major library changes LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/85840043 --- diff --git a/doc/go1.3.html b/doc/go1.3.html index e5340c031a..d831f375e8 100644 --- a/doc/go1.3.html +++ b/doc/go1.3.html @@ -125,10 +125,25 @@ that the next GCC release, 4.10, will likely have the Go 1.4 version of gccgo.

Changes to the go command

-TODO -cmd/go, go/build: support .m files (CL 60590044) -cmd/go: add -exec to 'go run' and 'go test' (CL 68580043) -cmd/go: cover -atomic for -race (CL 76370043) +The cmd/go command has several new +features. +The go run and +go test subcommands +support a new -exec option to specify an alternate +way to run the resulting binary. +Its immediate purpose is to support NaCl. +

+ +

+The test coverage support of the go test +subcommand now automatically sets the coverage mode to -atomic +when the race detector is enabled, to eliminate false reports about unsafe +access to coverage counters. +

+ +

+Finally, the go command now supports packages that import Objective-C +files (suffixed .m) through cgo.

Miscellany

@@ -140,10 +155,10 @@ Once a shell and awk script in the main repository, it is now a Go program in th Documentation is here.

- +

Performance

@@ -200,6 +215,15 @@ No new packages appear in the core libraries in Go 1.3.

Major changes to the library

+

+A previous bug in crypto/tls +made it possible to skip verfication in TLS inadvertently. +In Go 1.3, the bug is fixed: one must specify either ServerName or +InsecureSkipVerify, and if ServerName is specified it is enforced. +This may break existing code that incorrectly depended on insecure +behavior. +

+

There is an important new type added to the standard library: sync.Pool. It provides an efficient mechanism for implementing certain types of caches whose memory @@ -207,8 +231,15 @@ can be reclaimed automatically by the system.

-TODO: crypto/tls: ServerName or InsecureSkipVerify (CL 67010043) -possible breaking change +The testing package's benchmarking helper, +B, now has a +RunParallel method +to make it easier to run benchmarks that exercise multiple CPUs. +

+ +

+Updating: The crypto/tls fix may break existing code, but such +code was erroneous and should be updated.

Minor changes to the library

@@ -284,8 +315,6 @@ non-printing.
  • TODO: syscall: add support for FreeBSD 10 (CL 56770044, 56980043)
  • -
  • TODO: testing: add b.RunParallel function (CL 57270043)
  • -
  • The testing package now diagnoses tests that call panic(nil), which are almost always erroneous.