Skip to content

Commit cedc7c8

Browse files
committed
doc/go1.7.html: incorporate Rob's comments from CL 23379
For #15810. Change-Id: Ib529808f664392feb9b36770f3d3d875fcb54528 Reviewed-on: https://go-review.googlesource.com/23488 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Rob Pike <r@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
1 parent 65dd081 commit cedc7c8

File tree

1 file changed

+25
-33
lines changed

1 file changed

+25
-33
lines changed

Diff for: doc/go1.7.html

+25-33
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
</style>
2727

2828
<p>
29+
<!-- TODO: REMOVE THIS COMMENT -->
30+
<!-- TODO: Also remove "DRAFT" in the "Title" at the top of this file. -->
2931
<i>NOTE: This is a DRAFT of the Go 1.7 release notes, prepared for the Go 1.7 beta.
3032
Go 1.7 has NOT yet been released.
3133
By our regular schedule, it is expected some time in August 2016.
32-
<!-- NOTE: WHEN REMOVING THIS COMMENT FIX THE TITLE AT THE TOP OF THE FILE TOO! -->
3334
</i>
3435
</p>
3536

@@ -48,12 +49,11 @@ <h2 id="introduction">Introduction to Go 1.7</h2>
4849
<a href="#compiler">updates the x86-64 compiler back end</a> to generate more efficient code;
4950
includes the <a href="#context">context package</a>, promoted from the
5051
<a href="https://golang.org/x/net/context">x/net subrepository</a>
51-
and now used throughout the standard library;
52+
and now used in the standard library;
5253
and <a href="#testing">adds support in the testing package</a> for
5354
creating hierarchies of tests and benchmarks.
54-
The release also removes the ability to disable
55-
the <a href="https://golang.org/s/go15vendor">vendoring changes</a> started in Go 1.5:
56-
vendoring is now an official part of the Go toolchain.
55+
The release also <a href="#cmd/go">finalizes the vendoring support</a>
56+
started in Go 1.5, making it a standard feature.
5757
</p>
5858

5959
<h2 id="language">Changes to the language</h2>
@@ -69,6 +69,7 @@ <h2 id="language">Changes to the language</h2>
6969
The <a href="/pkg/go/types/"><code>go/types</code></a>
7070
package has been updated to match the gc and gccgo compiler toolchains
7171
in this respect.
72+
This change has no effect on the correctness of existing programs.
7273
</p>
7374

7475
<h2 id="ports">Ports</h2>
@@ -86,7 +87,6 @@ <h2 id="ports">Ports</h2>
8687
<p>
8788
The experimental port to Linux on big-endian 64-bit PowerPC (<code>linux/ppc64</code>)
8889
now requires the POWER8 architecture or later.
89-
TODO: Pending ppc64le change for cgo.
9090
</p>
9191

9292
<p>
@@ -138,7 +138,8 @@ <h3 id="compiler">Compiler Toolchain</h3>
138138
generates more compact, more efficient code
139139
and provides a better platform for optimizations
140140
such as bounds check elimination.
141-
The new back end reduces the CPU time required by <a href="https://golang.org/test/bench/go1/">our benchmark programs</a> by 5-35%.
141+
The new back end reduces the CPU time required by
142+
<a href="https://golang.org/test/bench/go1/">our benchmark programs</a> by 5-35%.
142143
</p>
143144

144145
<p>
@@ -229,7 +230,7 @@ <h3 id="cmd/go">Go command</h3>
229230
This release removes support for the <code>GO15VENDOREXPERIMENT</code> environment variable,
230231
as <a href="/doc/go1.6#go_command">announced</a> in the Go 1.6 release.
231232
<a href="https://golang.org/s/go15vendor">Vendoring support</a>
232-
is now a standard feature of the go command and toolchain.
233+
is now a standard feature of the <code>go</code> command and toolchain.
233234
</p>
234235

235236
<p>
@@ -360,10 +361,6 @@ <h3 id="context">Context</h3>
360361
as noted below.
361362
</p>
362363

363-
<p>
364-
TODO: Example here.
365-
</p>
366-
367364
<p>
368365
For more information about contexts, see the
369366
<a href="/pkg/context/">package documentation</a>
@@ -376,14 +373,10 @@ <h3 id="testing">Testing</h3>
376373
<p>
377374
The <code>testing</code> package now supports the definition
378375
of tests with subtests and benchmarks with sub-benchmarks.
379-
</p>
380-
381-
<p>
382-
TODO: Where is the documentation for this?
383-
</p>
384-
385-
<p>
386-
TODO: Example here.
376+
This support makes it easy to write table-driven benchmarks
377+
and to create hierarchical tests.
378+
It also provides a way to share common setup and tear-down code.
379+
See the <a href="/pkg/testing/#hdr-Subtests_and_Sub_benchmarks">package documentation</a> for details.
387380
</p>
388381

389382
<h3 id="runtime">Runtime</h3>
@@ -406,7 +399,8 @@ <h3 id="runtime">Runtime</h3>
406399
The new function
407400
<a href="/pkg/runtime/#KeepAlive"><code>KeepAlive</code></a>
408401
provides an explicit mechanism for declaring
409-
that an allocated object is currently reachable,
402+
that an allocated object must be considered reachable
403+
at a particular point in a program,
410404
typically to delay the execution of an associated finalizer.
411405
</p>
412406

@@ -533,14 +527,20 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
533527

534528
<dd>
535529
<p>
536-
TODO: Describe Config.DynamicRecordSizingDisabled or whatever replaces it.
530+
The TLS implementation sends the first few data packets on each connection
531+
using small record sizes, gradually increasing to the TLS maximum record size.
532+
This heuristic reduces the amount of data that must be received before
533+
the first packet can be decrypted, improving communication latency over
534+
low-bandwidth networks.
535+
<a href="/pkg/crypto/tls/#Config"><code>Config</code></a>'s
536+
<code>DynamicRecordSizingDisabled</code> field to true.
537537
</p>
538538

539539
<p>
540540
The TLS client now has optional, limited support for server-initiated renegotiation,
541541
enabled by setting the
542542
<a href="/pkg/crypto/tls/#Config"><code>Config</code></a>'s
543-
Renegotiation field.
543+
<code>Renegotiation</code> field.
544544
This is needed for connecting to many Microsoft Azure servers.
545545
</p>
546546

@@ -815,8 +815,8 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
815815
<a href="/pkg/net/http/#Transport"><code>Transport</code></a> implementation passes the request context
816816
to any dial operation connecting to the remote server.
817817
If a custom dialer is needed, the new <code>Transport</code> field
818-
<code>Dialer</code> is preferred over the existing <code>Dial</code> field,
819-
because the former can accept a context.
818+
<code>DialContext</code> is preferred over the existing <code>Dial</code> field,
819+
to allow the transport to supply a context.
820820
</p>
821821

822822
<p>
@@ -1086,14 +1086,6 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
10861086
</p>
10871087
</dd>
10881088

1089-
<dl id="text/scanner"><a href="/pkg/text/scanner/">text/scanner</a></dl>
1090-
1091-
<dd>
1092-
<p>
1093-
TODO: Describe whatever the final state is after golang.org/issue/15813 is resolved.
1094-
</p>
1095-
</dd>
1096-
10971089
<dl id="time"><a href="/pkg/time/">time</a></dl>
10981090

10991091
<dd>

0 commit comments

Comments
 (0)