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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 years agoregexp: allow escaping of any punctuation
Russ Cox [Mon, 26 Apr 2010 17:00:18 +0000 (10:00 -0700)]
regexp: allow escaping of any punctuation

More in line with other regexp packages
and egrep; accommodates overzealous escapers.

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

15 years agolibmach: disassemble MOVLQZX correctly
Russ Cox [Mon, 26 Apr 2010 08:09:19 +0000 (01:09 -0700)]
libmach: disassemble MOVLQZX correctly

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

15 years agoruntime: closures, defer bug fix for Native Client
Russ Cox [Fri, 23 Apr 2010 00:52:22 +0000 (17:52 -0700)]
runtime: closures, defer bug fix for Native Client

Enable package tests for Native Client build.

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

15 years agoos/stat_freebsd.go: maybe fix build for freebsd
Rob Pike [Fri, 23 Apr 2010 00:04:28 +0000 (17:04 -0700)]
os/stat_freebsd.go: maybe fix build for freebsd

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

15 years agogo_faq: typo fix
Andrew Gerrand [Fri, 23 Apr 2010 00:02:10 +0000 (10:02 +1000)]
go_faq: typo fix

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

15 years agobig: Create type nat
Evan Shaw [Thu, 22 Apr 2010 23:57:29 +0000 (16:57 -0700)]
big: Create type nat

Changed most of the functions in nat.go to methods on nat.

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

15 years agoFileInfo: regularize the types of some fields.
Rob Pike [Thu, 22 Apr 2010 21:01:33 +0000 (14:01 -0700)]
FileInfo: regularize the types of some fields.
Uid, Gid become int.
File size info becomes int64.
Times become int64.

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

15 years agospec: Fix run-time panic header id
Evan Shaw [Thu, 22 Apr 2010 17:14:53 +0000 (10:14 -0700)]
spec: Fix run-time panic header id

Everything was linking to "Run_time_panics", but the id was "Run_time_errors".

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

15 years agovector: Don't always regenerate {int,string}vector.go
Evan Shaw [Thu, 22 Apr 2010 14:43:59 +0000 (00:43 +1000)]
vector: Don't always regenerate {int,string}vector.go

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

15 years agobig: Add some tests
Evan Shaw [Thu, 22 Apr 2010 00:12:36 +0000 (17:12 -0700)]
big: Add some tests

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

15 years agojson: Marshal, Unmarshal using new scanner
Russ Cox [Wed, 21 Apr 2010 23:40:53 +0000 (16:40 -0700)]
json: Marshal, Unmarshal using new scanner

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

15 years agoruntime: switch state back to Grunning after recovery
Russ Cox [Wed, 21 Apr 2010 23:27:41 +0000 (16:27 -0700)]
runtime: switch state back to Grunning after recovery

Fixes #733.

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

15 years agoxml: new "innerxml" tag to collect inner XML
Russ Cox [Wed, 21 Apr 2010 23:27:31 +0000 (16:27 -0700)]
xml: new "innerxml" tag to collect inner XML

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

15 years agoutf16: add DecodeRune, EncodeRune
Russ Cox [Wed, 21 Apr 2010 23:27:18 +0000 (16:27 -0700)]
utf16: add DecodeRune, EncodeRune

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

15 years agofaq: more up-to-date info about the Windows port
Andrew Gerrand [Wed, 21 Apr 2010 23:15:35 +0000 (09:15 +1000)]
faq: more up-to-date info about the Windows port

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

15 years agotest/bench: reenable chameneosredux for gccgo.
Rob Pike [Wed, 21 Apr 2010 21:54:19 +0000 (14:54 -0700)]
test/bench: reenable chameneosredux for gccgo.
run reverse-complement only once. (garbage is no longer an issue)

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

15 years agobig: fix build - start with zero in scanN
Russ Cox [Wed, 21 Apr 2010 05:51:48 +0000 (22:51 -0700)]
big: fix build - start with zero in scanN

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

15 years agostrings: add ReadRune to Reader
Kyle Consalus [Wed, 21 Apr 2010 05:18:26 +0000 (22:18 -0700)]
strings: add ReadRune to Reader

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

15 years agobig: eliminate redundant array lookups
Evan Shaw [Wed, 21 Apr 2010 04:41:58 +0000 (21:41 -0700)]
big: eliminate redundant array lookups

This gives about a 6% performance improvement to pidigits.
Thanks to Russ for the suggestion.

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

