]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
14 years agorelease 2010-03-30 weekly.2010-03-30
Andrew Gerrand [Wed, 31 Mar 2010 00:40:57 +0000 (11:40 +1100)]
release 2010-03-30

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

14 years agogodoc: support for title and subtitle headers when serving .html docs
Robert Griesemer [Wed, 31 Mar 2010 00:37:42 +0000 (17:37 -0700)]
godoc: support for title and subtitle headers when serving .html docs
and use it to show version (date) of go spec

Fixes #68.

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

14 years agoruntime: fix arm build, slightly.
Russ Cox [Wed, 31 Mar 2010 00:00:27 +0000 (17:00 -0700)]
runtime: fix arm build, slightly.

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

14 years agogo/printer: follow-up on CL 802043
Robert Griesemer [Tue, 30 Mar 2010 23:49:51 +0000 (16:49 -0700)]
go/printer: follow-up on CL 802043
- more test cases
- comment fixes
- minor unrelated changes as part of investigation of issue 702

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

14 years agotime: do not segment time strings by character class.
Russ Cox [Tue, 30 Mar 2010 21:54:32 +0000 (14:54 -0700)]
time: do not segment time strings by character class.
instead use pure substring matching to find template values.

this makes stdZulu unnecessary and allows formats
like "20060102 030405" (used in some internet protocols).

this makes Parse not handle years < 0000 or > 9999 anymore.
that seems like an okay price to pay, trading hypothetical
functionality for real functionality.

also changed the comments on the Time struct to use the
same reference date as the format and parse routines.

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

14 years agosyscall: add IPV6 constants
Russ Cox [Tue, 30 Mar 2010 21:32:59 +0000 (14:32 -0700)]
syscall: add IPV6 constants

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

14 years agosingle argument panic on non-darwin and in comments
Russ Cox [Tue, 30 Mar 2010 20:15:16 +0000 (13:15 -0700)]
single argument panic on non-darwin and in comments

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

14 years agoGofmt preserves newlines in multiline selector expressions.
Risto Jaakko Saarelma [Tue, 30 Mar 2010 18:46:21 +0000 (11:46 -0700)]
Gofmt preserves newlines in multiline selector expressions.

This is for making the fluent interface idiom usable with gofmt.

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

14 years agocontributors, authors: add Risto Saarelma
Robert Griesemer [Tue, 30 Mar 2010 18:46:06 +0000 (11:46 -0700)]
contributors, authors: add Risto Saarelma

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

14 years agoEffective Go: update maps description regarding lookup of nonexistent entry.
Rob Pike [Tue, 30 Mar 2010 18:21:50 +0000 (11:21 -0700)]
Effective Go: update maps description regarding lookup of nonexistent entry.

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

14 years agogodoc: don't print package clause in -src command-line mode with filtering
Robert Griesemer [Tue, 30 Mar 2010 18:19:58 +0000 (11:19 -0700)]
godoc: don't print package clause in -src command-line mode with filtering

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

14 years agogc: add panic and recover (still unimplemented in runtime)
Russ Cox [Tue, 30 Mar 2010 17:53:16 +0000 (10:53 -0700)]
gc: add panic and recover (still unimplemented in runtime)
main semantic change is to enforce single argument to panic.

runtime: change to 1-argument panic.
use String method on argument if it has one.

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

14 years agosimplify various code using new map index rule
Russ Cox [Tue, 30 Mar 2010 17:51:11 +0000 (10:51 -0700)]
simplify various code using new map index rule

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

14 years agomake: use actual dependency for install
Russ Cox [Tue, 30 Mar 2010 17:44:51 +0000 (10:44 -0700)]
make: use actual dependency for install

otherwise "make install" runs cp unconditionally

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

14 years agogodefs: fix handling of negative constants
Russ Cox [Tue, 30 Mar 2010 17:42:13 +0000 (10:42 -0700)]
godefs: fix handling of negative constants

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

14 years agosingle argument panic
Russ Cox [Tue, 30 Mar 2010 17:34:57 +0000 (10:34 -0700)]
single argument panic

note that sortmain.go has been run through hg gofmt;
only the formatting of the day initializers changed.
i'm happy to revert that formatting if you'd prefer.

stop on error in doc/progs/run

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

14 years agogc: flush warnings, if any
Russ Cox [Tue, 30 Mar 2010 06:34:59 +0000 (23:34 -0700)]
gc: flush warnings, if any

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

