aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-10-14release.2010-10-13weekly.2010-10-13Andrew Gerrand
R=r, rsc, r2 CC=golang-dev https://golang.org/cl/2499041
2010-10-14misc: add goplayAndrew Gerrand
R=rsc, r CC=golang-dev https://golang.org/cl/2473041
2010-10-13smtp: new packageEvan Shaw
R=rsc, iant, agl CC=golang-dev https://golang.org/cl/2052042
2010-10-13bufio: bulletproof UnreadRuneRob Pike
After a fill(), there is nothing to back up. Make sure UnreadRune recognizes the situation. Fixes #1137. (Stops the crash, but doesn't make UnreadRune usable after a Peek()). R=rsc CC=golang-dev https://golang.org/cl/2498041
2010-10-13arm: enable 8 more packagesRuss Cox
The remaining failures include: * something about bit operations? crypto/block encoding/binary * something about file I/O? archive/tar archive/zip debug/dwarf debug/elf debug/macho image/png * floating point cmath expvar flag fmt gob json math strconv template xml * network (maybe fixed by a pending CL) http netchan rpc rpc/jsonrpc syslog websocket * line numbers log * haven't bothered / not sure exp/datafmt exp/eval go/printer os os/signal testing/quick R=ken2 CC=golang-dev https://golang.org/cl/2496041
2010-10-13fix arm bug in reflect.callKen Thompson
R=rsc CC=golang-dev https://golang.org/cl/2475042
2010-10-13various: avoid %ld etcRuss Cox
The Plan 9 tools assume that long is 32 bits. We converted all instances of long to int32 when importing the code but missed the print formats. Because int32 is always int on the compilers we use, it is never correct to use %lux, %ld, etc. Convert to %ux, %d, etc. (It matters because on 64-bit gcc, long is 64 bits, so we were printing 32-bit quantities with 64-bit formats.) R=ken2 CC=golang-dev https://golang.org/cl/2491041
2010-10-135l, 6l, 8l: first pass cleanupRuss Cox
* Maintain Sym* list for text with individual prog lists instead of using one huge list and overloading p->pcond. * Comment what each file is for. * Move some output code from span.c to asm.c. * Move profiling into prof.c, symbol table into symtab.c. * Move mkfwd to ld/lib.c. * Throw away dhog dynamic loading code. * Throw away Alef become. * Fix printing of WORD instructions in 5l -a. Goal here is to be able to handle each piece of text or data as a separate piece, both to make it easier to load the occasional .o file and also to make it possible to split the work across multiple threads. R=ken2, r, ken3 CC=golang-dev https://golang.org/cl/2335043
2010-10-135l, 6l, 8l: indent, outdentRuss Cox
This is entirely adding and removing tabs. It looks weird but will make the diffs for the next change easier to read. R=ken2 CC=golang-dev https://golang.org/cl/2490041
2010-10-13log: fix out-of-date package commentRob Pike
R=rsc CC=golang-dev https://golang.org/cl/2485041
2010-10-13runtime: remove done TODO from SetFinalizerAndrew Gerrand
R=rsc CC=golang-dev https://golang.org/cl/2472041
2010-10-13image: add an offset to Tiled.Nigel Tao
R=r, r2 CC=golang-dev https://golang.org/cl/2469041
2010-10-12log: reduce allocationsRob Pike
Use a bytes.Buffer in log writing instead of string concatenation. Should reduce the number of allocations significantly. R=rsc, r2 CC=golang-dev https://golang.org/cl/2417042
2010-10-12Effective Go: update examples to use new logging interface.Rob Pike
R=adg CC=golang-dev https://golang.org/cl/2468041
2010-10-13doc: add Sydney University video, fix hlint warningsAndrew Gerrand
R=r, r2, rsc, uriel CC=golang-dev https://golang.org/cl/2433042
2010-10-12netchan: export before import when testing.Roger Peppe
Fixes some race conditions. R=r CC=golang-dev https://golang.org/cl/2456041
2010-10-126l: work with OS X nm/otoolJim McGrath
6l was skipping emitting the (2 byte) symbol table if there were no imported or exported symbols. You can't just drop the symbol table entirely - the linker dies if you have a linkedit section but no table. You can omit the linkedit section or both the linkedit and the dlyd parts in the right circumstances, but that seems much more risky to me. R=rsc CC=golang-dev https://golang.org/cl/2421042
2010-10-12log: new interfaceRob Pike
New logging interface simplifies and generalizes. 1) Loggers now have only one output. 2) log.Stdout, Stderr, Crash and friends are gone. Logging is now always to standard error by default. 3) log.Panic* replaces log.Crash*. 4) Exiting and panicking are not part of the logger's state; instead the functions Exit* and Panic* simply call Exit or panic after printing. 5) There is now one 'standard logger'. Instead of calling Stderr, use Print etc. There are now triples, by analogy with fmt: Print, Println, Printf What was log.Stderr is now best represented by log.Println, since there are now separate Print and Println functions (and methods). 6) New functions SetOutput, SetFlags, and SetPrefix allow global editing of the standard logger's properties. This is new functionality. For instance, one can call log.SetFlags(log.Lshortfile|log.Ltime|log.Lmicroseconds) to get all logging output to show file name, line number, and time stamp. In short, for most purposes log.Stderr -> log.Println or log.Print log.Stderrf -> log.Printf log.Crash -> log.Panicln or log.Panic log.Crashf -> log.Panicf log.Exit -> log.Exitln or log.Exit log.Exitf -> log.Exitf (no change) This has a slight breakage: since loggers now write only to one output, existing calls to log.New() need to delete the second argument. Also, custom loggers with exit or panic properties will need to be reworked. All package code updated to new interface. The test has been reworked somewhat. The old interface will be removed after the new release. For now, its elements are marked 'deprecated' in their comments. Fixes #1184. R=rsc CC=golang-dev https://golang.org/cl/2419042
2010-10-12arm: fix syscall build againRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/2465041
2010-10-12arm: regenerate ztypes_linux_arm.go (fix build)Russ Cox
R=adg CC=golang-dev https://golang.org/cl/2404043
2010-10-12syscall: add sockaddr_ll support for linux/386, linux/amd64Mikio Hara
R=rsc, albert.strasheim CC=golang-dev https://golang.org/cl/2356042
2010-10-12syscall: implement WaitStatus and Wait4() for windowsWei Guangjing
R=brainman, rsc, kardia, Joe Poirier CC=golang-dev https://golang.org/cl/1910041
2010-10-11arm: fix buildRuss Cox
Effectively reverts https://code.google.com/p/go/source/detail?r=8c52477401ad Should make ARM build pass again, but untested. Probably still bugs involving reflect.call somewhere. R=ken2 CC=golang-dev https://golang.org/cl/2416042
2010-10-12image: another build fix regarding ColorImage.Nigel Tao
R=adg TBR=adg CC=golang-dev https://golang.org/cl/2449041
2010-10-12exp/draw: unbreak build.Nigel Tao
R=adg CC=golang-dev https://golang.org/cl/2448041
2010-10-12image: add image.Tiled type, the Go equivalent of Plan9's repl bit.Nigel Tao
Make ColorImage methods' receiver type be a pointer. R=r, rsc CC=golang-dev https://golang.org/cl/2345043
2010-10-11Make.cmd: remove $(OFILES)Eric Clark
The linker doesn't support multiple object files (maybe it did in the past?) R=rsc CC=golang-dev https://golang.org/cl/2444041
2010-10-11exp/iterable: deleteRuss Cox
Package iterable has outlived its utility. It is an interesting demonstration, but it encourages people to use iteration over channels where simple iteration over array indices or a linked list would be cheaper, simpler, and have fewer races. R=dsymonds, r CC=golang-dev https://golang.org/cl/2436041
2010-10-12build: fix darwin/386 buildAndrew Gerrand
R=rsc CC=golang-dev https://golang.org/cl/2443041
2010-10-11ld: be less picky about bad line number infoRuss Cox
Fixes #1175. R=lvd CC=golang-dev https://golang.org/cl/2439041
2010-10-11new command gotry.Rob Pike
An exercise in reflection and an unusual tool. From the usage message: usage: gotry [packagedirectory] expression ... Given one expression, gotry attempts to evaluate that expression. Given multiple expressions, gotry treats them as a list of arguments and result values and attempts to find a function in the package that, given the first few expressions as arguments, evaluates to the remaining expressions as results. If the first expression has methods, it will also search for applicable methods. If there are multiple expressions, a package directory must be specified. If there is a package argument, the expressions are evaluated in an environment that includes import . "packagedirectory" Examples: gotry 3+4 # evaluates to 7 gotry strings '"abc"' '"c"' 7-5 # finds strings.Index etc. gotry regexp 'MustCompile("^[0-9]+")' '"12345"' true # finds Regexp.MatchString R=rsc, PeterGo, r2 CC=golang-dev https://golang.org/cl/2352043
2010-10-11netchan: zero out request to ensure correct gob decoding.Roger Peppe
Gob decoding does not overwrite fields which are zero in the encoder. Fixes #1174. R=r, r2 CC=golang-dev https://golang.org/cl/2337044
2010-10-116l: correct offset for __nl_symbol_ptr in Mach-O.Jim McGrath
Fixes malformed object message from nm etc. Fixes #1180. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/2390042
2010-10-116l: fix Mach-O LC_RPATHJim McGrath
Fixes #1177. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/2387042
2010-10-11A+C: Jim McGrath (individual CLA)Russ Cox
R=r, r2 CC=golang-dev https://golang.org/cl/2438041
2010-10-11expvar: add (*Int).SetSam Thorogood
R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/2336044
2010-10-11CONTRIBUTORS: link sam.thorogood@gmail.com for code reviewRuss Cox
R=Sam CC=golang-dev https://golang.org/cl/2437041
2010-10-11 crypto/tls: make SetReadTimeout work.Adam Langley
Fixes #1181. R=rsc, agl1, cw, r2 CC=golang-dev https://golang.org/cl/2414041
2010-10-11 crypto/tls: better error messages for certificate issues.Adam Langley
Fixes #1146. R=rsc, agl1 CC=golang-dev https://golang.org/cl/2380042
2010-10-11time: add AfterAndrew Gerrand
Permits one to easily put a timeout in a select: select { case <-ch: // foo case <-time.After(1e6): // bar } R=r, rog, rsc, sameer1, PeterGo, iant, nigeltao_gnome CC=golang-dev https://golang.org/cl/2321043
2010-10-09exp/draw/x11: support X11 vendors other than "The X.Org Foundation".Nigel Tao
R=adg, ehog.hedge CC=golang-dev https://golang.org/cl/2385041
2010-10-08bug in stack size in arm.Ken Thompson
stack is off by one if calling through reflect.Call R=rsc CC=golang-dev https://golang.org/cl/2400041
2010-10-08build: add GOHOSTOS and GOHOSTARCH environment variables.Andrew Gerrand
Auto-detect both if not set, and if GOARCH is not set use GOHOSTARCH. GOHOSTARCH is used to set the -m32 or -m64 flags for gcc. This is so that 64-bit can build binaries that run on 32-bit systems. R=rsc, iant, brainman CC=golang-dev https://golang.org/cl/2342045
2010-10-07big: fix panic and round correctly in Rat.FloatStringAnthony Martin
R=gri, rsc CC=golang-dev https://golang.org/cl/2212044
2010-10-075l, 8l: dregsRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/2390041
2010-10-07runtime: fix tiny buildRuss Cox
Reported by Jeff Allen. R=r, r2 CC=golang-dev https://golang.org/cl/2385042
2010-10-07net: allow _ in namesRuss Cox
Enables lookup of _jabber._tcp.gmail.com's SRV record. Fixes #1167. R=r, r2 CC=golang-dev https://golang.org/cl/2353043
2010-10-07runtime: fix argument dump in tracebackRuss Cox
Was printing words at SP instead of at FP after shuffle due to nascent flag. R=r, r2 CC=golang-dev https://golang.org/cl/2316044
2010-10-07gc: maybe the code is only mostly deadRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/2346044
2010-10-07[568]a: precise linenumbers for statements.Luuk van Dijk
R=rsc, ken2, r, rsc1 CC=golang-dev https://golang.org/cl/2297042