]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agogodoc: provide mode which shows exported interface in "source form"
Robert Griesemer [Wed, 10 Mar 2010 23:22:22 +0000 (15:22 -0800)]
godoc: provide mode which shows exported interface in "source form"
- on the commandline: godoc -x big
- in a webpage: provide form parameter ?m=src

Known issues:
- Positioning of comments incorrect in several cases. Separate CL.
- Need a link/menu to switch between different modes of presentation
  in the web view.

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

15 years agofix 386 a[i] = cmplx(r, j)
Russ Cox [Wed, 10 Mar 2010 21:06:35 +0000 (13:06 -0800)]
fix 386 a[i] = cmplx(r, j)

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

15 years agofix amd64 build (golden.out)
Russ Cox [Wed, 10 Mar 2010 20:42:53 +0000 (12:42 -0800)]
fix amd64 build (golden.out)

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

15 years agotemplate: add ParseFile, MustParseFile, and associated tests
Andrew Gerrand [Wed, 10 Mar 2010 09:19:20 +0000 (20:19 +1100)]
template: add ParseFile, MustParseFile, and associated tests

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

15 years ago1. decommit complex(float) conversion
Ken Thompson [Wed, 10 Mar 2010 01:51:30 +0000 (17:51 -0800)]
1. decommit complex(float) conversion
2. add complex algorithm for map/chan
3. test for use of complex in
   array, slice, field, chan, map,
   field, pointer.

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

15 years agogc: remove duplicate errors, give better error for I.(T)
Russ Cox [Tue, 9 Mar 2010 23:09:37 +0000 (15:09 -0800)]
gc: remove duplicate errors, give better error for I.(T)

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

15 years agosyscall: minimal mingw version of syscall to call windows dlls
Alex Brainman [Tue, 9 Mar 2010 23:09:09 +0000 (15:09 -0800)]
syscall: minimal mingw version of syscall to call windows dlls

lots of missing parts, but builds and can call dlls, see a sample code in syscall_mingw.go

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

15 years agoreflect: typo in comment
Dean Prichard [Tue, 9 Mar 2010 23:00:10 +0000 (10:00 +1100)]
reflect: typo in comment

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

15 years agomissing ';' renders the code snippet incorrectly on website
Andrey Mirtchovski [Tue, 9 Mar 2010 22:21:34 +0000 (14:21 -0800)]
missing ';' renders the code snippet incorrectly on website

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

15 years agofmt: enable the complex tests now that 8g supports complex
Rob Pike [Tue, 9 Mar 2010 22:17:14 +0000 (14:17 -0800)]
fmt: enable the complex tests now that 8g supports complex

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

15 years agofix bugs compiling things like
Ken Thompson [Tue, 9 Mar 2010 21:39:45 +0000 (13:39 -0800)]
fix bugs compiling things like
c = cmplx(imag(c), real(c))
without a temporary

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

15 years agoidentical complex implementation
Ken Thompson [Tue, 9 Mar 2010 20:49:24 +0000 (12:49 -0800)]
identical complex implementation
for 6g and 8g. can also be used
for 5g. 5g is still a stub.

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

15 years agoarm: cleanup build warnings
Dean Prichard [Tue, 9 Mar 2010 02:13:19 +0000 (18:13 -0800)]
arm: cleanup build warnings

trivial stuff
lex.c: these prototypes are in a.h
asm.c: unused variables
arm-pass.txt deal w/ sieve.go rename and addition of sieve2.go

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

15 years agocrypto/ripemd160: new package
Raif S. Naffah [Tue, 9 Mar 2010 02:12:36 +0000 (18:12 -0800)]
crypto/ripemd160: new package

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

15 years agocrypto/sha256: add SHA-224
Conrad Meyer [Tue, 9 Mar 2010 02:12:30 +0000 (18:12 -0800)]
crypto/sha256: add SHA-224

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

15 years agoencoding/base64: fix typo in comment
Giles Lean [Tue, 9 Mar 2010 02:12:25 +0000 (18:12 -0800)]
encoding/base64: fix typo in comment

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

15 years agogc: avoid fixed length buffer cleanbuf
Dean Prichard [Tue, 9 Mar 2010 01:00:14 +0000 (17:00 -0800)]
gc: avoid fixed length buffer cleanbuf

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

15 years agocrypto/sha512: new package
Conrad Meyer [Tue, 9 Mar 2010 01:00:04 +0000 (17:00 -0800)]
crypto/sha512: new package

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

