]> Cypherpunks repositories - gostls13.git/log
gostls13.git
14 years agobytes: SSE for bytes.IndexByte on amd64
Evan Shaw [Tue, 9 Nov 2010 01:33:53 +0000 (17:33 -0800)]
bytes: SSE for bytes.IndexByte on amd64

Performance on 2.8 GHz Intel Core i7:

Before:
BenchmarkIndexByte4K  1000000              2997 ns/op        1366.70 MB/s
BenchmarkIndexByte4M      500           3049772 ns/op        1375.28 MB/s
BenchmarkIndexByte64M      50          49582280 ns/op        1353.48 MB/s

After:
BenchmarkIndexByte4K 10000000               298 ns/op       13744.97 MB/s
BenchmarkIndexByte4M    10000            285993 ns/op       14665.76 MB/s
BenchmarkIndexByte64M     500           4618172 ns/op       14531.48 MB/s

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

14 years agojson: don't indirect before testing for custom unmarshaler
Rob Pike [Mon, 8 Nov 2010 23:33:00 +0000 (15:33 -0800)]
json: don't indirect before testing for custom unmarshaler
Fixes #1260.

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

14 years agoos.Expand: don't call append for each non-variable char
Robert Griesemer [Mon, 8 Nov 2010 23:13:35 +0000 (15:13 -0800)]
os.Expand: don't call append for each non-variable char

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

14 years agostrconv: quote erroneous string in errors
Rob Pike [Mon, 8 Nov 2010 23:08:41 +0000 (15:08 -0800)]
strconv: quote erroneous string in errors
Fixes #1253.

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

14 years agoos: add Expand function to evaluate environment variables.
Rob Pike [Mon, 8 Nov 2010 21:25:01 +0000 (13:25 -0800)]
os: add Expand function to evaluate environment variables.

Fixes #1258.

R=gri, msolo, bradfitzpatrick, r2
CC=golang-dev
https://golang.org/cl/2988041

14 years ago6l/8l: generate dwarf variable names with disambiguating suffix.
Luuk van Dijk [Mon, 8 Nov 2010 18:48:21 +0000 (19:48 +0100)]
6l/8l: generate dwarf variable names with disambiguating suffix.

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

14 years agodoc/codewalk: update for changes in log package
Andrey Mirtchovski [Mon, 8 Nov 2010 17:58:57 +0000 (09:58 -0800)]
doc/codewalk: update for changes in log package

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

14 years agonet: fix windows build
Wei Guangjing [Sat, 6 Nov 2010 03:08:18 +0000 (23:08 -0400)]
net: fix windows build

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

14 years agotesting: rename type Test to InternalTest
Peter Mundy [Sat, 6 Nov 2010 03:05:53 +0000 (23:05 -0400)]
testing: rename type Test to InternalTest

type Benchmark has been renamed to InternalBenchmark

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

14 years agoenv.bash: more quoting in case of spaces
Russ Cox [Sat, 6 Nov 2010 03:04:08 +0000 (23:04 -0400)]
env.bash: more quoting in case of spaces

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

14 years agolibmach: detail for darwin errors
Russ Cox [Sat, 6 Nov 2010 03:03:53 +0000 (23:03 -0400)]
libmach: detail for darwin errors

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

14 years agosyscall: use 64-bit file size for truncation on Linux
Peter Mundy [Fri, 5 Nov 2010 20:41:23 +0000 (16:41 -0400)]
syscall: use 64-bit file size for truncation on Linux

Truncate and Ftruncate for 32-bit Linux should use 64-bit
offset system calls.

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

14 years agoio: use SetFinalizer more elegantly in Pipe
Christopher Wedgwood [Fri, 5 Nov 2010 19:05:39 +0000 (15:05 -0400)]
io: use SetFinalizer more elegantly in Pipe

(this works now that issue 751 is resolved)

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

