summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-03-08crypto/sha512: new packageConrad Meyer5-0/+357
R=rsc CC=golang-dev http://codereview.appspot.com/240043 Committer: Russ Cox <rsc@golang.org>
2010-03-08gc: simplify complex typecheckRuss Cox3-31/+37
do not convert to float prematurely. R=ken2 CC=golang-dev http://codereview.appspot.com/311041
2010-03-085g/6g/8g: fix double function call in sliceRuss Cox6-96/+82
Fixes issue 654. R=ken2 CC=golang-dev http://codereview.appspot.com/310041
2010-03-08runtime: clock garbage collection on bytes allocated, not pages in useRuss Cox7-17/+57
This keeps fragmentation from delaying garbage collections (and causing more fragmentation). Cuts fresh godoc (with indexes) from 261M to 166M (120M live). Cuts toy wc program from 50M to 8M. Fixes issue 647. R=r, cw CC=golang-dev http://codereview.appspot.com/257041
2010-03-08crypto/rsa: don't use safe primes.Adam Langley2-11/+7
Previously we would require safe primes for our RSA key generation. Since this took rather a long time, this removes the requirement that the primes be safe. OpenSSL doesn't use safe primes for RSA key generation either (openssl-0.9.8l/crypto/rsa/rsa_gen.c:122) Fixes issue 649. R=rsc CC=golang-dev http://codereview.appspot.com/253041
2010-03-07regex: Remove unneeded imports from test.Christopher Wedgwood1-3/+0
R=rsc, adg, r CC=golang-dev http://codereview.appspot.com/264041 Committer: Rob Pike <r@golang.org>
2010-03-07regexp: add ReplaceAllFunc and ReplaceAllStringFuncAndrew Gerrand2-2/+64
R=r CC=golang-dev http://codereview.appspot.com/247041 Committer: Andrew Gerrand <adg@golang.org>
2010-03-06fix bug in complex printing: imaginary didn't have same format as real.Rob Pike3-10/+47
add tests. R=rsc, ken2, ken3 CC=golang-dev http://codereview.appspot.com/261041
2010-03-06PTALKen Thompson2-65/+80
R=r CC=golang-dev http://codereview.appspot.com/254043
2010-03-056g complex type usableKen Thompson14-139/+507
8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042
2010-03-05gc: fix crash on complicated arg to make slice.Russ Cox1-1/+1
Fixes issue 615. R=ken2 CC=golang-dev http://codereview.appspot.com/255043
2010-03-05math: faster hypotCharles L. Dorian5-24/+81
Use hardware sqrt for faster hypot; preserve software-only hypot as hypotGo (like sqrtGo); enable benchmarking of hypotGo. R=rsc CC=golang-dev http://codereview.appspot.com/229049 Committer: Russ Cox <rsc@golang.org>
2010-03-05gc: better compilation of floating point +=Russ Cox5-31/+63
R=ken2 CC=golang-dev http://codereview.appspot.com/255042
2010-03-05bufio: WriteRuneRob Pike3-1/+60
also fix a printing error in the test for bytes.Buffer R=golang-dev CC=golang-dev http://codereview.appspot.com/240042
2010-03-05big: fix mistakes with probablyPrimeAdam Langley2-4/+12
probablyPrime would return false negatives in some cases. This code has now been tested against GMP for several million iterations without issues. Fixes issue 638. R=rsc CC=golang-dev http://codereview.appspot.com/252041
2010-03-05Add ReadRune and WriteRune to bytes.BufferRob Pike2-6/+77
The comments mention bufio's WriteRune, which should come next. R=rsc CC=golang-dev http://codereview.appspot.com/245041
2010-03-05frexp.go: remove html from commentRobert Griesemer1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/250041
2010-03-05godoc: don't throw away function documentationRobert Griesemer1-4/+22
if there are multiple functions (for a package, type) with the same name Fixes issue 642. R=rsc CC=golang-dev http://codereview.appspot.com/243041
2010-03-04gofmt: modified algorithm for alignment of multi-line composite/list entriesRobert Griesemer13-185/+278
- only manual changes are in src/pkg/go/printer/nodes.go - use a heuristic to determine "outliers" such that not entire composites are forced to align with them - improves several places that were not unligned before due too simple heuristic - unalignes some cases that contain "outliers" - gofmt -w src misc Fixes issue 644. R=rsc, r CC=golang-dev http://codereview.appspot.com/241041
2010-03-04goinstall: an experiment in (external) package installationRuss Cox9-3/+610
R=adg, r CC=cw, golang-dev http://codereview.appspot.com/224043
2010-03-04strings: make Split(s, "", n) fasterSpring Mc1-17/+24
R=rsc CC=golang-dev http://codereview.appspot.com/223096 Committer: Russ Cox <rsc@golang.org>
2010-03-04cc: disallow ... argument unless NOSPLIT is set.Russ Cox8-8/+46
check that NOSPLIT functions don't use too much stack. correct some missing NOSPLITs in the runtime library. Fixes bug reported in https://groups.google.com/group/golang-nuts/t/efff68b73941eccf R=ken2 CC=golang-dev http://codereview.appspot.com/236041
2010-03-03math: added ilogb, logb, remainder, tests and special conditionsCharles L. Dorian9-5/+331
Also added expm1_386 and remainder_386; shortened exp_386 R=rsc CC=golang-dev http://codereview.appspot.com/217109 Committer: Russ Cox <rsc@golang.org>
2010-03-03net: put [ ] around IPv6 addresses for DialRuss Cox1-1/+5
Update issue 538. R=r CC=golang-dev http://codereview.appspot.com/229045
2010-03-03net: fix nil deref in testTimeout when Dial failsRuss Cox1-1/+2
Pointed out by Scott Schwartz. Fixes issue 637. R=scotts CC=golang-dev http://codereview.appspot.com/225042
2010-03-03gc: fix imported and not used message - show pathRuss Cox3-4/+3
R=ken2 CC=golang-dev http://codereview.appspot.com/229046
2010-03-03encoding/binary: fix error reporting bugRob Pike1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/224096
2010-03-03net: fix network timeout boundary condition.Stephen Ma1-1/+1
Fixes issue 472. R=golang-dev CC=golang-dev http://codereview.appspot.com/223108
2010-03-03net: correct DNS configurationStephen Ma2-3/+3
Set defaults to the same values as various C DNS resolver libraries. Use the timeout value from the configuration. Fixes issue 632. R=rsc CC=golang-dev http://codereview.appspot.com/223094
2010-03-02more on type complex.Ken Thompson7-10/+228
getting close. R=rsc CC=golang-dev http://codereview.appspot.com/224105
2010-03-02gofmt: fix alignment of multi-line var declarationsRobert Griesemer6-34/+82
- gofmt -w src misc R=rsc, r CC=golang-dev http://codereview.appspot.com/223101
2010-03-03http: corrected comment for Response.GetHeader.Andrew Gerrand1-7/+6
Fixes issue 622. R=rsc CC=golang-dev http://codereview.appspot.com/224084
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer72-1836/+1870
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-03-02strings.Bytes -> []byte for documentation example, src/pkg/* comments, and ↵Andrey Mirtchovski2-2/+2
htmlgen.go R=rsc, adg CC=golang-dev http://codereview.appspot.com/224087 Committer: Andrew Gerrand <adg@golang.org>
2010-02-28gotest: set $AS to $GOBIN/$ASAndrew Gerrand1-0/+1
May address issue 624. R=rsc CC=golang-dev http://codereview.appspot.com/223083
2010-02-28Count utf8 runes, not bytes when determining string width. NoteStephen Ma3-2/+6
that pad() still counts bytes, but it's currently only used for 1 byte runes. Fixes issue 612. R=r CC=golang-dev http://codereview.appspot.com/217064 Committer: Rob Pike <r@golang.org>
2010-02-26testing/benchmark: paranoia - make sure n always growsRuss Cox1-1/+9
R=wcn CC=golang-dev http://codereview.appspot.com/223075
2010-02-26crypto/blowfish: new packageRaif S. Naffah6-0/+585
R=rsc CC=golang-dev http://codereview.appspot.com/217116 Committer: Russ Cox <rsc@golang.org>
2010-02-26go/parser cleanup: remove some state by writing more functional codeRobert Griesemer1-16/+17
R=rsc CC=golang-dev http://codereview.appspot.com/223071
2010-02-268g: fix out of register bug in byte(x) codeRuss Cox1-6/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/223070
2010-02-26Add -r option to 6l/8l/5l.Ian Lance Taylor12-3/+26
This permits more flexibility with cgo and swig in cases where the program is run on a machine other than the one on which it is built. Rather than storing the absolute path to the shared library in the DT_NEEDED entry, we can store just the name, and let the dynamic linker find it using DT_RUNPATH or the LD_LIBRARY_PATH environment variable. R=rsc CC=golang-dev http://codereview.appspot.com/223068
2010-02-268g: make a[byte(x)] truncate xRuss Cox1-1/+8
R=ken2 CC=golang-dev http://codereview.appspot.com/223069
2010-02-26go/scanner: the position of '\n's chars must be the last position of the ↵Robert Griesemer2-8/+12
current line Background: This didn't matter until recently, because '\n' don't appear as token starts in source code and thus the exact position was irrelevant (and set as was easiest in the code). With auto semicolon insertion, a virtual semicolon may be inserted when a '\n' is seen. The position of the semicolon is the position of the '\n'. Without this fix, these semicolons appeared on the next line instead of the line where they were inserted. This affected the association of comments to declarations in the parser. As a result, some lead comments where considered line comments, not collected in the ast, and not shown in godoc pages. (This affected only godoc pages, not gofmt-formatted programs). Fixes issue 592. R=rsc CC=golang-dev http://codereview.appspot.com/224068
2010-02-26Fix a couple of bugs referencing data values in template.Micah Stetson2-0/+18
Adds tests and fixes for two cases that fail with the current release. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/217115 Committer: Rob Pike <r@golang.org>
2010-02-25use []byte("abc") in place of []byte{'a', 'b', 'c'}Russ Cox4-12/+12
R=gri CC=golang-dev http://codereview.appspot.com/223059
2010-02-25go/printer, gofmt: align comments in multi-line expression listsRobert Griesemer11-67/+115
- gofmt -w src misc - improves several lists and fixes minor degradation introduced with the fix for issue 628 - removed some dead code (stringList) R=rsc CC=golang-dev http://codereview.appspot.com/223058
2010-02-25strings: delete Runes, BytesRuss Cox60-303/+235
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-02-25tabwriter: make use of new []byte() conversionRobert Griesemer1-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/224063
2010-02-25gc: implement []int(string) and []byte(string)Russ Cox6-14/+118
R=ken2 CC=golang-dev http://codereview.appspot.com/224060
2010-02-25Fix small typo in net package.Stephen Weinberg1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/224061 Committer: Russ Cox <rsc@golang.org>