15 years agoA+C: add Conrad Meyer (individual CLA)
Russ Cox [Tue, 9 Mar 2010 00:52:55 +0000 (16:52 -0800)]
A+C: add Conrad Meyer (individual CLA)

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

15 years agogc: simplify complex typecheck
Russ Cox [Mon, 8 Mar 2010 23:44:18 +0000 (15:44 -0800)]
gc: simplify complex typecheck
do not convert to float prematurely.

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

15 years ago5g/6g/8g: fix double function call in slice
Russ Cox [Mon, 8 Mar 2010 22:19:28 +0000 (14:19 -0800)]
5g/6g/8g: fix double function call in slice

Fixes #654.

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

15 years agoruntime: clock garbage collection on bytes allocated, not pages in use
Russ Cox [Mon, 8 Mar 2010 22:15:44 +0000 (14:15 -0800)]
runtime: clock garbage collection on bytes allocated, not pages in use
This keeps fragmentation from delaying
garbage collections (and causing more fragmentation).

Cuts fresh godoc (with indexes) from 261M to 166M (120M live).
Cuts toy wc program from 50M to 8M.

Fixes #647.

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

15 years agoComplex values may only be compared for equality or inequality.
Ian Lance Taylor [Mon, 8 Mar 2010 22:05:46 +0000 (14:05 -0800)]
Complex values may only be compared for equality or inequality.

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

15 years agoClarify that conversions to complex are OK.
Ian Lance Taylor [Mon, 8 Mar 2010 21:45:03 +0000 (13:45 -0800)]
Clarify that conversions to complex are OK.

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

15 years agocrypto/rsa: don't use safe primes.
Adam Langley [Mon, 8 Mar 2010 14:25:24 +0000 (09:25 -0500)]
crypto/rsa: don't use safe primes.

Previously we would require safe primes for our RSA key generation.
Since this took rather a long time, this removes the requirement that
the primes be safe.

OpenSSL doesn't use safe primes for RSA key generation either
(openssl-0.9.8l/crypto/rsa/rsa_gen.c:122)

Fixes #649.

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

15 years agoregex: Remove unneeded imports from test.
Christopher Wedgwood [Sun, 7 Mar 2010 19:17:36 +0000 (11:17 -0800)]
regex: Remove unneeded imports from test.

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

15 years agoregexp: add ReplaceAllFunc and ReplaceAllStringFunc
Andrew Gerrand [Sun, 7 Mar 2010 01:41:49 +0000 (12:41 +1100)]
regexp: add ReplaceAllFunc and ReplaceAllStringFunc

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

15 years agofix bug in complex printing: imaginary didn't have same format as real.
Rob Pike [Sat, 6 Mar 2010 21:38:14 +0000 (13:38 -0800)]
fix bug in complex printing: imaginary didn't have same format as real.
add tests.

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

15 years agoPTAL
Ken Thompson [Sat, 6 Mar 2010 19:26:33 +0000 (11:26 -0800)]
PTAL

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

15 years ago6g complex type usable
Ken Thompson [Sat, 6 Mar 2010 04:16:04 +0000 (20:16 -0800)]
6g complex type usable
8g and 5g have stubs to ignore complex

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

15 years agogc: fix crash on complicated arg to make slice.
Russ Cox [Sat, 6 Mar 2010 03:29:14 +0000 (19:29 -0800)]
gc: fix crash on complicated arg to make slice.

Fixes #615.

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

15 years agomath: faster hypot
Charles L. Dorian [Sat, 6 Mar 2010 00:45:39 +0000 (16:45 -0800)]
math: faster hypot

Use hardware sqrt for faster hypot; preserve software-only
hypot as hypotGo (like sqrtGo); enable benchmarking of
hypotGo.

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

15 years agogc: better compilation of floating point +=
Russ Cox [Fri, 5 Mar 2010 23:35:09 +0000 (15:35 -0800)]
gc: better compilation of floating point +=

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

15 years agobufio: WriteRune
Rob Pike [Fri, 5 Mar 2010 22:03:17 +0000 (14:03 -0800)]
bufio: WriteRune
also fix a printing error in the test for bytes.Buffer

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

15 years agobig: fix mistakes with probablyPrime
Adam Langley [Fri, 5 Mar 2010 20:55:26 +0000 (15:55 -0500)]
big: fix mistakes with probablyPrime

probablyPrime would return false negatives in some cases.

This code has now been tested against GMP for several million iterations without issues.

Fixes #638.

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

