Commit 56294f4a authored by Rob Pike's avatar Rob Pike

doc/go1.3.html: go command, major library changes

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/85840043
parent a07f6add
...@@ -125,10 +125,25 @@ that the next GCC release, 4.10, will likely have the Go 1.4 version of gccgo. ...@@ -125,10 +125,25 @@ that the next GCC release, 4.10, will likely have the Go 1.4 version of gccgo.
<h3 id="gocmd">Changes to the go command</h3> <h3 id="gocmd">Changes to the go command</h3>
<p> <p>
TODO The <a href="/cmd/go/"><code>cmd/go</code></a> command has several new
cmd/go, go/build: support .m files (CL 60590044) features.
cmd/go: add -exec to 'go run' and 'go test' (CL 68580043) The <a href="/cmd/go/"><code>go run</code></a> and
cmd/go: cover -atomic for -race (CL 76370043) <a href="/cmd/go/"><code>go test</code></a> subcommands
support a new <code>-exec</code> option to specify an alternate
way to run the resulting binary.
Its immediate purpose is to support NaCl.
</p>
<p>
The test coverage support of the <a href="/cmd/go/"><code>go test</code></a>
subcommand now automatically sets the coverage mode to <code>-atomic</code>
when the race detector is enabled, to eliminate false reports about unsafe
access to coverage counters.
</p>
<p>
Finally, the go command now supports packages that import Objective-C
files (suffixed <code>.m</code>) through cgo.
</p> </p>
<h3 id="misc">Miscellany</h3> <h3 id="misc">Miscellany</h3>
...@@ -140,10 +155,10 @@ Once a shell and awk script in the main repository, it is now a Go program in th ...@@ -140,10 +155,10 @@ Once a shell and awk script in the main repository, it is now a Go program in th
Documentation is <a href="http://godoc.org/code.google.com/p/go.tools/cmd/benchcmp">here</a>. Documentation is <a href="http://godoc.org/code.google.com/p/go.tools/cmd/benchcmp">here</a>.
</p> </p>
<ul> <p>
For the few of us that build Go distributions, the tool <code>misc/dist</code> has been For the few of us that build Go distributions, the tool <code>misc/dist</code> has been
moved and renamed; it now lives in <code>misc/makerelease</code>, still in the main repository. moved and renamed; it now lives in <code>misc/makerelease</code>, still in the main repository.
</ul> </p>
<h2 id="performance">Performance</h2> <h2 id="performance">Performance</h2>
...@@ -200,6 +215,15 @@ No new packages appear in the core libraries in Go 1.3. ...@@ -200,6 +215,15 @@ No new packages appear in the core libraries in Go 1.3.
<h3 id="major_library_changes">Major changes to the library</h3> <h3 id="major_library_changes">Major changes to the library</h3>
<p>
A previous bug in <a href="/pkg/crypto/tls/"><code>crypto/tls</code></a>
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.
</p>
<p> <p>
There is an important new type added to the standard library: <a href="/pkg/sync/#Pool"><code>sync.Pool</code></a>. There is an important new type added to the standard library: <a href="/pkg/sync/#Pool"><code>sync.Pool</code></a>.
It provides an efficient mechanism for implementing certain types of caches whose memory It provides an efficient mechanism for implementing certain types of caches whose memory
...@@ -207,8 +231,15 @@ can be reclaimed automatically by the system. ...@@ -207,8 +231,15 @@ can be reclaimed automatically by the system.
</p> </p>
<p> <p>
TODO: crypto/tls: ServerName or InsecureSkipVerify (CL 67010043) The <a href="/pkg/testing/"><code>testing</code></a> package's benchmarking helper,
possible breaking change <a href="/pkg/testing/#B"><code>B</code></a>, now has a
<a href="/pkg/testing/#B.RunParallel"><code>RunParallel</code></a> method
to make it easier to run benchmarks that exercise multiple CPUs.
</p>
<p>
<em>Updating</em>: The crypto/tls fix may break existing code, but such
code was erroneous and should be updated.
</p> </p>
<h3 id="minor_library_changes">Minor changes to the library</h3> <h3 id="minor_library_changes">Minor changes to the library</h3>
...@@ -284,8 +315,6 @@ non-printing. ...@@ -284,8 +315,6 @@ non-printing.
<li> TODO: syscall: add support for FreeBSD 10 (CL 56770044, 56980043)</li> <li> TODO: syscall: add support for FreeBSD 10 (CL 56770044, 56980043)</li>
<li> TODO: testing: add b.RunParallel function (CL 57270043)</li>
<li> <li>
The <a href="/pkg/testing/"><code>testing</code></a> package now The <a href="/pkg/testing/"><code>testing</code></a> package now
diagnoses tests that call <code>panic(nil)</code>, which are almost always erroneous. diagnoses tests that call <code>panic(nil)</code>, which are almost always erroneous.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment