]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
13 years agorelease.2010-09-22 weekly.2010-09-22
Andrew Gerrand [Thu, 23 Sep 2010 01:49:47 +0000 (11:49 +1000)]
release.2010-09-22

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

13 years agonetchan: fix comment typo.
Nigel Tao [Thu, 23 Sep 2010 01:32:11 +0000 (11:32 +1000)]
netchan: fix comment typo.

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

13 years agoexp/draw: add Point.Eq, Point.Mul, Point.Div, Rectangle.Size methods
Roger Peppe [Thu, 23 Sep 2010 00:58:59 +0000 (10:58 +1000)]
exp/draw: add Point.Eq, Point.Mul, Point.Div, Rectangle.Size methods

R=nigeltao, nigeltao_golang, rsc
CC=golang-dev, r
https://golang.org/cl/2192048

13 years agohttp: fix redirect test for international users
Andrew Gerrand [Thu, 23 Sep 2010 00:40:07 +0000 (10:40 +1000)]
http: fix redirect test for international users

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

13 years agobuild: add missing files for arm changes
Russ Cox [Wed, 22 Sep 2010 21:21:02 +0000 (17:21 -0400)]
build: add missing files for arm changes

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

13 years agohttp: Change redirect test URL, as the old one now fails.
Ian Lance Taylor [Wed, 22 Sep 2010 21:20:15 +0000 (14:20 -0700)]
http: Change redirect test URL, as the old one now fails.

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

13 years agogofmt: support for ... after actual arguments
Robert Griesemer [Wed, 22 Sep 2010 21:05:14 +0000 (14:05 -0700)]
gofmt: support for ... after actual arguments

Pending acceptance of the proposed language change.

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

13 years agosuffixarray: cleanup per suggestion from Roger Peppe
Robert Griesemer [Wed, 22 Sep 2010 18:03:57 +0000 (11:03 -0700)]
suffixarray: cleanup per suggestion from Roger Peppe

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

13 years agohttp: don't always escape all reserved chars (fix build)
Andrew Gerrand [Wed, 22 Sep 2010 06:59:35 +0000 (16:59 +1000)]
http: don't always escape all reserved chars (fix build)

R=nigeltao, nigeltao_golang
CC=golang-dev
https://golang.org/cl/2206044

13 years agohttp: escape _all_ reserved characters as per the RFC
Andrew Gerrand [Wed, 22 Sep 2010 06:25:26 +0000 (16:25 +1000)]
http: escape _all_ reserved characters as per the RFC

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

13 years agosuffixarray: a package for creating suffixarray-based indexes
Robert Griesemer [Wed, 22 Sep 2010 06:12:57 +0000 (23:12 -0700)]
suffixarray: a package for creating suffixarray-based indexes

This is a replacement for pending CL 2219042. It only contains
the raw suffixarray functionality with two methods:

- New       create a new index from some data
- Lookup    lookup occurences of a bytes slice in the data

Any other functionality (dealing with multiple data sets and
the corresponding position lists) is generic and doesn't have
to be part of this package.

Known performance bug: This implementation works fine for data sets
up to several megabytes as long as it doesn't contain very long
contiguous sequences of equal bytes. For instance, index creation for
all .go files under GOROOT (250KLOCs, approx. 9MB) takes ~50s on
2.66 GHz Intel Xeon as long as test/fixedbugs/257.go is excluded.
With that file, index creation times takes several days. 257.go contains
a string of 1M smiley faces.

There are more sophisticated suffixarray creation algorithms which
can handle very long common prefixes. The implementation can be
updated w/o the need to change the interface.

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

13 years agofmt: support '*' for width or precision
Anthony Martin [Wed, 22 Sep 2010 06:10:38 +0000 (16:10 +1000)]
fmt: support '*' for width or precision

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

13 years agobuild: make all.bash run on Ubuntu ARM
Russ Cox [Wed, 22 Sep 2010 05:30:42 +0000 (15:30 +1000)]
build: make all.bash run on Ubuntu ARM