15 years agoAdd ReadRune and WriteRune to bytes.Buffer
Rob Pike [Fri, 5 Mar 2010 19:34:53 +0000 (11:34 -0800)]
Add ReadRune and WriteRune to bytes.Buffer

The comments mention bufio's WriteRune, which should come next.

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

15 years agoGenerate same output on all architectures.
Ian Lance Taylor [Fri, 5 Mar 2010 18:43:33 +0000 (10:43 -0800)]
Generate same output on all architectures.

Passing an argument to bug260 will indicate which alignments
are wrong.

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

15 years agofrexp.go: remove html from comment
Robert Griesemer [Fri, 5 Mar 2010 18:30:50 +0000 (10:30 -0800)]
frexp.go: remove html from comment

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

15 years agogodoc: don't throw away function documentation
Robert Griesemer [Fri, 5 Mar 2010 18:13:58 +0000 (10:13 -0800)]
godoc: don't throw away function documentation
if there are multiple functions (for a package, type)
with the same name

Fixes #642.

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

15 years agogofmt: modified algorithm for alignment of multi-line composite/list entries
Robert Griesemer [Fri, 5 Mar 2010 01:37:15 +0000 (17:37 -0800)]
gofmt: modified algorithm for alignment of multi-line composite/list entries
- only manual changes are in src/pkg/go/printer/nodes.go
- use a heuristic to determine "outliers" such that not entire composites are
  forced to align with them
- improves several places that were not unligned before due too simple heuristic
- unalignes some cases that contain "outliers"
- gofmt -w src misc

Fixes #644.

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

15 years agogoinstall: an experiment in (external) package installation
Russ Cox [Fri, 5 Mar 2010 01:04:50 +0000 (17:04 -0800)]
goinstall: an experiment in (external) package installation

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

15 years agoA+C: add Spring Mc (individual CLA)
Russ Cox [Fri, 5 Mar 2010 00:16:56 +0000 (16:16 -0800)]
A+C: add Spring Mc (individual CLA)

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

15 years agostrings: make Split(s, "", n) faster
Spring Mc [Fri, 5 Mar 2010 00:15:51 +0000 (16:15 -0800)]
strings: make Split(s, "", n) faster

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

15 years agocc: disallow ... argument unless NOSPLIT is set.
Russ Cox [Thu, 4 Mar 2010 23:34:25 +0000 (15:34 -0800)]
cc: disallow ... argument unless NOSPLIT is set.
check that NOSPLIT functions don't use too much stack.
correct some missing NOSPLITs in the runtime library.

Fixes bug reported in
https://groups.google.com/group/golang-nuts/t/efff68b73941eccf

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

15 years agoadd a test that structures pack. 6g fails.
Rob Pike [Thu, 4 Mar 2010 23:26:15 +0000 (15:26 -0800)]
add a test that structures pack.  6g fails.

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

15 years agoSpec for complex numbers
Rob Pike [Thu, 4 Mar 2010 20:35:16 +0000 (12:35 -0800)]
Spec for complex numbers

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

15 years agorelease.2010-03-04 part two
Andrew Gerrand [Thu, 4 Mar 2010 04:00:45 +0000 (15:00 +1100)]
release.2010-03-04 part two

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

15 years agomath: added ilogb, logb, remainder, tests and special conditions
Charles L. Dorian [Thu, 4 Mar 2010 02:17:13 +0000 (18:17 -0800)]
math: added ilogb, logb, remainder, tests and special conditions

Also added expm1_386 and remainder_386; shortened exp_386

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

15 years agorelease.2010-03-04 weekly.2010-03-04
Andrew Gerrand [Thu, 4 Mar 2010 02:00:29 +0000 (13:00 +1100)]
release.2010-03-04

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

15 years agoFirst run at a Programming FAQ
Andrew Gerrand [Thu, 4 Mar 2010 01:56:08 +0000 (12:56 +1100)]
First run at a Programming FAQ

Moved a couple of FAQs from the main FAQ, and added some others

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

15 years agonet: put [ ] around IPv6 addresses for Dial
Russ Cox [Thu, 4 Mar 2010 01:30:39 +0000 (17:30 -0800)]
net: put [ ] around IPv6 addresses for Dial

Update #538.

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

15 years agonet: fix nil deref in testTimeout when Dial fails
Russ Cox [Thu, 4 Mar 2010 01:30:29 +0000 (17:30 -0800)]
net: fix nil deref in testTimeout when Dial fails
Pointed out by Scott Schwartz.

Fixes #637.

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