15 years agobig: reduce the number of allocations
Evan Shaw [Wed, 21 Apr 2010 04:24:07 +0000 (21:24 -0700)]
big: reduce the number of allocations

There was a bug in makeN that caused lots of unnecessary
allocations.  Fixing this exposed a few bugs in other
functions which worked when makeN allocated a new slice, but
failed when it simply resized an existing slice.  The result
is a pretty big performance improvement.  When running
pidigits, here were the numbers I got on amd64:

Before this change:
pidigits 10000
        gcc -O2 pidigits.c -lgmp        2.09u 0.02s 2.11r
        gc pidigits     12.68u 0.04s 12.72r
        gc_B pidigits   12.71u 0.03s 12.75r

After:
pidigits 10000
        gcc -O2 pidigits.c -lgmp        2.09u 0.00s 2.10r
        gc pidigits     6.82u 0.00s 6.85r
        gc_B pidigits   6.55u 0.01s 6.59r

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

15 years agogo_faq: add question: Why does Go perform badly on benchmark X?
Andrew Gerrand [Wed, 21 Apr 2010 04:00:56 +0000 (14:00 +1000)]
go_faq: add question: Why does Go perform badly on benchmark X?

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

15 years ago6l, 8l: include ELF header in PT_LOAD mapping for text segment
Russ Cox [Wed, 21 Apr 2010 03:39:55 +0000 (20:39 -0700)]
6l, 8l: include ELF header in PT_LOAD mapping for text segment

Due to page boundary rounding, the header would have
been loaded as part of the text segment already, but this
change placates the "paxctl" tool on so-called hardened
Linux distributions (as if normal distributions weren't already
hard enough to use).

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

15 years agobig: Add Lsh and Value; convert pidigits to use big
Evan Shaw [Wed, 21 Apr 2010 03:39:36 +0000 (20:39 -0700)]
big: Add Lsh and Value; convert pidigits to use big

This yields a pretty significant performance boost to pidigits and there are still some improvements to be made. Here are my numbers:

amd64 w/ bignum:
pidigits 10000
        gcc -O2 pidigits.c -lgmp        2.10u 0.00s 2.10r
        gc pidigits     22.92u 0.02s 22.97r
        gc_B pidigits   22.62u 0.00s 22.65r

amd64 w/ big:
pidigits 10000
        gcc -O2 pidigits.c -lgmp        2.09u 0.02s 2.11r
        gc pidigits     12.68u 0.04s 12.72r
        gc_B pidigits   12.71u 0.03s 12.75r

386 w/ bignum:
pidigits 10000
        gcc -O2 pidigits.c -lgmp        2.09u 0.00s 2.09r
        gc pidigits     44.30u 0.01s 44.35r
        gc_B pidigits   44.29u 0.03s 44.35r

386 w/ big:
pidigits 10000
        gcc -O2 pidigits.c -lgmp        2.10u 0.00s 2.10r
        gc pidigits     22.70u 0.06s 22.79r
        gc_B pidigits   22.80u 0.09s 22.91r

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

15 years agogc: print x[y:] correctly
Russ Cox [Wed, 21 Apr 2010 00:39:31 +0000 (17:39 -0700)]
gc: print x[y:] correctly

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

15 years agoruntime: rename cgo2c, *.cgo to goc2c, *.goc
Russ Cox [Wed, 21 Apr 2010 00:03:25 +0000 (17:03 -0700)]
runtime: rename cgo2c, *.cgo to goc2c, *.goc
to avoid confusion with real cgo

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

15 years agoreflect: implement Set(nil), SetValue(nil) for PtrValue and MapValue
Russ Cox [Wed, 21 Apr 2010 00:02:08 +0000 (17:02 -0700)]
reflect: implement Set(nil), SetValue(nil) for PtrValue and MapValue

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

15 years agobig: Get rid of function pointers and init function
Evan Shaw [Tue, 20 Apr 2010 02:07:22 +0000 (19:07 -0700)]
big: Get rid of function pointers and init function

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

15 years agogodashboard: remove obselete data models and conversion code
Andrew Gerrand [Tue, 20 Apr 2010 00:20:15 +0000 (10:20 +1000)]
godashboard: remove obselete data models and conversion code

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

15 years agoAdded strings.FieldsFunc, a generalization of strings.Fields in style of the strings...
Kyle Consalus [Mon, 19 Apr 2010 23:36:50 +0000 (16:36 -0700)]
Added strings.FieldsFunc, a generalization of strings.Fields in style of the strings.Trim*Func functions.

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

