]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoucsd cns talk, focused on networking
Russ Cox [Wed, 27 Jan 2010 23:50:29 +0000 (15:50 -0800)]
ucsd cns talk, focused on networking

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

15 years agodashboard: builder tweaks
Russ Cox [Wed, 27 Jan 2010 23:42:37 +0000 (15:42 -0800)]
dashboard: builder tweaks

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

15 years agochange print print buffer size
Ken Thompson [Wed, 27 Jan 2010 23:37:46 +0000 (15:37 -0800)]
change print print buffer size
to go with the full path names

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

15 years agogc: implement defer print/println/panic/panicln
Russ Cox [Wed, 27 Jan 2010 23:37:08 +0000 (15:37 -0800)]
gc: implement defer print/println/panic/panicln

Fixes #219.

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

15 years agonote that ...T is not yet implemented.
Rob Pike [Wed, 27 Jan 2010 21:45:16 +0000 (13:45 -0800)]
note that ...T is not yet implemented.

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

15 years agodashboard: look for key in $GOROOT before $HOME
Russ Cox [Wed, 27 Jan 2010 21:27:10 +0000 (13:27 -0800)]
dashboard: look for key in $GOROOT before $HOME

TBR=agl1
CC=golang-dev
https://golang.org/cl/195076

15 years agoadd definition of new parameter style
Rob Pike [Wed, 27 Jan 2010 21:14:40 +0000 (13:14 -0800)]
add definition of new parameter style
... T
for trailing arguments of type T.

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

15 years agogodashboard: fiddling
Russ Cox [Wed, 27 Jan 2010 21:09:58 +0000 (13:09 -0800)]
godashboard: fiddling
  * some tweaks to dashboard html/css layout
  * use hmac to generate per-builder subkeys

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

15 years agoMore steps towards tracking of identifier scopes.
Robert Griesemer [Wed, 27 Jan 2010 17:44:28 +0000 (09:44 -0800)]
More steps towards tracking of identifier scopes.
- provide scope to parse functions; if non-nil, parser uses the scope
  to declare and lookup identifiers
- resolve forward references where possible

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

15 years agoClarify parsing of channel types.
Robert Griesemer [Wed, 27 Jan 2010 17:35:39 +0000 (09:35 -0800)]
Clarify parsing of channel types.

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

15 years agogc: improved syntax errors
Russ Cox [Wed, 27 Jan 2010 07:13:22 +0000 (23:13 -0800)]
gc: improved syntax errors

* example-based syntax errors (go.errors)

* enable bison's more specific errors
  and translate grammar token names into
  tokens like ++

* test cases

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

15 years agosmall embedded target for arm.
Kai Backman [Wed, 27 Jan 2010 04:22:59 +0000 (20:22 -0800)]
small embedded target for arm.

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

15 years agocgo: update for package global name space
Russ Cox [Wed, 27 Jan 2010 02:20:15 +0000 (18:20 -0800)]
cgo: update for package global name space

Fixes #560.

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

15 years agopatch: handle text diffs from git
Russ Cox [Wed, 27 Jan 2010 01:49:33 +0000 (17:49 -0800)]
patch: handle text diffs from git

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

15 years agonet: fix segfault if /etc/hosts fails to open or doesn't exist
Michael Hoisie [Wed, 27 Jan 2010 00:18:29 +0000 (16:18 -0800)]
net: fix segfault if /etc/hosts fails to open or doesn't exist

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

15 years agogc: do not treat .6 different from .a anymore
Russ Cox [Wed, 27 Jan 2010 00:12:50 +0000 (16:12 -0800)]
gc: do not treat .6 different from .a anymore

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

15 years agoos: in test, allow Hostname to return FQDN even if /bin/hostname does not
Icarus Sparry [Tue, 26 Jan 2010 21:16:03 +0000 (13:16 -0800)]
os: in test, allow Hostname to return FQDN even if /bin/hostname does not

Hostname reads the file /proc/sys/kernel/hostname to determine
the value it returns. Some people set this to a Fully Qualified
Doamin Name. At least one implementation of /bin/hostname
truncates the name it gets (often from the "uname" system call)
at the first dot unless it is given a "-f" flag. This change makes
the unit test also truncate at the first dot and checks if the strings
then match. This seems more portable than adding an extra flag
to the called /bin/hostname program.

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

