]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
13 years agorelease.2010-06-09 weekly.2010-06-09
Andrew Gerrand [Wed, 9 Jun 2010 21:10:28 +0000 (23:10 +0200)]
release.2010-06-09

R=rsc
CC=golang-dev
https://golang.org/cl/1644041

13 years agogc: more cleanup
Russ Cox [Wed, 9 Jun 2010 18:00:55 +0000 (11:00 -0700)]
gc: more cleanup
 * disallow surrogate pair runes.
 * diagnose impossible type assertions
 * eliminate another static buffer.
 * do not overflow lexbuf.
 * add -u flag to disable package unsafe.

R=ken2
CC=golang-dev
https://golang.org/cl/1619042

13 years agofix build: invalid character literals
Russ Cox [Wed, 9 Jun 2010 05:32:04 +0000 (22:32 -0700)]
fix build: invalid character literals

R=r
CC=golang-dev
https://golang.org/cl/1631041

13 years agogc: new typechecking rules
Russ Cox [Wed, 9 Jun 2010 01:50:02 +0000 (18:50 -0700)]
gc: new typechecking rules

* Code for assignment, conversions now mirrors spec.
* Changed some snprint -> smprint.
* Renamed runtime functions to separate
  interface conversions from type assertions:
  convT2I, assertI2T, etc.
* Correct checking of \U sequences.

Fixes #840.
Fixes #830.
Fixes #778.

R=ken2
CC=golang-dev
https://golang.org/cl/1303042

13 years agomisc cleanup: gofmt + &x -> x[0:] conversion
Russ Cox [Wed, 9 Jun 2010 00:51:57 +0000 (17:51 -0700)]
misc cleanup: gofmt + &x -> x[0:] conversion

R=gri
CC=golang-dev
https://golang.org/cl/1620042

13 years agogo/printer: deleted dead code
Robert Griesemer [Wed, 9 Jun 2010 00:46:04 +0000 (17:46 -0700)]
go/printer: deleted dead code

(remains of the semicolon conversion)

R=rsc
CC=golang-dev
https://golang.org/cl/1623041

13 years agogofmt: update test script so it can run to completion again
Robert Griesemer [Wed, 9 Jun 2010 00:25:04 +0000 (17:25 -0700)]
gofmt: update test script so it can run to completion again

R=rsc
CC=golang-dev
https://golang.org/cl/1621041

13 years agogo/parser: correct position of empty statement ';'
Robert Griesemer [Wed, 9 Jun 2010 00:06:26 +0000 (17:06 -0700)]
go/parser: correct position of empty statement ';'
(caused certain files to not be idempotent under gofmt)

- corrected golden files for go/printer
- slightly simplified some code in nodes.go (no impact on formatting)
- these changes have no impact on gofmt output of .go files under src, misc

fallthrough statement considered harmful!

R=rsc
CC=golang-dev
https://golang.org/cl/1593042

13 years agofix build
Russ Cox [Tue, 8 Jun 2010 23:14:19 +0000 (16:14 -0700)]
fix build

R=gri
CC=golang-dev
https://golang.org/cl/1616041

13 years agodoc: add Google I/O talk and programs
Russ Cox [Tue, 8 Jun 2010 23:00:04 +0000 (16:00 -0700)]
doc: add Google I/O talk and programs

R=r
CC=golang-dev
https://golang.org/cl/1614041

13 years agobug284: make conversion legal, fix error patterns
Russ Cox [Tue, 8 Jun 2010 22:51:31 +0000 (15:51 -0700)]
bug284: make conversion legal, fix error patterns

R=gri
CC=golang-dev
https://golang.org/cl/1612041

13 years agobug285: delete invalid map assignment
Russ Cox [Tue, 8 Jun 2010 22:50:53 +0000 (15:50 -0700)]
bug285: delete invalid map assignment

*T2 implements I2, but T2 does not.

R=gri
CC=golang-dev
https://golang.org/cl/1613041

13 years agogc: better error message when ~ operator is found
Robert Griesemer [Tue, 8 Jun 2010 01:27:26 +0000 (18:27 -0700)]
gc: better error message when ~ operator is found

Fixes #844.

