summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-12-23fix documentation bug in exampleRob Pike1-1/+1
Fixes issue 452. R=gri CC=golang-dev, dougfelt http://codereview.appspot.com/181043
2009-12-22Cleanup: remove Exp ending in identifiersRobert Griesemer5-198/+198
as it is not needed anymore (only one impl. of vector package). Makefile, vector_test.go, and nogen_test.go were modified manually (find/replace), the other files (intvector_test.go, strinvector_test.go are generated). Runs all tests. R=r http://codereview.appspot.com/182041
2009-12-22Replace container/vector with exp/vector (faster).Robert Griesemer17-1397/+640
Manual changes to the following files: src/pkg/Makefile src/pkg/exp/vector/Makefile (now: src/pkg/container/vector/Makefile) R=rsc, r CC=golang-dev http://codereview.appspot.com/181041
2009-12-22add comment (warning about generated files)Robert Griesemer6-3/+18
R=r CC=golang-dev http://codereview.appspot.com/180108
2009-12-22hgtags: release.2009-12-22Russ Cox0-0/+0
R=r CC=golang-dev http://codereview.appspot.com/179130
2009-12-22hgtags: delete "release" (step 1 of new release)Russ Cox0-0/+0
R=r CC=golang-dev http://codereview.appspot.com/180118
2009-12-23fix up %pRob Pike2-4/+19
- use an interface {Get()} - implement Get for maps, slices - for slices, retrieves the address of the end of the array, which will give the same value for every slice of the same array. R=rsc CC=golang-dev http://codereview.appspot.com/179129
2009-12-22json: fix doc commentRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/179128
2009-12-22Allow %p on reference types, for debugging.Rob Pike2-18/+15
(Also fix case sensitivity in test for PTR inside fmt_test.go) Fixes issue 441. R=rsc, iant CC=golang-dev http://codereview.appspot.com/180112
2009-12-21update test.sh so it can run to completion againRobert Griesemer1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/179120
2009-12-21Experimental alternative implementation of the vector packageJan Mercl12-0/+2152
R=gri CC=rsc http://codereview.appspot.com/178048 Committer: Robert Griesemer <gri@golang.org>
2009-12-21adding individual contributorRobert Griesemer2-0/+2
R=r, rsc CC=golang-dev http://codereview.appspot.com/179118
2009-12-218g: add TESTL etc to reg optRuss Cox1-0/+3
Fixes issue 436. R=ken2 http://codereview.appspot.com/180105
2009-12-21cgo: interpret $CGOPKGDIR as absolute path if rootedRuss Cox3-5/+16
R=dho CC=golang-dev http://codereview.appspot.com/180099
2009-12-18More evaluation order tests, for global variables and switch.Ian Lance Taylor1-0/+53
gccgo currently fails this test. R=rsc CC=golang-dev http://codereview.appspot.com/179108
2009-12-18gc: method expressions on concrete typesRuss Cox7-20/+55
R=ken2 http://codereview.appspot.com/180092
2009-12-19new comments for bytes.NewBuffer and NewBufferString.Rob Pike1-8/+12
corrects a common misunderstanding about NewBuffer. R=rsc CC=golang-dev http://codereview.appspot.com/179106
2009-12-18runtime: fix race conditionAdam Langley4-5/+89
(Thanks to ken and rsc for pointing this out) rsc: ken pointed out that there's a race in the new one-lock-per-channel code. the issue is that if one goroutine has gone to sleep doing select { case <-c1: case <-c2: } and then two more goroutines try to send on c1 and c2 simultaneously, the way that the code makes sure only one wins is the selgen field manipulation in dequeue: // if sgp is stale, ignore it if(sgp->selgen != sgp->g->selgen) { //prints("INVALID PSEUDOG POINTER\n"); freesg(c, sgp); goto loop; } // invalidate any others sgp->g->selgen++; but because the global lock is gone both goroutines will be fiddling with sgp->g->selgen at the same time. This results in a 7% slowdown in the single threaded case for a ping-pong microbenchmark. Since the cas predominantly succeeds, adding a simple check first didn't make any difference. R=rsc CC=golang-dev http://codereview.appspot.com/180068
2009-12-18fix build, enable an exp/eval's assignment checkRobert Griesemer1-5/+1
now that the parser doesn't do this test anymore R=rsc CC=golang-dev http://codereview.appspot.com/179105
2009-12-18report an error for illegal octal numbers instead of treating them as floatsRobert Griesemer2-23/+95
added more test cases some capitalization cleanups R=rsc CC=golang-dev http://codereview.appspot.com/180085
2009-12-18removed semantic check from parsersRobert Griesemer2-6/+0
R=rsc CC=golang-dev http://codereview.appspot.com/179099
2009-12-17Make.pkg: fix cgo for TARG=a/bRuss Cox1-2/+2
R=dho, phf CC=golang-dev http://codereview.appspot.com/180082
2009-12-17cgo: include line number information to keep go/printer happyRuss Cox1-1/+2
Fixes issue 443. R=dho CC=golang-dev http://codereview.appspot.com/179095
2009-12-17 first stub for softfloats, intercepts float instructions and skipsKai Backman10-4/+160
them in the stream. R=rsc http://codereview.appspot.com/174052
2009-12-17fix for gofmt rewrite matcher bugRobert Griesemer1-0/+3
R=rsc CC=golang-dev http://codereview.appspot.com/179096
2009-12-17gc: fix compiler crashRuss Cox2-0/+19
R=ken2 CC=dho http://codereview.appspot.com/179097
2009-12-17use new tab indentation format in godoc, but convertRobert Griesemer1-2/+70
leading tabs into spaces to ensure a good outcome in most browsers R=rsc http://codereview.appspot.com/165051
2009-12-17time: add ISO 8601 time formatBen Olive2-1/+43
Fixes issue 431. R=r, rsc CC=golang-dev http://codereview.appspot.com/179079 Committer: Russ Cox <rsc@golang.org>
2009-12-17A+C: Ben Olive (individual CLA)Russ Cox2-0/+2
R=gri CC=golang-dev http://codereview.appspot.com/180081
2009-12-17Allow cgo to accept multiple .go inputs for a packageDevon H. O'Dell4-99/+194
Fixes issue 342. R=rsc CC=golang-dev http://codereview.appspot.com/179062 Committer: Russ Cox <rsc@golang.org>
2009-12-17Use BitSize instead of the field's type native ByteSize when calculatingDevon H. O'Dell1-0/+3
structs containing bitfields. Fixes issue 163. R=rsc CC=golang-dev http://codereview.appspot.com/180059 Committer: Russ Cox <rsc@golang.org>
2009-12-17Updated the XGB python script to generate semicolon-freeTor Andersson1-60/+57
source for xproto.go. R=rsc CC=golang-dev http://codereview.appspot.com/180074 Committer: Russ Cox <rsc@golang.org>
2009-12-16runtime: if os/signal is not in use, crash onRuss Cox13-63/+82
most signals, so that ordinary programs can be killed, for example. Fixes issue 434. R=dsymonds1 CC=golang-dev, hoisie http://codereview.appspot.com/180064
2009-12-17make it more explicit that design discussions should happen before code reviewsRob Pike2-2/+26
R=rsc CC=golang-dev http://codereview.appspot.com/180075
2009-12-16- Parse expressions as opposed to statements for gofmt rewrite patterns.Robert Griesemer1-11/+8
Allows stand-alone types (e.g. []int as patterns) and doesn't require a semicolon at the end (which are now mandatory terminators). - Fix a matcher bug. R=rsc CC=golang-dev http://codereview.appspot.com/179088
2009-12-17Basic image/jpeg decoder.Nigel Tao5-0/+787
This is not a complete JPEG implementation (e.g. it does not handle progressive JPEGs or restart markers), but I was able to take a photo with my phone, and view the resultant JPEG in pure Go. The decoder is simple, but slow. The Huffman decoder in particular should be easily improvable, but optimization is left to future changelists. Being able to inline functions in the inner loop should also help performance. The output is not pixel-for-pixel identical to libjpeg, although identical behavior isn't necessarily a goal, since JPEG is a lossy codec. There are at least two reasons for the discrepancy. First, the inverse DCT algorithm used is the same as Plan9's src/cmd/jpg, which has different rounding errors from libjpeg's default IDCT implementation. Note that libjpeg actually has three different IDCT implementations: one floating point, and two fixed point. Out of those four, Plan9's seemed the simplest to understand, partly because it has no #ifdef's or C macros. Second, for 4:2:2 or 4:2:0 chroma sampling, this implementation does nearest neighbor upsampling, compared to libjpeg's triangle filter (e.g. see h2v1_fancy_upsample in jdsample.c). The difference from the first reason is typically zero, but sometimes 1 (out of 256) in YCbCr space, or double that in RGB space. The difference from the second reason can be as large as 8/256 in YCbCr space, in regions of steep chroma gradients. Informal eyeballing suggests that the net difference is typically imperceptible, though. R=r CC=golang-dev, rsc http://codereview.appspot.com/164056
2009-12-16Add roadmap document.Ian Lance Taylor1-0/+105
Also adds Development heading on navbar, with Roadmap being the only current entry. R=r CC=golang-dev http://codereview.appspot.com/180069
2009-12-16Don't ignore flags controlling the amount of source code parsedRobert Griesemer2-10/+10
in parser's ParsePkgFile and ParsePackage functions. R=rsc CC=golang-dev, rog http://codereview.appspot.com/180070
2009-12-16add the ability to invoke niladic single-valued methods in templates.Rob Pike2-10/+86
Fixes issue 389. R=rsc CC=golang-dev http://codereview.appspot.com/180061
2009-12-15This patch enables cgo utility to correctly convert enums in the C sourceMoriyoshi Koizumi6-29/+77
into consts in the resulting Go source. Previously known as issue 161047, which I deleted accidentally. Fixes issue 207. R=rsc http://codereview.appspot.com/166059 Committer: Russ Cox <rsc@golang.org>
2009-12-15rand: Zipf distributed random variates.William Josephson2-0/+74
R=rsc http://codereview.appspot.com/176070 Committer: Russ Cox <rsc@golang.org>
2009-12-15bytes, strings: add new function FieldsAndrey Mirtchovski4-0/+132
R=rsc, r, phf CC=golang-dev http://codereview.appspot.com/170046 Committer: Russ Cox <rsc@golang.org>
2009-12-15math: special cases for PowCharles L. Dorian2-5/+202
R=rsc CC=golang-dev http://codereview.appspot.com/176064 Committer: Russ Cox <rsc@golang.org>
2009-12-15doc/install.html: how to update to a new releaseRuss Cox1-0/+13
Fixes issue 422. R=r CC=golang-dev http://codereview.appspot.com/180057
2009-12-15os/signal: new packageDavid Symonds19-67/+356
Fixes issue 71. R=rsc, r http://codereview.appspot.com/162056 Committer: Russ Cox <rsc@golang.org>
2009-12-15Fix for scanner bug (introduced with most recent change).Robert Griesemer2-2/+8
Fixes issue 433. R=rsc CC=golang-dev http://codereview.appspot.com/179072
2009-12-15syscall: RawSyscall must not call exitsyscallRuss Cox1-1/+0
Fixes issue 405. R=r CC=golang-dev, hoisie http://codereview.appspot.com/180056
2009-12-16new semicolon rule in effective_go.html.Rob Pike1-397/+412
eliminate all tab characters while we're here. R=rsc CC=golang-dev http://codereview.appspot.com/180055
2009-12-15rand: add explicit Int31n to avoid 64-bit divide on 32-bit machinesRuss Cox2-2/+38
use Int31n in Intn when possible. Fixes issue 390. (using 8g) Intn1000 50000000 38 ns/op Int31n1000 50000000 39 ns/op Int63n1000 20000000 114 ns/op R=r CC=golang-dev, skybrian http://codereview.appspot.com/180054
2009-12-15math: faster, easier to inline IsNaN, IsInfRuss Cox1-4/+10
R=r CC=golang-dev http://codereview.appspot.com/180046