]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
14 years agorelease.2010-05-04 weekly.2010-05-04
Andrew Gerrand [Wed, 5 May 2010 02:12:04 +0000 (12:12 +1000)]
release.2010-05-04

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

14 years agogo spec: clarification of make arguments,
Robert Griesemer [Wed, 5 May 2010 00:31:40 +0000 (17:31 -0700)]
go spec: clarification of make arguments,
specification of runtime exceptions for
make and division by zero

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

14 years agoallow data statements for simple
Ken Thompson [Tue, 4 May 2010 05:51:30 +0000 (22:51 -0700)]
allow data statements for simple
external variable assignements.

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

14 years agobig: completed set of Int division routines & cleanups
Robert Griesemer [Tue, 4 May 2010 01:48:05 +0000 (18:48 -0700)]
big: completed set of Int division routines & cleanups

- renamed Len -> BitLen, simplified implementation
- renamed old Div, Mod, DivMod -> Que, Rem, QuoRem
- implemented Div, Mod, DivMod (Euclidian definition, more
  useful in a mathematical context)
- fixed a bug in Exp (-0 was possible)
- added extra tests to check normalized results everywhere
- uniformly set Int.neg flag at the end of computations
- minor cosmetic cleanups
- ran all tests

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

14 years agogc: bug264
Russ Cox [Tue, 4 May 2010 00:51:48 +0000 (17:51 -0700)]
gc: bug264

Fixes #692.

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

14 years agotest/bench: import new fasta C reference, update Go, optimizations
Russ Cox [Tue, 4 May 2010 00:47:59 +0000 (17:47 -0700)]
test/bench: import new fasta C reference, update Go, optimizations

OLD fasta -n 25000000
gcc -O2 fasta.c 7.59u 0.06s 7.74r
gc fasta 9.54u 0.15s 9.84r
gc_B fasta 9.48u 0.10s 9.62r

NEW fasta -n 25000000
gcc -O2 fasta.c 2.59u 0.02s 2.66r
gc fasta 3.00u 0.03s 3.09r
gc_B fasta 2.72u 0.03s 2.81r

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

14 years agoruntime, strconv: tiny cleanups
Russ Cox [Tue, 4 May 2010 00:47:40 +0000 (17:47 -0700)]
runtime, strconv: tiny cleanups

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

14 years agotest: test of static initialization (fails)
Russ Cox [Tue, 4 May 2010 00:21:49 +0000 (17:21 -0700)]
test: test of static initialization (fails)

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

14 years agogc: bug267
Russ Cox [Mon, 3 May 2010 22:29:59 +0000 (15:29 -0700)]
gc: bug267

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

14 years agogc: error for nested functions, one semicolon problem
Russ Cox [Mon, 3 May 2010 22:02:32 +0000 (15:02 -0700)]
gc: error for nested functions, one semicolon problem

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

14 years agobig: fix memory corruption in nat.shr
Russ Cox [Mon, 3 May 2010 21:28:45 +0000 (14:28 -0700)]
big: fix memory corruption in nat.shr

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

14 years agoruntime/arm: fix build
Russ Cox [Mon, 3 May 2010 20:24:39 +0000 (13:24 -0700)]
runtime/arm: fix build

Import _mulv from Inferno again, change R9 to R2.
Not sure what the other differences were for, but
they weren't working.

TBR=kaib
CC=golang-dev
https://golang.org/cl/1079041

14 years agotest: fix run-arm to count bugs correctly
Russ Cox [Mon, 3 May 2010 20:24:26 +0000 (13:24 -0700)]
test: fix run-arm to count bugs correctly

TBR=kaib
CC=golang-dev
https://golang.org/cl/1080041

14 years agobig: Add bitwise methods for Int
Evan Shaw [Mon, 3 May 2010 18:20:52 +0000 (11:20 -0700)]
big: Add bitwise methods for Int

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

14 years agonacl: another attempt at fixing build
Russ Cox [Mon, 3 May 2010 18:12:54 +0000 (11:12 -0700)]
nacl: another attempt at fixing build

TBR=r
CC=golang-dev
https://golang.org/cl/1077041

14 years agosyscall: fix arm build (fix bugs in generator, to add O_LARGEFILE)
Russ Cox [Mon, 3 May 2010 18:11:01 +0000 (11:11 -0700)]
syscall: fix arm build (fix bugs in generator, to add O_LARGEFILE)

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