15 years agogotest still assumes that gopack is in your PATH
Icarus Sparry [Tue, 26 Jan 2010 21:15:59 +0000 (13:15 -0800)]
gotest still assumes that gopack is in your PATH

If your $PATH does not include $GOBIN then
the build fails at the first *.a file, which
is probably when running the tests for tar

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

15 years agoA+C: add Icarus Sparry (individual CLA)
Russ Cox [Tue, 26 Jan 2010 21:15:53 +0000 (13:15 -0800)]
A+C: add Icarus Sparry (individual CLA)

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

15 years agodashboard: add benchmarking support.
Adam Langley [Tue, 26 Jan 2010 20:56:29 +0000 (12:56 -0800)]
dashboard: add benchmarking support.

This has actually been running for a while and gathering benchmark
data. I haven't had a chance to add a UI for it yet however.

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

15 years agomath: 386 FPU hypot
Charles L. Dorian [Tue, 26 Jan 2010 20:53:02 +0000 (12:53 -0800)]
math: 386 FPU hypot

Added 386 FPU version of Hypot; modified all_test.go to test
Hypot with large arguments.  Also edited sqrt.go to remove
Sqrt(0) as a special case.

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

15 years agoAllow func() func().
Robert Griesemer [Tue, 26 Jan 2010 19:49:49 +0000 (11:49 -0800)]
Allow func() func().
Update gofmt test script.

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

15 years agoBug in go/parser when coverting identifier lists.
Robert Griesemer [Tue, 26 Jan 2010 19:41:38 +0000 (11:41 -0800)]
Bug in go/parser when coverting identifier lists.
Fixes #567.

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

15 years agogc: fix chan <- chan precedence.
Russ Cox [Tue, 26 Jan 2010 18:40:28 +0000 (10:40 -0800)]
gc: fix chan <- chan precedence.
also allow func() func().

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

15 years agospec: allow func() func().
Russ Cox [Tue, 26 Jan 2010 18:25:56 +0000 (10:25 -0800)]
spec: allow func() func().
no longer ambiguous at top level, thanks to new semicolon rules.

use gofmt layout for function types.

Fixes #528.

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

15 years agochannel types parsed not according to spec by 6g
Robert Griesemer [Tue, 26 Jan 2010 06:10:35 +0000 (22:10 -0800)]
channel types parsed not according to spec by 6g

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

15 years agosalvaging 183105 from dead client
Kai Backman [Tue, 26 Jan 2010 05:38:27 +0000 (21:38 -0800)]
salvaging 183105 from dead client

a number of fixes for arm elf generation in 5l. -T now works as
advertised, -D now works properly.

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

15 years agoin C and asm, replace pkg·name with ·name
Russ Cox [Tue, 26 Jan 2010 02:52:55 +0000 (18:52 -0800)]
in C and asm, replace pkg·name with ·name
(eliminate assumption of package global name space,
make code easier to move between packages).

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

15 years agoxml: add Escape, copied from template.HTMLEscape.
Stephen Weinberg [Tue, 26 Jan 2010 02:50:51 +0000 (18:50 -0800)]
xml: add Escape, copied from template.HTMLEscape.

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

15 years agoA+C: add Stephen Weinberg (individual CLA)
Russ Cox [Tue, 26 Jan 2010 02:50:46 +0000 (18:50 -0800)]
A+C: add Stephen Weinberg (individual CLA)

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

15 years agohttp: make Request.Body an io.ReadCloser, matching Response.Body.
Petar Maymounkov [Tue, 26 Jan 2010 02:49:08 +0000 (18:49 -0800)]
http: make Request.Body an io.ReadCloser, matching Response.Body.

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

15 years agold: typo
Russ Cox [Tue, 26 Jan 2010 02:48:18 +0000 (18:48 -0800)]
ld: typo

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

15 years agocc: correct handling of leading ·
Russ Cox [Tue, 26 Jan 2010 02:31:44 +0000 (18:31 -0800)]
cc: correct handling of leading ·

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

15 years agoeliminate package global name space
Russ Cox [Tue, 26 Jan 2010 02:31:35 +0000 (18:31 -0800)]
eliminate package global name space

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

15 years agoruntime, type switch: eliminate package global name space assumption
Russ Cox [Tue, 26 Jan 2010 02:23:20 +0000 (18:23 -0800)]
runtime, type switch: eliminate package global name space assumption