14 years agoruntime: Remove unused runtime.write from linux/amd64
Christopher Wedgwood [Tue, 30 Mar 2010 05:51:39 +0000 (22:51 -0700)]
runtime: Remove unused runtime.write from linux/amd64

Also minor reformatting.

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

14 years agoruntime: run deferred calls at Goexit
Russ Cox [Tue, 30 Mar 2010 04:48:22 +0000 (21:48 -0700)]
runtime: run deferred calls at Goexit

baby step toward panic+recover.

Fixes #349.

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

14 years agogo/printer: fix a comment
Robert Griesemer [Tue, 30 Mar 2010 01:41:55 +0000 (18:41 -0700)]
go/printer: fix a comment

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

14 years agogodoc: support for filtering of command-line output in -src mode
Robert Griesemer [Tue, 30 Mar 2010 01:06:53 +0000 (18:06 -0700)]
godoc: support for filtering of command-line output in -src mode
+ various minor cleanups

Usage: godoc -src math Sin

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

14 years agoFlags: add user-defined flag types. The change is really no code; it's just publishing
Rob Pike [Tue, 30 Mar 2010 00:37:22 +0000 (17:37 -0700)]
Flags: add user-defined flag types. The change is really no code; it's just publishing
the set() method and add() functions.  But we rename add() to Var() for consistency.
Also rename FlagValue to Value for simplicity.

Also, delete the check for multiple settings for a flag.  This makes it possible to
define a flag that collects values, such as into a slice of strings.

type flagVar []string

func (f *flagVar) String() string {
return fmt.Sprint(v)
}

func (f *flagVar) Set(value string) bool {
if v == nil {
v = make(flagVar, 1)
} else {
nv := make(flagVar, len(v)+1)
copy(nv, v)
v = nv
}
v[len(v)-1] = value
return true
}

var v flagVar

func main() {
flag.Var(&v, "testV", "multiple values build []string")
flag.Parse()
fmt.Printf("v = %v\n", v)
}

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

14 years agoruntime: a couple more memory stats.
Russ Cox [Tue, 30 Mar 2010 00:30:07 +0000 (17:30 -0700)]
runtime: a couple more memory stats.

now runtime.MemStats.Sys really is the sum of all the other Sys fields.

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

14 years agogc: bug265
Russ Cox [Mon, 29 Mar 2010 22:27:59 +0000 (15:27 -0700)]
gc: bug265

Fixes #700.

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

14 years agogo/ast: generalized ast filtering
Robert Griesemer [Mon, 29 Mar 2010 22:26:07 +0000 (15:26 -0700)]
go/ast: generalized ast filtering

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

14 years agostrings.FIelds: slight simplification.
Rob Pike [Mon, 29 Mar 2010 20:39:16 +0000 (13:39 -0700)]
strings.FIelds: slight simplification.

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

14 years agofix build
Russ Cox [Mon, 29 Mar 2010 20:30:32 +0000 (13:30 -0700)]
fix build

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

14 years agoruntime: more malloc statistics
Russ Cox [Mon, 29 Mar 2010 20:06:26 +0000 (13:06 -0700)]
runtime: more malloc statistics
expvar: default publishings for cmdline, memstats
godoc: import expvar

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