R=ken2, rsc, ken3
CC=golang-dev
https://golang.org/cl/1593041

13 years agogc: backslash newline is not a legal escape sequence in strings
Robert Griesemer [Tue, 8 Jun 2010 01:10:48 +0000 (18:10 -0700)]
gc: backslash newline is not a legal escape sequence in strings

Fixes #827.

R=ken2
CC=golang-dev, rsc
https://golang.org/cl/1592041

13 years agogo spec: rename "assignment compatible" -> "assignable"
Robert Griesemer [Tue, 8 Jun 2010 00:40:21 +0000 (17:40 -0700)]
go spec: rename "assignment compatible" -> "assignable"

R=r, rsc
CC=golang-dev
https://golang.org/cl/1590041

13 years agohttp: add Head function for making HTTP HEAD requests
Andrew Gerrand [Mon, 7 Jun 2010 23:28:40 +0000 (01:28 +0200)]
http: add Head function for making HTTP HEAD requests

R=rsc
CC=golang-dev
https://golang.org/cl/1581041

13 years agogo spec: clean-up and consolidation of spec with implementation
Robert Griesemer [Mon, 7 Jun 2010 22:49:39 +0000 (15:49 -0700)]
go spec: clean-up and consolidation of spec with implementation

Specifically:
- introduced notion of "underlying type"
- removed notion of type compatibility
- consolidated rules about assignment compatibility in
  assignment compatibility section
- be consistent with specyfing that nil is the value
  for uninitialized variables that can be nil (this
  was not specified clearly for pointers, functions, interfaces)
- added/fixed various related links throughout
- clarify language on conversions

R=rsc, r, iant, ken2
CC=golang-dev
https://golang.org/cl/1536041

13 years agoruntime: finish pchw -> tiny, added gettime for tiny
Daniel Theophanes [Mon, 7 Jun 2010 21:18:42 +0000 (14:18 -0700)]
runtime: finish pchw -> tiny, added gettime for tiny

R=rsc
CC=golang-dev
https://golang.org/cl/1514041

13 years agoA+C: add Daniel Theophanes (individual CLA)
Russ Cox [Mon, 7 Jun 2010 19:42:02 +0000 (12:42 -0700)]
A+C: add Daniel Theophanes (individual CLA)

R=r
CC=golang-dev
https://golang.org/cl/1535041

13 years agohttp: fix erroneous comment
Andrew Gerrand [Sun, 6 Jun 2010 15:18:09 +0000 (17:18 +0200)]
http: fix erroneous comment

R=r
CC=golang-dev
https://golang.org/cl/1539042

14 years agotutorial: fix one-word mistake in echo example
Rob Pike [Sat, 5 Jun 2010 19:06:18 +0000 (12:06 -0700)]
tutorial: fix one-word mistake in echo example

R=rsc, iant
CC=golang-dev
https://golang.org/cl/1567041

14 years agoHTML5 parser test data from WebKit.
Nigel Tao [Sat, 5 Jun 2010 00:47:22 +0000 (17:47 -0700)]
HTML5 parser test data from WebKit.

R=rsc
CC=golang-dev
https://golang.org/cl/1559041

14 years agoFixes #836.
Nigel Tao [Sat, 5 Jun 2010 00:30:39 +0000 (17:30 -0700)]
Fixes #836.

R=gri
CC=golang-dev
https://golang.org/cl/1548042

14 years agodraw.Draw fast paths for the Over operator.
Nigel Tao [Fri, 4 Jun 2010 00:19:00 +0000 (17:19 -0700)]
draw.Draw fast paths for the Over operator.

Time (us) to draw a 200x200 src onto an image.RGBA dst with the Over
operator. Each case was measured three separate times, and the sorted
times are reported.

Fill case (where src is an image.ColorImage):
Before:
7438, 7511, 7526
After:
3073, 3087, 3102

Copy case (where src is an image.RGBA):
Before:
9506, 9510, 9563
After:
5262, 5300, 5344

R=rsc
CC=golang-dev
https://golang.org/cl/1532041

14 years agoAdd Opaque method to the image types.
Nigel Tao [Fri, 4 Jun 2010 00:18:26 +0000 (17:18 -0700)]
Add Opaque method to the image types.