bonus: type switch now detects multiple uses of identical interface types.
bonus: interface types are now order-independent, following the spec.

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

15 years ago5l, 6l, 8l: accept only one object file
Russ Cox [Tue, 26 Jan 2010 01:53:43 +0000 (17:53 -0800)]
5l, 6l, 8l: accept only one object file
(package main; others are pulled in automatically)

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

15 years agosteps towards a simplified parser interface
Robert Griesemer [Tue, 26 Jan 2010 01:24:50 +0000 (17:24 -0800)]
steps towards a simplified parser interface
minor cleanups (which I did at home before
but missed this morning at work)

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

15 years agoAdd an explicit patent grant to the Go license.
Ian Lance Taylor [Mon, 25 Jan 2010 23:39:32 +0000 (15:39 -0800)]
Add an explicit patent grant to the Go license.

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

15 years agonet: parse aliases in /etc/hosts correctly
Andrey Mirtchovski [Mon, 25 Jan 2010 22:57:04 +0000 (14:57 -0800)]
net: parse aliases in /etc/hosts correctly

Previous behaviour only picked the first entry (official hostname) but not the aliases.

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

15 years agoA <- token in an expression may introduce a channel type.
Robert Griesemer [Mon, 25 Jan 2010 20:03:53 +0000 (12:03 -0800)]
A <- token in an expression may introduce a channel type.
Fixes #530.

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

15 years agoScoping snapshot.
Robert Griesemer [Mon, 25 Jan 2010 18:06:18 +0000 (10:06 -0800)]
Scoping snapshot.
- separate parsing from declaration
- setup of correct scopes

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

15 years agold: do not load the same object file multiple times.
Russ Cox [Mon, 25 Jan 2010 16:53:27 +0000 (08:53 -0800)]
ld: do not load the same object file multiple times.
eliminates spurious multiple initialization errors.

give more information in the multiple init errors that remain.

Fixes #87.

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

15 years agoRemove top-level (src/) Makefile.
Christopher Wedgwood [Mon, 25 Jan 2010 08:09:46 +0000 (00:09 -0800)]
Remove top-level (src/) Makefile.

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

15 years agogc: record full package paths in runtime type data
Russ Cox [Mon, 25 Jan 2010 07:33:59 +0000 (23:33 -0800)]
gc: record full package paths in runtime type data

detect compilation of special package runtime with
compiler flag instead of package name.

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

15 years agogc: bug247, reported by rob
Russ Cox [Mon, 25 Jan 2010 06:42:18 +0000 (22:42 -0800)]
gc: bug247, reported by rob

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

15 years agogc: cut some dead code, fix 6g -S output
Russ Cox [Mon, 25 Jan 2010 06:36:26 +0000 (22:36 -0800)]
gc: cut some dead code, fix 6g -S output

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

15 years agolist awk in the dependencies needed for installation
Rob Pike [Mon, 25 Jan 2010 02:46:57 +0000 (13:46 +1100)]
list awk in the dependencies needed for installation
(it is installed by apt-get install gawk, I believe)

Fixes #557.

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

15 years agolog.Fatal does not exist. Use log.Crash.
Rob Pike [Sun, 24 Jan 2010 20:48:31 +0000 (07:48 +1100)]
log.Fatal does not exist. Use log.Crash.

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

15 years agoeliminate the package global name space assumption in object files
Russ Cox [Sat, 23 Jan 2010 01:06:20 +0000 (17:06 -0800)]
eliminate the package global name space assumption in object files

5g/6g/8g: add import statements to export metadata, mapping package path to package name.
recognize "" as the path of the package in export metadata.
use "" as the path of the package in object symbol names.

5c/6c/8c, 5a/6a/8a: rewrite leading . to "". so that ·Sin means Sin in this package.

5l/6l/8l: rewrite "" in symbol names as object files are read.

gotest: handle new symbol names.

gopack: handle new import lines in export metadata.

Collectively, these changes eliminate the assumption of a global
name space in the object file formats.  Higher level pieces such as
reflect and the computation of type hashes still depend on the
assumption; we're not done yet.

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

15 years ago5a/6a/8a: avoid fixed-sized file name buffer
Dean Prichard [Sat, 23 Jan 2010 00:59:17 +0000 (16:59 -0800)]
5a/6a/8a: avoid fixed-sized file name buffer

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

