From 71b5f76cad5296d425e8df2eb338fac97b6ff410 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Wed, 29 Oct 2014 08:15:58 -0700 Subject: doc/go1.4.html: half of the small library changes LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://codereview.appspot.com/165090043 --- doc/go1.4.html | 166 ++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 135 insertions(+), 31 deletions(-) (limited to 'doc') diff --git a/doc/go1.4.html b/doc/go1.4.html index 7e670c47c..9fa86c31a 100644 --- a/doc/go1.4.html +++ b/doc/go1.4.html @@ -487,6 +487,16 @@ need to know about the new location. All tools and services maintained by the Go have been updated.

+ +

SWIG

+ +

+Due to the runtime changes in this release, Go 1.4 will require SWIG 3.0.3. +At time of writing that has not yet been released, but we expect it to be by +Go 1.4's release date. +TODO +

+

Miscellany

@@ -549,7 +559,7 @@ TODO major changes

-encoding/gob: remove unsafe (CL 102680045)
+bufio: handling of empty tokens at EOF changed, may require scanner change (CL 145390043)
 syscall: now frozen (CL 129820043); go.sys subrepo created: http://golang.org/s/go1.4-syscall
 
@@ -562,37 +572,131 @@ See the relevant package documentation for more information about each change. -
+
  • +The crypto/tls package +now supports APLN as defined in RFC 7301. +
  • -cmd/6l, liblink: use pc-relative addressing for all memory references, so that linking Go binaries at high addresses works (CL 125140043). This cuts the maximum size of a Go binary's text+data+bss from 4GB to 2GB. +
  • +The crypto/tls package +now supports programmatic selection of server certificates +through the new CertificateForName function +of the Config struct. +
  • -bufio: handling of empty tokens at EOF changed, may require scanner change (CL 145390043) -compress/flate, compress/gzip, compress/zlib: Reset support (https://codereview.appspot.com/97140043) -crypto/tls: add support for ALPN (RFC 7301) (CL 108710046) -crypto/tls: support programmatic selection of server certificates (CL 107400043) -encoding/asn1: optional elements with a default value will now only be omitted if they have that value (CL 86960045) -fmt: print type *map[T]T as &map[k:v] (CL 154870043) -encoding/csv: do not quote empty strings, quote \. (CL 164760043) -net/http: add Request.BasicAuth method (CL 76540043) -net/http: add Transport.DialTLS hook (CL 137940043) -net/http/httputil: add ReverseProxy.ErrorLog (CL 132750043) -os: implement symlink support for windows (CL 86160044) -reflect: add type.Comparable (CL 144020043) -reflect: Value is one word smaller -runtime: implement monotonic clocks on windows (CL 108700045) -runtime: MemStats.Mallocs now counts very small allocations missed in Go 1.3. This may break tests using runtime.ReadMemStats or testing.AllocsPerRun by giving a more accurate answer than Go 1.3 did (CL 143150043). -runtime/race: freebsd is supported (CL 107270043) -runtime: add PauseEnd array to MemStats and GCStats (CL 153670043) -swig: Due to runtime changes Go 1.4 will require SWIG 3.0.3 (not yet released) -sync/atomic: add Value (CL 136710045) -syscall: Setuid, Setgid are disabled on linux platforms. On linux those syscalls operate on the calling thread, not the whole process. This does not match the semantics of other platforms, nor the expectations of the caller, so the operations have been disabled until issue 1435 is resolved (CL 106170043) -testing: add Coverage (CL 98150043) -testing: add TestMain support (CL 148770043) -text/scanner: add IsIdentRune field of Scanner. (CL 108030044) -text/template: allow comparison of signed and unsigned integers (CL 149780043) -time: use the micro symbol (µ (U+00B5)) to print microsecond duration (CL 105030046) -
    +
  • +Also in the crypto/tls package, +the server now supports +TLS_FALLBACK_SCSV +to help clients detect fallback attacks like +POODLE. +(The crypto/tls package's client has never supported SSLv3, so it is not +vulnerable to the POODLE attack.) +
  • + +
  • +In the encoding/asn1 package, +optional elements with a default value will now only be omitted if they have that value. +
  • + +
  • +The encoding/csv package no longer +quotes empty strings but does quote the end-of-data marker \. (backslash dot). +This is permitted by the definition of CSV and allows it to work better with Postgres. +
  • + +
  • +The encoding/gob package has been rewritten to eliminate +the use of unsafe operations, allowing it to be used in environments that do not permit use of the +unsafe package. +For typical uses it will be 10-30% slower, but the delta is dependent on the type of the data and +in some cases, especially involving arrays, it can be faster. +There is no functional change. +
  • + +
  • +In the fmt package, +formatting of pointers to maps has changed to be consistent with that of pointers +to structs, arrays, and so on. +For instance, &map[string]int{"one": 1} now prints by default as +&map[one: 1] rather than as a hexadecimal pointer value. +
  • + +
  • TODO net/http: add Request.BasicAuth method ( https://codereview.appspot.com/76540043)
  • + +
  • TODO net/http: add Transport.DialTLS hook ( https://codereview.appspot.com/137940043)
  • + +
  • TODO net/http/httputil: add ReverseProxy.ErrorLog ( https://codereview.appspot.com/132750043)
  • + +
  • +The os package +now implements symbolic links on the Windows operating system +through the Symlink function. +Other operating systems already have this functionality. +
  • + +
  • +The reflect package's +Type interface +has a new method, Comparable, +that reports whether the type implements general comparisons. +
  • + +
  • +Also in the reflect package, the +Value interface is now three instead of four words +because of changes to the implementation of interfaces in the runtime. +This saves memory but has no semantic effect. +
  • + +
  • TODO runtime: implement monotonic clocks on windows ( https://codereview.appspot.com/108700045)
  • + +
  • TODO runtime: MemStats.Mallocs now counts very small allocations missed in Go 1.3. This may break tests using runtime.ReadMemStats or testing.AllocsPerRun by giving a more accurate answer than Go 1.3 did ( https://codereview.appspot.com/143150043).
  • + +
  • TODO runtime/race: freebsd is supported ( https://codereview.appspot.com/107270043)
  • + +
  • TODO runtime: add PauseEnd array to MemStats and GCStats ( https://codereview.appspot.com/153670043)
  • + +
  • TODO sync/atomic: add Value ( https://codereview.appspot.com/136710045)
  • + +
  • TODO syscall: Setuid, Setgid are disabled on linux platforms. On linux those syscalls operate on the calling thread, not the whole process. This does not match the semantics of other platforms, nor the expectations of the caller, so the operations have been disabled until issue 1435 is resolved ( https://codereview.appspot.com/106170043)
  • + +
  • TODO testing: add Coverage ( https://codereview.appspot.com/98150043)
  • + +
  • TODO testing: add TestMain support ( https://codereview.appspot.com/148770043)
  • + +
  • +The text/scanner package's +Scanner type +has a new function, +IsIdentRune, +allowing one to control the definition of an identifier when scanning. +
  • + +
  • +The text/template package's boolean +functions eq, lt, and so on have been generalized to allow comparison +of signed and unsigned integers, simplifying their use in practice. +(Previously one could only compare values of the same signedness.) +All negative values compare less than all unsigned values. +
  • + +
  • +The time package now uses the standard symbol for the micro prefix, +the micro symbol (U+00B5 'µ'), to print microsecond durations. +ParseDuration still accepts us +but the package no longer prints microseconds as us. +
    +Updating: Code that depends on the output format of durations +but does not use ParseDuration will need to be updated. +
  • + + -- cgit v1.2.1