R=rsc
CC=golang-dev
https://golang.org/cl/1533041

14 years agofmt.Scan: %c
Rob Pike [Fri, 4 Jun 2010 00:03:22 +0000 (17:03 -0700)]
fmt.Scan: %c

R=rsc
CC=golang-dev
https://golang.org/cl/1518042

14 years agogo spec: Base comparison compatibility on assignment compatibility.
Robert Griesemer [Thu, 3 Jun 2010 23:55:50 +0000 (16:55 -0700)]
go spec: Base comparison compatibility on assignment compatibility.

Specifically:
- Simplified definition of comparison compatibility and folded into
  section on comparison operators since it's only used there.

This is a small language change/cleanup. As a consequence:
- An interface value may now be compared against a non-interface value.
- Channels with opposite directions cannot be compared directly anymore
  (per discussion with rsc).

R=rsc, r, iant, ken2
CC=golang-dev
https://golang.org/cl/1462041

14 years agoio/ioutil: add TempFile
Russ Cox [Thu, 3 Jun 2010 23:29:34 +0000 (16:29 -0700)]
io/ioutil: add TempFile

R=r
CC=golang-dev
https://golang.org/cl/1472042

14 years agoAdded regex-dna-parallel.go, a pretty trivial parallelization.
Kyle Consalus [Thu, 3 Jun 2010 23:20:54 +0000 (16:20 -0700)]
Added regex-dna-parallel.go, a pretty trivial parallelization.

R=rsc, r
CC=golang-dev
https://golang.org/cl/972046

14 years agohttp: handle status 304 correctly
Russ Cox [Thu, 3 Jun 2010 23:09:37 +0000 (16:09 -0700)]
http: handle status 304 correctly
  - cannot send body
  - should not send body-related headers

R=r
CC=golang-dev
https://golang.org/cl/1499041

14 years agofmt.Scan: field widths
Rob Pike [Thu, 3 Jun 2010 23:06:41 +0000 (16:06 -0700)]
fmt.Scan: field widths
Also fix an interface bug: white-space-delimited doesn't work well for cases like "%d, %d" on "23, 23")

R=rsc
CC=golang-dev
https://golang.org/cl/1502041

14 years agomath: fix typo in Exp2 benchmark
Charles L. Dorian [Thu, 3 Jun 2010 22:04:22 +0000 (15:04 -0700)]
math: fix typo in Exp2 benchmark

Was timing Exp, not Exp2.

R=rsc, r
CC=golang-dev
https://golang.org/cl/1521042

14 years agobug285: assignment compatible map keys must be accepted
Robert Griesemer [Thu, 3 Jun 2010 21:58:00 +0000 (14:58 -0700)]
bug285: assignment compatible map keys must be accepted

R=r
CC=golang-dev
https://golang.org/cl/1473042

14 years agonetchan: fix typo in test
Rob Pike [Thu, 3 Jun 2010 20:16:09 +0000 (13:16 -0700)]
netchan: fix typo in test

R=rsc
CC=golang-dev
https://golang.org/cl/1522041

14 years agoFix typo in xml comments.
Nigel Tao [Thu, 3 Jun 2010 07:56:53 +0000 (00:56 -0700)]
Fix typo in xml comments.

R=rsc
CC=golang-dev
https://golang.org/cl/1503041

14 years ago Optimization to regexp _CharClass: keep track of overall range of
Kyle Consalus [Thu, 3 Jun 2010 06:04:44 +0000 (23:04 -0700)]
Optimization to regexp _CharClass: keep track of overall range of
    charclass to avoid unnecessarily iterating over ranges.
    Also, use the fact that IntVector is an []int to avoid method calls.
    On my machine, this brings us from ~27500 ns/op to ~17500 ns/op in the benchmark I've added (it is also faster in the case where a range check
    doesn't help, added a benchmark for this too.)

    I'd also like to propose that "[]", and "[^]" be disallowed. They aren't useful as far as I can tell, they aren't widely supported, and they make reasoning about character classes a bit more complicated.

R=r
CC=golang-dev
https://golang.org/cl/1495041