Sent from my phone.

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

13 years agomisc/dashboard/builder: -cmd for user-specified build command
Andrew Gerrand [Wed, 22 Sep 2010 05:18:41 +0000 (15:18 +1000)]
misc/dashboard/builder: -cmd for user-specified build command

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

13 years agoos: make Open() O_APPEND flag work on windows
Alex Brainman [Wed, 22 Sep 2010 03:12:25 +0000 (13:12 +1000)]
os: make Open() O_APPEND flag work on windows

Fixes #1124.
Implementation is suggested by Skip.
Test is suggested by PeterGo.

R=r, PeterGo, rsc
CC=golang-dev, skip.tavakkolian
https://golang.org/cl/2256041

13 years agostrings: fix minor bug in LastIndexFunc
Roger Peppe [Wed, 22 Sep 2010 02:58:09 +0000 (22:58 -0400)]
strings: fix minor bug in LastIndexFunc

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

13 years agobuild: fixes for native arm build
Russ Cox [Wed, 22 Sep 2010 02:41:32 +0000 (22:41 -0400)]
build: fixes for native arm build

R=kaib
CC=golang-dev
https://golang.org/cl/2254044

13 years agocgo: bug fixes
Russ Cox [Wed, 22 Sep 2010 02:41:19 +0000 (22:41 -0400)]
cgo: bug fixes

* Add documentation about array arguments.  Fixes issue 1125.
* Do not interpret x, y := z, w as special errno form.  Fixes issue 952.
* Fix nested Go calls (brainman).  Fixes issue 907.

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

13 years agoexp/4s, exp/nacl/av: sync to recent exp/draw changes.
Nigel Tao [Wed, 22 Sep 2010 02:20:56 +0000 (12:20 +1000)]
exp/4s, exp/nacl/av: sync to recent exp/draw changes.

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

13 years agomisc/dashboard/builder: fix bug that caused old revisions to be rebuilt
Andrew Gerrand [Wed, 22 Sep 2010 01:42:40 +0000 (11:42 +1000)]
misc/dashboard/builder: fix bug that caused old revisions to be rebuilt

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

13 years agodoc: variable-width layout
Andrew Gerrand [Wed, 22 Sep 2010 00:43:01 +0000 (10:43 +1000)]
doc: variable-width layout

The front page remains fixed-width.
All other pages should look good in windows >=500px wide.

Includes additional styles for search result highlighting,
code comments, and general CSS clean-ups.

Tested with Chrome 6, Firefox 3.6, IE 7, and IE 8.

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

13 years agosyscall: Use vsyscall for syscall.Gettimeofday and .Time on linux amd64.
Ian Lance Taylor [Tue, 21 Sep 2010 13:49:56 +0000 (06:49 -0700)]
syscall: Use vsyscall for syscall.Gettimeofday and .Time on linux amd64.

Regenerate zsyscall_linux_*.go files with recent changes to
mksyscall.sh.

Add socketpair to syscall_linux_amd64.go; for some reason it
was in the generated file but not in the source file.

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

13 years agoregexp: delete Iter methods
Rob Pike [Tue, 21 Sep 2010 11:21:44 +0000 (21:21 +1000)]
regexp: delete Iter methods
They are unused and not that useful anyway.

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

13 years agomisc/dashboard/builder: fixes and improvements
Andrew Gerrand [Tue, 21 Sep 2010 10:32:36 +0000 (20:32 +1000)]
misc/dashboard/builder: fixes and improvements

- fix release upload
- add -rev= flag to build specific revision and exit
- added support for all-$GOARCH.bash

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

13 years agoenv.bash: fix building in directory with spaces in the path.
Alex Brainman [Tue, 21 Sep 2010 06:43:31 +0000 (16:43 +1000)]
env.bash: fix building in directory with spaces in the path.

