From b9b19954eb3a8539b2401bc82cb55749277d1979 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Thu, 11 Dec 2014 11:22:54 +1100 Subject: doc: tweak Go 1.4 release notes LGTM=dave, dsymonds R=golang-codereviews, dave, dsymonds CC=golang-codereviews https://codereview.appspot.com/184350043 --- doc/go1.4.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/doc/go1.4.html b/doc/go1.4.html index 7f219480c..b4f9619bb 100644 --- a/doc/go1.4.html +++ b/doc/go1.4.html @@ -8,9 +8,15 @@

The latest Go release, version 1.4, arrives as scheduled six months after 1.3. +

+ +

It contains only one tiny language change, in the form of a backwards-compatible simple variant of for-range loop, and a possibly breaking change to the compiler involving methods on pointers-to-pointers. +

+ +

The release focuses primarily on implementation work, improving the garbage collector and preparing the ground for a fully concurrent collector to be rolled out in the next few releases. @@ -21,6 +27,9 @@ There are some new tools available including support in the go comm for build-time source code generation. The release also adds support for ARM processors on Android and Native Client (NaCl) and for AMD64 on Plan 9. +

+ +

As always, Go 1.4 keeps the promise of compatibility, and almost everything @@ -35,7 +44,7 @@ Up until Go 1.3, for-range loop had two forms

-for k, v := range x {
+for i, v := range x {
 	...
 }
 
@@ -45,7 +54,7 @@ and

-for k := range x {
+for i := range x {
 	...
 }
 
@@ -172,7 +181,7 @@ of the documentation.

Changes to the runtime

-Up to Go 1.4, the runtime (garbage collector, concurrency support, interface management, +Prior to Go 1.4, the runtime (garbage collector, concurrency support, interface management, maps, slices, strings, ...) was mostly written in C, with some assembler support. In 1.4, much of the code has been translated to Go so that the garbage collector can scan the stacks of programs in the runtime and get accurate information about what variables @@ -198,7 +207,7 @@ Details are available in the design

The use of contiguous stacks means that stacks can start smaller without triggering performance issues, -so the default starting size for a goroutine's stack in 1.4 has been reduced to 2048 bytes from 8192 bytes. +so the default starting size for a goroutine's stack in 1.4 has been reduced from 8192 bytes to 2048 bytes.

@@ -532,7 +541,7 @@ editor, even for editors we do not use. The Go community at large is much better suited to managing this information. In Go 1.4, therefore, this support has been removed from the repository. Instead, there is a curated, informative list of what's available on -a wiki page. +a wiki page.

Performance

-- cgit v1.2.1