14 years agoAdd _cgo_export.[ch] targets so that make knows how they are
Ian Lance Taylor [Mon, 3 May 2010 18:07:22 +0000 (11:07 -0700)]
Add _cgo_export.[ch] targets so that make knows how they are
built.  Note that they are only built if a //export comment
appears, so other targets should only use them if there is
such a comment.

Fixes #723.

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

14 years agobytes: Change IndexAny to look for UTF-8 encoded characters.
Rob Pike [Mon, 3 May 2010 17:59:00 +0000 (10:59 -0700)]
bytes: Change IndexAny to look for UTF-8 encoded characters.
Also improve the implementations of Equals and Compare.

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

14 years agodashboard: fix benchmark json output
Andrew Gerrand [Mon, 3 May 2010 08:35:32 +0000 (18:35 +1000)]
dashboard: fix benchmark json output

Fixes #722.

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

14 years agoruntime: update godefs usage comment for GOARCH=386 GOOS={darwin,freebsd}
Giles Lean [Mon, 3 May 2010 08:26:39 +0000 (01:26 -0700)]
runtime: update godefs usage comment for GOARCH=386 GOOS={darwin,freebsd}

When trying to regenerate src/pkg/runtime/darwin/386/defs.h
on a 64 bit capable Snow Leopard (OS X 10.6.3) system I
needed to add -f -m32 to godefs, as this OS and hardware
combination defaults to 64 bit compilation.

For safety, make the same change to the 32 bit FreeBSD
instructions in .../freebsd/defs.c.  (Tested OK and no
problems introduced.)

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

14 years agofix nacl build
Russ Cox [Mon, 3 May 2010 07:04:48 +0000 (00:04 -0700)]
fix nacl build

TBR=r
CC=golang-dev
https://golang.org/cl/1063042

14 years agomath: fix typo in Cbrt description
Charles L. Dorian [Mon, 3 May 2010 06:33:08 +0000 (23:33 -0700)]
math: fix typo in Cbrt description

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

14 years agocodelab/wiki: switch edit/view, as they were backwards
Andrew Gerrand [Mon, 3 May 2010 02:09:44 +0000 (12:09 +1000)]
codelab/wiki: switch edit/view, as they were backwards

Fixes #757.

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

14 years agobig: cleanup and removal of redundant functionality
Robert Griesemer [Sat, 1 May 2010 22:11:27 +0000 (15:11 -0700)]
big: cleanup and removal of redundant functionality

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

14 years agogc: be pickier about slice, chan, array, and map sizes
Russ Cox [Sat, 1 May 2010 20:15:42 +0000 (13:15 -0700)]
gc: be pickier about slice, chan, array, and map sizes

Fixes #589.

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

14 years agogmp: fix bug in SetString
Russ Cox [Sat, 1 May 2010 20:10:01 +0000 (13:10 -0700)]
gmp: fix bug in SetString

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

14 years agovector: use correct capacity in call to make
Russ Cox [Sat, 1 May 2010 20:00:01 +0000 (13:00 -0700)]
vector: use correct capacity in call to make

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

14 years agobig: use fast shift routines
Robert Griesemer [Sat, 1 May 2010 04:25:48 +0000 (21:25 -0700)]
big: use fast shift routines

- fixed a couple of bugs in the process
  (shift right was incorrect for negative numbers)
- added more tests and made some tests more robust
- changed pidigits back to using shifts to multiply
  by 2 instead of add

  This improves pidigit -s -n 10000 by approx. 5%:

  user 0m6.496s (old)
  user 0m6.156s (new)

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

14 years agobig/arith: assembly routines for 386 long shifts (2nd round)
Robert Griesemer [Fri, 30 Apr 2010 21:41:04 +0000 (14:41 -0700)]
big/arith: assembly routines for 386 long shifts (2nd round)

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

14 years ago8g: bug272
Russ Cox [Fri, 30 Apr 2010 21:04:34 +0000 (14:04 -0700)]
8g: bug272

Fixes #589.

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

14 years agogc: bug271
Russ Cox [Fri, 30 Apr 2010 20:27:08 +0000 (13:27 -0700)]
gc: bug271

Fixes #662.

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

14 years agogc: bug270
Russ Cox [Fri, 30 Apr 2010 20:04:16 +0000 (13:04 -0700)]
gc: bug270