14 years agobug265: test case for issue 700
Robert Griesemer [Mon, 29 Mar 2010 17:34:16 +0000 (10:34 -0700)]
bug265: test case for issue 700
( http://code.google.com/p/go/issues/detail?id=700 )

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

14 years agostrconv.Unquote could wrongly return a nil error on error.
Roger Peppe [Mon, 29 Mar 2010 17:09:29 +0000 (10:09 -0700)]
strconv.Unquote could wrongly return a nil error on error.

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

14 years agocomment typos
Andrew Gerrand [Mon, 29 Mar 2010 05:31:41 +0000 (16:31 +1100)]
comment typos

Fixes #698.
Fixes #699.

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

14 years agocomment typo in crypto/rsa/rsa.go
Andrew Gerrand [Mon, 29 Mar 2010 02:13:12 +0000 (13:13 +1100)]
comment typo in crypto/rsa/rsa.go

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

14 years agospec: typo in switch sample code, missing semicolon
Andrew Gerrand [Mon, 29 Mar 2010 02:12:08 +0000 (13:12 +1100)]
spec: typo in switch sample code, missing semicolon

Fixes #697

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

14 years agohttp: add HandleFunc as shortcut to Handle(path, HandlerFunc(func))
Andrew Gerrand [Sun, 28 Mar 2010 23:02:37 +0000 (10:02 +1100)]
http: add HandleFunc as shortcut to Handle(path, HandlerFunc(func))

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

14 years agoxml: use io.ReadByter in place of local readByter
Raif S. Naffah [Sun, 28 Mar 2010 06:12:30 +0000 (23:12 -0700)]
xml: use io.ReadByter in place of local readByter

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

14 years agoarm: fix build
Dean Prichard [Sat, 27 Mar 2010 06:27:24 +0000 (23:27 -0700)]
arm: fix build

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

14 years agogc: allow taking address of out parameters
Russ Cox [Sat, 27 Mar 2010 01:01:02 +0000 (18:01 -0700)]
gc: allow taking address of out parameters

Fixes #186.

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

14 years agofix build
Robert Griesemer [Fri, 26 Mar 2010 23:33:59 +0000 (16:33 -0700)]
fix build

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

14 years agoregexp: don't return non-nil *Regexp if there is an error.
Rob Pike [Fri, 26 Mar 2010 23:18:20 +0000 (16:18 -0700)]
regexp: don't return non-nil *Regexp if there is an error.

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

14 years agopprof: dump extra heap information at end of heap profile
Russ Cox [Fri, 26 Mar 2010 22:32:53 +0000 (15:32 -0700)]
pprof: dump extra heap information at end of heap profile

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

14 years agofix build
Russ Cox [Fri, 26 Mar 2010 22:01:29 +0000 (15:01 -0700)]
fix build

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

14 years agogodoc: export pprof debug information
Russ Cox [Fri, 26 Mar 2010 21:48:04 +0000 (14:48 -0700)]
godoc: export pprof debug information

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

14 years agoprof: install gopprof too
Russ Cox [Fri, 26 Mar 2010 21:20:50 +0000 (14:20 -0700)]
prof: install gopprof too

This is a modified version of the open source pprof
from code.google.com/p/google-perftools.
That version is likely to catch up to this one,
but it's still useful to ship our own copy since
we only need the one script from that project,
not all the C++ libraries.

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

14 years agoruntime: run all finalizers in a single goroutine.
Russ Cox [Fri, 26 Mar 2010 21:15:30 +0000 (14:15 -0700)]
runtime: run all finalizers in a single goroutine.
eliminate second pass of mark+sweep
by scanning finalizer table specially.

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

14 years agomath: add J1, Y1, Jn and Yn (Bessel functions)
Charles L. Dorian [Fri, 26 Mar 2010 21:09:39 +0000 (14:09 -0700)]
math: add J1, Y1, Jn and Yn (Bessel functions)

Also amend j0.go (variable name conflict, small corrections).

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

14 years agosyscall: Create syscall_bsd.go for code used by Darwin and other *BSDs
Giles Lean [Fri, 26 Mar 2010 20:23:54 +0000 (13:23 -0700)]
syscall: Create syscall_bsd.go for code used by Darwin and other *BSDs

In this change I'd like to combine the common code that is
present in syscall_darwin.go and syscall_freebsd.go.  I
have three reasons for wanting to do this now:

1. reducing code duplication is nearly always good :-)
2. the duplication will get worse if I duplicate this code
   a third time for the NetBSD port I'm working on, which
   I need to do almost immediately
3. by making this change all in one lump and ignoring any
   commonality with the syscall_linux*.go files the diff
   is long but, I think, readable

In future it may be possible to cherry pick functions that
also apply to Linux and put them in (say) syscall_unix.go,
and of course some functions may diverge in future and have
to move out to OS or architecture specific files, but today
I want just the low hanging fruit.

Tested and passed on:

  Darwin (Snow Leopard, 10.6): amd64 and 386
  FreeBSD (8.0-RELEASE):       386 only(*)

(*) All my virtualisation software has stopped playing nice
with FreeBSD for the moment, so I don't have facilities to
test the amd64 port.  As the OS X port is OK and the diff
looks all right to my eyes I shall keep my fingers crossed.
If someone with a FreeBSD/amd64 system cares to test and
report I would be appreciative.

2010-03-27 update: I have replaced my virtualisation software, and have working FreeBSD/i386 and FreeBSD/amd64 virtual machines again.

