@@ -8,9 +8,15 @@ <h2 id="introduction">Introduction to Go 1.4</h2>
8
8
9
9
< p >
10
10
The latest Go release, version 1.4, arrives as scheduled six months after 1.3.
11
+ </ p >
12
+
13
+ < p >
11
14
It contains only one tiny language change,
12
15
in the form of a backwards-compatible simple variant of < code > for</ code > -< code > range</ code > loop,
13
16
and a possibly breaking change to the compiler involving methods on pointers-to-pointers.
17
+ </ p >
18
+
19
+ < p >
14
20
The release focuses primarily on implementation work, improving the garbage collector
15
21
and preparing the ground for a fully concurrent collector to be rolled out in the
16
22
next few releases.
@@ -21,6 +27,9 @@ <h2 id="introduction">Introduction to Go 1.4</h2>
21
27
for build-time source code generation.
22
28
The release also adds support for ARM processors on Android and Native Client (NaCl)
23
29
and for AMD64 on Plan 9.
30
+ </ p >
31
+
32
+ < p >
24
33
As always, Go 1.4 keeps the < a href ="/doc/go1compat.html "> promise
25
34
of compatibility</ a > ,
26
35
and almost everything
@@ -35,7 +44,7 @@ <h3 id="forrange">For-range loops</h3>
35
44
</ p >
36
45
37
46
< pre >
38
- for k , v := range x {
47
+ for i , v := range x {
39
48
...
40
49
}
41
50
</ pre >
@@ -45,7 +54,7 @@ <h3 id="forrange">For-range loops</h3>
45
54
</ p >
46
55
47
56
< pre >
48
- for k := range x {
57
+ for i := range x {
49
58
...
50
59
}
51
60
</ pre >
@@ -172,7 +181,7 @@ <h2 id="impl">Changes to the implementations and tools</h2>
172
181
< h3 id ="runtime "> Changes to the runtime</ h3 >
173
182
174
183
< p >
175
- Up to Go 1.4, the runtime (garbage collector, concurrency support, interface management,
184
+ Prior to Go 1.4, the runtime (garbage collector, concurrency support, interface management,
176
185
maps, slices, strings, ...) was mostly written in C, with some assembler support.
177
186
In 1.4, much of the code has been translated to Go so that the garbage collector can scan
178
187
the stacks of programs in the runtime and get accurate information about what variables
@@ -198,7 +207,7 @@ <h3 id="runtime">Changes to the runtime</h3>
198
207
199
208
< p >
200
209
The use of contiguous stacks means that stacks can start smaller without triggering performance issues,
201
- so the default starting size for a goroutine's stack in 1.4 has been reduced to 2048 bytes from 8192 bytes.
210
+ so the default starting size for a goroutine's stack in 1.4 has been reduced from 8192 bytes to 2048 bytes.
202
211
</ p >
203
212
204
213
< p >
@@ -532,7 +541,7 @@ <h3 id="misc">Miscellany</h3>
532
541
The Go community at large is much better suited to managing this information.
533
542
In Go 1.4, therefore, this support has been removed from the repository.
534
543
Instead, there is a curated, informative list of what's available on
535
- a < a href ="//golang.org/wiki/wiki/ IDEsAndTextEditorPlugins "> wiki page</ a > .
544
+ a < a href ="//golang.org/wiki/IDEsAndTextEditorPlugins "> wiki page</ a > .
536
545
</ p >
537
546
538
547
< h2 id ="performance "> Performance</ h2 >
0 commit comments