14 years agogob: don't add "." if package path is empty when registering a type.
Rob Pike [Fri, 5 Nov 2010 18:22:28 +0000 (11:22 -0700)]
gob: don't add "." if package path is empty when registering a type.

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

14 years agogc: doc nit
Eric Clark [Fri, 5 Nov 2010 18:21:54 +0000 (11:21 -0700)]
gc: doc nit

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

14 years agonet: provide public access to file descriptors
Keith Rarick [Fri, 5 Nov 2010 18:02:03 +0000 (14:02 -0400)]
net: provide public access to file descriptors

Fixes #918.

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

14 years agoA+C: Keith Rarick (individual CLA)
Russ Cox [Fri, 5 Nov 2010 18:01:52 +0000 (14:01 -0400)]
A+C: Keith Rarick (individual CLA)

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

14 years agoruntime: explain nacl closure failure
Russ Cox [Fri, 5 Nov 2010 18:00:46 +0000 (14:00 -0400)]
runtime: explain nacl closure failure

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

14 years ago6l: More SSE instruction fixes
Evan Shaw [Fri, 5 Nov 2010 17:59:53 +0000 (13:59 -0400)]
6l: More SSE instruction fixes

PSADBW and PSHUFL had the wrong prefixes.

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

14 years agopath: add Glob
Benny Siegert [Fri, 5 Nov 2010 17:47:56 +0000 (10:47 -0700)]
path: add Glob

As discussed in http://groups.google.com/group/golang-dev/browse_thread/thread/926b7d550d98ec9e,
add a simple "path expander" function, which returns all the
files matching the given pattern. This function is called Glob
after glob(3) in libc.

Also add a convenience function, hasMeta, that checks whether
a string contains one of the characters which are specially handled
by Match.

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

14 years agoCLA: Benny Siegert <bsiegert@gmail.com>
Rob Pike [Fri, 5 Nov 2010 17:47:35 +0000 (10:47 -0700)]
CLA: Benny Siegert <bsiegert@gmail.com>

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

14 years agogob: when sending an interface value, indirect down to the
Rob Pike [Fri, 5 Nov 2010 17:36:27 +0000 (10:36 -0700)]
gob: when sending an interface value, indirect down to the
underlying type; otherwise encoding fails when sending
a pointer value.

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

14 years agocrypto/tls: use pool building for certificate checking
Adam Langley [Fri, 5 Nov 2010 13:54:56 +0000 (09:54 -0400)]
crypto/tls: use pool building for certificate checking

Previously we checked the certificate chain from the leaf
upwards and expected to jump from the last cert in the chain to
a root certificate.

Although technically correct, there are a number of sites with
problems including out-of-order certs, superfluous certs and
missing certs.

The last of these requires AIA chasing, which is a lot of
complexity. However, we can address the more common cases by
using a pool building algorithm, as browsers do.

We build a pool of root certificates and a pool from the
server's chain. We then try to build a path to a root
certificate, using either of these pools.

This differs from the behaviour of, say, Firefox in that Firefox
will accumulate intermedite certificate in a persistent pool in
the hope that it can use them to fill in gaps in future chains.

We don't do that because it leads to confusing errors which only
occur based on the order to sites visited.

This change also enabled SNI for tls.Dial so that sites will return
the correct certificate chain.

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

14 years agoruntime: fix windows build
Alex Brainman [Fri, 5 Nov 2010 06:27:12 +0000 (17:27 +1100)]
runtime: fix windows build

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

14 years agodoc: make root.html's blog section less cluttered.
Nigel Tao [Fri, 5 Nov 2010 05:13:58 +0000 (16:13 +1100)]
doc: make root.html's blog section less cluttered.

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

14 years agogo spec: line comments may end in EOF
Robert Griesemer [Thu, 4 Nov 2010 20:48:32 +0000 (13:48 -0700)]
go spec: line comments may end in EOF

