summaryrefslogtreecommitdiff
path: root/src/pkg
AgeCommit message (Collapse)AuthorFilesLines
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-31net: fix typoAndrew Gerrand1-1/+1
Fixes issue 819. R=rsc CC=golang-dev http://codereview.appspot.com/1421041
2010-05-28netchan: improve closing and shutdown. there's still more to do.Rob Pike3-7/+45
Fixes issue 805. R=rsc CC=golang-dev http://codereview.appspot.com/1400041
2010-05-28Make image.Color.RGBA return 16 bit color instead of 32 bit color.Nigel Tao8-108/+41
R=rsc CC=golang-dev http://codereview.appspot.com/1388041
2010-05-28syscall: windows SysAlloc should use stdcall_raw not syscallAlex Brainman1-1/+1
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/1382041 Committer: Russ Cox <rsc@golang.org>
2010-05-28syscall: windows syscall trace to assist debuggingAlex Brainman1-0/+7
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/1383041 Committer: Russ Cox <rsc@golang.org>
2010-05-28fmt.Scan: add Fscan and Fscanln and make Scan and ScanlnRob Pike3-12/+48
read from standard input. Add description of scanning to the package comment. R=rsc CC=golang-dev http://codereview.appspot.com/1390041
2010-05-27Add Rectangle.Eq and Point.In.Roger Peppe1-0/+14
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 http://codereview.appspot.com/1290041 Committer: Rob Pike <r@golang.org>
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox45-94/+94
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-05-26fmt.Scan: custom formattersRob Pike1-11/+11
R=rsc CC=golang-dev http://codereview.appspot.com/1315042
2010-05-26fmt.Scan: custom formattersRob Pike2-16/+76
R=rsc CC=golang-dev http://codereview.appspot.com/1315042
2010-05-26godoc: collect package comments from all package files, not just the first ↵Robert Griesemer1-6/+23
one found R=r CC=golang-dev http://codereview.appspot.com/1331041
2010-05-26big: add ModInverse.Adam Langley2-0/+41
ModInverse is just a small wrapper around GcdInt, but it's nice to have in order to be clear about what one is doing in other code. R=gri, agl1 CC=golang-dev http://codereview.appspot.com/1244045
2010-05-26fmt: fix 386 build. error strings differ for overflow on 386.Rob Pike1-1/+3
R=gri CC=golang-dev http://codereview.appspot.com/1316042
2010-05-25fmt.Scan, fmt.Scanln: Start of a simple scanning API in the fmt package.Rob Pike3-0/+595
Still to do: - composite types - user-defined scanners - format-driven scanning The package comment will be updated when more of the functionality is in place. R=rsc CC=golang-dev http://codereview.appspot.com/1252045
2010-05-24Optimize exp/draw/x11 flusher inner loop.Nigel Tao1-6/+6
On my laptop, time to prepare and write 800x600 pixels over the socket falls from 125-ish ms to 80-ish ms. Thanks to Roger Peppe for the suggestion. R=r CC=golang-dev http://codereview.appspot.com/1228044
2010-05-24fix build - nacl stubsRuss Cox1-0/+3
TBR=nigeltao CC=golang-dev http://codereview.appspot.com/1259042
2010-05-24net: udp, implement BindToDeviceChristopher Wedgwood1-0/+10
R=rsc CC=golang-dev, r http://codereview.appspot.com/1271041 Committer: Russ Cox <rsc@golang.org>
2010-05-24big: Rat test improvementsEvan Shaw1-80/+72
R=gri CC=golang-dev http://codereview.appspot.com/1270041 Committer: Robert Griesemer <gri@golang.org>
2010-05-24Fix typo in exp/draw/x11.Nigel Tao1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1282041
2010-05-24runtime: free old hashmap pieces during resizingRuss Cox1-1/+0
R=r CC=golang-dev http://codereview.appspot.com/1254044
2010-05-24fix windows buildAlex Brainman1-0/+11
R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/1209048 Committer: Andrew Gerrand <adg@golang.org>
2010-05-24Make draw/x11 treat $DISPLAY the same way x-go-bindings does.Nigel Tao2-44/+97
This ought to make draw/x11 work on a Mac. R=rsc CC=golang-dev http://codereview.appspot.com/1265042
2010-05-24big: prevent errors in Exp in the face of aliasingAdam Langley3-2/+8
R=gri CC=golang-dev, golang-dev http://codereview.appspot.com/1244044
2010-05-24syscall: update freebsd_amd64Andrew Gerrand2-523/+604
R=rsc, r CC=golang-dev http://codereview.appspot.com/1268041 Committer: Russ Cox <rsc@golang.org>
2010-05-23When making images, allocate one big buffer instead of many small ones.Nigel Tao1-24/+30
R=rsc, r CC=golang-dev http://codereview.appspot.com/1267041
2010-05-21go/printer, gofmt: fix printing of labels,Robert Griesemer8-20/+53
apply gofmt to src, misc Fixes issue 752. R=rsc CC=golang-dev http://codereview.appspot.com/1240044 Committer: Robert Griesemer <gri@golang.org>
2010-05-21test/hilbert.go: convert to test case and benchmark for big.RatRobert Griesemer2-3/+173
R=rsc CC=golang-dev http://codereview.appspot.com/1231044 Committer: Robert Griesemer <gri@golang.org>
2010-05-21net: implement raw socketsChristopher Wedgwood8-10/+519
R=rsc CC=golang-dev http://codereview.appspot.com/684041 Committer: Russ Cox <rsc@golang.org>
2010-05-21big: Add Rat typeEvan Shaw4-1/+459
Implementations are pretty rough and simple at this point, but it's a start. R=gri CC=golang-dev http://codereview.appspot.com/1250043 Committer: Robert Griesemer <gri@golang.org>
2010-05-21runtime: correct tracebacks for nascent goroutines, even closuresRuss Cox2-2/+92
Fixes issue 780. R=r CC=golang-dev http://codereview.appspot.com/1221042
2010-05-21syscall: add Utimes, Futimes stubs for NaCl - fix buildRuss Cox1-0/+8
TBR=nigeltao CC=golang-dev http://codereview.appspot.com/1262042
2010-05-21syscall: regenerate zsyscall_linux_arm.go - fix buildRuss Cox1-2/+2
R=kaib CC=golang-dev http://codereview.appspot.com/1209047
2010-05-21big: fix Int.SetString comment, simplify implementation,Robert Griesemer2-18/+14
always return z for nat.scan R=rsc CC=golang-dev http://codereview.appspot.com/1236043
2010-05-21bignum: deprecate by moving into exp directoryRobert Griesemer17-12/+22
R=rsc CC=golang-dev http://codereview.appspot.com/1211047
2010-05-20big: implemented Int.Binomial (to be used in test/hilbert.go with theRobert Griesemer1-9/+18
forthcoming implementation of big.Rat) R=rsc CC=golang-dev http://codereview.appspot.com/1229047 Committer: Robert Griesemer <gri@golang.org>
2010-05-20netFD: fix race between Close and Read/WriteMichael Hoisie1-2/+9
Fixes issue 783. R=rsc, cw CC=golang-dev http://codereview.appspot.com/1207043 Committer: Russ Cox <rsc@golang.org>
2010-05-20Fix Rectangle.Canon()Roger Peppe1-2/+2
R=rsc, r, gri CC=golang-dev http://codereview.appspot.com/1239043 Committer: Robert Griesemer <gri@golang.org>
2010-05-20Fast-ish path for drawing onto an image.RGBA destination.Nigel Tao2-13/+121
Time to draw.Draw a 200x200 image fell from 18.4ms (and 1 malloc) to 5.6ms (and 0 mallocs). It's still relatively slow since it assumes nothing about the src or mask images, but it does remove the malloc. There are existing faster, more specialized paths for copies, fills and image glyph masks. Also added a "compare to a slow but obviously correct implementation" check to draw_test.go. R=rsc, r CC=golang-dev http://codereview.appspot.com/1223044
2010-05-20syscall: linux, implement BindToDeviceChristopher Wedgwood1-0/+5
R=rsc CC=adg, golang-dev, r http://codereview.appspot.com/1253043 Committer: Russ Cox <rsc@golang.org>
2010-05-20syscall: bsd, stub BindToDeviceChristopher Wedgwood1-0/+9
R=rsc CC=adg, golang-dev, r http://codereview.appspot.com/1257041 Committer: Russ Cox <rsc@golang.org>
2010-05-19runtime: avoid allocation for fixed stringsRuss Cox12-14/+25
R=r CC=golang-dev http://codereview.appspot.com/1083041
2010-05-19os: add Chtimes functionBrad Fitzpatrick2-0/+58
R=rsc, r CC=golang-dev http://codereview.appspot.com/1103041 Committer: Russ Cox <rsc@golang.org>
2010-05-19syscall: add Utimes on Darwin/FreeBSD, add Futimes everywhereRuss Cox7-10/+62
Needed for CL 1103041 and beyond. R=adg, bradfitzpatrick CC=bradfitz, golang-dev http://codereview.appspot.com/1172042