Fixes #1122.
Thanks to BigBoss1964 for the solution.

R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2246042

13 years agoexp/nacl/av: update color to max out at 1<<16-1 instead of 1<<32-1.
Nigel Tao [Tue, 21 Sep 2010 06:13:19 +0000 (16:13 +1000)]
exp/nacl/av: update color to max out at 1<<16-1 instead of 1<<32-1.
Fix missing return in Set(x, y, color).

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

13 years agogodoc: default filter file name should be ""
Robert Griesemer [Mon, 20 Sep 2010 23:19:17 +0000 (16:19 -0700)]
godoc: default filter file name should be ""

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

13 years agoloader fix
Ken Thompson [Mon, 20 Sep 2010 21:23:25 +0000 (14:23 -0700)]
loader fix
static init redo

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

13 years agodoc: fix typo in go_spec.html
Joe Poirier [Mon, 20 Sep 2010 17:51:05 +0000 (10:51 -0700)]
doc: fix typo in go_spec.html

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

13 years ago6l/8l: emit DWARF frame info.
Luuk van Dijk [Mon, 20 Sep 2010 16:44:19 +0000 (18:44 +0200)]
6l/8l: emit DWARF frame info.

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

13 years agocrypto/x509, crypto/tls: improve root matching and observe CA flag.
Adam Langley [Mon, 20 Sep 2010 16:17:31 +0000 (12:17 -0400)]
crypto/x509, crypto/tls: improve root matching and observe CA flag.

The key/value format of X.500 names means that it's possible to encode
a name with multiple values for, say, organisation. RFC5280
doesn't seem to consider this, but there are Verisign root
certificates which do this and, in order to find the correct
root certificate in some cases, we need to handle it.

Also, CA certificates should set the CA flag and we now check
this. After looking at the other X.509 extensions it appears
that they are universally ignored/bit rotted away so we ignore
them.

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

13 years agoFix certificate validation.
Adam Langley [Mon, 20 Sep 2010 14:32:08 +0000 (10:32 -0400)]
Fix certificate validation.

asn1: add support for T61String because this is the string type which
    several www.google.com certificates are now using for fields like
    CommonName
tls: force a handshake in Dial so that certificates are ready
    afterwards.

Fixes #1114.

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

13 years agonetchan: fix unimportant typo in test error call.
Rob Pike [Mon, 20 Sep 2010 07:24:40 +0000 (17:24 +1000)]
netchan: fix unimportant typo in test error call.

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

13 years agonetchan: provide a method (Importer.Errors()) to recover protocol errors.
Rob Pike [Mon, 20 Sep 2010 05:28:38 +0000 (15:28 +1000)]
netchan: provide a method (Importer.Errors()) to recover protocol errors.

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

13 years agoMake.inc: make GOOS detection work on windows
Alex Brainman [Mon, 20 Sep 2010 05:19:13 +0000 (15:19 +1000)]
Make.inc: make GOOS detection work on windows

R=rsc, Joe Poirier, r
CC=golang-dev
https://golang.org/cl/2248041

13 years agosyscall: fix NaCl
Russ Cox [Mon, 20 Sep 2010 03:28:45 +0000 (23:28 -0400)]
syscall: fix NaCl

missing from last CL, sorry

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

13 years agotest: fix NaCl build
Russ Cox [Mon, 20 Sep 2010 03:28:32 +0000 (23:28 -0400)]
test: fix NaCl build

Wasn't running the temp binary under $E (emulator).

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

13 years agoruntime: better panic for send to nil channel
Russ Cox [Mon, 20 Sep 2010 03:28:12 +0000 (23:28 -0400)]
runtime: better panic for send to nil channel

*Much* better on NaCl, where memory faults are deadly.

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

13 years agonacl: fix zero-length writes
Russ Cox [Mon, 20 Sep 2010 02:52:30 +0000 (22:52 -0400)]
nacl: fix zero-length writes