Consistency argument: A valid Go program should
remain valid after stripping leading and trailing
whitespace. This was not true so far if the last
text in the source was a line comment.

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

14 years agoSmall addition to previous optimization of memequal as discussed here: http://groups...
Graham Miller [Thu, 4 Nov 2010 20:45:18 +0000 (13:45 -0700)]
Small addition to previous optimization of memequal as discussed here: http://groups.google.com/group/golang-nuts/browse_thread/thread/f591ba36d83723c0/9aba02d344045f38

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

14 years agogo/scanner: line comments may end in EOF
Robert Griesemer [Thu, 4 Nov 2010 20:15:42 +0000 (13:15 -0700)]
go/scanner: line comments may end in EOF

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

14 years agogc: line comments may end in EOF
Russ Cox [Thu, 4 Nov 2010 20:04:04 +0000 (16:04 -0400)]
gc: line comments may end in EOF

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

14 years agoruntime: ,s/[a-zA-Z0-9_]+/runtime·&/g, almost
Russ Cox [Thu, 4 Nov 2010 18:00:19 +0000 (14:00 -0400)]
runtime: ,s/[a-zA-Z0-9_]+/runtime·&/g, almost

Prefix all external symbols in runtime by runtime·,
to avoid conflicts with possible symbols of the same
name in linked-in C libraries.  The obvious conflicts
are printf, malloc, and free, but hide everything to
avoid future pain.

The symbols left alone are:

** known to cgo **
_cgo_free
_cgo_malloc
libcgo_thread_start
initcgo
ncgocall

** known to linker **
_rt0_$GOARCH
_rt0_$GOARCH_$GOOS
text
etext
data
end
pclntab
epclntab
symtab
esymtab

** known to C compiler **
_divv
_modv
_div64by32
etc (arch specific)

Tested on darwin/386, darwin/amd64, linux/386, linux/amd64.

Built (but not tested) for freebsd/386, freebsd/amd64, linux/arm, windows/386.

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

14 years agocodereview: more utf-8 nonsense
Russ Cox [Thu, 4 Nov 2010 17:58:32 +0000 (13:58 -0400)]
codereview: more utf-8 nonsense

To annoy hg: Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα.

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

14 years agoUse future official DWARF language code for Go.
Ian Lance Taylor [Thu, 4 Nov 2010 15:45:25 +0000 (08:45 -0700)]
Use future official DWARF language code for Go.

http://dwarfstd.org/ShowIssue.php?issue=101014.1&type=open

Informally accepted for future DWARF 5.

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

14 years agonet: fix LookupSRV
Chris Jones [Thu, 4 Nov 2010 14:30:39 +0000 (10:30 -0400)]
net: fix LookupSRV

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

14 years agoA+C: add Chris Jones (individual CLA)
Russ Cox [Thu, 4 Nov 2010 14:30:13 +0000 (10:30 -0400)]
A+C: add Chris Jones (individual CLA)

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

14 years agoadd hardware floating point.
Ken Thompson [Thu, 4 Nov 2010 00:31:07 +0000 (17:31 -0700)]
add hardware floating point.
currently, softfloat does not work and
there are some unsigned-to-float conversion errors.

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

14 years agounits: fix compilation
Rob Pike [Wed, 3 Nov 2010 19:20:37 +0000 (12:20 -0700)]
units: fix compilation

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

14 years agoEffective Go: correct error in recent edit: "..." is in call to Sprintln, not Output.
Rob Pike [Wed, 3 Nov 2010 18:09:43 +0000 (11:09 -0700)]
Effective Go: correct error in recent edit: "..." is in call to Sprintln, not Output.

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

14 years agocrypto: switch block ciphers to detination first.
Adam Langley [Wed, 3 Nov 2010 14:43:43 +0000 (10:43 -0400)]
crypto: switch block ciphers to detination first.

Previously all the functions took two arguments: src, dst. This is the
reverse of the usual Go style and worth changing sooner rather than
later.