15 years agoA+C: Dean Prichard (individual CLA)
Russ Cox [Sat, 23 Jan 2010 00:58:46 +0000 (16:58 -0800)]
A+C: Dean Prichard (individual CLA)

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

15 years agogc: do not build builtin.c automatically; use golden copy instead.
Russ Cox [Sat, 23 Jan 2010 00:58:33 +0000 (16:58 -0800)]
gc: do not build builtin.c automatically; use golden copy instead.

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

15 years agotypo
Russ Cox [Fri, 22 Jan 2010 22:24:17 +0000 (14:24 -0800)]
typo

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

15 years agoFix build: add new file to Makefile.
Ian Lance Taylor [Fri, 22 Jan 2010 15:12:54 +0000 (07:12 -0800)]
Fix build: add new file to Makefile.

TBR=frm.adiputra
CC=golang-dev
https://golang.org/cl/193055

15 years agoAdd authentication.
Firmansyah Adiputra [Fri, 22 Jan 2010 06:55:44 +0000 (17:55 +1100)]
Add authentication.

Other code fixing:
- Fixed bugs in get32.
- Fix code for parsing display string (as a new function).
- Fix code for connecting to X server. The old code only work
  if the server is listening to TCP port, otherwise it doesn't
  work (at least in my PC).

R=nigeltao_golang, rsc, jhh
CC=golang-dev
https://golang.org/cl/183111

15 years agoA+C: add Firmansyah Adiputra (individual CLA)
Nigel Tao [Fri, 22 Jan 2010 03:44:49 +0000 (14:44 +1100)]
A+C: add Firmansyah Adiputra (individual CLA)

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

15 years agoTrim space on input to make searching more robust.
Christopher Wedgwood [Fri, 22 Jan 2010 03:26:15 +0000 (14:26 +1100)]
Trim space on input to make searching more robust.

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

15 years agopart 2 of sudoaddable optimization
Ken Thompson [Wed, 20 Jan 2010 21:07:14 +0000 (13:07 -0800)]
part 2 of sudoaddable optimization

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

15 years agocodereview: accommodate recent change to ui.prompt
Russ Cox [Wed, 20 Jan 2010 17:49:35 +0000 (09:49 -0800)]
codereview: accommodate recent change to ui.prompt

Fixes #525.

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

15 years agocleanup toward eliminating package global name space
Russ Cox [Wed, 20 Jan 2010 05:34:44 +0000 (21:34 -0800)]
cleanup toward eliminating package global name space
  * switch to real dot (.) instead of center dot (·) everywhere in object files.
    before it was half and half depending on where in the name it appeared.
  * in 6c/6a/etc identifiers, · can still be used but turns into . immediately.
  * in export metadata, replace package identifiers with quoted strings
    (still package names, not paths).

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

15 years agoruntime: wait to allocate mach semaphores backing Locks until needed
Russ Cox [Wed, 20 Jan 2010 05:14:15 +0000 (21:14 -0800)]
runtime: wait to allocate mach semaphores backing Locks until needed

need better management of mach semaphores eventually
but this avoids allocating them for uncontended Locks.

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

15 years agoAdd explicit locking.
Ian Lance Taylor [Wed, 20 Jan 2010 05:09:58 +0000 (21:09 -0800)]
Add explicit locking.

Since gcco runs goroutines in independent threads, it needs
locking for the global variables.  This shows up when I use
ordinary increments rather than locked increments for var++.

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

15 years agostart of better addressing of
Ken Thompson [Wed, 20 Jan 2010 03:59:57 +0000 (19:59 -0800)]
start of better addressing of
arrays/slices in structures

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

15 years agofirst part of networked channels.
Rob Pike [Wed, 20 Jan 2010 03:12:29 +0000 (14:12 +1100)]
first part of networked channels.

limitations:
poor error handling
teardown not done
exporter must send, importer must receive
testing is rudimentary at best

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

15 years agohttp: handle old HTTP/1.0 unchunked "read to EOF" bodies.
Russ Cox [Wed, 20 Jan 2010 01:46:56 +0000 (17:46 -0800)]
http: handle old HTTP/1.0 unchunked "read to EOF" bodies.
Was trying to interpret raw body as chunked body.

Add test for ReadResponse.

Fixes #544.

R=r, petar-m
CC=golang-dev, shadowice
https://golang.org/cl/190068

