]> Cypherpunks repositories - gostls13.git/log
gostls13.git
14 years agogc: bug281 - bad overlap in stack copy
Russ Cox [Mon, 24 May 2010 23:54:24 +0000 (16:54 -0700)]
gc: bug281 - bad overlap in stack copy

Fixes #807.

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

14 years agonet: udp, implement BindToDevice
Christopher Wedgwood [Mon, 24 May 2010 23:53:23 +0000 (16:53 -0700)]
net: udp, implement BindToDevice

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

14 years agobig: Rat test improvements
Evan Shaw [Mon, 24 May 2010 23:38:41 +0000 (16:38 -0700)]
big: Rat test improvements

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

14 years ago6g: avoid unnecessary conversion in shift bounds check
Russ Cox [Mon, 24 May 2010 22:30:53 +0000 (15:30 -0700)]
6g: avoid unnecessary conversion in shift bounds check

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

14 years agofix build - forgot golden.out
Russ Cox [Mon, 24 May 2010 22:26:20 +0000 (15:26 -0700)]
fix build - forgot golden.out

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

14 years agogc: bug277 - new conversion syntax
Russ Cox [Mon, 24 May 2010 22:25:30 +0000 (15:25 -0700)]
gc: bug277 - new conversion syntax

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

14 years agogc: bug280
Russ Cox [Mon, 24 May 2010 22:25:09 +0000 (15:25 -0700)]
gc: bug280

Fixes #808.

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

14 years agoFix typo in exp/draw/x11.
Nigel Tao [Mon, 24 May 2010 22:07:47 +0000 (15:07 -0700)]
Fix typo in exp/draw/x11.

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

14 years agogo spec: fix and clarify syntax of conversions
Robert Griesemer [Mon, 24 May 2010 21:58:26 +0000 (14:58 -0700)]
go spec: fix and clarify syntax of conversions

Fixes #803.

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

14 years agocodereview: work better with mq
Peter Williams [Mon, 24 May 2010 21:37:00 +0000 (14:37 -0700)]
codereview: work better with mq

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

14 years agoA+C: add Peter Williams (individual CLA)
Russ Cox [Mon, 24 May 2010 21:32:08 +0000 (14:32 -0700)]
A+C: add Peter Williams (individual CLA)

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

14 years agospec: index of non-addressable array is not addressable
Russ Cox [Mon, 24 May 2010 21:31:43 +0000 (14:31 -0700)]
spec: index of non-addressable array is not addressable

Motivated by:

func f() []int
func g() [10]int

f()[1] = 1  // ok
g()[1] = 1 // ERROR

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

14 years agoruntime: free old hashmap pieces during resizing
Russ Cox [Mon, 24 May 2010 21:31:10 +0000 (14:31 -0700)]
runtime: free old hashmap pieces during resizing

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

14 years agolibmach: skip __nl_symbol_ptr section on OS X
Russ Cox [Mon, 24 May 2010 21:30:51 +0000 (14:30 -0700)]
libmach: skip __nl_symbol_ptr section on OS X

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

14 years agogc: bug278
Russ Cox [Mon, 24 May 2010 21:22:54 +0000 (14:22 -0700)]
gc: bug278

Fixes #804.

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

14 years agogc: fix unsafe.Sizeof on ideal constants
Russ Cox [Mon, 24 May 2010 21:18:15 +0000 (14:18 -0700)]
gc: fix unsafe.Sizeof on ideal constants

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

14 years agobug277: tests for conversion syntax
Robert Griesemer [Mon, 24 May 2010 20:57:34 +0000 (13:57 -0700)]
bug277: tests for conversion syntax

- accepted by gccgo, gofmt
- some not accepted by 6g
- spec revision forthcoming

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

14 years agofix windows build
Alex Brainman [Mon, 24 May 2010 18:48:14 +0000 (11:48 -0700)]
fix windows build

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

14 years agoMake draw/x11 treat $DISPLAY the same way x-go-bindings does.
Nigel Tao [Mon, 24 May 2010 18:44:09 +0000 (11:44 -0700)]
Make draw/x11 treat $DISPLAY the same way x-go-bindings does.
This ought to make draw/x11 work on a Mac.

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

