]> Cypherpunks repositories - gostls13.git/log
gostls13.git
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

14 years agocodereview: work better with mq
Peter Williams [Mon, 24 May 2010 21:37:00 +0000 (14:37 -0700)]
codereview: work better with mq

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

14 years agoA+C: add Peter Williams (individual CLA)
Russ Cox [Mon, 24 May 2010 21:32:08 +0000 (14:32 -0700)]
A+C: add Peter Williams (individual CLA)

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

14 years agospec: index of non-addressable array is not addressable
Russ Cox [Mon, 24 May 2010 21:31:43 +0000 (14:31 -0700)]
spec: index of non-addressable array is not addressable

Motivated by:

func f() []int
func g() [10]int

f()[1] = 1  // ok
g()[1] = 1 // ERROR

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

14 years agoruntime: free old hashmap pieces during resizing
Russ Cox [Mon, 24 May 2010 21:31:10 +0000 (14:31 -0700)]
runtime: free old hashmap pieces during resizing

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

14 years agolibmach: skip __nl_symbol_ptr section on OS X
Russ Cox [Mon, 24 May 2010 21:30:51 +0000 (14:30 -0700)]
libmach: skip __nl_symbol_ptr section on OS X

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

14 years agogc: bug278
Russ Cox [Mon, 24 May 2010 21:22:54 +0000 (14:22 -0700)]
gc: bug278

Fixes #804.

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

14 years agogc: fix unsafe.Sizeof on ideal constants
Russ Cox [Mon, 24 May 2010 21:18:15 +0000 (14:18 -0700)]
gc: fix unsafe.Sizeof on ideal constants

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

14 years agobug277: tests for conversion syntax
Robert Griesemer [Mon, 24 May 2010 20:57:34 +0000 (13:57 -0700)]
bug277: tests for conversion syntax

- accepted by gccgo, gofmt
- some not accepted by 6g
- spec revision forthcoming

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

14 years agofix windows build
Alex Brainman [Mon, 24 May 2010 18:48:14 +0000 (11:48 -0700)]
fix windows build

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

14 years agoMake draw/x11 treat $DISPLAY the same way x-go-bindings does.
Nigel Tao [Mon, 24 May 2010 18:44:09 +0000 (11:44 -0700)]
Make draw/x11 treat $DISPLAY the same way x-go-bindings does.
This ought to make draw/x11 work on a Mac.

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

14 years agobig: prevent errors in Exp in the face of aliasing
Adam Langley [Mon, 24 May 2010 18:32:55 +0000 (14:32 -0400)]
big: prevent errors in Exp in the face of aliasing

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

14 years agosyscall: update freebsd_amd64
Andrew Gerrand [Mon, 24 May 2010 16:58:59 +0000 (09:58 -0700)]
syscall: update freebsd_amd64

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

14 years agokate: convert isn't a built in function
Evan Shaw [Sun, 23 May 2010 21:33:44 +0000 (14:33 -0700)]
kate: convert isn't a built in function

I have no idea how that got in there.

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

14 years agospec: Fix a code tag
Evan Shaw [Sun, 23 May 2010 18:21:47 +0000 (11:21 -0700)]
spec: Fix a code tag

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

14 years agoWhen making images, allocate one big buffer instead of many small ones.
Nigel Tao [Sun, 23 May 2010 18:12:00 +0000 (11:12 -0700)]
When making images, allocate one big buffer instead of many small ones.

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

14 years agogo/printer, gofmt: fix printing of labels,
Robert Griesemer [Sat, 22 May 2010 03:25:08 +0000 (20:25 -0700)]
go/printer, gofmt: fix printing of labels,
apply gofmt to src, misc

Fixes #752.

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

14 years agotest/hilbert.go: convert to test case and benchmark for big.Rat
Robert Griesemer [Sat, 22 May 2010 03:20:17 +0000 (20:20 -0700)]
test/hilbert.go: convert to test case and benchmark for big.Rat

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

14 years agoroll back 1193046 - fix build
Russ Cox [Sat, 22 May 2010 01:29:18 +0000 (18:29 -0700)]
roll back 1193046 - fix build

R=dho
CC=golang-dev
https://golang.org/cl/1257043

14 years agocgo: better error for no C symbols
Devon H. O'Dell [Sat, 22 May 2010 00:31:18 +0000 (17:31 -0700)]
cgo: better error for no C symbols

R=rsc, iant
CC=golang-dev, graeme.perrow
https://golang.org/cl/1193046

14 years agonet: implement raw sockets
Christopher Wedgwood [Sat, 22 May 2010 00:30:40 +0000 (17:30 -0700)]
net: implement raw sockets

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

14 years agobig: Add Rat type
Evan Shaw [Fri, 21 May 2010 23:14:55 +0000 (16:14 -0700)]
big: Add Rat type

Implementations are pretty rough and simple at this point, but it's a start.

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

14 years agoissue 789: keep test case
Robert Griesemer [Fri, 21 May 2010 21:53:54 +0000 (14:53 -0700)]
issue 789: keep test case

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

14 years agoruntime: correct tracebacks for nascent goroutines, even closures
Russ Cox [Fri, 21 May 2010 21:40:21 +0000 (14:40 -0700)]
runtime: correct tracebacks for nascent goroutines, even closures

Fixes #780.

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

14 years agosyscall: add Utimes, Futimes stubs for NaCl - fix build
Russ Cox [Fri, 21 May 2010 21:39:10 +0000 (14:39 -0700)]
syscall: add Utimes, Futimes stubs for NaCl - fix build

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