Skip to content

Commit e47b7af

Browse files
committed
doc: start of go1.8.html release notes
Updates #17929 Change-Id: Ie90736cfce3fc5f23cbe0a0f1971476705aac5f9 Reviewed-on: https://go-review.googlesource.com/33436 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 323b5c9 commit e47b7af

File tree

1 file changed

+270
-0
lines changed

1 file changed

+270
-0
lines changed

doc/go1.8.html

+270
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
<!--{
2+
"Title": "Go 1.8 Release Notes",
3+
"Path": "/doc/go1.8",
4+
"Template": true
5+
}-->
6+
7+
<!--
8+
NOTE: In this document and others in this directory, the convention is to
9+
set fixed-width phrases with non-fixed-width spaces, as in
10+
<code>hello</code> <code>world</code>.
11+
Do not send CLs removing the interior tags from such phrases.
12+
-->
13+
14+
<style>
15+
ul li { margin: 0.5em 0; }
16+
</style>
17+
18+
<h2 id="introduction">DRAFT RELEASE NOTES - Introduction to Go 1.8</h2>
19+
20+
<p><strong>
21+
Go 1.8 is not yet released. These are work-in-progress
22+
release notes. Go 1.8 is expected to be released in February 2017.
23+
</strong></p>
24+
25+
<p>
26+
The latest Go release, version 1.8, arrives six months after <a href="go1.7">Go 1.7</a>.
27+
Most of its changes are in the implementation of the toolchain, runtime, and libraries.
28+
There is one minor change to the language specification.
29+
As always, the release maintains the Go 1 <a href="/doc/go1compat.html">promise of compatibility</a>.
30+
We expect almost all Go programs to continue to compile and run as before.
31+
</p>
32+
33+
<p>
34+
The release <a href="#ports">adds support for 32-bit MIPS</a>,
35+
<a href="#compiler">updates the compiler back end</a> to generate more efficient code,
36+
produces smaller binaries (TODO: link/numbers),
37+
<a href="#gc">reduces GC pauses</a> by eliminating stop-the-world stack rescanning,
38+
<a href="#h2push">adds HTTP/2 Push support</a>,
39+
<a href="#httpshutdown">adds HTTP graceful shutdown</a>,
40+
and <a href="#sort">simplifies sorting slices</a>.
41+
</p>
42+
43+
<h2 id="language">Changes to the language</h2>
44+
45+
<p>
46+
When explicitly converting structs, tags are now ignored for structural type identity.
47+
See <a href="https://golang.org/cl/24190">change 24190</a> for details.
48+
</p>
49+
50+
<h2 id="ports">Ports</h2>
51+
52+
<p>
53+
Go now supports 32-bit MIPS on Linux for both big-endian
54+
(<code>linux/mips</code>) and little-endian machines
55+
(<code>linux/mipsle</code>).
56+
</p>
57+
58+
<p>
59+
Go now requires DragonFly BSD 4.4.4 or later.
60+
</p>
61+
62+
<p>
63+
The Plan 9 port's networking support is now much more complete
64+
and matches the behavior of Unix and Windows with respect to deadlines
65+
and cancelation.
66+
</p>
67+
68+
69+
<h3 id="known_issues">Known Issues</h3>
70+
71+
<p>
72+
There are some instabilities on FreeBSD that are known but not understood.
73+
These can lead to program crashes in rare cases.
74+
See
75+
<a href="https://golang.org/issue/15658">issue 15658</a>
76+
and <a href="https://golang.org/issue/16396">issue 16396</a>.
77+
Any help in solving these FreeBSD-specific issues would be appreciated.
78+
</p>
79+
80+
<h2 id="tools">Tools</h2>
81+
82+
<h3 id="cmd_asm">Assembler</h3>
83+
84+
<p>
85+
For 64-bit x86 systems, the following instructions have been added:
86+
<code>VBROADCASTSD</code>,
87+
<code>BROADCASTSS</code>,
88+
<code>MOVDDUP</code>,
89+
<code>MOVSHDUP</code>,
90+
<code>MOVSLDUP</code>,
91+
<code>VMOVDDUP</code>,
92+
<code>VMOVSHDUP</code>,
93+
and <code>VMOVSLDUP</code>.</p>
94+
95+
<p>
96+
For 64-bit PPC systems, the common vector scalar instructions have been
97+
added. See <a href="https://golang.org/cl/30510">change 30510</a>.
98+
</p>
99+
100+
<h3 id="tool_yacc">Yacc</h3>
101+
102+
<p>
103+
The <code>yacc</code> (previously available via
104+
<code>go</code> <code>tool</code> <code>yacc</code>”)
105+
has been removed. As of Go 1.7 it was no longer used by the Go compiler.
106+
It has moved to the “tools” repo and is and is available via
107+
<code>go get <a href="https://godoc.org/golang.org/x/tools/cmd/goyacc">golang.org/x/tools/cmd/goyacc</a></code>.
108+
</p>
109+
110+
<h3 id="compiler">Compiler Toolchain</h3>
111+
112+
<p>
113+
Go 1.7 introduced a new compiler back end for 64-bit x86 systems.
114+
In Go 1.8, that back end has been developed further and is now used for
115+
all architectures.
116+
</p>
117+
118+
<p>
119+
The new back end, based on
120+
<a href="https://en.wikipedia.org/wiki/Static_single_assignment_form">SSA</a>,
121+
generates more compact, more efficient code
122+
and provides a better platform for optimizations
123+
such as bounds check elimination.
124+
The new back end reduces the CPU time required by
125+
<a href="https://golang.org/test/bench/go1/">our benchmark programs</a> by N-M%.
126+
TODO: ARM binary size & perf numbers.
127+
</p>
128+
129+
<p>
130+
The temporary <code>-ssa=0</code> flag introduced in Go 1.7 to disable
131+
the new backend has been removed in Go 1.8.
132+
</p>
133+
134+
<p>
135+
The compiler and linker have been optimized and run faster in this
136+
release than in Go 1.7, although they are still slower than we would
137+
like and will continue to be optimized in future releases.
138+
</p>
139+
140+
<p>
141+
Due to changes across the compiler toolchain and standard library,
142+
binaries built with this release should typically be smaller than binaries
143+
built with Go 1.7, sometimes by as much as TODO numbers.
144+
</p>
145+
146+
147+
<h3 id="cmd_cgo">Cgo</h3>
148+
149+
<p>TODO</p>
150+
151+
<h3 id="gccgo">Gccgo</h3>
152+
153+
<p>TODO</p>
154+
155+
<h3 id="cmd_go">Go command</h3>
156+
157+
<p>
158+
The <a href="/cmd/go/"><code>go</code></a> command's basic operation
159+
is unchanged, but there are a number of changes worth noting.
160+
</p>
161+
162+
<p>
163+
A new “<code>go</code> <code>bug</code>” command helps users file bug reports.
164+
</p>
165+
166+
167+
<h2 id="performance">Performance</h2>
168+
169+
<p>
170+
As always, the changes are so general and varied that precise statements
171+
about performance are difficult to make.
172+
Most programs should run a bit faster,
173+
due to speedups in the garbage collector and
174+
optimizations in the core library.
175+
</p>
176+
177+
<p>
178+
There have been significant optimizations bringing more than 10% improvements
179+
to implementations in the
180+
TODO TODO:
181+
<a href="/pkg/foo/"><code>foo</code></a>,
182+
<a href="/pkg/bar/"><code>bar</code></a>,
183+
and
184+
<a href="/pkg/quux/"><code>quux</code></a>
185+
packages.
186+
</p>
187+
188+
<h3 id="gc">Garbage Collector</h3>
189+
190+
<p>
191+
Garbage collection pauses should be significantly shorter than they
192+
were in Go 1.7, often as low as 10 microseconds and usually under 100
193+
microseconds.
194+
See the
195+
<a href="https://github.com/golang/proposal/blob/master/design/17503-eliminate-rescan.md">
196+
document on eliminating stop-the-world stack re-scanning</a> for details.
197+
More work remains for Go 1.9.
198+
</p>
199+
200+
<h3 id="defer">Defer</h3>
201+
202+
<p><code>defer</code> calls are now about twice as fast.</p>
203+
204+
<h3 id="cgoperf">Cgo</h3>
205+
206+
<p>Calls from Go into C are now TODO% faster.</p>
207+
208+
<h2 id="library">Core library</h2>
209+
210+
<h3 id="examples">Examples</h3>
211+
212+
<p>
213+
Many examples have been added to the documentation across many packages.
214+
</p>
215+
216+
<h3 id="sort">Sort</h3>
217+
218+
<p>
219+
The <a href="/pkg/sort/">sort</a> package
220+
now includes a convenience function
221+
<a href="/pkg/sort/#Slice"><code>sort.Slice</code></a> to sort a
222+
slice given a <em>less</em> function.
223+
224+
In many cases this means that writing a new sorter type is not
225+
necessary.
226+
</p>
227+
228+
<p>
229+
Also new are
230+
<a href="/pkg/sort/#SliceStable"><code>sort.SliceStable</code></a> and
231+
<a href="/pkg/sort/#SliceIsSorted"><code>sort.SliceIsSorted</code></a>.
232+
</p>
233+
234+
<h3 id="h2push">HTTP/2 Push</h3>
235+
236+
<p>
237+
The <a href="/pkg/net/http/">net/http</a> package now includes a
238+
mechanism to
239+
send HTTP/2 server pushes from a
240+
<a href="/pkg/net/http/#Handler"><code>Handler</code></a>.
241+
Similar to the existing <code>Flusher</code> and <code>Hijacker</code>
242+
interfaces, an HTTP/2
243+
<a href="/pkg/net/http/#ResponseWriter"><code>ResponseWriter</code></a>
244+
now implements the new
245+
<a href="/pkg/net/http/#Pusher"><code>Pusher</code></a> interface.
246+
</p>
247+
248+
<h3 id="httpshutdown">HTTP Server Graceful Shutdown</h3>
249+
250+
<h3 id="minor_library_changes">Minor changes to the library</h3>
251+
252+
<p>
253+
As always, there are various minor changes and updates to the library,
254+
made with the Go 1 <a href="/doc/go1compat">promise of compatibility</a>
255+
in mind.
256+
</p>
257+
258+
<dl id="foo"><dt><a href="/pkg/foo/">foo</a></dt>
259+
260+
<dd>
261+
<p>
262+
</p>
263+
</dd></dl>
264+
265+
<dl id="bar"><dt><a href="/pkg/bar/">bar</a></dt>
266+
267+
<dd>
268+
<p>
269+
</p>
270+
</dd></dl>

0 commit comments

Comments
 (0)