As I hoped (and expected -- programmers are optimists :-) the code built and passed all but the two currently known to fail tests on FreeBSD/amd64. I rechecked FreeBSD/i386 too: same results.

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

14 years agobytes, strings: IndexOfAny
Robert Griesemer [Fri, 26 Mar 2010 20:05:04 +0000 (13:05 -0700)]
bytes, strings: IndexOfAny
+ first use in go/doc

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

14 years agofix spelling of align
Rob Pike [Fri, 26 Mar 2010 16:56:57 +0000 (09:56 -0700)]
fix spelling of align

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

14 years agoxgb: fix request length and request size.
Firmansyah Adiputra [Fri, 26 Mar 2010 16:21:09 +0000 (09:21 -0700)]
xgb: fix request length and request size.

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

14 years agospec changes for panic and recover.
Rob Pike [Fri, 26 Mar 2010 00:59:59 +0000 (17:59 -0700)]
spec changes for panic and recover.

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

14 years agogodoc: don't convert multi-line functions into one-liners by default
Robert Griesemer [Thu, 25 Mar 2010 23:59:02 +0000 (16:59 -0700)]
godoc: don't convert multi-line functions into one-liners by default

- new heuristic: if both the opening { and closing } braces are on the
  same line, and the function body doesn't contain comments or is other-
  wise too long (e.g. signature too long), it is formatted as a one-line
  function

- related cleanups along the way

- gofmt -w src misc led to no additional changes as expected

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

14 years agobug264 didn't report BUG correctly, caused "fail" from test/run
Rob Pike [Thu, 25 Mar 2010 21:27:24 +0000 (14:27 -0700)]
bug264 didn't report BUG correctly, caused "fail" from test/run

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

14 years agomake alignment rules match 8g, just like 6c matches 6g.
Russ Cox [Thu, 25 Mar 2010 21:05:54 +0000 (14:05 -0700)]
make alignment rules match 8g, just like 6c matches 6g.

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

14 years agogc: more syntax errors
Russ Cox [Thu, 25 Mar 2010 19:47:43 +0000 (12:47 -0700)]
gc: more syntax errors

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

14 years agoAdd strconv.Atob, Btoa.
Rob Pike [Thu, 25 Mar 2010 18:50:07 +0000 (11:50 -0700)]
Add strconv.Atob, Btoa.
Fixes #639

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

14 years agoSupport #pragma dynexport on OS X.
Ian Lance Taylor [Thu, 25 Mar 2010 18:45:18 +0000 (11:45 -0700)]
Support #pragma dynexport on OS X.

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

14 years agobug264: test case for issue 692
Robert Griesemer [Thu, 25 Mar 2010 17:01:51 +0000 (10:01 -0700)]
bug264: test case for issue 692

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

14 years agoarm: disable some problematic tests
Dean Prichard [Thu, 25 Mar 2010 07:23:07 +0000 (00:23 -0700)]
arm: disable some problematic tests

test/64bit.go:  segfaults on sheevaplug(armv5)

The following have long runtimes when GC is on.
Sample run time in seconds for android emulator
and sheevaplug
test/stack.go:          4934s   1780s
test/ken/chan.go:        860s    296s
test/gc1.go:             218s     69s

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

14 years agosyscall: Implement SetsockoptString
Christopher Wedgwood [Thu, 25 Mar 2010 05:36:38 +0000 (22:36 -0700)]
syscall: Implement SetsockoptString

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

14 years agoSydney University tech talk.
Nigel Tao [Thu, 25 Mar 2010 05:15:52 +0000 (16:15 +1100)]
Sydney University tech talk.

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

14 years agogc: tests omitted from the last bug fix
Russ Cox [Thu, 25 Mar 2010 05:12:59 +0000 (22:12 -0700)]
gc: tests omitted from the last bug fix

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

14 years agosyscall: bring generated files zsyscall_darwin_*.go
Giles Lean [Thu, 25 Mar 2010 04:59:21 +0000 (21:59 -0700)]
syscall: bring generated files zsyscall_darwin_*.go
up to date.

No functional change, but when these files are regenerated
they change, leading to noisy diffs when working in the
syscall package.

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

14 years agotest/mallocfin: relax test to 80% from 90%.
Russ Cox [Thu, 25 Mar 2010 02:52:07 +0000 (19:52 -0700)]
test/mallocfin: relax test to 80% from 90%.

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