Fixes #746.

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

14 years ago8l: fix absolute path detection on Windows
Russ Cox [Fri, 30 Apr 2010 19:48:03 +0000 (12:48 -0700)]
8l: fix absolute path detection on Windows

Fixes #755.

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

14 years agosyscall: handle EOF on pipe - special case on Windows
Alex Brainman [Fri, 30 Apr 2010 19:46:46 +0000 (12:46 -0700)]
syscall: handle EOF on pipe - special case on Windows

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

14 years agofix build
Robert Griesemer [Fri, 30 Apr 2010 19:01:15 +0000 (12:01 -0700)]
fix build

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

14 years agobig: improved computation of "karatsuba length" for faster multiplies
Robert Griesemer [Fri, 30 Apr 2010 18:54:27 +0000 (11:54 -0700)]
big: improved computation of "karatsuba length" for faster multiplies

This results in an improvement of > 35% for the existing Mul benchmark
using the same karatsuba threshold, and an improvement of > 50% with
a slightly higher threshold (32 instead of 30):

big.BenchmarkMul           500    6731846 ns/op (old alg.)
big.BenchmarkMul    500    4351122 ns/op (new alg.)
big.BenchmarkMul           500    3133782 ns/op (new alg., new theshold)

Also:
- tweaked calibrate.go, use same benchmark as for Mul benchmark

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

14 years agobig: assembly routines for 386 long shifts
Robert Griesemer [Fri, 30 Apr 2010 18:53:37 +0000 (11:53 -0700)]
big: assembly routines for 386 long shifts

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

14 years agobig: implemented core shift routines in arith.go and
Robert Griesemer [Fri, 30 Apr 2010 16:29:11 +0000 (09:29 -0700)]
big: implemented core shift routines in arith.go and
     provide assembly versions (for x86-64 for now)

(Not yet used - waiting for previous CL to clear)

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

14 years agoAdd EWOULDBLOCK to sycall_nacl.go.
Nigel Tao [Fri, 30 Apr 2010 08:45:04 +0000 (18:45 +1000)]
Add EWOULDBLOCK to sycall_nacl.go.

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

14 years agorename GOOS=mingw to GOOS=windows
Alex Brainman [Fri, 30 Apr 2010 06:45:14 +0000 (23:45 -0700)]
rename GOOS=mingw to GOOS=windows

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

14 years agosyscall: force O_LARGEFILE in Linux open system call
Russ Cox [Fri, 30 Apr 2010 06:34:06 +0000 (23:34 -0700)]
syscall: force O_LARGEFILE in Linux open system call

Fixes #717.

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

14 years agosyscall: mingw Sleep
Joe Poirier [Fri, 30 Apr 2010 06:08:22 +0000 (23:08 -0700)]
syscall: mingw Sleep

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

14 years agogc: never include ( ) on singleton func return type
Russ Cox [Thu, 29 Apr 2010 23:07:14 +0000 (16:07 -0700)]
gc: never include ( ) on singleton func return type

Fixes #749.

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

14 years agogc: bug268
Russ Cox [Thu, 29 Apr 2010 22:52:27 +0000 (15:52 -0700)]
gc: bug268

Fixes #745.

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

14 years agonet: use short variable declaration
Christopher Wedgwood [Thu, 29 Apr 2010 18:02:10 +0000 (11:02 -0700)]
net: use short variable declaration

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

14 years agonet: parser should handle EOF without newline properly.
Christopher Wedgwood [Thu, 29 Apr 2010 18:01:21 +0000 (11:01 -0700)]
net: parser should handle EOF without newline properly.

Fixes #686.

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

14 years agogo spec: fix iota description
Robert Griesemer [Thu, 29 Apr 2010 17:57:27 +0000 (10:57 -0700)]
go spec: fix iota description

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

14 years agocodelab/index.html: a few typos.
Andrey Mirtchovski [Thu, 29 Apr 2010 04:33:19 +0000 (14:33 +1000)]
codelab/index.html: a few typos.

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

14 years agocodelab/index.html "os" needs to be imported because os.Error is used almost immediately
Andrey Mirtchovski [Thu, 29 Apr 2010 04:06:27 +0000 (14:06 +1000)]
codelab/index.html "os" needs to be imported because os.Error is used almost immediately