Unfortunately, this is a change that the type system doesn't help
with. However, it's not a subtle change: any unittest worth the name
should catch this.

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

14 years agocrypto: add cast5
Adam Langley [Wed, 3 Nov 2010 14:39:15 +0000 (10:39 -0400)]
crypto: add cast5

CAST5 is the default OpenPGP cipher.

(This won't make Rob any happier about the size of crypto/, of course.)

It already has dst, src in that order but it doesn't have any users yet so I figure it's better than changing it later.

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

14 years agotag release.2010-11-02
Andrew Gerrand [Wed, 3 Nov 2010 00:50:52 +0000 (11:50 +1100)]
tag release.2010-11-02

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

14 years agorelease.2010-11-02 weekly.2010-11-02
Andrew Gerrand [Wed, 3 Nov 2010 00:49:22 +0000 (11:49 +1100)]
release.2010-11-02

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

14 years agosync: fix typo in documentation
Robert Griesemer [Tue, 2 Nov 2010 23:01:07 +0000 (16:01 -0700)]
sync: fix typo in documentation

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

14 years agoFix a deadlock bug in the rpc client. The panic will trigger
Kai Backman [Tue, 2 Nov 2010 21:04:56 +0000 (14:04 -0700)]
Fix a deadlock bug in the rpc client. The panic will trigger
regularly when client connections are flaky (probably another
issue).

(credits to jussi@tinkercad.com for finding the issue)

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

14 years agonetchan: fix locking bug.
Rob Pike [Tue, 2 Nov 2010 17:58:27 +0000 (10:58 -0700)]
netchan: fix locking bug.
There's no need to hold the client mutex when calling encode, since encode itself
uses a mutex to make the writes atomic.  However, we need to keep
the messages ordered, so add a mutex for that purpose alone.
Fixes #1244.

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

14 years agogo/scanner: removed scanner/internal-only uses of token.Position
Robert Griesemer [Tue, 2 Nov 2010 17:38:07 +0000 (10:38 -0700)]
go/scanner: removed scanner/internal-only uses of token.Position

First step towards a more light-weight implementation of token.Position:
- only use token.Position for reporting token and error position
- use offsets only for scanner control
- no interface changes yet

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

14 years agoEffective Go: append and a few words about ...
Rob Pike [Tue, 2 Nov 2010 04:46:04 +0000 (21:46 -0700)]
Effective Go: append and a few words about ...

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

14 years agotest/ken/convert.go: add conversion torture test
Rob Pike [Tue, 2 Nov 2010 00:49:06 +0000 (17:49 -0700)]
test/ken/convert.go: add conversion torture test
(written by ken)

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

14 years ago8l: pe generation fixes
Alex Brainman [Mon, 1 Nov 2010 23:56:56 +0000 (10:56 +1100)]
8l: pe generation fixes

Restore ability to have different file and
section alignment in generated pe file.

Stop generating .bss pe section, it is
part of .data now.

Some code refactoring.

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

14 years agofix build
Robert Griesemer [Mon, 1 Nov 2010 22:25:39 +0000 (15:25 -0700)]
fix build

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

14 years agoUse strings.Contains in src/cmd/...
Brad Fitzpatrick [Mon, 1 Nov 2010 22:21:35 +0000 (15:21 -0700)]
Use strings.Contains in src/cmd/...

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

14 years agogo/printer: do not remove parens around composite literals starting with a type name...
Robert Griesemer [Mon, 1 Nov 2010 22:08:03 +0000 (15:08 -0700)]
go/printer: do not remove parens around composite literals starting with a type name in control clauses
(even when they are nested inside an expression).

Fixes #1243.

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

14 years agogo/ast: add Inspect function for easy AST inspection w/o a visitor
Robert Griesemer [Mon, 1 Nov 2010 22:06:34 +0000 (15:06 -0700)]
go/ast: add Inspect function for easy AST inspection w/o a visitor

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

14 years agodebug/pe, cgo: add windows support
Wei Guangjing [Mon, 1 Nov 2010 21:52:26 +0000 (17:52 -0400)]
debug/pe, cgo: add windows support

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

14 years agostrings: Contains
Brad Fitzpatrick [Mon, 1 Nov 2010 21:32:48 +0000 (14:32 -0700)]
strings: Contains

Tiny helper to avoid strings.Index(s, sub) != -1

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

14 years agogotest: if the benchmark list is empty, print it in a way that
Rob Pike [Mon, 1 Nov 2010 21:23:07 +0000 (14:23 -0700)]
gotest: if the benchmark list is empty, print it in a way that
gofmt will leave alone.

R=rsc, bradfitz, bradfitzpatrick
CC=golang-dev
https://golang.org/cl/2816041

14 years agosyscall: SIO constants for Linux
Albert Strasheim [Mon, 1 Nov 2010 20:42:33 +0000 (16:42 -0400)]
syscall: SIO constants for Linux

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

14 years agocodereview: fix 'hg sync' and 'hg download' in Python 2.7
Fazlul Shahriar [Mon, 1 Nov 2010 20:37:17 +0000 (16:37 -0400)]
codereview: fix 'hg sync' and 'hg download' in Python 2.7

Fixes #1218.

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

14 years agotesting: add Benchmark to allow benchmarks to be run without gotest.
Roger Peppe [Mon, 1 Nov 2010 20:15:17 +0000 (16:15 -0400)]
testing: add Benchmark to allow benchmarks to be run without gotest.

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

14 years agohttp server: don't send trailing '0' for chunked encoding when responding with 304...
Michael Hoisie [Mon, 1 Nov 2010 20:15:03 +0000 (16:15 -0400)]
http server: don't send trailing '0' for chunked encoding when responding with 304 NotModified

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

14 years agobuild: fiddle with make variables
Russ Cox [Mon, 1 Nov 2010 20:14:58 +0000 (16:14 -0400)]
build: fiddle with make variables

Fixes #1234.

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

14 years agolibutf: update to Unicode 5.2.0 to match pkg/unicode
Anthony Martin [Mon, 1 Nov 2010 20:14:48 +0000 (16:14 -0400)]
libutf: update to Unicode 5.2.0 to match pkg/unicode

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

14 years ago6a/6l: fix MOVOU encoding
Evan Shaw [Mon, 1 Nov 2010 20:14:43 +0000 (16:14 -0400)]
6a/6l: fix MOVOU encoding

The andproto field was set incorrectly, causing 6a to encode illegal
instructions.

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

14 years agogo/scanner: don't accept '\x0g' character escape (bug fix)
Robert Griesemer [Mon, 1 Nov 2010 19:50:21 +0000 (12:50 -0700)]
go/scanner: don't accept '\x0g' character escape (bug fix)

Added more test cases.

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

14 years agogob: documentation. this time for sure.
Rob Pike [Mon, 1 Nov 2010 00:48:19 +0000 (17:48 -0700)]
gob: documentation. this time for sure.
if the interface value is nil, it sends no value,

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

14 years agomkrunetype: install a Makefile and tweak it slightly so it can be built.
Rob Pike [Mon, 1 Nov 2010 00:46:26 +0000 (17:46 -0700)]
mkrunetype: install a Makefile and tweak it slightly so it can be built.

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

14 years agogob: update documentation about wire format for interfaces.
Rob Pike [Sun, 31 Oct 2010 22:08:45 +0000 (15:08 -0700)]
gob: update documentation about wire format for interfaces.

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

14 years agogob: several fixes.
Rob Pike [Sun, 31 Oct 2010 20:41:30 +0000 (13:41 -0700)]
gob: several fixes.

1) Be sure to use the eval-time encoder/decoder rather than
the compile-time decoder.  In a few cases the receiver for
the compiling encoder was being pickled incorrectly into a
closure.
(This is the fix for issue 1238).