14 years agobig: prevent errors in Exp in the face of aliasing
Adam Langley [Mon, 24 May 2010 18:32:55 +0000 (14:32 -0400)]
big: prevent errors in Exp in the face of aliasing

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

14 years agosyscall: update freebsd_amd64
Andrew Gerrand [Mon, 24 May 2010 16:58:59 +0000 (09:58 -0700)]
syscall: update freebsd_amd64

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

14 years agokate: convert isn't a built in function
Evan Shaw [Sun, 23 May 2010 21:33:44 +0000 (14:33 -0700)]
kate: convert isn't a built in function

I have no idea how that got in there.

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

14 years agospec: Fix a code tag
Evan Shaw [Sun, 23 May 2010 18:21:47 +0000 (11:21 -0700)]
spec: Fix a code tag

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

14 years agoWhen making images, allocate one big buffer instead of many small ones.
Nigel Tao [Sun, 23 May 2010 18:12:00 +0000 (11:12 -0700)]
When making images, allocate one big buffer instead of many small ones.

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

14 years agogo/printer, gofmt: fix printing of labels,
Robert Griesemer [Sat, 22 May 2010 03:25:08 +0000 (20:25 -0700)]
go/printer, gofmt: fix printing of labels,
apply gofmt to src, misc

Fixes #752.

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

14 years agotest/hilbert.go: convert to test case and benchmark for big.Rat
Robert Griesemer [Sat, 22 May 2010 03:20:17 +0000 (20:20 -0700)]
test/hilbert.go: convert to test case and benchmark for big.Rat

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

14 years agoroll back 1193046 - fix build
Russ Cox [Sat, 22 May 2010 01:29:18 +0000 (18:29 -0700)]
roll back 1193046 - fix build

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

14 years agocgo: better error for no C symbols
Devon H. O'Dell [Sat, 22 May 2010 00:31:18 +0000 (17:31 -0700)]
cgo: better error for no C symbols

R=rsc, iant
CC=golang-dev, graeme.perrow
https://golang.org/cl/1193046

14 years agonet: implement raw sockets
Christopher Wedgwood [Sat, 22 May 2010 00:30:40 +0000 (17:30 -0700)]
net: implement raw sockets

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

14 years agobig: Add Rat type
Evan Shaw [Fri, 21 May 2010 23:14:55 +0000 (16:14 -0700)]
big: Add Rat type

Implementations are pretty rough and simple at this point, but it's a start.

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

14 years agoissue 789: keep test case
Robert Griesemer [Fri, 21 May 2010 21:53:54 +0000 (14:53 -0700)]
issue 789: keep test case

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

14 years agoruntime: correct tracebacks for nascent goroutines, even closures
Russ Cox [Fri, 21 May 2010 21:40:21 +0000 (14:40 -0700)]
runtime: correct tracebacks for nascent goroutines, even closures

Fixes #780.

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

14 years agosyscall: add Utimes, Futimes stubs for NaCl - fix build
Russ Cox [Fri, 21 May 2010 21:39:10 +0000 (14:39 -0700)]
syscall: add Utimes, Futimes stubs for NaCl - fix build

TBR=nigeltao
CC=golang-dev
https://golang.org/cl/1262042

14 years agosyscall: regenerate zsyscall_linux_arm.go - fix build
Russ Cox [Fri, 21 May 2010 21:33:17 +0000 (14:33 -0700)]
syscall: regenerate zsyscall_linux_arm.go - fix build

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

14 years agobig: fix Int.SetString comment, simplify implementation,
Robert Griesemer [Fri, 21 May 2010 21:28:34 +0000 (14:28 -0700)]
big: fix Int.SetString comment, simplify implementation,
     always return z for nat.scan

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

14 years agobignum: deprecate by moving into exp directory
Robert Griesemer [Fri, 21 May 2010 21:14:22 +0000 (14:14 -0700)]
bignum: deprecate by moving into exp directory

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

