summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-06-07gc: backslash newline is not a legal escape sequence in stringsRobert Griesemer1-4/+0
Fixes issue 827. R=ken2 CC=golang-dev, rsc http://codereview.appspot.com/1592041
2010-06-07go spec: rename "assignment compatible" -> "assignable"Robert Griesemer1-27/+25
R=r, rsc CC=golang-dev http://codereview.appspot.com/1590041
2010-06-08http: add Head function for making HTTP HEAD requestsAndrew Gerrand2-1/+23
R=rsc CC=golang-dev http://codereview.appspot.com/1581041
2010-06-07go spec: clean-up and consolidation of spec with implementationRobert Griesemer1-118/+125
Specifically: - introduced notion of "underlying type" - removed notion of type compatibility - consolidated rules about assignment compatibility in assignment compatibility section - be consistent with specyfing that nil is the value for uninitialized variables that can be nil (this was not specified clearly for pointers, functions, interfaces) - added/fixed various related links throughout - clarify language on conversions R=rsc, r, iant, ken2 CC=golang-dev http://codereview.appspot.com/1536041
2010-06-07runtime: finish pchw -> tiny, added gettime for tinyDaniel Theophanes5-5/+17
R=rsc CC=golang-dev http://codereview.appspot.com/1514041 Committer: Russ Cox <rsc@golang.org>
2010-06-07A+C: add Daniel Theophanes (individual CLA)Russ Cox2-0/+2
R=r CC=golang-dev http://codereview.appspot.com/1535041
2010-06-06http: fix erroneous commentAndrew Gerrand1-4/+4
R=r CC=golang-dev http://codereview.appspot.com/1539042
2010-06-05tutorial: fix one-word mistake in echo exampleRob Pike2-2/+2
R=rsc, iant CC=golang-dev http://codereview.appspot.com/1567041
2010-06-04HTML5 parser test data from WebKit.Nigel Tao24-0/+10233
R=rsc CC=golang-dev http://codereview.appspot.com/1559041
2010-06-04Fixes issue 836.Nigel Tao2-1/+15
R=gri CC=golang-dev http://codereview.appspot.com/1548042
2010-06-03draw.Draw fast paths for the Over operator.Nigel Tao1-34/+93
Time (us) to draw a 200x200 src onto an image.RGBA dst with the Over operator. Each case was measured three separate times, and the sorted times are reported. Fill case (where src is an image.ColorImage): Before: 7438, 7511, 7526 After: 3073, 3087, 3102 Copy case (where src is an image.RGBA): Before: 9506, 9510, 9563 After: 5262, 5300, 5344 R=rsc CC=golang-dev http://codereview.appspot.com/1532041
2010-06-03Add Opaque method to the image types.Nigel Tao2-0/+102
R=rsc CC=golang-dev http://codereview.appspot.com/1533041
2010-06-03fmt.Scan: %cRob Pike2-5/+23
R=rsc CC=golang-dev http://codereview.appspot.com/1518042
2010-06-03go spec: Base comparison compatibility on assignment compatibility.Robert Griesemer1-73/+68
Specifically: - Simplified definition of comparison compatibility and folded into section on comparison operators since it's only used there. This is a small language change/cleanup. As a consequence: - An interface value may now be compared against a non-interface value. - Channels with opposite directions cannot be compared directly anymore (per discussion with rsc). R=rsc, r, iant, ken2 CC=golang-dev http://codereview.appspot.com/1462041
2010-06-03io/ioutil: add TempFileRuss Cox3-0/+93
R=r CC=golang-dev http://codereview.appspot.com/1472042
2010-06-03Added regex-dna-parallel.go, a pretty trivial parallelization.Kyle Consalus3-0/+138
R=rsc, r CC=golang-dev http://codereview.appspot.com/972046 Committer: Rob Pike <r@golang.org>
2010-06-03http: handle status 304 correctlyRuss Cox1-0/+11
- cannot send body - should not send body-related headers R=r CC=golang-dev http://codereview.appspot.com/1499041
2010-06-03fmt.Scan: field widthsRob Pike3-122/+290
Also fix an interface bug: white-space-delimited doesn't work well for cases like "%d, %d" on "23, 23") R=rsc CC=golang-dev http://codereview.appspot.com/1502041
2010-06-03math: fix typo in Exp2 benchmarkCharles L. Dorian1-1/+1
Was timing Exp, not Exp2. R=rsc, r CC=golang-dev http://codereview.appspot.com/1521042 Committer: Rob Pike <r@golang.org>
2010-06-03bug285: assignment compatible map keys must be acceptedRobert Griesemer2-0/+132
R=r CC=golang-dev http://codereview.appspot.com/1473042
2010-06-03netchan: fix typo in testRob Pike1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1522041
2010-06-03Fix typo in xml comments.Nigel Tao1-3/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1503041
2010-06-02 Optimization to regexp _CharClass: keep track of overall range ofKyle Consalus2-10/+48
charclass to avoid unnecessarily iterating over ranges. Also, use the fact that IntVector is an []int to avoid method calls. On my machine, this brings us from ~27500 ns/op to ~17500 ns/op in the benchmark I've added (it is also faster in the case where a range check doesn't help, added a benchmark for this too.) I'd also like to propose that "[]", and "[^]" be disallowed. They aren't useful as far as I can tell, they aren't widely supported, and they make reasoning about character classes a bit more complicated. R=r CC=golang-dev http://codereview.appspot.com/1495041 Committer: Rob Pike <r@golang.org>
2010-06-02math: Pow special cases (signed zero, IEEE 754-2008)Charles L. Dorian2-190/+245
Also added more tests for acosh, hypot, log, log10, log2 in all_test.go. R=rsc CC=golang-dev http://codereview.appspot.com/1417041 Committer: Russ Cox <rsc@golang.org>
2010-06-02doc: codereview + Mercurial QueuesPeter Williams2-4/+115
R=rsc, r CC=golang-dev http://codereview.appspot.com/1238044 Committer: Russ Cox <rsc@golang.org>
2010-06-02fmt.Scan: scan []byte argumentsRob Pike3-7/+34
R=rsc CC=golang-dev http://codereview.appspot.com/1486041
2010-06-02bufio: change ReadSlice to match descriptionRuss Cox2-15/+17
On error, ReadSlice is defined to return the available data and advance past that data, but it was not behaving that way for err == ErrBufferFull, making it harder for callers to handle well. R=r CC=golang-dev http://codereview.appspot.com/1480041
2010-06-02fmt.Scanf: implement formats, provide Sscanf (strings)Rob Pike3-56/+173
- provide convenience functions for scanning strings - enable Scanf etc. - update doc comments R=rsc CC=golang-dev http://codereview.appspot.com/1451044
2010-06-02big: fix spelling of EuclideanRuss Cox1-2/+2
R=gri CC=golang-dev http://codereview.appspot.com/1372042
2010-06-02bug284: additional conversion test caseRobert Griesemer2-4/+13
R=r, iant CC=golang-dev http://codereview.appspot.com/1433042
2010-06-02bug284: test cases for new conversion rulesRobert Griesemer2-0/+218
R=rsc, r, iant CC=golang-dev http://codereview.appspot.com/1465041
2010-06-02A+C: added Daniel FleischmanAndrew Gerrand2-0/+2
R=rsc CC=golang-dev http://codereview.appspot.com/1475041
2010-06-01fmt.Scan: renamings, strings, errorsRob Pike1-1/+1
- implement scanning for all renamed types (compiler bug stops complex from being renamable, so it can't be tested but the code is there) - %q %x for strings - error handling now done with panic/recover R=rsc CC=golang-dev http://codereview.appspot.com/1458041
2010-06-01fmt.Scan: renamings, strings, errorsRob Pike2-192/+409
- implement scanning for all renamed types (compiler bug stops complex from being renamable, so it can't be tested but the code is there) - %q %x for strings - error handling now done with panic/recover R=rsc CC=golang-dev http://codereview.appspot.com/1458041
2010-06-01gc: fix export of complex typesRuss Cox1-0/+3
R=ken2 CC=golang-dev http://codereview.appspot.com/1442042
2010-06-01big: bug fix for Quo aliasing problemRobert Griesemer2-3/+31
Fixes issue 820. R=rsc CC=golang-dev http://codereview.appspot.com/1453041
2010-06-01goinstall: Use 'git pull' instead of 'git checkout' when updating a git repo.Michael Hoisie1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1395041 Committer: Russ Cox <rsc@golang.org>
2010-06-01runtime: Fix printing -InfEvan Shaw1-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/1258044 Committer: Russ Cox <rsc@golang.org>
2010-06-01 Correct the regexp for finding unix signal names.Vinu Rajashekhar1-1/+1
For example, earlier, the regexp would accept SIGQUEUE_MAX as a unix signal with name SIGQUEUE. Now it is ignored. R=iant CC=golang-dev, golang-nuts, joel.sherrill http://codereview.appspot.com/1452041 Committer: Ian Lance Taylor <iant@golang.org>
2010-06-01Add Vinu Rajashekhar <vinutheraj@gmail.com> as a contributor.Ian Lance Taylor2-0/+2
R=adg CC=golang-dev http://codereview.appspot.com/1454041
2010-06-01doc/code.html: fix error string formatAndrew Gerrand1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1444041
2010-06-01edit simple typosJoe Poirier2-6/+6
R=golang-dev, adg CC=golang-dev, rsc http://codereview.appspot.com/1426042 Committer: Andrew Gerrand <adg@golang.org>
2010-05-31Fix typo in gob docs. They were introduced in revision 3199778bafNigel Tao1-5/+5
"change the encoding of uints...". R=r CC=golang-dev http://codereview.appspot.com/1436041
2010-05-31vector: undo changes to autogenerated filesFazlul Shahriar7-42/+50
Also, move Do() to vector.go, so that Do() for IntVector and StringVector is autogenerated. The only files edited are Makefile, defs.go, and vector.go. The rest are autogenerated with "make generate". R=r CC=golang-dev, hoisie http://codereview.appspot.com/1435041 Committer: Rob Pike <r@golang.org>
2010-05-31fmt: fix end-of-array error in parsenum.Rob Pike2-8/+5
Fixes issue 821. R=rsc CC=golang-dev http://codereview.appspot.com/1434041
2010-05-31IntVector.Do now takes an f(int), and StringVector.Do now takes an f(string).Michael Hoisie3-23/+17
R=r CC=golang-dev http://codereview.appspot.com/1433041 Committer: Rob Pike <r@golang.org>
2010-05-31fmt.Scan: refactor the implementation so format-driven and normal scanning ↵Rob Pike2-160/+100
use the same function. simplifies the code significantly. Still TODO: - proper format handling - strings R=rsc CC=golang-dev http://codereview.appspot.com/1432041
2010-05-31fmt.Scan:Rob Pike2-154/+436
- reimplement integer scanning to handle renamed basic integer types - start implementation of Fscanf and Scanf; not yet ready for general use. This intermediate CL is a useful checkpoint. A similar change needs to be done for float and complex, but it seemed worth getting the approach reviewed before making those changes. R=rsc CC=golang-dev http://codereview.appspot.com/1418041
2010-05-31implement os.FileInfo.*time_ns for windowsAlex Brainman4-13/+17
R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/1145044 Committer: Andrew Gerrand <adg@golang.org>
2010-05-30Correct _cgo_free when C ABI does not pass first arg on stack.Ian Lance Taylor2-2/+13
It turns out that _cgo_malloc is used, via cmalloc in runtime/cgocall.c, which is called by code generated by out.go for the ·_C_CString function. I can't find a call to _cgo_free, but given _cgo_malloc we might as well keep _cgo_free. This patch fixes it so that it should work on amd64. R=rsc CC=golang-dev http://codereview.appspot.com/1399041