2) Get the innermost name right when given a pointer to an
unnamed type.

3) Use a count to delineate interface values, making it
possible to ignore values without having a concrete type
to encode into.  This is a protocol change but only for the
new feature, so it shouldn't affect anyone.  The old test
worked because, amazingly, it depended on bug #1.

Fixes #1238.

R=rsc, albert.strasheim
CC=golang-dev
https://golang.org/cl/2806041

14 years agokate: update for append
Evan Shaw [Sun, 31 Oct 2010 04:25:19 +0000 (21:25 -0700)]
kate: update for append

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

14 years agopidigits: Remove TODO, minor improvements
Evan Shaw [Sun, 31 Oct 2010 03:16:44 +0000 (20:16 -0700)]
pidigits: Remove TODO, minor improvements

I tried adding a Scale method to big.Int and it didn't make any noticeable
difference, so I'm removing my TODO.

Also got rid of a few obvious allocations that I missed earlier for a modest
improvement (~5%).

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

14 years agosyscall: fix windows build
Alex Brainman [Sat, 30 Oct 2010 12:55:22 +0000 (23:55 +1100)]
syscall: fix windows build

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

14 years agosyscall: fix Stat(path) where path is directory with trailing '/' on windows
Alex Brainman [Sat, 30 Oct 2010 12:06:49 +0000 (23:06 +1100)]
syscall: fix Stat(path) where path is directory with trailing '/' on windows