15 years agogc: fix imported and not used message - show path
Russ Cox [Thu, 4 Mar 2010 01:23:47 +0000 (17:23 -0800)]
gc: fix imported and not used message - show path

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

15 years agoencoding/binary: fix error reporting bug
Rob Pike [Wed, 3 Mar 2010 20:35:16 +0000 (12:35 -0800)]
encoding/binary: fix error reporting bug

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

15 years agonet: fix network timeout boundary condition.
Stephen Ma [Wed, 3 Mar 2010 07:43:36 +0000 (18:43 +1100)]
net: fix network timeout boundary condition.
Fixes #472.

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

15 years agonet: correct DNS configuration
Stephen Ma [Wed, 3 Mar 2010 04:25:26 +0000 (15:25 +1100)]
net: correct DNS configuration

Set defaults to the same values as various C DNS resolver libraries.
Use the timeout value from the configuration.
Fixes #632.

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

15 years agotest: fix 386 build (missing complex)
Russ Cox [Wed, 3 Mar 2010 02:53:25 +0000 (18:53 -0800)]
test: fix 386 build (missing complex)

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

15 years agomore on type complex.
Ken Thompson [Wed, 3 Mar 2010 02:32:11 +0000 (18:32 -0800)]
more on type complex.
getting close.

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

15 years agogofmt: fix alignment of multi-line var declarations
Robert Griesemer [Wed, 3 Mar 2010 01:23:07 +0000 (17:23 -0800)]
gofmt: fix alignment of multi-line var declarations
- gofmt -w src misc

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

15 years agocodereview.py: fix for compatibility with hg >=1.4.3
Andrew Gerrand [Tue, 2 Mar 2010 22:03:31 +0000 (09:03 +1100)]
codereview.py: fix for compatibility with hg >=1.4.3

hg.parseurl now returns a two-value tuple; codereview.py expected 3.
Changed to merely take the first return value.

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

15 years agohttp: corrected comment for Response.GetHeader.
Andrew Gerrand [Tue, 2 Mar 2010 21:53:22 +0000 (08:53 +1100)]
http: corrected comment for Response.GetHeader.

Fixes #622.

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

15 years agogofmt: experiment: align values in map composites where possible
Robert Griesemer [Tue, 2 Mar 2010 21:46:51 +0000 (13:46 -0800)]
gofmt: experiment: align values in map composites where possible
- gofmt -w src misc
- looking for feedback

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

15 years agoMinor mistake in docs.
Robert Griesemer [Tue, 2 Mar 2010 00:22:22 +0000 (16:22 -0800)]
Minor mistake in docs.
Fixes #633.

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