15 years agotime: make tick.Stop a little more robust
Russ Cox [Wed, 20 Jan 2010 01:46:21 +0000 (17:46 -0800)]
time: make tick.Stop a little more robust

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

15 years agogc: const debug bool = false
Russ Cox [Tue, 19 Jan 2010 23:25:44 +0000 (15:25 -0800)]
gc: const debug bool = false

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

15 years agocompress/zlib: add example to doc comment
Russ Cox [Tue, 19 Jan 2010 21:09:50 +0000 (13:09 -0800)]
compress/zlib: add example to doc comment

Fixes #548.

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

15 years agold: unused variable
Russ Cox [Tue, 19 Jan 2010 21:09:27 +0000 (13:09 -0800)]
ld: unused variable

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

15 years agohash: document that Sum does not change hash state
Russ Cox [Tue, 19 Jan 2010 18:50:04 +0000 (10:50 -0800)]
hash: document that Sum does not change hash state
crypto/*: implement and test proper Sum

Fixes #216.

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

15 years agolibc: add goos, goarch, goroot. fixes build
Russ Cox [Tue, 19 Jan 2010 17:08:05 +0000 (09:08 -0800)]
libc: add goos, goarch, goroot.  fixes build

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

15 years agoSignificant extension to http.Response, which now adheres to the
Petar Maymounkov [Tue, 19 Jan 2010 05:46:59 +0000 (21:46 -0800)]
Significant extension to http.Response, which now adheres to the
usage pattern of http.Request and paves the way to persistent connection
handling.

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

15 years agobuild: move GOOS, GOARCH, GOROOT lookup into central library.
Russ Cox [Tue, 19 Jan 2010 05:46:46 +0000 (21:46 -0800)]
build: move GOOS, GOARCH, GOROOT lookup into central library.
bake default values in during build.

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

15 years agoA+C: add Petar Maymounkov (individual CLA)
Russ Cox [Tue, 19 Jan 2010 05:14:59 +0000 (21:14 -0800)]
A+C: add Petar Maymounkov (individual CLA)

R=iant
CC=golang-dev, petar-m
https://golang.org/cl/189095

15 years agoadd bug246 (issue 492)
Russ Cox [Tue, 19 Jan 2010 02:26:10 +0000 (18:26 -0800)]
add bug246 (issue 492)

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

15 years agogc: bug245
Russ Cox [Tue, 19 Jan 2010 01:30:15 +0000 (17:30 -0800)]
gc: bug245

Fixes #529.

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

15 years agogc: multiple return value at top-level invoked multiple times
Russ Cox [Tue, 19 Jan 2010 01:00:38 +0000 (17:00 -0800)]
gc: multiple return value at top-level invoked multiple times

Fixes #402.

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

15 years agogc: bug243
Russ Cox [Tue, 19 Jan 2010 00:52:18 +0000 (16:52 -0800)]
gc: bug243

Fixes #481.

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

15 years agogc: more precise handling of import .
Russ Cox [Tue, 19 Jan 2010 00:26:40 +0000 (16:26 -0800)]
gc: more precise handling of import .

Fixes #455.

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

15 years agogc: be more specific about copy type errors
Russ Cox [Tue, 19 Jan 2010 00:00:13 +0000 (16:00 -0800)]
gc: be more specific about copy type errors

Fixes #539.

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

15 years agoreflect: fix garbage collection bug in Call.
Russ Cox [Mon, 18 Jan 2010 23:59:50 +0000 (15:59 -0800)]
reflect: fix garbage collection bug in Call.

Fixes #476.

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

15 years agonet: enable UDP broadcast before it is needed (instead of after)
Russ Cox [Mon, 18 Jan 2010 23:59:32 +0000 (15:59 -0800)]
net: enable UDP broadcast before it is needed (instead of after)

Fixes #526.

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

15 years agospec: mention Inf and NaN are supported at run time.
Russ Cox [Mon, 18 Jan 2010 23:59:14 +0000 (15:59 -0800)]
spec: mention Inf and NaN are supported at run time.
add hyperlink at mention of package reflect.

Fixes #438.

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

15 years agoUrgent parser/gofmt fix.
Robert Griesemer [Sat, 16 Jan 2010 07:17:48 +0000 (23:17 -0800)]
Urgent parser/gofmt fix.
Wrong position information for identifier
could lead to destructive reformatting of
source via hg gofmt.

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

15 years agogive bufio.Writer.WriteString the same signature as
Rob Pike [Sat, 16 Jan 2010 02:06:50 +0000 (13:06 +1100)]
give bufio.Writer.WriteString the same signature as
bytes.Buffer.WriteString

Fixes #535.

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

15 years agoTest order of evaluation in tuple assignments.
Ian Lance Taylor [Fri, 15 Jan 2010 22:02:53 +0000 (14:02 -0800)]
Test order of evaluation in tuple assignments.

gccgo currently passes this test; 8g currently does not.  I
think I counted everything out right.

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

15 years agoDon't check array bounds if we have been told not to.
Ian Lance Taylor [Fri, 15 Jan 2010 21:51:57 +0000 (13:51 -0800)]
Don't check array bounds if we have been told not to.

Fixes range.go test for 6g.

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

15 years agotemplate: look inside interface values
Russ Cox [Fri, 15 Jan 2010 21:49:31 +0000 (13:49 -0800)]
template: look inside interface values

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

15 years agoUse /etc/hosts when resolving names.
Yves Junqueira [Fri, 15 Jan 2010 21:43:14 +0000 (13:43 -0800)]
Use /etc/hosts when resolving names.

http://code.google.com/p/go/issues/detail?id=313

This conflics with Chris' patch at:
https://golang.org/cl/181063

But I believe this is more complete since it has a simple caching and proper tests.

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

15 years ago Steps towards tracking scopes for identifiers.
Robert Griesemer [Fri, 15 Jan 2010 21:27:45 +0000 (13:27 -0800)]
Steps towards tracking scopes for identifiers.

- Identifiers refer now to the language entity (Object)
  that they denote. At the moment this is at best an
  approximation.

- Initial data structures for language entities (Objects)
          and expression types (Type) independent of the actual
  type notations.

- Initial support for declaring and looking up identifiers.

- Updated various dependent files and added support functions.

- Extensively tested to avoid breakage. This is an AST change.

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

15 years agoImplemented ExtendFront/Back functions to insert a list of elements into a list.
Jan H. Hosang [Fri, 15 Jan 2010 21:26:13 +0000 (13:26 -0800)]
Implemented ExtendFront/Back functions to insert a list of elements into a list.

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

15 years agomath: special cases for Hypot
Charles L. Dorian [Fri, 15 Jan 2010 21:21:47 +0000 (13:21 -0800)]
math: special cases for Hypot

Added special case tests to all_test.go. Added tests to hypot.go,
otherwise hangs.

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

15 years agomath: 386 FPU functions
Charles L. Dorian [Fri, 15 Jan 2010 21:21:36 +0000 (13:21 -0800)]
math: 386 FPU functions

sin, cos, tan, asin, acos, atan, exp, log, log10,
floor, ceil, and fabs

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

15 years agoTest evaluation of range variables.
Ian Lance Taylor [Fri, 15 Jan 2010 18:40:30 +0000 (10:40 -0800)]
Test evaluation of range variables.

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

15 years agobe more explicit about initialization of embedded fields.
Rob Pike [Fri, 15 Jan 2010 00:59:53 +0000 (11:59 +1100)]
be more explicit about initialization of embedded fields.

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

15 years agoFix s/Width/Height/ typo in draw.go.
Nigel Tao [Fri, 15 Jan 2010 00:58:24 +0000 (11:58 +1100)]
Fix s/Width/Height/ typo in draw.go.
Fixes #531.

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

15 years agofix +0000 time zones.
Rob Pike [Thu, 14 Jan 2010 23:56:16 +0000 (10:56 +1100)]
fix +0000 time zones.

Fixes #527.

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

15 years agoruntime: add demo running Go on raw (emulated) hw
Russ Cox [Thu, 14 Jan 2010 03:51:59 +0000 (19:51 -0800)]
runtime: add demo running Go on raw (emulated) hw

8l: add GOOS=pchw, stop spelling out all the elf numbers.

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

15 years agodoc/devel/release.html: fix dumb typo
Russ Cox [Thu, 14 Jan 2010 02:22:16 +0000 (18:22 -0800)]
doc/devel/release.html: fix dumb typo

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

15 years agoruntime: GS already set up by setldt in Linux/386; remove duplicate
Devon H. O'Dell [Thu, 14 Jan 2010 01:50:12 +0000 (17:50 -0800)]
runtime: GS already set up by setldt in Linux/386; remove duplicate

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