15 years agogodashboard: bz2 compress logs in data store
Andrew Gerrand [Mon, 19 Apr 2010 23:06:57 +0000 (09:06 +1000)]
godashboard: bz2 compress logs in data store

This results in a 10-20x size reduction per record.
(from ~150kb to ~10kb)

This revision has been pushed live, as I'm in the process of
converting Log records to bz2-compresed CompressedLog records.
I would have waited but we're running seriously low on space
and it seemed like a sane (and reversible) move.

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

15 years agogc benchmark: Update package list
Evan Shaw [Mon, 19 Apr 2010 22:41:40 +0000 (15:41 -0700)]
gc benchmark: Update package list

Some old packages on the list were preventing this benchmark from working.

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

15 years agogc: cmplx typecheck bug fix
Russ Cox [Mon, 19 Apr 2010 16:21:51 +0000 (09:21 -0700)]
gc: cmplx typecheck bug fix

Fixes #729.

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

15 years agosyscall: match linux Setsid function signature to darwin
Andrew Gerrand [Mon, 19 Apr 2010 03:12:11 +0000 (13:12 +1000)]
syscall: match linux Setsid function signature to darwin

SETSID does return an errno - any reason why it has been done this
way in zsyscall_linux_* ? Otherwise it should be the same as darwin.

From SETSID(2) on my Linux box:

ERRORS
       On error, -1 is returned, and errno is set.

Fixes #730

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

15 years agoreflect: add FieldByNameFunc
Raif S. Naffah [Sun, 18 Apr 2010 22:22:36 +0000 (15:22 -0700)]
reflect: add FieldByNameFunc
xml: add support for XML marshalling embedded structs.

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

15 years agonet: fix bugs in packStructValue
Michael Hoisie [Sun, 18 Apr 2010 21:46:24 +0000 (14:46 -0700)]
net: fix bugs in packStructValue

packStructValue was cutting off last byte of uint32
in _Dns_msg.Unpack, use packRR for rr types

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

15 years agojson: scanner, Compact, Indent, and tests
Russ Cox [Sun, 18 Apr 2010 21:45:08 +0000 (14:45 -0700)]
json: scanner, Compact, Indent, and tests

This is the first of probably four separate CLs
for the new implementation of the json package.

The scanner is the core of the new implementation.
The other CLs would be the new decoder,
the new encoder, and support for JSON streams.

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

15 years agorpc: Add Close() method to rpc.Client to allow graceful connection teardown.
Rob Pike [Fri, 16 Apr 2010 23:17:47 +0000 (16:17 -0700)]
rpc: Add Close() method to rpc.Client to allow graceful connection teardown.
Fixes #675.

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

15 years ago the android runner script
Kai Backman [Fri, 16 Apr 2010 10:06:45 +0000 (13:06 +0300)]
the android runner script

this is a version synthesized from rsc's, dean's and my
versions. changes and updates:

- embeds the retval script and pushes a new version to the
          device if needed
- passes arguments correctly to the program on the device
- export GOARCH, GOTRACEBACK and GOGC from the local
          environment to the device.
- added times.out support to run-arm

enabled a few tests that are now passing and moved the
GOGC=off workaround to run-arm.

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

15 years agoadd Sam Thorogood (of Google Inc.) to CONTRIBUTORS
Andrew Gerrand [Fri, 16 Apr 2010 07:40:49 +0000 (17:40 +1000)]
add Sam Thorogood (of Google Inc.) to CONTRIBUTORS

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

15 years agoexp/eval: Always read float literals as base 10
Evan Shaw [Fri, 16 Apr 2010 02:53:35 +0000 (19:53 -0700)]
exp/eval: Always read float literals as base 10

We were letting bignum decide, which caused problems with float literals with a leading 0.

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

15 years agogo/ast: Update comment to mention imaginary literals
Evan Shaw [Fri, 16 Apr 2010 01:06:22 +0000 (18:06 -0700)]
go/ast: Update comment to mention imaginary literals

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

15 years agoexp/eval: Implement x[lo:]
Evan Shaw [Fri, 16 Apr 2010 01:04:24 +0000 (18:04 -0700)]
exp/eval: Implement x[lo:]

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

15 years agoflag: eliminate unnecessary structs
Russ Cox [Thu, 15 Apr 2010 22:25:46 +0000 (15:25 -0700)]
flag: eliminate unnecessary structs

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

15 years ago"godoc -src pkg_name" excludes duplicates entries
Andrei Vieru [Thu, 15 Apr 2010 16:50:37 +0000 (09:50 -0700)]
"godoc -src pkg_name" excludes duplicates entries