Fixes #1220.

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

14 years agomisc/bbedit: support append, other builtins
Anthony Starks [Sat, 30 Oct 2010 11:15:59 +0000 (22:15 +1100)]
misc/bbedit: support append, other builtins

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

14 years agomisc/vim: update list of builtins.
David Symonds [Sat, 30 Oct 2010 11:07:01 +0000 (22:07 +1100)]
misc/vim: update list of builtins.

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

14 years agogob: clarify the comments about installing the debug/dumper.
Rob Pike [Fri, 29 Oct 2010 22:52:25 +0000 (15:52 -0700)]
gob: clarify the comments about installing the debug/dumper.

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

14 years agogob: make the debugging (dumping) code work again. Mostly rewrite it, in fact.
Rob Pike [Fri, 29 Oct 2010 22:07:56 +0000 (15:07 -0700)]
gob: make the debugging (dumping) code work again. Mostly rewrite it, in fact.
It's still not compiled in by default.

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

14 years agogo/scanner: added another test case, clarified some code
Robert Griesemer [Fri, 29 Oct 2010 22:07:04 +0000 (15:07 -0700)]
go/scanner: added another test case, clarified some code

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

14 years agogo spec: append is now implemented
Robert Griesemer [Fri, 29 Oct 2010 18:44:48 +0000 (11:44 -0700)]
go spec: append is now implemented

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

14 years agoebnf: use append
Robert Griesemer [Fri, 29 Oct 2010 04:23:24 +0000 (21:23 -0700)]
ebnf: use append

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

14 years agotabwriter: use append
Robert Griesemer [Fri, 29 Oct 2010 04:23:04 +0000 (21:23 -0700)]
tabwriter: use append

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

14 years agogo/doc: use append
Robert Griesemer [Fri, 29 Oct 2010 00:26:01 +0000 (17:26 -0700)]
go/doc: use append

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

14 years agotesting: eliminate testing/regexp
Rob Pike [Thu, 28 Oct 2010 23:54:24 +0000 (16:54 -0700)]
testing: eliminate testing/regexp
Rather than updating the stripped-down regexp implementation embedded
in testing, delete it by passing the one function we need from the package
main file created by gotest.

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

14 years agoregexp: eliminate vector in favor of append.
Rob Pike [Thu, 28 Oct 2010 22:54:01 +0000 (15:54 -0700)]
regexp: eliminate vector in favor of append.

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