Also, calling fmt, ioutil and os "builtin" is probably confusing.

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

14 years agodarwin: bsdthread_create can fail; print good error
Russ Cox [Thu, 29 Apr 2010 02:36:42 +0000 (19:36 -0700)]
darwin: bsdthread_create can fail; print good error

Fixes #549.

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

14 years agonet: do not require newline at end of resolv.conf
Russ Cox [Thu, 29 Apr 2010 02:36:04 +0000 (19:36 -0700)]
net: do not require newline at end of resolv.conf

Fixes #686.

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

14 years agoxml: allow text segments to end at EOF
Russ Cox [Thu, 29 Apr 2010 02:29:20 +0000 (19:29 -0700)]
xml: allow text segments to end at EOF

Fixes #674.

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

14 years agospec: clarify "continue" with label. the text was obvious in intent but
Rob Pike [Wed, 28 Apr 2010 20:18:40 +0000 (13:18 -0700)]
spec: clarify "continue" with label. the text was obvious in intent but
inaccurate in meaning.

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

14 years agofmt: %T print <nil> for nil
Christopher Wedgwood [Wed, 28 Apr 2010 20:07:19 +0000 (13:07 -0700)]
fmt: %T print <nil> for nil

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

14 years agoRemove destination of symlink test in case it got left behind
Ian Lance Taylor [Wed, 28 Apr 2010 18:08:07 +0000 (11:08 -0700)]
Remove destination of symlink test in case it got left behind
earlier.

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

14 years ago5l, 6l, 8l, runtime: make -s binaries work
Russ Cox [Wed, 28 Apr 2010 05:40:26 +0000 (22:40 -0700)]
5l, 6l, 8l, runtime: make -s binaries work
5l, 6l, 8l: change ELF header so that strip doesn't destroy binary

Fixes #261.

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

14 years agorelease.2010-04-27 tags
Andrew Gerrand [Wed, 28 Apr 2010 04:06:25 +0000 (14:06 +1000)]
release.2010-04-27 tags

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

14 years agorelease.2010-04-27 weekly.2010-04-27
Andrew Gerrand [Wed, 28 Apr 2010 04:05:01 +0000 (14:05 +1000)]
release.2010-04-27

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

14 years agowiki codelab: typo fix
Andrew Gerrand [Wed, 28 Apr 2010 02:39:17 +0000 (12:39 +1000)]
wiki codelab: typo fix