NaCl rejects zero-length write using nil pointer.

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

13 years ago6l, 8l: clean up ELF code, fix NaCl
Russ Cox [Mon, 20 Sep 2010 02:10:34 +0000 (22:10 -0400)]
6l, 8l: clean up ELF code, fix NaCl

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

13 years agoexp/draw/x11: mouse location is a signed integer.
Nigel Tao [Mon, 20 Sep 2010 00:18:09 +0000 (10:18 +1000)]
exp/draw/x11: mouse location is a signed integer.

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

13 years agonetchan: handle closing of channels.
Rob Pike [Mon, 20 Sep 2010 00:14:39 +0000 (10:14 +1000)]
netchan: handle closing of channels.
This also silences some misleading logging.
Also improve logging.

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

13 years ago5l: avoid fixed buffers in list
Russ Cox [Sun, 19 Sep 2010 23:44:52 +0000 (19:44 -0400)]
5l: avoid fixed buffers in list

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

13 years agodoc/go_mem.html: update location of "once".
Rob Pike [Sun, 19 Sep 2010 21:37:41 +0000 (07:37 +1000)]
doc/go_mem.html: update location of "once".
Fixes #1118.

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

13 years agogob: make robust when decoding a struct with non-struct data.
Rob Pike [Sun, 19 Sep 2010 21:37:06 +0000 (07:37 +1000)]
gob: make robust when decoding a struct with non-struct data.
The decoder was crashing when handling an rpc that expected
a struct but was delivered something else.  This diagnoses the
problem.  The other direction (expecting non-struct but getting
one) was already handled.

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

13 years agowindows: fix netchan test by using 127.0.0.1.
Rob Pike [Sat, 18 Sep 2010 01:43:10 +0000 (11:43 +1000)]
windows: fix netchan test by using 127.0.0.1.
Re-enable the test on Windows.

R=brainman, alex.brainman
CC=golang-dev
https://golang.org/cl/2244041

13 years agopkg/Makefile: disable netchan test to fix windows build
Alex Brainman [Sat, 18 Sep 2010 01:09:08 +0000 (11:09 +1000)]
pkg/Makefile: disable netchan test to fix windows build

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

13 years agodoc: fix typo in go_for_cpp_programmers.html
Andrew Gerrand [Fri, 17 Sep 2010 02:39:01 +0000 (12:39 +1000)]
doc: fix typo in go_for_cpp_programmers.html

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

13 years agoos: make RemoveAll() work on windows
Alex Brainman [Fri, 17 Sep 2010 02:35:34 +0000 (12:35 +1000)]
os: make RemoveAll() work on windows

R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/2212041

13 years agofix various comments
Robert Griesemer [Fri, 17 Sep 2010 01:21:01 +0000 (18:21 -0700)]
fix various comments

(os package comments were duplicates)

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

13 years agoadd readonly flag to static initialization
Ken Thompson [Thu, 16 Sep 2010 23:42:38 +0000 (16:42 -0700)]
add readonly flag to static initialization

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

13 years agonetchan: add a cross-connect test.
Rob Pike [Thu, 16 Sep 2010 21:12:54 +0000 (07:12 +1000)]
netchan: add a cross-connect test.
Suggested in a bug report (since addressed) by Axel Schreiner.

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

13 years agogodoc: show "Last update" info for directory listings.
Robert Griesemer [Thu, 16 Sep 2010 20:45:40 +0000 (13:45 -0700)]
godoc: show "Last update" info for directory listings.

Use -timestamps=false flag to disable.

(This used to be shown on the front-page below the
build information with the old godoc. However, the
time stamps are directory-specific and should be
shown with the directory.)

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

13 years agogc: spell debug['u'] correctly
Russ Cox [Thu, 16 Sep 2010 19:50:46 +0000 (15:50 -0400)]
gc: spell debug['u'] correctly

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