14 years agobig: implemented Int.Binomial (to be used in test/hilbert.go with the
Robert Griesemer [Fri, 21 May 2010 06:10:51 +0000 (23:10 -0700)]
big: implemented Int.Binomial (to be used in test/hilbert.go with the
     forthcoming implementation of big.Rat)

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

14 years agogc: handle use of builtin function outside function call
Russ Cox [Fri, 21 May 2010 05:57:08 +0000 (22:57 -0700)]
gc: handle use of builtin function outside function call
tweaks & tests of last bug fix too.

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

14 years agogc: line number bug fix
Russ Cox [Fri, 21 May 2010 05:19:50 +0000 (22:19 -0700)]
gc: line number bug fix

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

14 years agoclean up bug 275
Ken Thompson [Fri, 21 May 2010 04:01:59 +0000 (21:01 -0700)]
clean up bug 275

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

14 years agofix bug 275
Ken Thompson [Fri, 21 May 2010 03:56:28 +0000 (20:56 -0700)]
fix bug 275

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

14 years agogc: disallow · in Go programs
Russ Cox [Fri, 21 May 2010 00:34:22 +0000 (17:34 -0700)]
gc: disallow · in Go programs

Fixes #793.

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

14 years agofix issue 798
Ken Thompson [Fri, 21 May 2010 00:31:28 +0000 (17:31 -0700)]
fix issue 798
cannot allocate an audomatic temp
while real registers are allocated.
there is a chance that the automatic
will be allocated to one of the
allocated registers. the fix is to
not registerize such variables.

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

14 years agonetFD: fix race between Close and Read/Write
Michael Hoisie [Fri, 21 May 2010 00:13:50 +0000 (17:13 -0700)]
netFD: fix race between Close and Read/Write

Fixes #783.

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

14 years agoFix Rectangle.Canon()
Roger Peppe [Thu, 20 May 2010 21:33:50 +0000 (14:33 -0700)]
Fix Rectangle.Canon()

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

14 years agoFast-ish path for drawing onto an image.RGBA destination.
Nigel Tao [Thu, 20 May 2010 20:57:18 +0000 (13:57 -0700)]
Fast-ish path for drawing onto an image.RGBA destination.

Time to draw.Draw a 200x200 image fell from 18.4ms (and 1 malloc) to
5.6ms (and 0 mallocs). It's still relatively slow since it assumes
nothing about the src or mask images, but it does remove the malloc.
There are existing faster, more specialized paths for copies, fills
and image glyph masks.

Also added a "compare to a slow but obviously correct implementation"
check to draw_test.go.

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

14 years agosyscall: linux, implement BindToDevice
Christopher Wedgwood [Thu, 20 May 2010 16:43:13 +0000 (09:43 -0700)]
syscall: linux, implement BindToDevice

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

14 years agosyscall: bsd, stub BindToDevice
Christopher Wedgwood [Thu, 20 May 2010 16:39:35 +0000 (09:39 -0700)]
syscall: bsd, stub BindToDevice

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

14 years agoruntime: avoid allocation for fixed strings
Russ Cox [Thu, 20 May 2010 04:33:31 +0000 (21:33 -0700)]
runtime: avoid allocation for fixed strings

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

14 years agodashboard: reintroduce Benchmark model
Andrew Gerrand [Thu, 20 May 2010 00:53:41 +0000 (17:53 -0700)]
dashboard: reintroduce Benchmark model

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

14 years agoos: add Chtimes function
Brad Fitzpatrick [Thu, 20 May 2010 00:48:53 +0000 (17:48 -0700)]
os: add Chtimes function

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

14 years agosyscall: add Utimes on Darwin/FreeBSD, add Futimes everywhere
Russ Cox [Thu, 20 May 2010 00:47:57 +0000 (17:47 -0700)]
syscall: add Utimes on Darwin/FreeBSD, add Futimes everywhere

Needed for CL 1103041 and beyond.

R=adg, bradfitzpatrick
CC=bradfitz, golang-dev
https://golang.org/cl/1172042

14 years agobug275: cannot apply real() to a complex array element
Robert Griesemer [Wed, 19 May 2010 20:10:00 +0000 (13:10 -0700)]
bug275: cannot apply real() to a complex array element

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

14 years agoruntime: allow large map values
Russ Cox [Wed, 19 May 2010 19:57:47 +0000 (12:57 -0700)]
runtime: allow large map values

Fixes #772.

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

14 years agobig: potential bug fix, cleanups
Robert Griesemer [Wed, 19 May 2010 16:36:50 +0000 (09:36 -0700)]
big: potential bug fix, cleanups

- implemented setWord, use it where setUint64 is wrong
- divLarge: use fast mulWW, divWW; implemented mulWW, divWW
- better assembly code for addMulVVW

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

14 years agofix build - arm tests
Russ Cox [Wed, 19 May 2010 06:27:35 +0000 (23:27 -0700)]
fix build - arm tests

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

14 years agofix build - no netchan tests under NaCl
Russ Cox [Wed, 19 May 2010 06:25:07 +0000 (23:25 -0700)]
fix build - no netchan tests under NaCl

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

14 years agobytes: add Trim, TrimLeft, TrimRight, and generic functions
Michael Hoisie [Wed, 19 May 2010 06:01:05 +0000 (23:01 -0700)]
bytes: add Trim, TrimLeft, TrimRight, and generic functions

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

14 years agogc: Better error when computing remainder of non-int
Evan Shaw [Wed, 19 May 2010 05:41:12 +0000 (22:41 -0700)]
gc: Better error when computing remainder of non-int

Previously the compiler would just emit "internal compiler error" when
trying to compute the remainder of floats or complex types.

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

14 years agomath: amd64 versions of fdim, fmax, fmin
Charles L. Dorian [Wed, 19 May 2010 05:33:50 +0000 (22:33 -0700)]
math: amd64 versions of fdim, fmax, fmin

Uses the SSE2 max, min instructions. Also shorter sqrt_amd64.s

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

14 years agomath: signed zero Sqrt special case
Charles L. Dorian [Wed, 19 May 2010 05:16:01 +0000 (22:16 -0700)]
math: signed zero Sqrt special case

IEEE 754 says: sqrt(-0) = -0

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

14 years agobig: bug fix for division
Robert Griesemer [Tue, 18 May 2010 23:31:49 +0000 (16:31 -0700)]
big: bug fix for division

Fixes #784.

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

14 years ago Trivial optimization.
Kyle Consalus [Tue, 18 May 2010 23:29:24 +0000 (16:29 -0700)]
Trivial optimization.
Cached string indexing in inner loop of Btoui64.

    Before:
    strconv_test.BenchmarkAtoi   5000000           309 ns/op
    strconv_test.BenchmarkAtoiNeg    5000000           325 ns/op
    strconv_test.BenchmarkAtoi64     5000000           465 ns/op
    strconv_test.BenchmarkAtoi64Neg  5000000           469 ns/op

    After:
    strconv_test.BenchmarkAtoi  10000000           182 ns/op
    strconv_test.BenchmarkAtoiNeg   10000000           193 ns/op
    strconv_test.BenchmarkAtoi64    10000000           251 ns/op
    strconv_test.BenchmarkAtoi64Neg 10000000           258 ns/op

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

14 years agoAdd Error member to yyLexer type (yyError
Roger Peppe [Mon, 17 May 2010 19:23:48 +0000 (12:23 -0700)]
Add Error member to yyLexer type (yyError
has no access to yylex)

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

14 years agobig: implemented format support for fmt library, MulRange
Robert Griesemer [Sat, 15 May 2010 17:23:41 +0000 (10:23 -0700)]
big: implemented format support for fmt library, MulRange

- support for binary prefix 0b (to match fmt.Format)
- renamed nat.new -> nat.setUint64 for consistency
- more tests

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

14 years agobuild; allow MAKEFLAGS to be set outside the build scripts
Christopher Wedgwood [Sat, 15 May 2010 17:08:29 +0000 (10:08 -0700)]
build; allow MAKEFLAGS to be set outside the build scripts

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

14 years agocmath: add package description
Charles L. Dorian [Sat, 15 May 2010 17:06:54 +0000 (10:06 -0700)]
cmath: add package description

Also update range of Phase and Polar due to signed zero.
[Phase(cmplx(-1, +0)) = pi and Phase(cmplx(-1, -0)) = -pi]

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

14 years agogofmt: exclude test w/ illegal syntax from test cases
Robert Griesemer [Fri, 14 May 2010 22:45:53 +0000 (15:45 -0700)]
gofmt: exclude test w/ illegal syntax from test cases

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

14 years agogo/printer (gofmt): don't lose mandatory semicolons
Robert Griesemer [Fri, 14 May 2010 22:38:25 +0000 (15:38 -0700)]
go/printer (gofmt): don't lose mandatory semicolons

Fixes #779.

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

14 years agogo spec: added imaginary literal to semicolon rules (was missing)
Robert Griesemer [Fri, 14 May 2010 20:11:48 +0000 (13:11 -0700)]
go spec: added imaginary literal to semicolon rules (was missing)

- also added links to the respective sections
- reformatted section for better (source html) readability
- added missing closing </li>'s in many places

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

14 years agoPrevent Printf crashing when giving an extra nil argument.
Roger Peppe [Thu, 13 May 2010 19:49:48 +0000 (12:49 -0700)]
Prevent Printf crashing when giving an extra nil argument.

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

14 years agorename 'gordon' to 'gopher'
Andrew Gerrand [Thu, 13 May 2010 18:53:44 +0000 (11:53 -0700)]
rename 'gordon' to 'gopher'

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

14 years agobug274: test case for issue 777
Robert Griesemer [Thu, 13 May 2010 18:52:04 +0000 (11:52 -0700)]
bug274: test case for issue 777

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

14 years agohttp: prevent crash if remote server is not responding with "HTTP/"
Robert Griesemer [Tue, 11 May 2010 23:50:20 +0000 (16:50 -0700)]
http: prevent crash if remote server is not responding with "HTTP/"

Fixes #775.

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

14 years agonetchan: be less chatty during gotest
Russ Cox [Tue, 11 May 2010 21:57:08 +0000 (14:57 -0700)]
netchan: be less chatty during gotest

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

14 years agojson: fix array -> non-array decoding
Russ Cox [Tue, 11 May 2010 21:38:55 +0000 (14:38 -0700)]
json: fix array -> non-array decoding

Fixes #773.

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

14 years agodrawGlyphOver optimization.
Nigel Tao [Tue, 11 May 2010 03:35:16 +0000 (13:35 +1000)]
drawGlyphOver optimization.

Timings (as for change 1122043) go from 49ms to 48ms ish. It's
mostly lost in the noise, but it probably doesn't hurt.

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

15 years agoexp/draw fast path for glyph images.
Nigel Tao [Mon, 10 May 2010 00:32:08 +0000 (10:32 +1000)]
exp/draw fast path for glyph images.

To draw.Draw a 32x32 image.Alpha 10000 times,
Before: 633ms with 10000 mallocs
After: 49ms with 0 mallocs

These times are just blitting an image.Alpha, and do not include
rasterizing a glyph's vector contours to an image.Alpha.

The "generic" test case in draw_test.go tests this fast path.

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

15 years agotemplate: regularize the handling of interfaces, pointers, and
Rob Pike [Sun, 9 May 2010 23:40:38 +0000 (16:40 -0700)]
template: regularize the handling of interfaces, pointers, and
methods when looking up names.
Fixes #764.

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

15 years agojson: accept escaped slash in string scanner
Michael Hoisie [Sun, 9 May 2010 00:34:05 +0000 (17:34 -0700)]
json: accept escaped slash in string scanner

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

15 years agobig: cleanups and performance tuning
Robert Griesemer [Sat, 8 May 2010 20:52:36 +0000 (13:52 -0700)]
big: cleanups and performance tuning

- removed last argument (n) from all core arithmetic routines;
  instead, use the length of the result

- simplified nat.make implementation and chose a better capacity
  for new values, removed a TODO in the process

Changing the constant e from 1 (old) to 4 (new) improved
pidigits -s -n 10000 by ~9% (on a 3.06GHz Intel Core 2 Duo):

user 0m3.882s (old)
user 0m3.549s (new)

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

15 years agobig: more cleanup
Robert Griesemer [Sat, 8 May 2010 01:26:31 +0000 (18:26 -0700)]
big: more cleanup

- pass []Word instead of *Word to core arithmetic functions
- remove dead code

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

15 years agogo spec: simplify section on channel types
Robert Griesemer [Sat, 8 May 2010 01:22:40 +0000 (18:22 -0700)]
go spec: simplify section on channel types

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

15 years agocompress: renamings.
Rob Pike [Fri, 7 May 2010 21:32:34 +0000 (14:32 -0700)]
compress: renamings.
NewDeflater -> NewWriter
NewInflater -> NewReader
Deflater -> Compressor
Inflater -> Decompressor

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

15 years agogob: bug fix: errors encoding the payload were not
Rob Pike [Fri, 7 May 2010 20:30:13 +0000 (13:30 -0700)]
gob: bug fix: errors encoding the payload were not
returned to caller.

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

15 years agogob: add an internal commentary example showing how the
Rob Pike [Fri, 7 May 2010 18:44:41 +0000 (11:44 -0700)]
gob: add an internal commentary example showing how the
values are encoded for transmission.

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

15 years agoSave the scheduling state even predawn.
Ian Lance Taylor [Fri, 7 May 2010 05:07:03 +0000 (22:07 -0700)]
Save the scheduling state even predawn.

This permits cgo callbacks to work when run in init code.
Otherwise cgocallback switches to the wrong stack address.

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

15 years agofix build (typo in arith_386.s)
Robert Griesemer [Fri, 7 May 2010 02:16:26 +0000 (19:16 -0700)]
fix build (typo in arith_386.s)

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

15 years agobig: implemented overlap-tolerant shifts in assembly
Robert Griesemer [Fri, 7 May 2010 01:20:01 +0000 (18:20 -0700)]
big: implemented overlap-tolerant shifts in assembly

- no need to make copies in cases of aliases
- removed deprecated internal shift functions
- minor unrelated simplifications

This change improves pidigits -s -n10000 by almost 20%:

user 0m6.156s (old)
user 0m4.999s (new)

(pidigits -s -n20000 goes from ~25s to ~19s)

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

15 years agocodelab/wiki: fix typo in demo URL
Andrew Gerrand [Fri, 7 May 2010 00:16:16 +0000 (10:16 +1000)]
codelab/wiki: fix typo in demo URL

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

15 years agoruntime.GOMAXPROCS: hack it to have it return the old value.
Rob Pike [Thu, 6 May 2010 18:50:47 +0000 (11:50 -0700)]
runtime.GOMAXPROCS: hack it to have it return the old value.

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

15 years agogob: add test for indirect maps, slices, arrays.
Rob Pike [Thu, 6 May 2010 17:45:18 +0000 (10:45 -0700)]
gob: add test for indirect maps, slices, arrays.
fix a bug in the handling of indirect maps.

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

15 years agogc: distinguish array, slice literal in error messages
Russ Cox [Thu, 6 May 2010 16:34:12 +0000 (09:34 -0700)]
gc: distinguish array, slice literal in error messages

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

15 years agoMake exp/draw/x11 respect $XAUTHORITY.
Nigel Tao [Thu, 6 May 2010 08:41:42 +0000 (18:41 +1000)]
Make exp/draw/x11 respect $XAUTHORITY.

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

15 years agogob: add support for maps.
Rob Pike [Wed, 5 May 2010 23:46:39 +0000 (16:46 -0700)]
gob: add support for maps.
Because maps are mostly a hidden type, they must be
implemented using reflection values and will not be as
efficient as arrays and slices.

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

15 years agopkg/Makefile: add netchan to standard package list
Rob Pike [Wed, 5 May 2010 22:17:26 +0000 (15:17 -0700)]
pkg/Makefile: add netchan to standard package list

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

15 years agoCONTRIBUTORS: add Brad Fitzpatrick (Google Inc)
Russ Cox [Wed, 5 May 2010 19:49:59 +0000 (12:49 -0700)]
CONTRIBUTORS: add Brad Fitzpatrick (Google Inc)

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

15 years agoConversion from loop to copy().
Kyle Consalus [Wed, 5 May 2010 16:57:53 +0000 (09:57 -0700)]
Conversion from loop to copy().

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

15 years agoFix a typo in net/unixsock
Conrad Meyer [Wed, 5 May 2010 16:55:11 +0000 (09:55 -0700)]
Fix a typo in net/unixsock

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

15 years agorelease.2010-05-04 tags
Andrew Gerrand [Wed, 5 May 2010 02:13:50 +0000 (12:13 +1000)]
release.2010-05-04 tags

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