14 years agomath: Pow special cases (signed zero, IEEE 754-2008)
Charles L. Dorian [Thu, 3 Jun 2010 03:55:47 +0000 (20:55 -0700)]
math: Pow special cases (signed zero, IEEE 754-2008)

Also added more tests for acosh, hypot, log, log10, log2
in all_test.go.

R=rsc
CC=golang-dev
https://golang.org/cl/1417041

14 years agodoc: codereview + Mercurial Queues
Peter Williams [Thu, 3 Jun 2010 00:11:52 +0000 (17:11 -0700)]
doc: codereview + Mercurial Queues

R=rsc, r
CC=golang-dev
https://golang.org/cl/1238044

14 years agofmt.Scan: scan []byte arguments
Rob Pike [Wed, 2 Jun 2010 23:28:01 +0000 (16:28 -0700)]
fmt.Scan: scan []byte arguments

R=rsc
CC=golang-dev
https://golang.org/cl/1486041

14 years agobufio: change ReadSlice to match description
Russ Cox [Wed, 2 Jun 2010 23:17:18 +0000 (16:17 -0700)]
bufio: change ReadSlice to match description

On error, ReadSlice is defined to return the available data
and advance past that data, but it was not behaving that
way for err == ErrBufferFull, making it harder for callers to
handle well.

R=r
CC=golang-dev
https://golang.org/cl/1480041

14 years agofmt.Scanf: implement formats, provide Sscanf (strings)
Rob Pike [Wed, 2 Jun 2010 21:58:31 +0000 (14:58 -0700)]
fmt.Scanf: implement formats, provide Sscanf (strings)
- provide convenience functions for scanning strings
- enable Scanf etc.
- update doc comments

R=rsc
CC=golang-dev
https://golang.org/cl/1451044

14 years agobig: fix spelling of Euclidean
Russ Cox [Wed, 2 Jun 2010 19:53:15 +0000 (12:53 -0700)]
big: fix spelling of Euclidean

R=gri
CC=golang-dev
https://golang.org/cl/1372042

14 years agobug284: additional conversion test case
Robert Griesemer [Wed, 2 Jun 2010 17:36:19 +0000 (10:36 -0700)]
bug284: additional conversion test case

R=r, iant
CC=golang-dev
https://golang.org/cl/1433042

14 years agobug284: test cases for new conversion rules
Robert Griesemer [Wed, 2 Jun 2010 16:23:04 +0000 (09:23 -0700)]
bug284: test cases for new conversion rules

R=rsc, r, iant
CC=golang-dev
https://golang.org/cl/1465041

14 years agoA+C: added Daniel Fleischman
Andrew Gerrand [Wed, 2 Jun 2010 14:49:25 +0000 (16:49 +0200)]
A+C: added Daniel Fleischman

R=rsc
CC=golang-dev
https://golang.org/cl/1475041

