summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-05-07Define Len() for JSON Map.David Symonds2-1/+6
R=rsc APPROVED=rsc DELTA=6 (5 added, 0 deleted, 1 changed) OCL=28398 CL=28430
2009-05-07next step for 6.out on Borg: fix and testRuss Cox4-2/+27
net code on IPv4-only machines. R=r DELTA=27 (25 added, 0 deleted, 2 changed) OCL=28404 CL=28411
2009-05-06fix a few type errors, make ErrorString a valueRuss Cox1-2/+2
will submit with fixed compiler R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=28371 CL=28379
2009-05-06makefile fixesRuss Cox2-76/+41
R=r OCL=28369 CL=28369
2009-05-06error handling had a bug in execute: the error channel was being shared.Rob Pike1-23/+33
fix that and clean up state handling a little. R=rsc DELTA=44 (18 added, 8 deleted, 18 changed) OCL=28359 CL=28359
2009-05-05add missing Makefile to repair buildRob Pike1-0/+45
TBR=gri OCL=28320 CL=28320
2009-05-05new dir structure for lib/goRobert Griesemer14-102/+342
R=r DELTA=9298 (4760 added, 4536 deleted, 2 changed) OCL=28317 CL=28317
2009-05-05mv container/vector down one level for new rules.Rob Pike5-4/+4
simplify run.bash now that lib has make test that recurs. R=rsc DELTA=1179 (578 added, 596 deleted, 5 changed) OCL=28313 CL=28313
2009-05-05directory-per-package step 1: move files from lib/X.go to lib/X/X.goRob Pike41-82/+1037
no substantive changes except: - new Makefiles, all auto-generated - go/src/lib/Makefile has been extensively edited R=rsc OCL=28310 CL=28310
2009-05-05better io.ByteBuffer implementation:Robert Griesemer2-59/+191
- more light-weight - better buffer management - added test cases R=r DELTA=227 (167 added, 35 deleted, 25 changed) OCL=28252 CL=28289
2009-05-05fmt: dead code and dataRuss Cox1-10/+0
R=r DELTA=10 (0 added, 10 deleted, 0 changed) OCL=28258 CL=28287
2009-05-04string slicing is efficient so remove base and bounds arguments from ↵Rob Pike3-5/+6
RuneCountInString R=rsc DELTA=6 (1 added, 0 deleted, 5 changed) OCL=28242 CL=28256
2009-05-04Remake exvar package to be more Go-ish.David Symonds4-252/+208
It now exports a Var interface (anyone can export their own custom var types now), so users need to create and manage their own vars and mark them as exportable via the Publish function. They are exposed via /debug/vars. R=r,rsc APPROVED=r DELTA=605 (314 added, 186 deleted, 105 changed) OCL=28143 CL=28239
2009-05-02Fix mismatched quote in a comment.David Symonds1-1/+1
R=gri APPROVED=gri DELTA=1 (0 added, 0 deleted, 1 changed) OCL=28184 CL=28192
2009-04-30- incorporated feedback per rscRobert Griesemer2-89/+78
- fixed a bug and added corresponding test case R=rsc DELTA=114 (18 added, 29 deleted, 67 changed) OCL=28114 CL=28128
2009-04-30bug146: array/slice conversion before I left missed conversionsRuss Cox3-7/+7
R=ken OCL=28120 CL=28124
2009-04-30auto-detect whether to use IPv6 or IPv4 kernel interfaceRuss Cox1-3/+12
R=r DELTA=12 (9 added, 0 deleted, 3 changed) OCL=28096 CL=28118
2009-04-30better error messages, not that anyone ever sees themRuss Cox1-20/+28
R=r DELTA=30 (9 added, 1 deleted, 20 changed) OCL=28104 CL=28117
2009-04-29don't print binary data. add TODO for better errors.Rob Pike1-1/+2
TBR=rsc DELTA=2 (1 added, 0 deleted, 1 changed) OCL=28066 CL=28070
2009-04-29rename variables for clarity.Rob Pike2-13/+48
add test for structure alignment/offset. R=gri DELTA=49 (35 added, 0 deleted, 14 changed) OCL=28068 CL=28068
2009-04-29Bug in reflect found by gri. Structs in 6g have a minimum alignment.Rob Pike1-1/+9
iant: will this be ok in gccgo? R=rsc DELTA=9 (8 added, 0 deleted, 1 changed) OCL=28059 CL=28062
2009-04-29drop unused result name - trivial change.Rob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=28056 CL=28058
2009-04-29exit with error status EPIPE ifRuss Cox1-1/+10
one fd gets too many EPIPEs in a row during write. R=r DELTA=10 (9 added, 0 deleted, 1 changed) OCL=28057 CL=28057
2009-04-29Fix channels used by WaitWrite (http server hangs on writesBrendan O'Dea1-2/+2
which hit EAGAIN). R=rsc APPROVED=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27955 CL=28054
2009-04-28fix for broken buildRobert Griesemer1-1/+1
TBR=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=27969 CL=27969
2009-04-28Add a HTTP handler to the exvar package.David Symonds2-9/+14
R=r APPROVED=r DELTA=20 (11 added, 6 deleted, 3 changed) OCL=27782 CL=27950
2009-04-27Add more dependencies for lib/go.David Symonds1-1/+2
This makes "make nuke install" work again. R=r APPROVED=r DELTA=2 (1 added, 0 deleted, 1 changed) OCL=27929 CL=27932
2009-04-27implement .alternatesRob Pike2-4/+40
R=rsc OCL=27928 CL=27928
2009-04-27Fix the chunked encoding - terminate the chunk with CRLF.Stephen Ma1-1/+11
R=rsc APPROVED=r DELTA=11 (10 added, 0 deleted, 1 changed) OCL=27723 CL=27879
2009-04-26Add string-valued variables to exvar.David Symonds2-4/+61
R=r APPROVED=r DELTA=62 (58 added, 1 deleted, 3 changed) OCL=27756 CL=27877
2009-04-26flags.Usage() calls fmt.Fprintf() with incorrect argsBrendan O'Dea1-2/+2
R=r APPROVED=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27777 CL=27876
2009-04-25- install doc in lib/goRobert Griesemer2-2/+569
- adjust dependent files R=rsc DELTA=1132 (567 added, 562 deleted, 3 changed) OCL=27862 CL=27862
2009-04-24- fixed a couple of potential end-less loopsRobert Griesemer1-10/+11
(no progress in presence of syntax errors) - end parsing early if source doesn't start proper package clause R=iant DELTA=18 (7 added, 6 deleted, 5 changed) OCL=27840 CL=27842
2009-04-22add {.tab}Rob Pike2-6/+9
fix a couple of comments TBR=rsc OCL=27716 CL=27716
2009-04-21Clean up some more code after bug143 was fixed.David Symonds1-6/+1
R=r APPROVED=r DELTA=6 (0 added, 5 deleted, 1 changed) OCL=27708 CL=27708
2009-04-21Bug 143 is fixed, so clean up some of exvar.David Symonds1-5/+7
R=r APPROVED=r DELTA=8 (3 added, 1 deleted, 4 changed) OCL=27699 CL=27701
2009-04-21Change exvar to use a goroutine channel worker instead of a mutex for ↵David Symonds3-75/+101
synchronisation. Also it should be more testable, as there's less global state. R=r APPROVED=r DELTA=113 (38 added, 12 deleted, 63 changed) OCL=27653 CL=27694
2009-04-21minor adjustment to comment formatting for better godoc outputRobert Griesemer1-5/+5
R=r DELTA=5 (0 added, 0 deleted, 5 changed) OCL=27687 CL=27689
2009-04-21minor adjustments to comments for better godoc outputRobert Griesemer1-6/+6
R=r DELTA=6 (0 added, 0 deleted, 6 changed) OCL=27686 CL=27688
2009-04-21- documentation for bignum packageRobert Griesemer1-121/+345
- removed some constants from public interface R=r DELTA=375 (238 added, 14 deleted, 123 changed) OCL=27636 CL=27668
2009-04-20Refactor exvar to use interface types, and add mapVar.David Symonds2-34/+164
R=r APPROVED=r DELTA=170 (136 added, 6 deleted, 28 changed) OCL=27628 CL=27652
2009-04-20rewrite template library:Rob Pike2-251/+417
- separate parsing from execution - rearrange code for organizational clarity - provide execution errors and parse-time errors - implement .or for repeated TBR=rsc OCL=27650 CL=27650
2009-04-20Move iterable package to usr/dsymonds/.David Symonds3-270/+2
R=r APPROVED=r DELTA=598 (330 added, 266 deleted, 2 changed) OCL=27627 CL=27649
2009-04-20Oops, forgot to commit this change.David Symonds1-2/+3
R=r APPROVED=r DELTA=3 (1 added, 0 deleted, 2 changed) OCL=27624 CL=27626
2009-04-20Use the mutex in exvar.Set since map access is not atomic.David Symonds1-0/+3
Imagine your var has a value of zero. If you have a goroutine calling Set(5), and another calling Increment(+1), then you only want one of these outcomes: - Set completes first, and then Increment occurs => 6 - Increment completes first, and then Set occurs => 5 However, you could get a sequence: - read (for Increment) 0 - set (for Set) 5 - write (for Increment) 1 This results in a value of 1, which is undesirable. Kudos to dnadasi for catching this. R=r APPROVED=r DELTA=3 (3 added, 0 deleted, 0 changed) OCL=27625 CL=27625
2009-04-19Add Inject function to iterable package.David Symonds2-4/+33
Fix a couple of style mistakes. R=r,rsc APPROVED=r DELTA=34 (30 added, 1 deleted, 3 changed) OCL=27623 CL=27623
2009-04-19Initial cut at an "exported variables" (exvar) package.David Symonds4-0/+127
This handles integer-valued vars in a singleton struct, and exports functions for incrementing, setting and getting those vars, as well as rendering all the vars in a standard format. Demonstrate the use of the exvar package in the http/triv server. R=dcross,r APPROVED=r DELTA=122 (122 added, 0 deleted, 0 changed) OCL=27617 CL=27622
2009-04-19Readn is a silly name when there's no n. Change to FullRead.Rob Pike6-12/+12
R=gri DELTA=15 (0 added, 0 deleted, 15 changed) OCL=27619 CL=27619
2009-04-18the Big Error Shift applied to lib/time/zoneinfo.go.Rob Pike3-17/+22
R=gri DELTA=22 (5 added, 0 deleted, 17 changed) OCL=27608 CL=27614
2009-04-17Step 2 of the Big Error Shift.Rob Pike1-65/+61
Change the representation of errors in "os" to be cleaner. (But they are not really representative of the power of the new scheme.) Step 3 will be to remove all references to os.NewError. Step 4 will be to delete the second half of lib/os/error.go. R=rsc OCL=27587 CL=27587