14 years agoruntime: fix mingw build, implement missing destroylock()
Alex Brainman [Thu, 25 Mar 2010 01:03:10 +0000 (18:03 -0700)]
runtime: fix mingw build, implement missing destroylock()

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

14 years agodepricate panicln
Ken Thompson [Wed, 24 Mar 2010 23:53:54 +0000 (16:53 -0700)]
depricate panicln

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

14 years agodelete all uses of panicln by rewriting them using panic or,
Rob Pike [Wed, 24 Mar 2010 23:46:53 +0000 (16:46 -0700)]
delete all uses of panicln by rewriting them using panic or,
in the tests, println+panic.
gofmt some tests too.

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

14 years agogodoc: show relative file names without leading '/' (per r's request)
Robert Griesemer [Wed, 24 Mar 2010 23:28:59 +0000 (16:28 -0700)]
godoc: show relative file names without leading '/' (per r's request)

- change the various url-xxx formatters to return a relative URL path
- make the leading '/' for URLs explicit in the template
- on the way change some |html formatters to |html-esc
  (html should only be used for formatting AST nodes)

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

14 years agoDelete panicln from the spec.
Rob Pike [Wed, 24 Mar 2010 22:17:00 +0000 (15:17 -0700)]
Delete panicln from the spec.

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

14 years agogodoc: use http GET for remote search instead of rpc
Robert Griesemer [Wed, 24 Mar 2010 21:51:55 +0000 (14:51 -0700)]
godoc: use http GET for remote search instead of rpc
(this will allow the use of golang.org for remote
searches)

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

14 years agoruntime: malloc sampling, pprof interface
Russ Cox [Wed, 24 Mar 2010 16:40:09 +0000 (09:40 -0700)]
runtime: malloc sampling, pprof interface

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

14 years agomath: add J0 and Y0 (Bessel functions)
Charles L. Dorian [Wed, 24 Mar 2010 16:25:49 +0000 (09:25 -0700)]
math: add J0 and Y0 (Bessel functions)

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

14 years agocc: fix typo
Russ Cox [Wed, 24 Mar 2010 15:59:09 +0000 (08:59 -0700)]
cc: fix typo

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

14 years agoruntime: add memory profiling, disabled.
Russ Cox [Wed, 24 Mar 2010 03:48:23 +0000 (20:48 -0700)]
runtime: add memory profiling, disabled.
no way to get the data out yet.

add prototype for runtime.Callers,
missing from last CL.

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

14 years agoarm: fix build
Dean Prichard [Wed, 24 Mar 2010 01:13:20 +0000 (18:13 -0700)]
arm: fix build

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

14 years agocmd/goinstall: include command name in error reporting (usually missing software...
Andrey Mirtchovski [Wed, 24 Mar 2010 01:13:16 +0000 (18:13 -0700)]
cmd/goinstall: include command name in error reporting (usually missing software or incorrect $PATH)

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

14 years agogc: fix build in France
Russ Cox [Wed, 24 Mar 2010 01:11:21 +0000 (18:11 -0700)]
gc: fix build in France

Fixes #626.

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

14 years agowebsocket: implement new protocol
Fumitoshi Ukai [Wed, 24 Mar 2010 01:09:24 +0000 (18:09 -0700)]
websocket: implement new protocol
http://www.whatwg.org/specs/web-socket-protocol/
(draft of draft-hixie-thewebsocketprotocol-76)

draft-hixie-thewebsocketprotocol-76 will introduce new handshake
incompatible draft 75 or prior.
http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol

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

14 years agoTrivial: remove duplicate line #include <sys/types.h>
Giles Lean [Wed, 24 Mar 2010 00:52:16 +0000 (17:52 -0700)]
Trivial: remove duplicate line #include <sys/types.h>

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

14 years agofix build - unused import
Russ Cox [Wed, 24 Mar 2010 00:34:13 +0000 (17:34 -0700)]
fix build - unused import

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

14 years agogo spec: modification of defer statement
Robert Griesemer [Wed, 24 Mar 2010 00:30:14 +0000 (17:30 -0700)]
go spec: modification of defer statement

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

14 years agoFAQ: Protocol buffers are now supported. Update the entry.
Rob Pike [Wed, 24 Mar 2010 00:03:28 +0000 (17:03 -0700)]
FAQ: Protocol buffers are now supported.  Update the entry.

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

14 years agoruntime: add Callers
Russ Cox [Wed, 24 Mar 2010 00:01:17 +0000 (17:01 -0700)]
runtime: add Callers

cut copies of traceback from 6 to 1.

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

14 years agogo/printer: avoid reflect in print
Russ Cox [Tue, 23 Mar 2010 23:56:48 +0000 (16:56 -0700)]
go/printer: avoid reflect in print

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

14 years agoGo spec: map indexing never raises a runtime exception.
Robert Griesemer [Tue, 23 Mar 2010 21:01:51 +0000 (14:01 -0700)]
Go spec: map indexing never raises a runtime exception.
Also: Actual map key must be assignment-compatible with
formal map key type.

Fixes #357.

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

14 years agoxml: add line numbers to syntax errors.
Kyle Consalus [Tue, 23 Mar 2010 20:20:16 +0000 (13:20 -0700)]
xml: add line numbers to syntax errors.

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

14 years agomaps access to a missing key
Ken Thompson [Tue, 23 Mar 2010 20:00:02 +0000 (13:00 -0700)]
maps access to a missing key
will return the "zero" value

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

14 years agoxml: add CopyToken
Kyle Consalus [Tue, 23 Mar 2010 16:43:20 +0000 (09:43 -0700)]
xml: add CopyToken

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

14 years agoAdd support for #pragma dynexport.
Ian Lance Taylor [Tue, 23 Mar 2010 13:46:30 +0000 (06:46 -0700)]
Add support for #pragma dynexport.

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

14 years agorelease.2010-03-22 part two
Andrew Gerrand [Tue, 23 Mar 2010 03:18:57 +0000 (14:18 +1100)]
release.2010-03-22 part two

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

14 years agoRename dynld to dynimport throughout.
Ian Lance Taylor [Tue, 23 Mar 2010 02:58:55 +0000 (19:58 -0700)]
Rename dynld to dynimport throughout.

Cgo users will need to rerun cgo.

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

14 years agorelease.2010-03-22 weekly.2010-03-22
Andrew Gerrand [Tue, 23 Mar 2010 01:56:39 +0000 (12:56 +1100)]
release.2010-03-22

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

14 years agogc: various map-related bug fixes
Russ Cox [Tue, 23 Mar 2010 01:51:14 +0000 (18:51 -0700)]
gc: various map-related bug fixes

Fixes #687.

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

14 years agoast/printer: support for printing ast.Spec nodes
Andrew Gerrand [Mon, 22 Mar 2010 22:00:47 +0000 (09:00 +1100)]
ast/printer: support for printing ast.Spec nodes

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

14 years agogoinstall: let git/hg/svn create the final directory element
Russ Cox [Sun, 21 Mar 2010 05:38:06 +0000 (22:38 -0700)]
goinstall: let git/hg/svn create the final directory element

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

14 years agoA+C: add Kyle Consalus (individual CLA)
Russ Cox [Sun, 21 Mar 2010 05:37:53 +0000 (22:37 -0700)]
A+C: add Kyle Consalus (individual CLA)

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

14 years agolibmach: more info when memory reads fail on Darwin
Russ Cox [Sun, 21 Mar 2010 05:37:23 +0000 (22:37 -0700)]
libmach: more info when memory reads fail on Darwin

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

14 years agoissue 682
Ken Thompson [Sun, 21 Mar 2010 01:50:01 +0000 (18:50 -0700)]
issue 682
complex DATA statement fo
initialization of complex variables.

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

14 years agogodoc: line numbers for all remote search results
Robert Griesemer [Sat, 20 Mar 2010 05:48:08 +0000 (22:48 -0700)]
godoc: line numbers for all remote search results

Instead of returning the index lookup result via
RPC which has to be corrected for the client,
simply render it on the server and return the
final output.

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

14 years agogodoc: revert change 5089, per gri's instructions
Russ Cox [Sat, 20 Mar 2010 00:46:18 +0000 (17:46 -0700)]
godoc: revert change 5089, per gri's instructions

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

14 years agowebsite: add Go Blog widget to frontpage,
Andrew Gerrand [Sat, 20 Mar 2010 00:42:57 +0000 (11:42 +1100)]
website: add Go Blog widget to frontpage,
add Blog and Wiki links to sideba

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