$ godoc xml | grep Copy\(\)
func (c CharData) Copy() CharData
func (c Comment) Copy() Comment
func (d Directive) Copy() Directive
func (p ProcInst) Copy() ProcInst
func (e StartElement) Copy() StartElement
--------------------------------------------
$ godoc -src xml | grep Copy\(\)
func (c CharData) Copy() CharData
--------------------------------------------
$ godoc -src xml Copy
func (c CharData) Copy() CharData { return CharData(makeCopy(c)) }
--------------------------------------------
The command "godoc -src pkg_name" should output the interface of the named package, but it excludes all duplicate entries. Also the command "godoc -src pkg_name method_name" will output the source code only for one method even if there are more of them with the same name in the same package. This patch set fixes this issue.

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

15 years agosynchronize ARM runner environment variable with run-arm
Kai Backman [Thu, 15 Apr 2010 09:47:49 +0000 (12:47 +0300)]
synchronize ARM runner environment variable with run-arm

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

15 years agosupport for printing floats:
Kai Backman [Thu, 15 Apr 2010 09:43:49 +0000 (12:43 +0300)]
support for printing floats:

fmt.Printf("float32 %f\n", float32(1234.56789))
fmt.Printf("float64 %f\n", float64(1234.56789))
->
float32 1234.567871
float64 1234.567890

this is a snapshot. extended instruction support, corner cases
and fixes coming in subseuent cls.

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

15 years agoscanner: implement Peek() to look at the next char w/o advancing
Robert Griesemer [Thu, 15 Apr 2010 04:33:34 +0000 (21:33 -0700)]
scanner: implement Peek() to look at the next char w/o advancing

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

15 years agobytes: shuffle implementation, making WriteByte 50% faster
Russ Cox [Wed, 14 Apr 2010 08:52:56 +0000 (01:52 -0700)]
bytes: shuffle implementation, making WriteByte 50% faster

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

15 years agorelease.2010-04-13 part two
Andrew Gerrand [Wed, 14 Apr 2010 05:48:48 +0000 (15:48 +1000)]
release.2010-04-13 part two

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

15 years agoruntime: better trace for fault due to nil pointer call
Russ Cox [Wed, 14 Apr 2010 05:31:47 +0000 (22:31 -0700)]
runtime: better trace for fault due to nil pointer call

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

15 years agoos, syscall: mingw bug fixes
Alex Brainman [Wed, 14 Apr 2010 05:30:41 +0000 (22:30 -0700)]
os, syscall: mingw bug fixes

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

15 years agogo_spec updates weekly.2010-04-13
Russ Cox [Wed, 14 Apr 2010 03:55:57 +0000 (20:55 -0700)]
go_spec updates

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

15 years agorelease.2010-04-13
Andrew Gerrand [Wed, 14 Apr 2010 01:49:47 +0000 (11:49 +1000)]
release.2010-04-13

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

15 years agoos: mingw version of Readdir() and Stat() implemented
Alex Brainman [Tue, 13 Apr 2010 23:30:11 +0000 (16:30 -0700)]
os: mingw version of Readdir() and Stat() implemented

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

15 years ago8l: add DOS stub to PE binaries
Evan Shaw [Tue, 13 Apr 2010 23:13:53 +0000 (16:13 -0700)]
8l: add DOS stub to PE binaries

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

15 years agonetchan: allow client to send as well as receive.
Rob Pike [Tue, 13 Apr 2010 20:49:42 +0000 (13:49 -0700)]
netchan: allow client to send as well as receive.
much rewriting and improving, but it's still experimental.

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

15 years agotemplate: use panic/recover to simplify internal error handling.
Rob Pike [Tue, 13 Apr 2010 20:28:08 +0000 (13:28 -0700)]
template: use panic/recover to simplify internal error handling.

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

15 years agoUse the copy function rather than a loop.
Ian Lance Taylor [Tue, 13 Apr 2010 20:05:29 +0000 (13:05 -0700)]
Use the copy function rather than a loop.

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

15 years agotest: minor updates to avoid bitrot
Christopher Wedgwood [Tue, 13 Apr 2010 01:10:29 +0000 (18:10 -0700)]
test: minor updates to avoid bitrot

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

15 years agoRemove exp/exception as it's no longer relevant
Christopher Wedgwood [Tue, 13 Apr 2010 00:51:35 +0000 (10:51 +1000)]
Remove exp/exception as it's no longer relevant

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