13 years agogc: make sure path names are canonical
Russ Cox [Thu, 16 Sep 2010 19:37:57 +0000 (15:37 -0400)]
gc: make sure path names are canonical

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

13 years agogofmt: add another exception to test cases
Robert Griesemer [Thu, 16 Sep 2010 18:03:28 +0000 (11:03 -0700)]
gofmt: add another exception to test cases

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

13 years agogodoc: don't use quadratic algorithm to filter paths
Robert Griesemer [Thu, 16 Sep 2010 17:40:07 +0000 (10:40 -0700)]
godoc: don't use quadratic algorithm to filter paths

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

13 years agocgo: show preamble gcc errors
Eric Clark [Thu, 16 Sep 2010 17:38:23 +0000 (13:38 -0400)]
cgo: show preamble gcc errors

Fixes #1081

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

13 years agonet/dict: parse response correctly + typo
Fazlul Shahriar [Thu, 16 Sep 2010 17:37:35 +0000 (13:37 -0400)]
net/dict: parse response correctly + typo

* SHOW DB responds with a
  "110 n databases present - text follows" -- parse it.
* Doing a Define() on a non-existing word gives error
  "invalid definition count: no", when we really
  want "552 no match".

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

13 years agotag release.2010-09-15
Andrew Gerrand [Thu, 16 Sep 2010 04:04:34 +0000 (14:04 +1000)]
tag release.2010-09-15

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

13 years agorelease.2010-09-15 weekly.2010-09-15
Andrew Gerrand [Thu, 16 Sep 2010 04:02:24 +0000 (14:02 +1000)]
release.2010-09-15

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

13 years agogolang.org redesign
Andrew Gerrand [Thu, 16 Sep 2010 04:01:02 +0000 (14:01 +1000)]
golang.org redesign

R=r, rsc, gri
CC=golang-dev, iant, ken2, lvd, nigeltao_golang, stephenm
https://golang.org/cl/2182042

13 years agonetchan: fix bug for imported send.
Rob Pike [Thu, 16 Sep 2010 03:59:31 +0000 (13:59 +1000)]
netchan: fix bug for imported send.
Also add a bit of debugging and sanitation code.
Fixes #769.

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

13 years agofix build
Robert Griesemer [Thu, 16 Sep 2010 00:00:00 +0000 (17:00 -0700)]
fix build

R=iant
CC=golang-dev, ken2
https://golang.org/cl/2182043

13 years agoos: error in documentation
Robert Griesemer [Wed, 15 Sep 2010 22:38:16 +0000 (15:38 -0700)]
os: error in documentation

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

13 years agogodoc: only show directories containing true package files
Robert Griesemer [Wed, 15 Sep 2010 22:07:52 +0000 (15:07 -0700)]
godoc: only show directories containing true package files

(ignore directories containing *.go files that don't
actually start with a package clause)

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

13 years agofix line number printing
Ken Thompson [Wed, 15 Sep 2010 21:32:09 +0000 (14:32 -0700)]
fix line number printing
with //line directives.

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

13 years agolibmach: fix build on arm host
Russ Cox [Wed, 15 Sep 2010 20:52:11 +0000 (16:52 -0400)]
libmach: fix build on arm host

Fixes #1079.

R=r, trufae, fgergo
CC=golang-dev
https://golang.org/cl/2103048

13 years agonetchan: make -1 unlimited, as advertised.
Rob Pike [Wed, 15 Sep 2010 06:41:37 +0000 (23:41 -0700)]
netchan: make -1 unlimited, as advertised.

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

13 years agogodoc: better handling of deep directory trees
Robert Griesemer [Wed, 15 Sep 2010 01:58:09 +0000 (18:58 -0700)]
godoc: better handling of deep directory trees

also: fix a logic error with filter use at startup

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

13 years agogodoc: atomically update filter file
Robert Griesemer [Tue, 14 Sep 2010 23:54:38 +0000 (16:54 -0700)]
godoc: atomically update filter file

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