noticed this as I was submitting the previous CL :(

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

14 years agoWiki codelab, complete with tests.
Andrew Gerrand [Wed, 28 Apr 2010 02:36:39 +0000 (12:36 +1000)]
Wiki codelab, complete with tests.

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

14 years agobig: implemented Karatsuba multiplication
Robert Griesemer [Wed, 28 Apr 2010 02:16:08 +0000 (19:16 -0700)]
big: implemented Karatsuba multiplication

Plus:
- calibration "test" - include in tests with gotest -calibrate
- basic Mul benchmark
- extra multiplication tests
- various cleanups

This change improves multiplication speed of numbers >= 30 words
in length (current threshold; found empirically with calibrate):

The multiplication benchmark (multiplication of a variety of long numbers)
improves by ~35%, individual multiplies can be significantly faster.

gotest -benchmarks=Mul
big.BenchmarkMul      500    6829290 ns/op (w/ Karatsuba)
big.BenchmarkMul      100   10600760 ns/op

There's no impact on pidigits for -n=10000 or -n=20000
because the operands are are too small.

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

14 years agonet: drop non-RHEL-4.6 ports from test
Russ Cox [Wed, 28 Apr 2010 02:04:22 +0000 (19:04 -0700)]
net: drop non-RHEL-4.6 ports from test

Fixes #610.

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

14 years agoiterable: expose iterFunc as iterable.Func
Russ Cox [Wed, 28 Apr 2010 01:48:29 +0000 (18:48 -0700)]
iterable: expose iterFunc as iterable.Func

Fixes #483.

R=dsymonds, dsymonds1
CC=golang-dev
https://golang.org/cl/965044

14 years agonet: fix bug in internetSocket introduced by error cleanup.
Russ Cox [Wed, 28 Apr 2010 01:48:11 +0000 (18:48 -0700)]
net: fix bug in internetSocket introduced by error cleanup.

Fixes #750.

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

14 years agogo spec: fix wrong comment
Robert Griesemer [Wed, 28 Apr 2010 00:52:44 +0000 (17:52 -0700)]
go spec: fix wrong comment

Fixes #743.

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

14 years agogo_tutorial: removed outdated use of semicolons
Andrew Gerrand [Wed, 28 Apr 2010 00:50:44 +0000 (10:50 +1000)]
go_tutorial: removed outdated use of semicolons

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

14 years agogc: better windows detection
Russ Cox [Wed, 28 Apr 2010 00:19:15 +0000 (17:19 -0700)]
gc: better windows detection

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

14 years agotemplate: remove reference to json-template
Andrew Gerrand [Wed, 28 Apr 2010 00:14:58 +0000 (10:14 +1000)]
template: remove reference to json-template

Rather than confuse people by linking to a spec we
don't fully support, let them just use the package docs.

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

14 years agopidigits: ~10% performance win by using adds instead of shifts
Robert Griesemer [Tue, 27 Apr 2010 21:06:53 +0000 (14:06 -0700)]
pidigits: ~10% performance win by using adds instead of shifts

user time for pidigits -s -n=10000:
6.466s w/ adds
7.138s w/ shifts

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

14 years agofix build
Robert Griesemer [Tue, 27 Apr 2010 21:05:53 +0000 (14:05 -0700)]
fix build

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

14 years agogc: fix islocalname on windows
Russ Cox [Tue, 27 Apr 2010 20:52:43 +0000 (13:52 -0700)]
gc: fix islocalname on windows

Fixes #732.

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

14 years agorpc/jsonrpc: support for jsonrpc wire encoding
Russ Cox [Tue, 27 Apr 2010 20:51:58 +0000 (13:51 -0700)]
rpc/jsonrpc: support for jsonrpc wire encoding

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

14 years agojson: delete obsolete code
Russ Cox [Tue, 27 Apr 2010 20:51:38 +0000 (13:51 -0700)]
json: delete obsolete code

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

14 years agorpc: abstract client and server encodings
Russ Cox [Tue, 27 Apr 2010 20:51:25 +0000 (13:51 -0700)]
rpc: abstract client and server encodings

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

14 years agogofmt: fine-tune stripping of parentheses
Robert Griesemer [Tue, 27 Apr 2010 20:27:48 +0000 (13:27 -0700)]
gofmt: fine-tune stripping of parentheses
       (composite literals in control clauses only need
       parentheses if the literals start with a type name)

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

14 years ago6g bug: no need for parens around array index expression
Robert Griesemer [Tue, 27 Apr 2010 20:09:32 +0000 (13:09 -0700)]
6g bug: no need for parens around array index expression
where index is a composite literal

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

14 years agogo/parser: don't require parens around composite literals inside a composite literal
Robert Griesemer [Tue, 27 Apr 2010 18:57:17 +0000 (11:57 -0700)]
go/parser: don't require parens around composite literals inside a composite literal
   within an if, for, or switch control clause

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

14 years agogofmt: don't strip mandatory ()'s around composite literals in control clauses
Robert Griesemer [Tue, 27 Apr 2010 17:59:33 +0000 (10:59 -0700)]
gofmt: don't strip mandatory ()'s around composite literals in control clauses

Fixes #748.

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

14 years agojson: streaming
Russ Cox [Tue, 27 Apr 2010 17:46:37 +0000 (10:46 -0700)]
json: streaming

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

14 years agogodoc: use int64 for timestamps
Christopher Wedgwood [Tue, 27 Apr 2010 17:45:33 +0000 (10:45 -0700)]
godoc: use int64 for timestamps

This fixes a crash seen when viewing a directory list.

Fixes #747.

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

14 years agojson: preserve field name case by default
Russ Cox [Tue, 27 Apr 2010 17:24:00 +0000 (10:24 -0700)]
json: preserve field name case by default

This matches the old JSON package behavior.
All lowercase names are not as standard as I believed,
and it seems less surprising to need to write

type T struct { Field string "field" }

to get lower case (behavior after this CL) than it does to need
to write

type T struct { Field string "Field" }

to preserve the case (behavior before this CL).

Also test and  fix unmarshal into non-nil interface
value or pointer.

Fixes #744.

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

14 years agopipe: implementation #3; this time for sure!
Russ Cox [Tue, 27 Apr 2010 17:17:17 +0000 (10:17 -0700)]
pipe: implementation #3; this time for sure!
Added goroutine; got simpler.

Fixes deadlock when doing Read+Close
or Write+Close on same end.

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

14 years agohomepage: removed animation, use custom js instead of gdynamicfeeds
Andrew Gerrand [Tue, 27 Apr 2010 09:27:32 +0000 (19:27 +1000)]
homepage: removed animation, use custom js instead of gdynamicfeeds

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

14 years agotime: remove incorrect time.ISO8601 and add time.RFC3339
Micah Stetson [Tue, 27 Apr 2010 07:05:24 +0000 (00:05 -0700)]
time: remove incorrect time.ISO8601 and add time.RFC3339

Fixes #734.

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

14 years agosyscall: fix mingw build
Alex Brainman [Tue, 27 Apr 2010 06:47:53 +0000 (23:47 -0700)]
syscall: fix mingw build

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

14 years agoos, syscall: more mingw
Alex Brainman [Tue, 27 Apr 2010 06:17:14 +0000 (23:17 -0700)]
os, syscall: more mingw

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

14 years agoos: create sys_bsd.go
Giles Lean [Tue, 27 Apr 2010 06:01:31 +0000 (23:01 -0700)]
os: create sys_bsd.go

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

14 years agoos: Fix build for MinGW
Evan Shaw [Tue, 27 Apr 2010 05:50:47 +0000 (22:50 -0700)]
os: Fix build for MinGW

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

14 years agorename cgo2c to goc2c in ignored list
Alex Brainman [Tue, 27 Apr 2010 05:49:14 +0000 (22:49 -0700)]
rename cgo2c to goc2c in ignored list

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

14 years agoAdded fannkuch-parallel.go
Kyle Consalus [Tue, 27 Apr 2010 05:44:44 +0000 (22:44 -0700)]
Added fannkuch-parallel.go

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

14 years agomath: more special cases for signed zero
Charles L. Dorian [Tue, 27 Apr 2010 05:44:39 +0000 (22:44 -0700)]
math: more special cases for signed zero

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

14 years agogc: more specific error for statements at top level
Russ Cox [Tue, 27 Apr 2010 05:35:27 +0000 (22:35 -0700)]
gc: more specific error for statements at top level

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

14 years agogodoc: add codewalk support
Russ Cox [Tue, 27 Apr 2010 05:35:12 +0000 (22:35 -0700)]
godoc: add codewalk support

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

14 years agocrypto/tls: simpler implementation of record layer
Russ Cox [Tue, 27 Apr 2010 05:19:04 +0000 (22:19 -0700)]
crypto/tls: simpler implementation of record layer

Depends on CL 957045, 980043, 1004043.
Fixes #715.

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

14 years agonet: introduce net.Error interface
Russ Cox [Tue, 27 Apr 2010 05:15:25 +0000 (22:15 -0700)]
net: introduce net.Error interface

Adds two more methods, Timeout and Temporary.
Implemented by os.Errno too.  The intent is to make
the checks for os.EAGAIN a little less clunky.
It should also let us clean up a bug that Mike Solomon
pointed out: if a network server gets an "out of file descriptors"
error from Accept, the listener should not stop.
It will be able to check this because that error would
have Temporary() == true.

Also clean up some underscore names.

Fixes #442.

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

14 years agodoc/root.html: remove key from jsapi src
Andrew Gerrand [Tue, 27 Apr 2010 00:24:17 +0000 (10:24 +1000)]
doc/root.html: remove key from jsapi src

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

14 years agonet: add Pipe
Russ Cox [Mon, 26 Apr 2010 17:36:05 +0000 (10:36 -0700)]
net: add Pipe

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

14 years agobytes: add Next method to Buffer, simplify Read.
Russ Cox [Mon, 26 Apr 2010 17:02:01 +0000 (10:02 -0700)]
bytes: add Next method to Buffer, simplify Read.

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

14 years agoxml: fix innerxml handling of & escapes
Russ Cox [Mon, 26 Apr 2010 17:01:33 +0000 (10:01 -0700)]
xml: fix innerxml handling of & escapes

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

14 years agotemplate: fix handling of pointer inside interface
Russ Cox [Mon, 26 Apr 2010 17:01:13 +0000 (10:01 -0700)]
template: fix handling of pointer inside interface

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