14 years agofmt.Scan: renamings, strings, errors
Rob Pike [Tue, 1 Jun 2010 22:22:01 +0000 (15:22 -0700)]
fmt.Scan: renamings, strings, errors
- implement scanning for all renamed types
(compiler bug stops complex from being renamable,
so it can't be tested but the code is there)
- %q %x for strings
- error handling now done with panic/recover

R=rsc
CC=golang-dev
https://golang.org/cl/1458041

14 years agofmt.Scan: renamings, strings, errors
Rob Pike [Tue, 1 Jun 2010 22:21:21 +0000 (15:21 -0700)]
fmt.Scan: renamings, strings, errors
- implement scanning for all renamed types
(compiler bug stops complex from being renamable,
so it can't be tested but the code is there)
- %q %x for strings
- error handling now done with panic/recover

R=rsc
CC=golang-dev
https://golang.org/cl/1458041

14 years agogc: fix export of complex types
Russ Cox [Tue, 1 Jun 2010 21:48:57 +0000 (14:48 -0700)]
gc: fix export of complex types

R=ken2
CC=golang-dev
https://golang.org/cl/1442042

14 years agobig: bug fix for Quo aliasing problem
Robert Griesemer [Tue, 1 Jun 2010 21:37:11 +0000 (14:37 -0700)]
big: bug fix for Quo aliasing problem

Fixes #820.

R=rsc
CC=golang-dev
https://golang.org/cl/1453041

14 years agogoinstall: Use 'git pull' instead of 'git checkout' when updating a git repo.
Michael Hoisie [Tue, 1 Jun 2010 21:27:45 +0000 (14:27 -0700)]
goinstall: Use 'git pull' instead of 'git checkout' when updating a git repo.

R=rsc
CC=golang-dev
https://golang.org/cl/1395041

14 years agoruntime: Fix printing -Inf
Evan Shaw [Tue, 1 Jun 2010 21:08:15 +0000 (14:08 -0700)]
runtime: Fix printing -Inf

R=rsc
CC=golang-dev
https://golang.org/cl/1258044

14 years ago Correct the regexp for finding unix signal names.
Vinu Rajashekhar [Tue, 1 Jun 2010 19:02:00 +0000 (12:02 -0700)]
Correct the regexp for finding unix signal names.
  For example, earlier, the regexp would accept SIGQUEUE_MAX
  as a unix signal with name SIGQUEUE. Now it is ignored.

R=iant
CC=golang-dev, golang-nuts, joel.sherrill
https://golang.org/cl/1452041

14 years agoAdd Vinu Rajashekhar <vinutheraj@gmail.com> as a contributor.
Ian Lance Taylor [Tue, 1 Jun 2010 18:55:55 +0000 (11:55 -0700)]
Add Vinu Rajashekhar <vinutheraj@gmail.com> as a contributor.

R=adg
CC=golang-dev
https://golang.org/cl/1454041

14 years agodoc/code.html: fix error string format
Andrew Gerrand [Tue, 1 Jun 2010 14:50:16 +0000 (16:50 +0200)]
doc/code.html: fix error string format

R=rsc
CC=golang-dev
https://golang.org/cl/1444041

14 years agoedit simple typos
Joe Poirier [Tue, 1 Jun 2010 14:21:34 +0000 (16:21 +0200)]
edit simple typos

R=golang-dev, adg
CC=golang-dev, rsc
https://golang.org/cl/1426042

14 years agoFix typo in gob docs. They were introduced in revision 3199778baf
Nigel Tao [Tue, 1 Jun 2010 00:35:59 +0000 (17:35 -0700)]
Fix typo in gob docs. They were introduced in revision 3199778baf
"change the encoding of uints...".

R=r
CC=golang-dev
https://golang.org/cl/1436041

14 years agovector: undo changes to autogenerated files
Fazlul Shahriar [Mon, 31 May 2010 22:53:55 +0000 (15:53 -0700)]
vector: undo changes to autogenerated files

Also, move Do() to vector.go, so that Do() for IntVector and StringVector
is autogenerated.

The only files edited are Makefile, defs.go, and vector.go. The rest are
autogenerated with "make generate".

R=r
CC=golang-dev, hoisie
https://golang.org/cl/1435041

14 years agofmt: fix end-of-array error in parsenum.
Rob Pike [Mon, 31 May 2010 21:57:32 +0000 (14:57 -0700)]
fmt: fix end-of-array error in parsenum.
Fixes #821.

R=rsc
CC=golang-dev
https://golang.org/cl/1434041

14 years agoIntVector.Do now takes an f(int), and StringVector.Do now takes an f(string).
Michael Hoisie [Mon, 31 May 2010 21:55:30 +0000 (14:55 -0700)]
IntVector.Do now takes an f(int), and StringVector.Do now takes an f(string).

R=r
CC=golang-dev
https://golang.org/cl/1433041

14 years agofmt.Scan: refactor the implementation so format-driven and normal scanning use the...
Rob Pike [Mon, 31 May 2010 21:53:15 +0000 (14:53 -0700)]
fmt.Scan: refactor the implementation so format-driven and normal scanning use the same function.
simplifies the code significantly.
Still TODO:
- proper format handling
- strings

R=rsc
CC=golang-dev
https://golang.org/cl/1432041

14 years agofmt.Scan:
Rob Pike [Mon, 31 May 2010 17:56:58 +0000 (10:56 -0700)]
fmt.Scan:
- reimplement integer scanning to handle renamed basic integer types
- start implementation of Fscanf and Scanf; not yet ready for general use.

This intermediate CL is a useful checkpoint. A similar change needs to be
done for float and complex, but it seemed worth getting the approach
reviewed before making those changes.

R=rsc
CC=golang-dev
https://golang.org/cl/1418041

14 years agoimplement os.FileInfo.*time_ns for windows
Alex Brainman [Mon, 31 May 2010 11:43:40 +0000 (13:43 +0200)]
implement os.FileInfo.*time_ns for windows

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/1145044

14 years agoCorrect _cgo_free when C ABI does not pass first arg on stack.
Ian Lance Taylor [Mon, 31 May 2010 05:22:47 +0000 (22:22 -0700)]
Correct _cgo_free when C ABI does not pass first arg on stack.

It turns out that _cgo_malloc is used, via cmalloc in
runtime/cgocall.c, which is called by code generated by out.go
for the ยท_C_CString function.  I can't find a call to
_cgo_free, but given _cgo_malloc we might as well keep
_cgo_free.  This patch fixes it so that it should work on
amd64.

R=rsc
CC=golang-dev
https://golang.org/cl/1399041

14 years agonet: fix typo
Andrew Gerrand [Mon, 31 May 2010 05:05:41 +0000 (07:05 +0200)]
net: fix typo

Fixes #819.

R=rsc
CC=golang-dev
https://golang.org/cl/1421041

14 years agodoc/code: example package with tests
Andrew Gerrand [Sun, 30 May 2010 17:21:49 +0000 (19:21 +0200)]
doc/code: example package with tests

R=r
CC=golang-dev
https://golang.org/cl/1404041

14 years agonetchan: improve closing and shutdown. there's still more to do.
Rob Pike [Sat, 29 May 2010 05:32:29 +0000 (22:32 -0700)]
netchan: improve closing and shutdown. there's still more to do.
Fixes #805.

R=rsc
CC=golang-dev
https://golang.org/cl/1400041

14 years agogo spec: change def. of "type compatibility" to be non-recursive
Robert Griesemer [Fri, 28 May 2010 21:17:30 +0000 (14:17 -0700)]
go spec: change def. of "type compatibility" to be non-recursive
and adjust conversion rules.

Also:
- clarification of type identity (no language change)
- adjust special rules for channel assignment/comparison to
  require identical element types (in correspondence to non-
  recursiveness of type compatibility)

R=rsc, iant, ken2, r
CC=golang-dev
https://golang.org/cl/1376042

14 years agoMake image.Color.RGBA return 16 bit color instead of 32 bit color.
Nigel Tao [Fri, 28 May 2010 19:59:21 +0000 (12:59 -0700)]
Make image.Color.RGBA return 16 bit color instead of 32 bit color.

R=rsc
CC=golang-dev
https://golang.org/cl/1388041

14 years agosyscall: windows SysAlloc should use stdcall_raw not syscall
Alex Brainman [Fri, 28 May 2010 18:47:09 +0000 (11:47 -0700)]
syscall: windows SysAlloc should use stdcall_raw not syscall

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/1382041

14 years agosyscall: windows syscall trace to assist debugging
Alex Brainman [Fri, 28 May 2010 18:46:10 +0000 (11:46 -0700)]
syscall: windows syscall trace to assist debugging

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/1383041

14 years agofmt.Scan: add Fscan and Fscanln and make Scan and Scanln
Rob Pike [Fri, 28 May 2010 18:29:27 +0000 (11:29 -0700)]
fmt.Scan: add Fscan and Fscanln and make Scan and Scanln
read from standard input.  Add description of scanning to
the package comment.

R=rsc
CC=golang-dev
https://golang.org/cl/1390041

14 years agogo spec: Disallow &a notation to obtain a slice
Robert Griesemer [Fri, 28 May 2010 00:23:25 +0000 (17:23 -0700)]
go spec: Disallow &a notation to obtain a slice
from an array; one needs to write a[0:] instead.

R=rsc, r, iant, ken2
CC=golang-dev
https://golang.org/cl/1365041

14 years agoAdd Rectangle.Eq and Point.In.
Roger Peppe [Fri, 28 May 2010 00:19:47 +0000 (17:19 -0700)]
Add Rectangle.Eq and Point.In.
Fix Rectangle.Clip.
It could return a non-canonical rectangle if its arguments
did not overlap.
e.g. Rect(0, 0, 10, 10).Clip(Rect(0, 20, 10, 30)) -> Rect(0, 20, 10, 10)

R=rsc, r
CC=golang-dev, golang-dev
https://golang.org/cl/1290041

14 years agorelease.2010-05-27 tag
Andrew Gerrand [Thu, 27 May 2010 23:52:46 +0000 (16:52 -0700)]
release.2010-05-27 tag

R=rsc
CC=golang-dev
https://golang.org/cl/1363041

14 years agorelease.2010-05-27 weekly.2010-05-27
Andrew Gerrand [Thu, 27 May 2010 23:50:31 +0000 (16:50 -0700)]
release.2010-05-27

R=r, rsc
CC=golang-dev
https://golang.org/cl/1354041

14 years agogolang.org: added Resources page, re-organized left hand panel.
Andrew Gerrand [Thu, 27 May 2010 23:47:42 +0000 (16:47 -0700)]
golang.org: added Resources page, re-organized left hand panel.

R=r
CC=golang-dev
https://golang.org/cl/1309045

14 years agochanges &x -> x[0:] for array to slice conversion
Russ Cox [Thu, 27 May 2010 21:51:47 +0000 (14:51 -0700)]
changes &x -> x[0:] for array to slice conversion

R=gri
CC=golang-dev
https://golang.org/cl/1326042

14 years agofmt.Scan: custom formatters
Rob Pike [Thu, 27 May 2010 01:16:41 +0000 (18:16 -0700)]
fmt.Scan: custom formatters

R=rsc
CC=golang-dev
https://golang.org/cl/1315042

14 years agofmt.Scan: custom formatters
Rob Pike [Thu, 27 May 2010 01:15:09 +0000 (18:15 -0700)]
fmt.Scan: custom formatters

R=rsc
CC=golang-dev
https://golang.org/cl/1315042

14 years agogodoc: collect package comments from all package files, not just the first one found
Robert Griesemer [Wed, 26 May 2010 20:44:27 +0000 (13:44 -0700)]
godoc: collect package comments from all package files, not just the first one found

R=r
CC=golang-dev
https://golang.org/cl/1331041

14 years agobig: add ModInverse.
Adam Langley [Wed, 26 May 2010 19:58:58 +0000 (15:58 -0400)]
big: add ModInverse.

ModInverse is just a small wrapper around GcdInt, but it's nice to
have in order to be clear about what one is doing in other code.

R=gri, agl1
CC=golang-dev
https://golang.org/cl/1244045

14 years agofmt: fix 386 build. error strings differ for overflow on 386.
Rob Pike [Wed, 26 May 2010 17:01:52 +0000 (10:01 -0700)]
fmt: fix 386 build. error strings differ for overflow on 386.

R=gri
CC=golang-dev
https://golang.org/cl/1316042

14 years agofmt.Scan, fmt.Scanln: Start of a simple scanning API in the fmt package.
Rob Pike [Wed, 26 May 2010 04:02:35 +0000 (21:02 -0700)]
fmt.Scan, fmt.Scanln: Start of a simple scanning API in the fmt package.
Still to do:
- composite types
- user-defined scanners
- format-driven scanning
The package comment will be updated when more of the functionality is in place.

R=rsc
CC=golang-dev
https://golang.org/cl/1252045

14 years agospec: Fix link to fallthrough statements
Evan Shaw [Wed, 26 May 2010 01:24:07 +0000 (18:24 -0700)]
spec: Fix link to fallthrough statements

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/1303041

14 years agogodashboard: change behaviour of top button
Andrew Gerrand [Tue, 25 May 2010 21:22:12 +0000 (14:22 -0700)]
godashboard: change behaviour of top button

R=gri
CC=golang-dev
https://golang.org/cl/1253046

14 years agogo spec: minor fix, to match conversion rules 4 and 5
Robert Griesemer [Tue, 25 May 2010 04:25:01 +0000 (21:25 -0700)]
go spec: minor fix, to match conversion rules 4 and 5

R=rsc
CC=golang-dev
https://golang.org/cl/1270042

14 years agoOptimize exp/draw/x11 flusher inner loop.
Nigel Tao [Tue, 25 May 2010 02:32:42 +0000 (19:32 -0700)]
Optimize exp/draw/x11 flusher inner loop.

On my laptop, time to prepare and write 800x600 pixels over the
socket falls from 125-ish ms to 80-ish ms.

Thanks to Roger Peppe for the suggestion.

R=r
CC=golang-dev
https://golang.org/cl/1228044

14 years ago8g: out of register bug
Russ Cox [Tue, 25 May 2010 00:22:51 +0000 (17:22 -0700)]
8g: out of register bug

Fixes #806.

R=ken2
CC=golang-dev
https://golang.org/cl/1281042

14 years agogc: more accurate error description
Russ Cox [Tue, 25 May 2010 00:07:51 +0000 (17:07 -0700)]
gc: more accurate error description

R=ken2
CC=golang-dev
https://golang.org/cl/1284041

14 years agofix build - nacl stubs
Russ Cox [Tue, 25 May 2010 00:00:21 +0000 (17:00 -0700)]
fix build - nacl stubs

TBR=nigeltao
CC=golang-dev
https://golang.org/cl/1259042

14 years agogc: fix shift/reduce conflict in go.y export syntax
Russ Cox [Mon, 24 May 2010 23:55:23 +0000 (16:55 -0700)]
gc: fix shift/reduce conflict in go.y export syntax

Fixes #771.

R=ken2
CC=golang-dev
https://golang.org/cl/1267042

14 years agogc: bug281 - bad overlap in stack copy
Russ Cox [Mon, 24 May 2010 23:54:24 +0000 (16:54 -0700)]
gc: bug281 - bad overlap in stack copy

Fixes #807.

R=ken2
CC=golang-dev
https://golang.org/cl/1283041

14 years agonet: udp, implement BindToDevice
Christopher Wedgwood [Mon, 24 May 2010 23:53:23 +0000 (16:53 -0700)]
net: udp, implement BindToDevice

R=rsc
CC=golang-dev, r
https://golang.org/cl/1271041

14 years agobig: Rat test improvements
Evan Shaw [Mon, 24 May 2010 23:38:41 +0000 (16:38 -0700)]
big: Rat test improvements

R=gri
CC=golang-dev
https://golang.org/cl/1270041

14 years ago6g: avoid unnecessary conversion in shift bounds check
Russ Cox [Mon, 24 May 2010 22:30:53 +0000 (15:30 -0700)]
6g: avoid unnecessary conversion in shift bounds check

R=ken2
CC=golang-dev
https://golang.org/cl/1278042

14 years agofix build - forgot golden.out
Russ Cox [Mon, 24 May 2010 22:26:20 +0000 (15:26 -0700)]
fix build - forgot golden.out

R=ken2
CC=golang-dev
https://golang.org/cl/1274042

14 years agogc: bug277 - new conversion syntax
Russ Cox [Mon, 24 May 2010 22:25:30 +0000 (15:25 -0700)]
gc: bug277 - new conversion syntax

R=ken2
CC=golang-dev
https://golang.org/cl/1220046

14 years agogc: bug280
Russ Cox [Mon, 24 May 2010 22:25:09 +0000 (15:25 -0700)]
gc: bug280

Fixes #808.

R=ken2
CC=golang-dev
https://golang.org/cl/1273042

14 years agoFix typo in exp/draw/x11.
Nigel Tao [Mon, 24 May 2010 22:07:47 +0000 (15:07 -0700)]
Fix typo in exp/draw/x11.

R=rsc
CC=golang-dev
https://golang.org/cl/1282041

14 years agogo spec: fix and clarify syntax of conversions
Robert Griesemer [Mon, 24 May 2010 21:58:26 +0000 (14:58 -0700)]
go spec: fix and clarify syntax of conversions

Fixes #803.

R=rsc, r, iant, ken2
CC=golang-dev
https://golang.org/cl/1281041