summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-04-28template: remove reference to json-templateAndrew Gerrand1-3/+1
Rather than confuse people by linking to a spec we don't fully support, let them just use the package docs. R=r, rsc CC=golang-dev http://codereview.appspot.com/1016041
2010-04-27fix buildRobert Griesemer1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/989044
2010-04-27gc: fix islocalname on windowsRuss Cox2-1/+28
Fixes issue 732. R=ken2 CC=golang-dev http://codereview.appspot.com/956050
2010-04-27rpc/jsonrpc: support for jsonrpc wire encodingRuss Cox5-0/+393
R=r CC=golang-dev http://codereview.appspot.com/989042
2010-04-27json: delete obsolete codeRuss Cox3-452/+0
R=r CC=golang-dev http://codereview.appspot.com/943047
2010-04-27rpc: abstract client and server encodingsRuss Cox2-41/+131
R=r CC=golang-dev, rog http://codereview.appspot.com/811046
2010-04-27gofmt: fine-tune stripping of parenthesesRobert Griesemer3-46/+96
(composite literals in control clauses only need parentheses if the literals start with a type name) R=rsc CC=golang-dev http://codereview.appspot.com/962045
2010-04-27go/parser: don't require parens around composite literals inside a composite ↵Robert Griesemer2-0/+5
literal within an if, for, or switch control clause R=rsc CC=golang-dev http://codereview.appspot.com/943046
2010-04-27gofmt: don't strip mandatory ()'s around composite literals in control clausesRobert Griesemer3-7/+73
Fixes issue 748. R=rsc CC=golang-dev http://codereview.appspot.com/946043
2010-04-27json: streamingRuss Cox3-0/+308
R=r, cw CC=golang-dev http://codereview.appspot.com/952041
2010-04-27godoc: use int64 for timestampsChristopher Wedgwood1-4/+3
This fixes a crash seen when viewing a directory list. Fixes issue 747. R=gri CC=golang-dev, rsc http://codereview.appspot.com/1010042 Committer: Robert Griesemer <gri@golang.org>
2010-04-27json: preserve field name case by defaultRuss Cox3-127/+164
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 issue 744. R=r CC=golang-dev http://codereview.appspot.com/1013041
2010-04-27pipe: implementation #3; this time for sure!Russ Cox2-118/+220
Added goroutine; got simpler. Fixes deadlock when doing Read+Close or Write+Close on same end. R=r, cw CC=golang-dev http://codereview.appspot.com/994043
2010-04-27time: remove incorrect time.ISO8601 and add time.RFC3339Micah Stetson2-54/+88
Fixes issue 734. R=rsc, r CC=golang-dev http://codereview.appspot.com/975042 Committer: Russ Cox <rsc@golang.org>
2010-04-26syscall: fix mingw buildAlex Brainman1-0/+1
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/988042 Committer: Russ Cox <rsc@golang.org>
2010-04-26os, syscall: more mingwAlex Brainman9-77/+353
R=rsc, rsc1 CC=golang-dev http://codereview.appspot.com/878046 Committer: Russ Cox <rsc@golang.org>
2010-04-26os: create sys_bsd.goGiles Lean3-18/+7
R=rsc CC=golang-dev http://codereview.appspot.com/897042 Committer: Russ Cox <rsc@golang.org>
2010-04-26os: Fix build for MinGWEvan Shaw1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1014041 Committer: Russ Cox <rsc@golang.org>
2010-04-26math: more special cases for signed zeroCharles L. Dorian8-164/+421
R=rsc CC=golang-dev http://codereview.appspot.com/937042 Committer: Russ Cox <rsc@golang.org>
2010-04-26gc: more specific error for statements at top levelRuss Cox1-10/+20
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/1006041
2010-04-26godoc: add codewalk supportRuss Cox3-2/+501
R=adg, gri CC=golang-dev, r http://codereview.appspot.com/1008042
2010-04-26crypto/tls: simpler implementation of record layerRuss Cox15-1312/+1065
Depends on CL 957045, 980043, 1004043. Fixes issue 715. R=agl1, agl CC=golang-dev http://codereview.appspot.com/943043
2010-04-26net: introduce net.Error interfaceRuss Cox12-318/+350
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 issue 442. R=r CC=golang-dev, msolo http://codereview.appspot.com/957045
2010-04-26net: add PipeRuss Cox3-0/+120
R=r CC=golang-dev http://codereview.appspot.com/1004043
2010-04-26bytes: add Next method to Buffer, simplify Read.Russ Cox2-6/+47
R=r CC=golang-dev http://codereview.appspot.com/980043
2010-04-26xml: fix innerxml handling of & escapesRuss Cox2-5/+6
R=r CC=golang-dev http://codereview.appspot.com/1009041
2010-04-26template: fix handling of pointer inside interfaceRuss Cox2-1/+8
R=r CC=golang-dev http://codereview.appspot.com/982043
2010-04-26regexp: allow escaping of any punctuationRuss Cox2-4/+13
More in line with other regexp packages and egrep; accommodates overzealous escapers. R=r CC=golang-dev http://codereview.appspot.com/1008041
2010-04-26libmach: disassemble MOVLQZX correctlyRuss Cox1-2/+6
R=ken2 CC=golang-dev http://codereview.appspot.com/1007041
2010-04-22runtime: closures, defer bug fix for Native ClientRuss Cox16-43/+391
Enable package tests for Native Client build. R=r CC=golang-dev http://codereview.appspot.com/957042
2010-04-22os/stat_freebsd.go: maybe fix build for freebsdRob Pike1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/970042
2010-04-22big: Create type natEvan Shaw5-310/+312
Changed most of the functions in nat.go to methods on nat. R=gri CC=golang-dev http://codereview.appspot.com/976041 Committer: Robert Griesemer <gri@golang.org>
2010-04-22FileInfo: regularize the types of some fields.Rob Pike11-50/+50
Uid, Gid become int. File size info becomes int64. Times become int64. R=rsc, cw CC=golang-dev http://codereview.appspot.com/968042
2010-04-23vector: Don't always regenerate {int,string}vector.goEvan Shaw1-2/+2
R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/917042 Committer: Andrew Gerrand <adg@golang.org>
2010-04-21big: Add some testsEvan Shaw2-6/+49
R=rsc, gri CC=golang-dev http://codereview.appspot.com/967041 Committer: Robert Griesemer <gri@golang.org>
2010-04-21json: Marshal, Unmarshal using new scannerRuss Cox11-1030/+1547
R=r CC=golang-dev http://codereview.appspot.com/953041
2010-04-21runtime: switch state back to Grunning after recoveryRuss Cox2-2/+3
Fixes issue 733. R=r CC=golang-dev http://codereview.appspot.com/958041
2010-04-21xml: new "innerxml" tag to collect inner XMLRuss Cox3-13/+66
R=r CC=golang-dev http://codereview.appspot.com/971041
2010-04-21utf16: add DecodeRune, EncodeRuneRuss Cox2-4/+67
R=r CC=golang-dev http://codereview.appspot.com/970041
2010-04-20big: fix build - start with zero in scanNRuss Cox1-1/+1
R=gri, eds CC=golang-dev http://codereview.appspot.com/947042
2010-04-20strings: add ReadRune to ReaderKyle Consalus2-2/+48
R=rsc CC=golang-dev http://codereview.appspot.com/940041 Committer: Russ Cox <rsc@golang.org>
2010-04-20big: eliminate redundant array lookupsEvan Shaw1-5/+11
This gives about a 6% performance improvement to pidigits. Thanks to Russ for the suggestion. R=rsc, gri CC=golang-dev http://codereview.appspot.com/957041 Committer: Russ Cox <rsc@golang.org>
2010-04-20big: reduce the number of allocationsEvan Shaw1-4/+10
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 http://codereview.appspot.com/953042 Committer: Russ Cox <rsc@golang.org>
2010-04-206l, 8l: include ELF header in PT_LOAD mapping for text segmentRuss Cox2-10/+10
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 http://codereview.appspot.com/954041
2010-04-20big: Add Lsh and Value; convert pidigits to use bigEvan Shaw4-56/+211
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 http://codereview.appspot.com/881050 Committer: Russ Cox <rsc@golang.org>
2010-04-20gc: print x[y:] correctlyRuss Cox1-1/+2
R=ken2 CC=golang-dev http://codereview.appspot.com/955041
2010-04-20runtime: rename cgo2c, *.cgo to goc2c, *.gocRuss Cox10-4/+4
to avoid confusion with real cgo R=r CC=golang-dev http://codereview.appspot.com/904046
2010-04-20reflect: implement Set(nil), SetValue(nil) for PtrValue and MapValueRuss Cox2-2/+48
R=r CC=golang-dev http://codereview.appspot.com/823048
2010-04-19big: Get rid of function pointers and init functionEvan Shaw4-89/+43
R=rsc, gri CC=golang-dev http://codereview.appspot.com/929041 Committer: Robert Griesemer <gri@golang.org>
2010-04-19Added strings.FieldsFunc, a generalization of strings.Fields in style of the ↵Kyle Consalus2-2/+25
strings.Trim*Func functions. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/824051 Committer: Rob Pike <r@golang.org>