aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-11-10release step 1weekly.2010-11-10Rob Pike
R=gri CC=golang-dev https://golang.org/cl/3022041
2010-11-10path: Fix Glob when it finds a file in directory position.Ian Lance Taylor
When searching a list of directories, the files which match the pattern are accumulated in a slice. If the glob has a wildcard for the directory, and the wildcard matches a file rather than a directory, then the files found so far are discarded. E.g., path.Glob("*/x") in a directory which contains both files and subdirectories. This patch avoids discarding matches found so far when a file is found. R=r CC=bsiegert, golang-dev https://golang.org/cl/3015042
2010-11-10sort: binary search for sorted slicesRobert Griesemer
R=r, r2 CC=golang-dev https://golang.org/cl/2997041
2010-11-10testing: delete redundant name argument to Benchmark().Roger Peppe
[it was a carry over from the previous iteration] R=r CC=golang-dev https://golang.org/cl/3016041
2010-11-09fix error converting result of complexKen Thompson
division. resolves issue 1261. R=rsc CC=golang-dev https://golang.org/cl/2985043
2010-11-09go/ast: change embedded token.Position fields to named fieldsRobert Griesemer
This is in preparation for a different position representation. It also resolves situations where a node would be printed as it's node position simply because the embedded token.Position has a String method. R=r CC=golang-dev https://golang.org/cl/2991041
2010-11-09doc: fix go_spec spelling errorsPeter Mundy
R=gri CC=golang-dev https://golang.org/cl/2970042
2010-11-09container/list: make Remove return Value of removed element.Roger Peppe
When it is known that there is already at least one element in the list, it is awkwardly verbose to use three lines and an extra variable declaration to remove the first or last item (a common case), rather than use a simple expression. a stack: stk.PushFront(x) x = stk.Front().Remove().(T) vs. stk.PushFront(x) e := stk.Front() e.Remove() x = e.Value.(T) [An alternative CL might be to add PopFront and PopBack methods]. R=gri CC=golang-dev https://golang.org/cl/3000041
2010-11-09doc: fix go_spec spelling errorPeter Mundy
R=rsc, gri CC=golang-dev https://golang.org/cl/2985041
2010-11-08bytes: SSE for bytes.IndexByte on amd64Evan Shaw
Performance on 2.8 GHz Intel Core i7: Before: BenchmarkIndexByte4K 1000000 2997 ns/op 1366.70 MB/s BenchmarkIndexByte4M 500 3049772 ns/op 1375.28 MB/s BenchmarkIndexByte64M 50 49582280 ns/op 1353.48 MB/s After: BenchmarkIndexByte4K 10000000 298 ns/op 13744.97 MB/s BenchmarkIndexByte4M 10000 285993 ns/op 14665.76 MB/s BenchmarkIndexByte64M 500 4618172 ns/op 14531.48 MB/s R=rsc, PeterGo, r2, r CC=golang-dev https://golang.org/cl/2888041
2010-11-08json: don't indirect before testing for custom unmarshalerRob Pike
Fixes #1260. R=gri CC=golang-dev https://golang.org/cl/2994041
2010-11-08os.Expand: don't call append for each non-variable charRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/2993041
2010-11-08strconv: quote erroneous string in errorsRob Pike
Fixes #1253. R=gri CC=golang-dev https://golang.org/cl/2990041
2010-11-08os: add Expand function to evaluate environment variables.Rob Pike
Fixes #1258. R=gri, msolo, bradfitzpatrick, r2 CC=golang-dev https://golang.org/cl/2988041
2010-11-086l/8l: generate dwarf variable names with disambiguating suffix.Luuk van Dijk
R=rsc CC=golang-dev https://golang.org/cl/2733042
2010-11-08doc/codewalk: update for changes in log packageAndrey Mirtchovski
R=adg, r CC=golang-dev https://golang.org/cl/2984041
2010-11-05net: fix windows buildWei Guangjing
R=rsc CC=golang-dev https://golang.org/cl/2932041
2010-11-05testing: rename type Test to InternalTestPeter Mundy
type Benchmark has been renamed to InternalBenchmark R=rsc CC=golang-dev https://golang.org/cl/2942042
2010-11-05env.bash: more quoting in case of spacesRuss Cox
R=r, r2 CC=golang-dev https://golang.org/cl/2938041
2010-11-05libmach: detail for darwin errorsRuss Cox
R=r, r2 CC=golang-dev https://golang.org/cl/2937041
2010-11-05syscall: use 64-bit file size for truncation on LinuxPeter Mundy
Truncate and Ftruncate for 32-bit Linux should use 64-bit offset system calls. R=rsc CC=golang-dev, royger https://golang.org/cl/2943041
2010-11-05io: use SetFinalizer more elegantly in PipeChristopher Wedgwood
(this works now that issue 751 is resolved) R=rsc CC=golang-dev https://golang.org/cl/2834041
2010-11-05gob: don't add "." if package path is empty when registering a type.Rob Pike
R=rsc CC=golang-dev https://golang.org/cl/2939041
2010-11-05gc: doc nitEric Clark
R=rsc, r CC=golang-dev https://golang.org/cl/2918042
2010-11-05net: provide public access to file descriptorsKeith Rarick
Fixes #918. R=rsc, rog, brainman CC=golang-dev https://golang.org/cl/2904041
2010-11-05A+C: Keith Rarick (individual CLA)Russ Cox
R=r, r2 CC=golang-dev, kr https://golang.org/cl/2894042
2010-11-05runtime: explain nacl closure failureRuss Cox
R=r, r2 CC=golang-dev https://golang.org/cl/2889042
2010-11-056l: More SSE instruction fixesEvan Shaw
PSADBW and PSHUFL had the wrong prefixes. R=rsc CC=golang-dev https://golang.org/cl/2836041
2010-11-05path: add GlobBenny Siegert
As discussed in http://groups.google.com/group/golang-dev/browse_thread/thread/926b7d550d98ec9e, add a simple "path expander" function, which returns all the files matching the given pattern. This function is called Glob after glob(3) in libc. Also add a convenience function, hasMeta, that checks whether a string contains one of the characters which are specially handled by Match. R=rsc, r, r2 CC=golang-dev https://golang.org/cl/2476041
2010-11-05CLA: Benny Siegert <bsiegert@gmail.com>Rob Pike
R=rsc CC=golang-dev https://golang.org/cl/2934041
2010-11-05gob: when sending an interface value, indirect down to theRob Pike
underlying type; otherwise encoding fails when sending a pointer value. R=rsc CC=golang-dev https://golang.org/cl/2922041
2010-11-05crypto/tls: use pool building for certificate checkingAdam Langley
Previously we checked the certificate chain from the leaf upwards and expected to jump from the last cert in the chain to a root certificate. Although technically correct, there are a number of sites with problems including out-of-order certs, superfluous certs and missing certs. The last of these requires AIA chasing, which is a lot of complexity. However, we can address the more common cases by using a pool building algorithm, as browsers do. We build a pool of root certificates and a pool from the server's chain. We then try to build a path to a root certificate, using either of these pools. This differs from the behaviour of, say, Firefox in that Firefox will accumulate intermedite certificate in a persistent pool in the hope that it can use them to fill in gaps in future chains. We don't do that because it leads to confusing errors which only occur based on the order to sites visited. This change also enabled SNI for tls.Dial so that sites will return the correct certificate chain. R=rsc CC=golang-dev https://golang.org/cl/2916041
2010-11-05runtime: fix windows buildAlex Brainman
R=rsc CC=golang-dev https://golang.org/cl/2923041
2010-11-05doc: make root.html's blog section less cluttered.Nigel Tao
R=r CC=golang-dev https://golang.org/cl/2925041
2010-11-04go spec: line comments may end in EOFRobert Griesemer
Consistency argument: A valid Go program should remain valid after stripping leading and trailing whitespace. This was not true so far if the last text in the source was a line comment. R=iant, ken2, r, rsc, r2 CC=golang-dev https://golang.org/cl/2906041
2010-11-04Small addition to previous optimization of memequal as discussed here: ↵Graham Miller
http://groups.google.com/group/golang-nuts/browse_thread/thread/f591ba36d83723c0/9aba02d344045f38 R=golang-dev, r, r2 CC=golang-dev https://golang.org/cl/2880041
2010-11-04go/scanner: line comments may end in EOFRobert Griesemer
R=rsc CC=golang-dev https://golang.org/cl/2908041
2010-11-04gc: line comments may end in EOFRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/2907041
2010-11-04runtime: ,s/[a-zA-Z0-9_]+/runtime·&/g, almostRuss Cox
Prefix all external symbols in runtime by runtime·, to avoid conflicts with possible symbols of the same name in linked-in C libraries. The obvious conflicts are printf, malloc, and free, but hide everything to avoid future pain. The symbols left alone are: ** known to cgo ** _cgo_free _cgo_malloc libcgo_thread_start initcgo ncgocall ** known to linker ** _rt0_$GOARCH _rt0_$GOARCH_$GOOS text etext data end pclntab epclntab symtab esymtab ** known to C compiler ** _divv _modv _div64by32 etc (arch specific) Tested on darwin/386, darwin/amd64, linux/386, linux/amd64. Built (but not tested) for freebsd/386, freebsd/amd64, linux/arm, windows/386. R=r, PeterGo CC=golang-dev https://golang.org/cl/2899041
2010-11-04codereview: more utf-8 nonsenseRuss Cox
To annoy hg: Μπορώ να φάω σπασμένα γυαλιά χωρίς να πάθω τίποτα. R=r CC=golang-dev https://golang.org/cl/2900041
2010-11-04Use future official DWARF language code for Go.Ian Lance Taylor
http://dwarfstd.org/ShowIssue.php?issue=101014.1&type=open Informally accepted for future DWARF 5. R=lvd CC=golang-dev, rsc https://golang.org/cl/2881042
2010-11-04net: fix LookupSRVChris Jones
R=rsc, chris CC=golang-dev https://golang.org/cl/2420041
2010-11-04A+C: add Chris Jones (individual CLA)Russ Cox
R=r CC=cjyar, golang-dev https://golang.org/cl/2818041
2010-11-03add hardware floating point.Ken Thompson
currently, softfloat does not work and there are some unsigned-to-float conversion errors. R=rsc CC=golang-dev https://golang.org/cl/2886041
2010-11-03units: fix compilationRob Pike
R=ken2, ken3 CC=golang-dev https://golang.org/cl/2865041
2010-11-03Effective Go: correct error in recent edit: "..." is in call to Sprintln, ↵Rob Pike
not Output. R=rsc, gri CC=golang-dev https://golang.org/cl/2853042
2010-11-03crypto: switch block ciphers to detination first.Adam Langley
Previously all the functions took two arguments: src, dst. This is the reverse of the usual Go style and worth changing sooner rather than later. Unfortunately, this is a change that the type system doesn't help with. However, it's not a subtle change: any unittest worth the name should catch this. R=rsc, r CC=golang-dev https://golang.org/cl/2751042
2010-11-03crypto: add cast5Adam Langley
CAST5 is the default OpenPGP cipher. (This won't make Rob any happier about the size of crypto/, of course.) It already has dst, src in that order but it doesn't have any users yet so I figure it's better than changing it later. R=rsc, gri, r CC=golang-dev https://golang.org/cl/2762042
2010-11-03tag release.2010-11-02Andrew Gerrand
R=r CC=golang-dev https://golang.org/cl/2848041
2010-11-03release.2010-11-02weekly.2010-11-02Andrew Gerrand
R=golang-dev, gri, r2, r CC=golang-dev https://golang.org/cl/2846041