15 years agostrings.Bytes -> []byte for documentation example, src/pkg/* comments, and htmlgen.go
Andrey Mirtchovski [Tue, 2 Mar 2010 00:18:22 +0000 (11:18 +1100)]
strings.Bytes -> []byte for documentation example, src/pkg/* comments, and htmlgen.go

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

15 years agogotest: set $AS to $GOBIN/$AS
Andrew Gerrand [Mon, 1 Mar 2010 05:49:06 +0000 (21:49 -0800)]
gotest: set $AS to $GOBIN/$AS

May address issue 624.

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

15 years agoCount utf8 runes, not bytes when determining string width. Note
Stephen Ma [Sun, 28 Feb 2010 10:15:56 +0000 (21:15 +1100)]
Count utf8 runes, not bytes when determining string width. Note
that pad() still counts bytes, but it's currently only used for
1 byte runes.

Fixes #612.

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

15 years agotesting/benchmark: paranoia - make sure n always grows
Russ Cox [Sat, 27 Feb 2010 01:18:43 +0000 (17:18 -0800)]
testing/benchmark: paranoia - make sure n always grows

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

15 years agocrypto/blowfish: new package
Raif S. Naffah [Fri, 26 Feb 2010 23:24:46 +0000 (15:24 -0800)]
crypto/blowfish: new package

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

15 years agoA+C: add Raif S. Naffah (individual CLA)
Russ Cox [Fri, 26 Feb 2010 22:54:28 +0000 (14:54 -0800)]
A+C: add Raif S. Naffah (individual CLA)

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

15 years agogo/parser cleanup: remove some state by writing more functional code
Robert Griesemer [Fri, 26 Feb 2010 22:50:12 +0000 (14:50 -0800)]
go/parser cleanup: remove some state by writing more functional code

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

15 years ago8g: fix out of register bug in byte(x) code
Russ Cox [Fri, 26 Feb 2010 22:21:52 +0000 (14:21 -0800)]
8g: fix out of register bug in byte(x) code

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

15 years agoAdd -r option to 6l/8l/5l.
Ian Lance Taylor [Fri, 26 Feb 2010 22:03:52 +0000 (14:03 -0800)]
Add -r option to 6l/8l/5l.

This permits more flexibility with cgo and swig in cases where
the program is run on a machine other than the one on which it
is built.  Rather than storing the absolute path to the shared
library in the DT_NEEDED entry, we can store just the name,
and let the dynamic linker find it using DT_RUNPATH or the
LD_LIBRARY_PATH environment variable.

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

15 years ago8g: make a[byte(x)] truncate x
Russ Cox [Fri, 26 Feb 2010 21:15:29 +0000 (13:15 -0800)]
8g: make a[byte(x)] truncate x

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

15 years agogo/scanner: the position of '\n's chars must be the last position of the current...
Robert Griesemer [Fri, 26 Feb 2010 19:23:12 +0000 (11:23 -0800)]
go/scanner: the position of '\n's chars must be the last position of the current line

Background: This didn't matter until recently, because '\n' don't appear as token starts
in source code and thus the exact position was irrelevant (and set as was easiest in the
code). With auto semicolon insertion, a virtual semicolon may be inserted when a '\n' is
seen. The position of the semicolon is the position of the '\n'. Without this fix, these
semicolons appeared on the next line instead of the line where they were inserted.  This
affected the association of comments to declarations in the parser. As a result, some
lead comments where considered line comments, not collected in the ast, and not shown in
godoc pages. (This affected only godoc pages, not gofmt-formatted programs).

Fixes #592.

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

15 years agoFix a couple of bugs referencing data values in template.
Micah Stetson [Fri, 26 Feb 2010 07:39:43 +0000 (18:39 +1100)]
Fix a couple of bugs referencing data values in template.

Adds tests and fixes for two cases that fail with the current release.

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

15 years agoadd micah.stetson to C&A
Rob Pike [Fri, 26 Feb 2010 05:32:45 +0000 (16:32 +1100)]
add micah.stetson to C&A

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

15 years agodoc: Use byte("...") over byte{...}
Christopher Wedgwood [Fri, 26 Feb 2010 04:06:41 +0000 (20:06 -0800)]
doc: Use byte("...") over byte{...}

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

15 years agouse []byte("abc") in place of []byte{'a', 'b', 'c'}
Russ Cox [Fri, 26 Feb 2010 00:43:43 +0000 (16:43 -0800)]
use []byte("abc") in place of []byte{'a', 'b', 'c'}

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

15 years agogo/printer, gofmt: align comments in multi-line expression lists
Robert Griesemer [Fri, 26 Feb 2010 00:07:55 +0000 (16:07 -0800)]
go/printer, gofmt: align comments in multi-line expression lists
- gofmt -w src misc
- improves several lists and fixes minor degradation introduced
  with the fix for issue 628
- removed some dead code (stringList)

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

15 years agostrings: delete Runes, Bytes
Russ Cox [Fri, 26 Feb 2010 00:01:29 +0000 (16:01 -0800)]
strings: delete Runes, Bytes

gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench
gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench
delete unused imports

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

15 years agotabwriter: make use of new []byte() conversion
Robert Griesemer [Thu, 25 Feb 2010 23:54:12 +0000 (15:54 -0800)]
tabwriter: make use of new []byte() conversion

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

15 years agogc: implement []int(string) and []byte(string)
Russ Cox [Thu, 25 Feb 2010 23:11:07 +0000 (15:11 -0800)]
gc: implement []int(string) and []byte(string)

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

15 years agoFix small typo in net package.
Stephen Weinberg [Thu, 25 Feb 2010 22:49:14 +0000 (14:49 -0800)]
Fix small typo in net package.

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

15 years agogo/printer, gofmt: correct indentation after certain /*-style comments
Robert Griesemer [Thu, 25 Feb 2010 21:47:16 +0000 (13:47 -0800)]
go/printer, gofmt: correct indentation after certain /*-style comments
- applied gofmt to src and misc

Note: This fix improved formatting of src/pkg/math/all_test.go but leads
to a degradation in src/pkg/exp/4s/xs.go. The latter happened to "work"
before accidentally. Fixing the alignment in that case in general will
be a separate CL.

Fixes #628.

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

15 years agotabwriter: indicate section breaks if Debug flag is set
Robert Griesemer [Thu, 25 Feb 2010 21:26:55 +0000 (13:26 -0800)]
tabwriter: indicate section breaks if Debug flag is set

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

15 years agodashboard: more performance tuning
Russ Cox [Thu, 25 Feb 2010 18:26:43 +0000 (10:26 -0800)]
dashboard: more performance tuning

various caching.  make benchmark data a list
in a single per-builder,benchmark record instead
of having one record for each data point.
significant reduction in datastore cpu charges.

R=agl1, agl
CC=golang-dev
https://golang.org/cl/217111

15 years agoUse consistent types in .h file and .c file.
Ian Lance Taylor [Thu, 25 Feb 2010 18:13:09 +0000 (10:13 -0800)]
Use consistent types in .h file and .c file.

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

15 years agostrings: remove a couple of redundant tests
Robert Griesemer [Thu, 25 Feb 2010 18:02:39 +0000 (10:02 -0800)]
strings: remove a couple of redundant tests
(per suggestion from Heresy.Mc@gmail.com)

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

15 years agopath: Fix bug in Match with non-greedy stars
Kevin Ballard [Thu, 25 Feb 2010 17:15:52 +0000 (09:15 -0800)]
path: Fix bug in Match with non-greedy stars

path.Match() errors out when testing "*x" against "xxx"
because it matches the star non-greedily. Ensure that
the last chunk consumes the rest of the name.

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

15 years ago%q in fmt: if the object is a Stringer, use String() to get the value to quote.
Rob Pike [Thu, 25 Feb 2010 06:29:37 +0000 (17:29 +1100)]
%q in fmt: if the object is a Stringer, use String() to get the value to quote.

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

15 years agogo/scanner: support for complex (imaginary) constants
Robert Griesemer [Thu, 25 Feb 2010 01:06:40 +0000 (17:06 -0800)]
go/scanner: support for complex (imaginary) constants

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

15 years agoInstall runtime.h and cgocall.h.
Ian Lance Taylor [Thu, 25 Feb 2010 01:00:25 +0000 (17:00 -0800)]
Install runtime.h and cgocall.h.

This permits cgo generated code to use these header files even
if the Go sources are not around.

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

15 years agogo/ast: streamline representation of field lists
Robert Griesemer [Thu, 25 Feb 2010 00:17:11 +0000 (16:17 -0800)]
go/ast: streamline representation of field lists
- always include position information about opening/closing parens/braces
- replace uses of []*ast.Field with *ast.FieldList

Fixes #473.

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

15 years agopath: add Match
Russ Cox [Thu, 25 Feb 2010 00:11:14 +0000 (16:11 -0800)]
path: add Match

R=eridius, r, rog
CC=golang-dev
https://golang.org/cl/217088

15 years agohttp: fix handling of Close, use Close in http.Post
Russ Cox [Wed, 24 Feb 2010 23:13:39 +0000 (15:13 -0800)]
http: fix handling of Close, use Close in http.Post
default to HTTP/1.1

R=petar-m
CC=golang-dev
https://golang.org/cl/224041

15 years agogofmt: don't print ()'s around function-typed results (not needed anymore)
Robert Griesemer [Wed, 24 Feb 2010 21:24:37 +0000 (13:24 -0800)]
gofmt: don't print ()'s around function-typed results (not needed anymore)
- add extra test cases to go/printer tests
- apply gofmt to src and misc

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

15 years agogo/printer: use general comment intersperse mechanism everywhere
Robert Griesemer [Wed, 24 Feb 2010 19:06:46 +0000 (11:06 -0800)]
go/printer: use general comment intersperse mechanism everywhere
- remove several TODOs
- as a side-effect, comment stylers are now used always and comments
  will be properly colored in godoc pkg documentation pages (and not
  only when looking at source text)

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

15 years agoInclude an Eratosthenesque concurrent prime sieve to go along with the "naive" version.
Anh Hai Trinh [Wed, 24 Feb 2010 05:21:16 +0000 (16:21 +1100)]
Include an Eratosthenesque concurrent prime sieve to go along with the "naive" version.

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

15 years agoadd Anh Hai Trinh to C&A
Rob Pike [Wed, 24 Feb 2010 05:20:47 +0000 (16:20 +1100)]
add Anh Hai Trinh to C&A

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

15 years agorelease.2010-02-23 part two
Andrew Gerrand [Wed, 24 Feb 2010 00:40:42 +0000 (16:40 -0800)]
release.2010-02-23 part two

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