- 03 Jun, 2010 3 commits
-
-
Kyle Consalus authored
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 https://golang.org/cl/1495041
-
Charles L. Dorian authored
Also added more tests for acosh, hypot, log, log10, log2 in all_test.go. R=rsc CC=golang-dev https://golang.org/cl/1417041
-
Peter Williams authored
R=rsc, r CC=golang-dev https://golang.org/cl/1238044
-
- 02 Jun, 2010 7 commits
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/1486041
-
Russ Cox authored
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 https://golang.org/cl/1480041
-
Rob Pike authored
- provide convenience functions for scanning strings - enable Scanf etc. - update doc comments R=rsc CC=golang-dev https://golang.org/cl/1451044
-
Russ Cox authored
R=gri CC=golang-dev https://golang.org/cl/1372042
-
Robert Griesemer authored
R=r, iant CC=golang-dev https://golang.org/cl/1433042
-
Robert Griesemer authored
R=rsc, r, iant CC=golang-dev https://golang.org/cl/1465041
-
Andrew Gerrand authored
R=rsc CC=golang-dev https://golang.org/cl/1475041
-
- 01 Jun, 2010 11 commits
-
-
Rob Pike authored
- 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 https://golang.org/cl/1458041
-
Rob Pike authored
- 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 https://golang.org/cl/1458041
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/1442042
-
Robert Griesemer authored
Fixes #820. R=rsc CC=golang-dev https://golang.org/cl/1453041
-
Michael Hoisie authored
R=rsc CC=golang-dev https://golang.org/cl/1395041
-
Evan Shaw authored
R=rsc CC=golang-dev https://golang.org/cl/1258044
-
Vinu Rajashekhar authored
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 https://golang.org/cl/1452041
-
Ian Lance Taylor authored
R=adg CC=golang-dev https://golang.org/cl/1454041
-
Andrew Gerrand authored
R=rsc CC=golang-dev https://golang.org/cl/1444041
-
Joe Poirier authored
R=golang-dev, adg CC=golang-dev, rsc https://golang.org/cl/1426042
-
Nigel Tao authored
"change the encoding of uints...". R=r CC=golang-dev https://golang.org/cl/1436041
-
- 31 May, 2010 8 commits
-
-
Fazlul Shahriar authored
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 https://golang.org/cl/1435041
-
Rob Pike authored
Fixes #821. R=rsc CC=golang-dev https://golang.org/cl/1434041
-
Michael Hoisie authored
R=r CC=golang-dev https://golang.org/cl/1433041
-
Rob Pike authored
simplifies the code significantly. Still TODO: - proper format handling - strings R=rsc CC=golang-dev https://golang.org/cl/1432041
-
Rob Pike authored
- 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 https://golang.org/cl/1418041
-
Alex Brainman authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/1145044
-
Ian Lance Taylor authored
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 https://golang.org/cl/1399041
-
Andrew Gerrand authored
Fixes #819. R=rsc CC=golang-dev https://golang.org/cl/1421041
-
- 30 May, 2010 1 commit
-
-
Andrew Gerrand authored
R=r CC=golang-dev https://golang.org/cl/1404041
-
- 29 May, 2010 1 commit
-
-
Rob Pike authored
Fixes #805. R=rsc CC=golang-dev https://golang.org/cl/1400041
-
- 28 May, 2010 7 commits
-
-
Robert Griesemer authored
and adjust conversion rules. Also: - clarification of type identity (no language change) - adjust special rules for channel assignment/comparison to require identical element types (in correspondence to non- recursiveness of type compatibility) R=rsc, iant, ken2, r CC=golang-dev https://golang.org/cl/1376042
-
Nigel Tao authored
R=rsc CC=golang-dev https://golang.org/cl/1388041
-
Alex Brainman authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/1382041
-
Alex Brainman authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/1383041
-
Rob Pike authored
read from standard input. Add description of scanning to the package comment. R=rsc CC=golang-dev https://golang.org/cl/1390041
-
Robert Griesemer authored
from an array; one needs to write a[0:] instead. R=rsc, r, iant, ken2 CC=golang-dev https://golang.org/cl/1365041
-
Roger Peppe authored
Fix Rectangle.Clip. It could return a non-canonical rectangle if its arguments did not overlap. e.g. Rect(0, 0, 10, 10).Clip(Rect(0, 20, 10, 30)) -> Rect(0, 20, 10, 10) R=rsc, r CC=golang-dev, golang-dev https://golang.org/cl/1290041
-
- 27 May, 2010 2 commits
-
-
Andrew Gerrand authored
R=rsc CC=golang-dev https://golang.org/cl/1363041
-
Andrew Gerrand authored
R=r, rsc CC=golang-dev https://golang.org/cl/1354041
-