13 years agogodoc: use correct delay time (bug fix)
Robert Griesemer [Tue, 14 Sep 2010 20:59:45 +0000 (13:59 -0700)]
godoc: use correct delay time (bug fix)

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

13 years agogodoc documentation: fixed typo, more precise comment
Robert Griesemer [Tue, 14 Sep 2010 19:03:26 +0000 (12:03 -0700)]
godoc documentation: fixed typo, more precise comment

R=iant
CC=golang-dev
https://golang.org/cl/2184042

13 years agogodoc: better support for directory trees for user-defined
Robert Griesemer [Tue, 14 Sep 2010 18:16:36 +0000 (11:16 -0700)]
godoc: better support for directory trees for user-defined
       file systems provided via -path

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

13 years agotabs
Russ Cox [Tue, 14 Sep 2010 15:16:57 +0000 (11:16 -0400)]
tabs

TBR=lvd
CC=golang-dev
https://golang.org/cl/2194041

13 years ago6l, 8l: make etext accurate; introduce rodata, erodata.
Russ Cox [Tue, 14 Sep 2010 15:13:04 +0000 (11:13 -0400)]
6l, 8l: make etext accurate; introduce rodata, erodata.

Makes binaries work with 6cov again.

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

13 years agoPreliminary support for 'copy' builtin function in exp/eval
Sebastien Binet [Tue, 14 Sep 2010 07:25:34 +0000 (17:25 +1000)]
Preliminary support for 'copy' builtin function in exp/eval

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

13 years agoCLA for Sebastien Binet
Rob Pike [Tue, 14 Sep 2010 07:24:29 +0000 (17:24 +1000)]
CLA for Sebastien Binet

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

13 years agodoc: fix typo in Programming FAQ
Andrew Gerrand [Tue, 14 Sep 2010 03:33:27 +0000 (13:33 +1000)]
doc: fix typo in Programming FAQ

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

13 years agofmt.Fscan: use UnreadRune to preserve data across calls.
Rob Pike [Tue, 14 Sep 2010 01:06:17 +0000 (11:06 +1000)]
fmt.Fscan: use UnreadRune to preserve data across calls.
Fixes #1055.
(About as well as it can be fixed without changing the API.)

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

13 years agogc: implement new comparison rule
Russ Cox [Mon, 13 Sep 2010 19:42:47 +0000 (15:42 -0400)]
gc: implement new comparison rule

The new comparison rule was added to the spec by

changeset:   5605:33abb649cb63
user:        Robert Griesemer <gri@golang.org>
date:        Thu Jun 03 16:55:50 2010 -0700
files:       doc/go_spec.html
description:
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

but never implemented.

Fixes #1070.

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

13 years agogc: bug306
Russ Cox [Mon, 13 Sep 2010 19:42:14 +0000 (15:42 -0400)]
gc: bug306

Fixes #1040.

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

13 years agoA+C: Kai Backman (individual CLA)
Russ Cox [Mon, 13 Sep 2010 19:41:47 +0000 (15:41 -0400)]
A+C: Kai Backman (individual CLA)

Just AUTHORS; already in CONTRIBUTORS from work at Google.

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

13 years agojson: Add package comment
Scott Lawrence [Mon, 13 Sep 2010 06:03:27 +0000 (16:03 +1000)]
json: Add package comment

R=golang-dev, r2, r
CC=golang-dev
https://golang.org/cl/2149047

13 years agogo-mode.el: Fix highlighting for 'chan' type
Scott Lawrence [Mon, 13 Sep 2010 04:12:18 +0000 (00:12 -0400)]
go-mode.el: Fix highlighting for 'chan' type
Fixes #1038.

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

13 years ago(windows) disable tests that cause the build to fail
Joe Poirier [Mon, 13 Sep 2010 03:36:51 +0000 (13:36 +1000)]
(windows) disable tests that cause the build to fail

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