15 years agofixes for rpc:
Rob Pike [Tue, 13 Apr 2010 00:14:28 +0000 (17:14 -0700)]
fixes for rpc:
- don't log normal EOF
- fix ServeConn to block as documented

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

15 years agogc: zero unnamed return values on entry if func has defer
Russ Cox [Mon, 12 Apr 2010 21:28:27 +0000 (14:28 -0700)]
gc: zero unnamed return values on entry if func has defer

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

15 years agoxml: update documentation to match current coding style
Christopher Wedgwood [Mon, 12 Apr 2010 17:28:50 +0000 (10:28 -0700)]
xml: update documentation to match current coding style

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

15 years agofmt format verb %b bug
Andrei Vieru [Mon, 12 Apr 2010 17:20:06 +0000 (10:20 -0700)]
fmt format verb %b bug

fmt.Printf("%b", int8(-1)) prints 64 ones instead of 8.
This happens only for signed integers (int8, in16 and int32). I guess it's because of the way the conversion between integer types works. From go spec: "Conversions between integer types. If the value is a signed quantity, it is sign extended to implicit infinite precision ....". And there are several conversions to int64 and uint64 in the fmt package. This pathch solves only half of the problem. On a 32 bit system, an fmt.Printf("%b", int(-1)) should still print 64 ones.

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

15 years agoCLA: Andrei Vieru
Rob Pike [Mon, 12 Apr 2010 17:11:18 +0000 (10:11 -0700)]
CLA: Andrei Vieru

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

15 years agojson: update documentation to match current coding style
Christopher Wedgwood [Mon, 12 Apr 2010 05:09:34 +0000 (22:09 -0700)]
json: update documentation to match current coding style

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

15 years agogc: compile s == "" as len(s) == 0
Russ Cox [Sun, 11 Apr 2010 22:24:44 +0000 (15:24 -0700)]
gc: compile s == "" as len(s) == 0

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

15 years agogc: distinguish fatal compiler bug from error+exit
Russ Cox [Sun, 11 Apr 2010 21:52:06 +0000 (14:52 -0700)]
gc: distinguish fatal compiler bug from error+exit

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

15 years agogc: make sure main.main has correct type
Russ Cox [Sun, 11 Apr 2010 21:51:35 +0000 (14:51 -0700)]
gc: make sure main.main has correct type

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

15 years agodebug/elf: Fix doc comments
Evan Shaw [Sun, 11 Apr 2010 21:49:44 +0000 (14:49 -0700)]
debug/elf: Fix doc comments

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

15 years agoexp/eval: Fix example and add target to Makefile
Evan Shaw [Sun, 11 Apr 2010 19:42:19 +0000 (12:42 -0700)]
exp/eval: Fix example and add target to Makefile

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

15 years agoarchive/tar: update documentation to match current coding style
Christopher Wedgwood [Sun, 11 Apr 2010 17:29:07 +0000 (10:29 -0700)]
archive/tar: update documentation to match current coding style

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

15 years agonacl: update documentation to match current coding style
Christopher Wedgwood [Sun, 11 Apr 2010 17:19:32 +0000 (10:19 -0700)]
nacl: update documentation to match current coding style

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

15 years agotesting: update documentation to match current coding style
Christopher Wedgwood [Sun, 11 Apr 2010 17:18:49 +0000 (10:18 -0700)]
testing: update documentation to match current coding style

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

15 years agogodoc: change od.Dir -> os.FileInfo in comments
Christopher Wedgwood [Sun, 11 Apr 2010 17:17:45 +0000 (10:17 -0700)]
godoc: change od.Dir -> os.FileInfo in comments

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

15 years agotime: fix comment typo
Andrew Gerrand [Sun, 11 Apr 2010 13:33:25 +0000 (23:33 +1000)]
time: fix comment typo

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

15 years agocodereview: Mention that deleting a CL is a use of 'hg change' in its header.
David Symonds [Sat, 10 Apr 2010 08:53:43 +0000 (01:53 -0700)]
codereview: Mention that deleting a CL is a use of 'hg change' in its header.

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

15 years agostrings: add IndexRune, Trim, TrimLeft, TrimRight, and the generic equivalents TrimFu...
Michael Hoisie [Sat, 10 Apr 2010 01:57:03 +0000 (18:57 -0700)]
strings: add IndexRune, Trim, TrimLeft, TrimRight, and the generic equivalents TrimFunc, TrimLeftFunc, TrimRightFunc

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