14 years agogo/printer: use append
Robert Griesemer [Thu, 28 Oct 2010 22:09:47 +0000 (15:09 -0700)]
go/printer: use append

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

14 years agogo/typechecker: use append
Robert Griesemer [Thu, 28 Oct 2010 22:09:21 +0000 (15:09 -0700)]
go/typechecker: use append

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

14 years agocontainer/list: document iteration
Andrew Gerrand [Thu, 28 Oct 2010 21:48:16 +0000 (08:48 +1100)]
container/list: document iteration

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

14 years agogo/parser: use append
Robert Griesemer [Thu, 28 Oct 2010 20:36:28 +0000 (13:36 -0700)]
go/parser: use append

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

14 years agogodoc: bug fix (bug introduced with revision 3ee58453e961)
Robert Griesemer [Thu, 28 Oct 2010 15:44:25 +0000 (08:44 -0700)]
godoc: bug fix (bug introduced with revision 3ee58453e961)
(thanks to Chris Dollin for identifying the cause)

Fixes #1237.

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

14 years agotest for append() built-in
Robert Griesemer [Thu, 28 Oct 2010 15:14:31 +0000 (08:14 -0700)]
test for append() built-in

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

14 years agouse append
Russ Cox [Thu, 28 Oct 2010 02:47:23 +0000 (19:47 -0700)]
use append

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

14 years agogc: implement append
Russ Cox [Thu, 28 Oct 2010 00:56:32 +0000 (17:56 -0700)]
gc: implement append

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

14 years agoretag release to avoid hg bug
Russ Cox [Thu, 28 Oct 2010 00:31:37 +0000 (17:31 -0700)]
retag release to avoid hg bug

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

14 years agotag release.2010-10-27 weekly.2010-10-27
Andrew Gerrand [Thu, 28 Oct 2010 00:21:44 +0000 (11:21 +1100)]
tag release.2010-10-27

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

14 years agorelease.2010-10-27
Andrew Gerrand [Thu, 28 Oct 2010 00:19:52 +0000 (11:19 +1100)]
release.2010-10-27

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

14 years agorpc: expose Server type to allow multiple RPC Server instances
Andrew Gerrand [Thu, 28 Oct 2010 00:05:56 +0000 (11:05 +1100)]
rpc: expose Server type to allow multiple RPC Server instances

R=r, rsc, msolo, sougou
CC=golang-dev
https://golang.org/cl/2696041

14 years agogo spec: clarify return type of append, argument type for ...T parameters
Robert Griesemer [Wed, 27 Oct 2010 17:44:31 +0000 (10:44 -0700)]
go spec: clarify return type of append, argument type for ...T parameters

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

14 years agoimage/png: speed up paletted encoding ~25%
Brad Fitzpatrick [Wed, 27 Oct 2010 11:48:18 +0000 (22:48 +1100)]
image/png: speed up paletted encoding ~25%

Avoids a lot of redundant bounds checks.

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

14 years agouse copy
Russ Cox [Wed, 27 Oct 2010 04:52:54 +0000 (21:52 -0700)]
use copy

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

14 years ago5g, 6g, 8g: generate code for string index
Russ Cox [Wed, 27 Oct 2010 04:11:17 +0000 (21:11 -0700)]
5g, 6g, 8g: generate code for string index
instead of calling function.

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

14 years agobig: arm assembly, faster software mulWW, divWW
Russ Cox [Wed, 27 Oct 2010 04:10:17 +0000 (21:10 -0700)]
big: arm assembly, faster software mulWW, divWW

Reduces time spent running crypto/rsa test by 65%.

Fixes #1227.

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

14 years agogo spec: note re: append() not being implemented yet
Robert Griesemer [Wed, 27 Oct 2010 03:30:35 +0000 (20:30 -0700)]
go spec: note re: append() not being implemented yet

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