13 years agoarm tests: disable zerodivide.go: compilation fails.
Rob Pike [Mon, 13 Sep 2010 03:19:25 +0000 (13:19 +1000)]
arm tests: disable zerodivide.go: compilation fails.
Hope to fix the build.

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

13 years agolibcgo: fix NaCl build.
Nigel Tao [Mon, 13 Sep 2010 03:12:46 +0000 (13:12 +1000)]
libcgo: fix NaCl build.

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

13 years agogoinstall: warn when http:// is found at beginning of package name
Scott Lawrence [Mon, 13 Sep 2010 02:59:59 +0000 (12:59 +1000)]
goinstall: warn when http:// is found at beginning of package name
Fixes #860.

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

13 years agomisc/dashboard/builder: gobuilder, a continuous build client
Andrew Gerrand [Mon, 13 Sep 2010 00:46:17 +0000 (10:46 +1000)]
misc/dashboard/builder: gobuilder, a continuous build client

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

13 years agogc: fix symbol table generation on windows
Alex Brainman [Sun, 12 Sep 2010 08:07:13 +0000 (18:07 +1000)]
gc: fix symbol table generation on windows

gc records full, '/' delimited, filenames now.

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

13 years agobufio: add UnreadRune.
Rob Pike [Sun, 12 Sep 2010 07:40:27 +0000 (17:40 +1000)]
bufio: add UnreadRune.

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

13 years agoexec.LookPath() unix/windows separation
Joe Poirier [Sun, 12 Sep 2010 07:38:36 +0000 (17:38 +1000)]
exec.LookPath() unix/windows separation

R=brainman, rsc, vcc, rsc1
CC=golang-dev
https://golang.org/cl/2068041

13 years agolibmach: fix whitespace.
Nigel Tao [Sun, 12 Sep 2010 06:40:31 +0000 (16:40 +1000)]
libmach: fix whitespace.

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

13 years agotest: Make gccgo believe that the variables can change.
Ian Lance Taylor [Sun, 12 Sep 2010 05:51:05 +0000 (22:51 -0700)]
test: Make gccgo believe that the variables can change.

This test is supposed to test runtime behaviour.  However,
gccgo is smart enough to see that the variables are local to
the package and that they never change.  Add a function so
that gccgo thinks that the variables can in fact vary, so that
the test works at runtime as expected.

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

13 years agogc: make string x + y + z + ... + w efficient
Russ Cox [Sun, 12 Sep 2010 04:53:04 +0000 (00:53 -0400)]
gc: make string x + y + z + ... + w efficient

1 malloc per concatenation.

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

13 years ago6g, 6l, 8g, 8l: move read-only data to text segment
Russ Cox [Sun, 12 Sep 2010 04:17:44 +0000 (00:17 -0400)]
6g, 6l, 8g, 8l: move read-only data to text segment

Changing 5g and 5l too, but it doesn't work yet.

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

13 years ago5g: register allocation bugs
Russ Cox [Sun, 12 Sep 2010 04:06:45 +0000 (00:06 -0400)]
5g: register allocation bugs

Fixes #1099.

R=ken2, r
CC=golang-dev
https://golang.org/cl/2147047

13 years agocodereview: convert email address from Rietveld to lower case
Russ Cox [Sun, 12 Sep 2010 03:42:29 +0000 (23:42 -0400)]
codereview: convert email address from Rietveld to lower case
before looking for it in the CONTRIBUTORS file

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

13 years agolibmach: fix new thread race with Linux
Russ Cox [Sun, 12 Sep 2010 03:42:04 +0000 (23:42 -0400)]
libmach: fix new thread race with Linux

If you look at the sequence of values returned
by waitpid, it simply tells us about the child of
clone before it tells us that the parent called clone.
There's nothing we can do but assume unexpected
tids are newly cloned children.

Tested with 6prof on godoc.

Fixes #251.

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