]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agonew logo
Rob Pike [Tue, 13 Oct 2009 05:58:32 +0000 (22:58 -0700)]
new logo

R=rsc
DELTA=3  (1 added, 1 deleted, 1 changed)
OCL=35652
CL=35652

15 years agotype switches
Rob Pike [Tue, 13 Oct 2009 04:18:23 +0000 (21:18 -0700)]
type switches
errors

R=rsc
DELTA=150  (74 added, 34 deleted, 42 changed)
OCL=35647
CL=35650

15 years agobug fix: convert \v's into \t's if there's no tabwriter
Robert Griesemer [Tue, 13 Oct 2009 02:08:17 +0000 (19:08 -0700)]
bug fix: convert \v's into \t's if there's no tabwriter

R=rsc
DELTA=15  (12 added, 2 deleted, 1 changed)
OCL=35641
CL=35645

15 years ago- improved comment intersperse heuristic:
Robert Griesemer [Tue, 13 Oct 2009 00:10:50 +0000 (17:10 -0700)]
- improved comment intersperse heuristic:
  comments should now be indented properly in corner cases
  (at the end of statement lists, for instance)

- changed import decl. formatting as suggested by Russ (no "global"
  indentation of imports if there are renames present)

- better field list handling

- better documentation

R=rsc
DELTA=534  (324 added, 35 deleted, 175 changed)
OCL=35557
CL=35630

15 years agoReview and update. No major changes, lots of minor tweaks.
Ian Lance Taylor [Mon, 12 Oct 2009 22:43:13 +0000 (15:43 -0700)]
Review and update.  No major changes, lots of minor tweaks.

R=go-dev
DELTA=176  (39 added, 9 deleted, 128 changed)
OCL=35612
CL=35623

15 years agoprinting and maps
Rob Pike [Mon, 12 Oct 2009 21:51:12 +0000 (14:51 -0700)]
printing and maps

R=rsc,gri
DELTA=228  (223 added, 1 deleted, 4 changed)
OCL=35617
CL=35619

15 years agochanged 5c 64 bit word ordering to little endian so it matches
Kai Backman [Mon, 12 Oct 2009 20:35:28 +0000 (13:35 -0700)]
changed 5c 64 bit word ordering to little endian so it matches
5g. fixes to 64 bit code gen. added (finally) function to do
shifts properly.

go/test: passes 83% (287/342)

R=rsc
APPROVED=rsc
DELTA=156  (50 added, 53 deleted, 53 changed)
OCL=35589
CL=35616

15 years agosort errors by line number
Russ Cox [Mon, 12 Oct 2009 18:03:48 +0000 (11:03 -0700)]
sort errors by line number

turn off testdclstack and "not used" errors
when there are syntax errors.

BUG=2181825
R=ken
OCL=35606
CL=35608

15 years agostack overflow debugging and fix.
Russ Cox [Mon, 12 Oct 2009 17:26:38 +0000 (10:26 -0700)]
stack overflow debugging and fix.

  * in 6l, -K already meant check for stack underflow.
    add -KK to mean double-check stack overflows
    even in nosplit functions.

  * comment out print locks; they deadlock too easily
     but are still useful to put back for special occasions.

  * let runcgo assembly switch to scheduler stack
    without involving scheduler directly.  because runcgo
    gets called from matchmg, it is too hard to keep it
    from being called on other stacks.

R=r
DELTA=94  (65 added, 18 deleted, 11 changed)
OCL=35591
CL=35604

15 years agonew builtin.c.boot from arm.
Russ Cox [Mon, 12 Oct 2009 17:12:37 +0000 (10:12 -0700)]
new builtin.c.boot from arm.
node printing fixes.
silence incorrect redeclaration error.

R=ken
OCL=35602
CL=35602

15 years agofix comment on strings.LastIndex.
Russ Cox [Mon, 12 Oct 2009 17:09:35 +0000 (10:09 -0700)]
fix comment on strings.LastIndex.
add bytes.LastIndex.
add strings.Reader.

R=r
DELTA=59  (56 added, 0 deleted, 3 changed)
OCL=35585
CL=35601

15 years agointroduce non-strict mode in xml parser,
Russ Cox [Mon, 12 Oct 2009 06:51:46 +0000 (23:51 -0700)]
introduce non-strict mode in xml parser,
good enough to parse some html.

in reader, add "comment" tag to collect
comment text.

do not allocate during Unmarshal unless pointer is nil.

R=r
DELTA=441  (416 added, 1 deleted, 24 changed)
OCL=35586
CL=35594

15 years agocorrect a design flaw: Atoi etc should not guess the base.
Russ Cox [Mon, 12 Oct 2009 06:46:11 +0000 (23:46 -0700)]
correct a design flaw: Atoi etc should not guess the base.
leave that for Btoi with base == 0.

R=r
DELTA=146  (101 added, 29 deleted, 16 changed)
OCL=35584
CL=35593

15 years agofix build
Russ Cox [Mon, 12 Oct 2009 06:38:44 +0000 (23:38 -0700)]
fix build

TBR=r
OCL=35592
CL=35592

15 years ago64bit and float code generation. fmt compiles but
Kai Backman [Mon, 12 Oct 2009 03:01:11 +0000 (20:01 -0700)]
64bit and float code generation. fmt compiles but
reflect is broken so fmt doesn't work.

go/test: passes 83% (285/342)

R=rsc
APPROVED=rsc
DELTA=415  (240 added, 29 deleted, 146 changed)
OCL=35576
CL=35588

15 years agoPNG encoder now filters.
Nigel Tao [Mon, 12 Oct 2009 02:36:29 +0000 (19:36 -0700)]
PNG encoder now filters.

R=r,rsc
APPROVED=r
DELTA=122  (102 added, 0 deleted, 20 changed)
OCL=35573
CL=35587

15 years agobetter code for allocation through indirection
Rob Pike [Mon, 12 Oct 2009 01:07:47 +0000 (18:07 -0700)]
better code for allocation through indirection

R=rsc
DELTA=11  (3 added, 5 deleted, 3 changed)
OCL=35583
CL=35583

15 years agofix bugs in gob.
Rob Pike [Mon, 12 Oct 2009 00:37:22 +0000 (17:37 -0700)]
fix bugs in gob.
1) didn't handle attempts to encode non-structs properly.
2) if there were multiple indirections involving allocation, didn't allocate the
intermediate cells.
tests added.

R=rsc
DELTA=82  (65 added, 5 deleted, 12 changed)
OCL=35582
CL=35582

15 years agointerpreter checkpoint.
Russ Cox [Sun, 11 Oct 2009 09:35:53 +0000 (02:35 -0700)]
interpreter checkpoint.
  * generate different versions of binary operators
    for each size of int and float, so that proper
    truncating happens after each operation to
    simulate the various sized ops.
  * add slice expressions
  * publish World.CompileStmtList, CompileDeclList, CompileExpr
  * handle type-less expressions in CompileExpr

R=austin
DELTA=1459  (1327 added, 11 deleted, 121 changed)
OCL=34382
CL=35581

15 years agofix float <-> int64 conversions
Kai Backman [Sun, 11 Oct 2009 05:06:26 +0000 (22:06 -0700)]
fix float <-> int64 conversions

R=rsc
APPROVED=rsc
DELTA=25  (25 added, 0 deleted, 0 changed)
OCL=35566
CL=35574

15 years agochange Title to ToTitle for consistency. (the doc comment was already right)
Rob Pike [Sun, 11 Oct 2009 01:56:13 +0000 (18:56 -0700)]
change Title to ToTitle for consistency. (the doc comment was already right)

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35572
CL=35572

15 years agoreallocate library, libraryobj: 50 isn't nearly enough
Rob Pike [Sat, 10 Oct 2009 19:29:06 +0000 (12:29 -0700)]
reallocate library, libraryobj: 50 isn't nearly enough

R=rsc
DELTA=7  (2 added, 0 deleted, 5 changed)
OCL=35569
CL=35569

15 years agoIn the PNG reader inner loop, collapse the two ReadFull calls into one.
Nigel Tao [Sat, 10 Oct 2009 05:44:40 +0000 (22:44 -0700)]
In the PNG reader inner loop, collapse the two ReadFull calls into one.

R=rsc,r
APPROVED=rsc
DELTA=29  (2 added, 4 deleted, 23 changed)
OCL=35460
CL=35565

15 years agoacid bug fix.
Russ Cox [Fri, 9 Oct 2009 23:45:20 +0000 (16:45 -0700)]
acid bug fix.
lock printf output to avoid interlacing debug prints.

R=r
DELTA=10  (7 added, 0 deleted, 3 changed)
OCL=35539
CL=35561

15 years agohandle compiler crash better:
Russ Cox [Fri, 9 Oct 2009 23:44:40 +0000 (16:44 -0700)]
handle compiler crash better:
need to use exec to avoid seeing
shell output about the crash.

R=iant
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=35542
CL=35560

15 years agobug209
Russ Cox [Fri, 9 Oct 2009 23:01:32 +0000 (16:01 -0700)]
bug209

R=ken
OCL=35546
CL=35546

15 years agochange date format in logs - was missing slash between month and day
Rob Pike [Fri, 9 Oct 2009 22:44:57 +0000 (15:44 -0700)]
change date format in logs - was missing slash between month and day

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35526
CL=35540

15 years agokeep a list of all the M's,
Russ Cox [Fri, 9 Oct 2009 22:35:33 +0000 (15:35 -0700)]
keep a list of all the M's,
so that the garbage collector doesn't free them.

R=ken
OCL=35538
CL=35538

15 years agobug209.go
Robert Griesemer [Fri, 9 Oct 2009 22:28:09 +0000 (15:28 -0700)]
bug209.go

R=rsc
DELTA=23  (22 added, 1 deleted, 0 changed)
OCL=35529
CL=35537

15 years agoMove rand.go to rng.go to prepare for some surgery.
Dave Bort [Fri, 9 Oct 2009 22:16:00 +0000 (15:16 -0700)]
Move rand.go to rng.go to prepare for some surgery.

R=rsc
APPROVED=rsc
DELTA=637  (318 added, 318 deleted, 1 changed)
OCL=35534
CL=35536

15 years agotime tests; sort -nr times.out | sed 10q is illuminating.
Russ Cox [Fri, 9 Oct 2009 18:18:32 +0000 (11:18 -0700)]
time tests; sort -nr times.out | sed 10q is illuminating.
cut the slowest tests  down from a few seconds
to under half a second.

R=r
DELTA=21  (6 added, 1 deleted, 14 changed)
OCL=35509
CL=35519

15 years agofix nacl build
Russ Cox [Fri, 9 Oct 2009 18:15:19 +0000 (11:15 -0700)]
fix nacl build

R=r
DELTA=23  (5 added, 0 deleted, 18 changed)
OCL=35510
CL=35518

15 years agofloating point calc, added a few more packages that pass
Kai Backman [Fri, 9 Oct 2009 14:37:49 +0000 (07:37 -0700)]
floating point calc, added a few more packages that pass

go/test: passes 80% (274/340)

R=rsc
APPROVED=rsc
DELTA=61  (59 added, 0 deleted, 2 changed)
OCL=35506
CL=35517

15 years agorewrite errchk in perl for speed (compared to bash)
Russ Cox [Fri, 9 Oct 2009 07:39:32 +0000 (00:39 -0700)]
rewrite errchk in perl for speed (compared to bash)

R=iant
DELTA=125  (51 added, 53 deleted, 21 changed)
OCL=35508
CL=35511

15 years agoadd & fix bug208, from ken.
Russ Cox [Fri, 9 Oct 2009 06:03:34 +0000 (23:03 -0700)]
add & fix bug208, from ken.
fix bug198.

R=ken
OCL=35504
CL=35507

15 years agodupok, gcc compile fix, sync and syscall asm fix
Kai Backman [Fri, 9 Oct 2009 05:16:08 +0000 (22:16 -0700)]
dupok, gcc compile fix, sync and syscall asm fix

R=rsc
APPROVED=rsc
DELTA=27  (18 added, 0 deleted, 9 changed)
OCL=35503
CL=35505

15 years ago- debugging support
Robert Griesemer [Thu, 8 Oct 2009 22:23:49 +0000 (15:23 -0700)]
- debugging support

R=rsc
DELTA=110  (98 added, 0 deleted, 12 changed)
OCL=35487
CL=35490

15 years agomore lgtm files from gofmt
Russ Cox [Thu, 8 Oct 2009 22:14:54 +0000 (15:14 -0700)]
more lgtm files from gofmt

R=gri
OCL=35485
CL=35488

15 years agoOnly clean the relevant installed files, not everything. This
Ian Lance Taylor [Thu, 8 Oct 2009 20:35:46 +0000 (13:35 -0700)]
Only clean the relevant installed files, not everything.  This
should let a 6g build and an 8g build be done in sequence
without stepping on each other.

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35478
CL=35481

15 years ago- rewrite declaration printing to take full use of discardable tabwriter columns
Robert Griesemer [Thu, 8 Oct 2009 15:48:33 +0000 (08:48 -0700)]
- rewrite declaration printing to take full use of discardable tabwriter columns
- honor line breaks in multi-line expressions
- do not add extra indentation to multi-line string lists
- don't put blanks around simple function calls and conversions
- do not modify `` strings
- added extra test cases

R=rsc
DELTA=398  (246 added, 51 deleted, 101 changed)
OCL=35453
CL=35465

15 years agoPNG encoder unit test.
Nigel Tao [Thu, 8 Oct 2009 06:14:23 +0000 (23:14 -0700)]
PNG encoder unit test.

R=rsc,r
APPROVED=r
DELTA=84  (77 added, 6 deleted, 1 changed)
OCL=35456
CL=35458

15 years agoadd & fix bug207: rewritten if condition
Russ Cox [Thu, 8 Oct 2009 05:19:42 +0000 (22:19 -0700)]
add & fix bug207: rewritten if condition
was discarding initialization work.

R=ken
OCL=35454
CL=35457

15 years agobetter handling of mistaken top-level variable
Russ Cox [Wed, 7 Oct 2009 21:55:12 +0000 (14:55 -0700)]
better handling of mistaken top-level variable
references during the parsing of :=.  the base
problem is that when reading

a,b,c,d

the parser makes those refer to existing variables,
which might create a few stub top-level ones
for undefined names, but then if a := is the next
token, we need to undo those stubs.

this was causing problems in multifile packages
in which one file used a := variable named rpc
and the other imported a package named rpc.

R=ken
OCL=35446
CL=35446

15 years agodo not import testing twice when testing testing.
Russ Cox [Wed, 7 Oct 2009 21:52:44 +0000 (14:52 -0700)]
do not import testing twice when testing testing.

R=r
DELTA=3  (2 added, 0 deleted, 1 changed)
OCL=35443
CL=35445

15 years agoapply gofmt to rand reflect regexp rpc runtime sort strconv strings sync syscall...
Russ Cox [Wed, 7 Oct 2009 18:55:06 +0000 (11:55 -0700)]
apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync syscall testing time unicode unsafe utf8

R=gri
DELTA=1409  (79 added, 24 deleted, 1306 changed)
OCL=35415
CL=35437

15 years agosupport for "hard" and "soft" tabs:
Robert Griesemer [Wed, 7 Oct 2009 17:55:45 +0000 (10:55 -0700)]
support for "hard" and "soft" tabs:
- soft-tab separated columns can be discarded if empty and DiscardEmptyColumns is set
- hard-tab separated columns are never discarded

R=rsc
DELTA=63  (42 added, 7 deleted, 14 changed)
OCL=35421
CL=35435

15 years agofactor portable object+library bits out of 5l/6l/8l into ld
Russ Cox [Wed, 7 Oct 2009 07:11:59 +0000 (00:11 -0700)]
factor portable object+library bits out of 5l/6l/8l into ld

R=r
DELTA=3214  (904 added, 2260 deleted, 50 changed)
OCL=35425
CL=35427

15 years agomake reader more useful
Russ Cox [Wed, 7 Oct 2009 05:03:47 +0000 (22:03 -0700)]
make reader more useful
for lower-level clients:
* expose p.Skip
* expose p.Unmarshal
* wildcard struct field "Any"
* unmarshal into bool
* unmarshal into xml.Name
* unmarshal into pointer

R=r
DELTA=61  (50 added, 5 deleted, 6 changed)
OCL=35372
CL=35422

15 years agoapply gofmt to go, gob, hash, http, image, io, json, log
Russ Cox [Wed, 7 Oct 2009 02:41:51 +0000 (19:41 -0700)]
apply gofmt to go, gob, hash, http, image, io, json, log

R=gri
DELTA=1359  (138 added, 32 deleted, 1189 changed)
OCL=35408
CL=35420

15 years agoapply gofmt to malloc math once os
Russ Cox [Wed, 7 Oct 2009 02:40:35 +0000 (19:40 -0700)]
apply gofmt to malloc math once os

R=gri
DELTA=566  (4 added, 14 deleted, 548 changed)
OCL=35410
CL=35419

15 years agoapply gofmt to auto-generated syscall files
Russ Cox [Wed, 7 Oct 2009 02:38:30 +0000 (19:38 -0700)]
apply gofmt to auto-generated syscall files

R=gri
DELTA=4023  (104 added, 27 deleted, 3892 changed)
OCL=35416
CL=35418

15 years ago5l library loading, 64 bit entry points
Kai Backman [Wed, 7 Oct 2009 02:00:30 +0000 (19:00 -0700)]
5l library loading, 64 bit entry points

R=rsc
APPROVED=rsc
DELTA=58  (52 added, 3 deleted, 3 changed)
OCL=35417
CL=35417

15 years ago- moved 3 functions from syscall_linux to _386 and _amd64 (arm lacks them)
Kai Backman [Tue, 6 Oct 2009 23:39:38 +0000 (16:39 -0700)]
- moved 3 functions from syscall_linux to _386 and _amd64 (arm lacks them)
- 64 bit OMINUS
- added bunch of missing arm syscalls

R=rsc
APPROVED=rsc
DELTA=203  (189 added, 3 deleted, 11 changed)
OCL=35412
CL=35414

15 years agofix build - missing from 35404
Russ Cox [Tue, 6 Oct 2009 23:06:34 +0000 (16:06 -0700)]
fix build - missing from 35404

TBR=gri
OCL=35411
CL=35411

15 years ago- set uint type for flags
Robert Griesemer [Tue, 6 Oct 2009 22:44:13 +0000 (15:44 -0700)]
- set uint type for flags
- simplified some code

R=rsc
DELTA=19  (0 added, 0 deleted, 19 changed)
OCL=35405
CL=35407

15 years agoapply gofmt to datafmt, ebnf, exec, expvar, flag, fmt
Russ Cox [Tue, 6 Oct 2009 22:38:57 +0000 (15:38 -0700)]
apply gofmt to datafmt, ebnf, exec, expvar, flag, fmt

R=gri
DELTA=456  (6 added, 3 deleted, 447 changed)
OCL=35398
CL=35406

15 years agomore comment work.
Russ Cox [Tue, 6 Oct 2009 22:28:47 +0000 (15:28 -0700)]
more comment work.
got rid of regexps.
primary bug fix is that // inside /* */ do not get stripped anymore,
so that the text inside

/*
int a;
// int b;
int c;
*/

is

int a;
// int b;
int c;

before, the "int b;" line was being uncommented too.

R=gri
DELTA=65  (13 added, 42 deleted, 10 changed)
OCL=35334
CL=35404

15 years ago- simplify "needsBlanks" logic for identifiers and strings
Robert Griesemer [Tue, 6 Oct 2009 22:22:03 +0000 (15:22 -0700)]
- simplify "needsBlanks" logic for identifiers and strings

TBR=rsc
DELTA=16  (10 added, 4 deleted, 2 changed)
OCL=35379
CL=35403

15 years agoadd IgnoreEmptyColumns feature to tabwriter
Robert Griesemer [Tue, 6 Oct 2009 22:10:36 +0000 (15:10 -0700)]
add IgnoreEmptyColumns feature to tabwriter

R=rsc
DELTA=96  (74 added, 2 deleted, 20 changed)
OCL=35391
CL=35402

15 years agofix build
Rob Pike [Tue, 6 Oct 2009 22:08:32 +0000 (15:08 -0700)]
fix build

R=rsc
DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=35387
CL=35401

15 years agoanother round of gofmt applications
Russ Cox [Tue, 6 Oct 2009 21:55:39 +0000 (14:55 -0700)]
another round of gofmt applications

R=gri
DELTA=900  (106 added, 31 deleted, 763 changed)
OCL=35384
CL=35396

15 years agogofmt on crypto, debug
Russ Cox [Tue, 6 Oct 2009 21:55:06 +0000 (14:55 -0700)]
gofmt on crypto, debug

R=gri
DELTA=2560  (127 added, 177 deleted, 2256 changed)
OCL=35388
CL=35395

15 years agocleaned up cgen() to be a bit more straightforward.
Kai Backman [Tue, 6 Oct 2009 21:48:39 +0000 (14:48 -0700)]
cleaned up cgen() to be a bit more straightforward.

R=rsc
APPROVED=rsc
DELTA=104  (46 added, 56 deleted, 2 changed)
OCL=35392
CL=35394

15 years agoapply gofmt to the LGTM-marked files from 34501
Russ Cox [Tue, 6 Oct 2009 18:42:55 +0000 (11:42 -0700)]
apply gofmt to the LGTM-marked files from 34501
that have not changed since I applied gofmt.

R=gri
DELTA=456  (77 added, 3 deleted, 376 changed)
OCL=35378
CL=35383

15 years agoChange description of time.Time.ZoneOffset to specify east is +ve.
Adam Langley [Tue, 6 Oct 2009 17:01:39 +0000 (10:01 -0700)]
Change description of time.Time.ZoneOffset to specify east is +ve.

Currently, the description says that +ve numbers are westwards of UTC.
Typically, timezones are specified with +ve numbers running east of Greenwich.
For example, San Francisco is specified as UTC-8. Also, when calling
time.Localtime(), the following is returned on my box in PDT:

{Year:2009 Month:10 Day:5 Hour:18 Minute:55 Second:6 Weekday:1 ZoneOffset:-25200
Zone:PDT}

Note that the ZoneOffset is negative. This leads me to suspect that the
description is mistaken.

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35356
CL=35377

15 years agochange tabwidth to 8 for tests
Robert Griesemer [Tue, 6 Oct 2009 16:52:37 +0000 (09:52 -0700)]
change tabwidth to 8 for tests

R=rsc
DELTA=39  (0 added, 0 deleted, 39 changed)
OCL=35360
CL=35376

15 years ago64 bit cmp and some sgen tweaks
Kai Backman [Tue, 6 Oct 2009 16:47:46 +0000 (09:47 -0700)]
64 bit cmp and some sgen tweaks

go/test: passes 75% (256/339)

R=rsc
APPROVED=rsc
DELTA=142  (53 added, 4 deleted, 85 changed)
OCL=35367
CL=35375

15 years agomove cas out, add dummy runcgo.
Kai Backman [Tue, 6 Oct 2009 04:52:10 +0000 (21:52 -0700)]
move cas out, add dummy runcgo.

R=rsc
APPROVED=rsc
DELTA=73  (45 added, 28 deleted, 0 changed)
OCL=35363
CL=35366

15 years agofix arm test to actual return success/fail and expose runcgo
Kai Backman [Tue, 6 Oct 2009 04:51:34 +0000 (21:51 -0700)]
fix arm test to actual return success/fail and expose runcgo
build breakage.

R=rsc
APPROVED=rsc
DELTA=10  (4 added, 2 deleted, 4 changed)
OCL=35362
CL=35365

15 years agoallow multiple -L options
Rob Pike [Tue, 6 Oct 2009 04:31:50 +0000 (21:31 -0700)]
allow multiple -L options

R=rsc
DELTA=31  (15 added, 3 deleted, 13 changed)
OCL=35364
CL=35364

15 years agovarious go printer fixes:
Robert Griesemer [Tue, 6 Oct 2009 02:37:34 +0000 (19:37 -0700)]
various go printer fixes:
- better handling of line breaks in expression lists
- fixed line breaks around label decls
- remove ()'s around if, for, switch expressions
- simple index expressions don't require blanks
- better line breaks around declarations of different kind

R=rsc
DELTA=404  (369 added, 8 deleted, 27 changed)
OCL=35354
CL=35359

15 years agoremove a file from idempotency test so that the entire suite passes
Robert Griesemer [Tue, 6 Oct 2009 02:32:10 +0000 (19:32 -0700)]
remove a file from idempotency test so that the entire suite passes

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35355
CL=35358

15 years agoFirst cut at a PNG encoder.
Nigel Tao [Tue, 6 Oct 2009 00:34:15 +0000 (17:34 -0700)]
First cut at a PNG encoder.
TODOs include filtering, and a unit test.

R=rsc
APPROVED=r
DELTA=280  (249 added, 1 deleted, 30 changed)
OCL=35262
CL=35348

15 years agocomment tweaks; implement precise name
Russ Cox [Mon, 5 Oct 2009 23:45:24 +0000 (16:45 -0700)]
comment tweaks; implement precise name
character sets.

R=r
DELTA=339  (257 added, 1 deleted, 81 changed)
OCL=35344
CL=35346

15 years agoadd a little more saturation to the background of <pre> so it doesn't disappear on...
Rob Pike [Mon, 5 Oct 2009 22:17:30 +0000 (15:17 -0700)]
add a little more saturation to the background of <pre> so it doesn't disappear on bright monitors.
verified as acceptable on my calibrated home monitor.

R=gri
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35340
CL=35342

15 years agoXML parser
Russ Cox [Mon, 5 Oct 2009 22:10:00 +0000 (15:10 -0700)]
XML parser

R=r
DELTA=546  (545 added, 0 deleted, 1 changed)
OCL=35318
CL=35341

15 years agoXML lexing
Russ Cox [Mon, 5 Oct 2009 22:00:50 +0000 (15:00 -0700)]
XML lexing

The lexer is the bottom level.
Most clients will use the Unmarshal method,
not yet implemented, which will behave like
json.Unmarshal.

R=r
DELTA=1115  (766 added, 219 deleted, 130 changed)
OCL=35316
CL=35339

15 years agoaddressing gri's comments.
Rob Pike [Mon, 5 Oct 2009 21:49:51 +0000 (14:49 -0700)]
addressing gri's comments.

R=gri
DELTA=31  (7 added, 17 deleted, 7 changed)
OCL=35336
CL=35338

15 years agoslices
Rob Pike [Mon, 5 Oct 2009 21:48:57 +0000 (14:48 -0700)]
slices
methods on slices, pointers and values.

R=iant,rsc,gri
DELTA=173  (150 added, 1 deleted, 22 changed)
OCL=35333
CL=35337

15 years agopreserve blank lines in // comments
Russ Cox [Mon, 5 Oct 2009 18:24:01 +0000 (11:24 -0700)]
preserve blank lines in // comments

R=gri
DELTA=32  (13 added, 12 deleted, 7 changed)
OCL=35317
CL=35332

15 years agoupdate json comments
Russ Cox [Mon, 5 Oct 2009 18:23:44 +0000 (11:23 -0700)]
update json comments

R=r
DELTA=16  (4 added, 2 deleted, 10 changed)
OCL=35320
CL=35331

15 years agoa few fixups. delete the TODO block.
Rob Pike [Mon, 5 Oct 2009 18:13:56 +0000 (11:13 -0700)]
a few fixups. delete the TODO block.

R=rsc
DELTA=23  (0 added, 20 deleted, 3 changed)
OCL=35330
CL=35330

15 years agoAdd write support for the GNU tar binary numeric field extension.
David Symonds [Mon, 5 Oct 2009 11:08:24 +0000 (04:08 -0700)]
Add write support for the GNU tar binary numeric field extension.

R=rsc
APPROVED=rsc
DELTA=102  (89 added, 1 deleted, 12 changed)
OCL=35321
CL=35327

15 years agofix build
Russ Cox [Sat, 3 Oct 2009 22:02:11 +0000 (15:02 -0700)]
fix build

TBR=r
OCL=35308
CL=35308

15 years agoadd cgo test that doesn't depend on
Russ Cox [Sat, 3 Oct 2009 18:33:51 +0000 (11:33 -0700)]
add cgo test that doesn't depend on
non-standard libraries and add to build.

R=r
DELTA=211  (210 added, 0 deleted, 1 changed)
OCL=35293
CL=35307

15 years agoFixing HTTP POST handling to work with Chrome and Safari.
Bill Neubauer [Sat, 3 Oct 2009 18:09:01 +0000 (11:09 -0700)]
Fixing HTTP POST handling to work with Chrome and Safari.

request.go does not handle Content-Type correctly for the definition of
Media Types.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7

R=rsc
APPROVED=rsc
DELTA=44  (42 added, 0 deleted, 2 changed)
OCL=35274
CL=35306

15 years agoclean more
Russ Cox [Sat, 3 Oct 2009 17:38:03 +0000 (10:38 -0700)]
clean more

R=r
DELTA=40  (9 added, 3 deleted, 28 changed)
OCL=35277
CL=35305

15 years ago8c, 8l dynamic loading support.
Russ Cox [Sat, 3 Oct 2009 17:37:12 +0000 (10:37 -0700)]
8c, 8l dynamic loading support.
better mach binaries.
cgo working on darwin+linux amd64+386.
eliminated context switches - pi is 30x faster.
add libcgo to build.

on snow leopard:
  - non-cgo binaries work; all tests pass.
  - cgo binaries work on amd64 but not 386.

R=r
DELTA=2031  (1316 added, 626 deleted, 89 changed)
OCL=35264
CL=35304

15 years agoexpand error regexp in dns test
Russ Cox [Sat, 3 Oct 2009 17:35:49 +0000 (10:35 -0700)]
expand error regexp in dns test

R=r
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=35292
CL=35303

15 years agogarbage collections, conversions, concurrency
Rob Pike [Sat, 3 Oct 2009 16:38:47 +0000 (09:38 -0700)]
garbage collections, conversions, concurrency

R=iant,rsc,gri
DELTA=106  (87 added, 8 deleted, 11 changed)
OCL=35298
CL=35302

15 years ago- improved handling of white space around declarations and statements
Robert Griesemer [Sat, 3 Oct 2009 05:24:05 +0000 (22:24 -0700)]
- improved handling of white space around declarations and statements
- extra tests

R=rsc
DELTA=366  (264 added, 37 deleted, 65 changed)
OCL=35299
CL=35301

15 years agoadd comment about C API.
Russ Cox [Sat, 3 Oct 2009 01:07:27 +0000 (18:07 -0700)]
add comment about C API.
somehow managed not to Put this before.

R=r
DELTA=3  (3 added, 0 deleted, 0 changed)
OCL=35289
CL=35294

15 years agofinal Native Client package - av
Russ Cox [Fri, 2 Oct 2009 20:25:26 +0000 (13:25 -0700)]
final Native Client package - av

R=r
DELTA=894  (887 added, 0 deleted, 7 changed)
OCL=35115
CL=35286

15 years ago- allow parenthesized [...]T types as in: ([...]int){}
Robert Griesemer [Fri, 2 Oct 2009 17:03:25 +0000 (10:03 -0700)]
- allow parenthesized [...]T types as in: ([...]int){}
- added extra tests

R=rsc
DELTA=55  (37 added, 0 deleted, 18 changed)
OCL=35250
CL=35276

15 years agoa few more code generation bugs and an interface alignment issue.
Kai Backman [Fri, 2 Oct 2009 16:06:51 +0000 (09:06 -0700)]
a few more code generation bugs and an interface alignment issue.

go/test: passes 74% (251/339)

R=rsc
APPROVED=rsc
DELTA=40  (34 added, 0 deleted, 6 changed)
OCL=35254
CL=35275

15 years agoChange deflate.go's default compression level from 4 to 6.
Nigel Tao [Fri, 2 Oct 2009 00:50:16 +0000 (17:50 -0700)]
Change deflate.go's default compression level from 4 to 6.

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35208
CL=35261

15 years agoreplace "ideal" with "untyped"
Robert Griesemer [Thu, 1 Oct 2009 23:58:17 +0000 (16:58 -0700)]
replace "ideal" with "untyped"

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35242
CL=35258

15 years agouse the notion of "untyped constant" instead of "ideal constant"
Robert Griesemer [Thu, 1 Oct 2009 21:12:18 +0000 (14:12 -0700)]
use the notion of "untyped constant" instead of "ideal constant"

R=iant
DELTA=13  (1 added, 0 deleted, 12 changed)
OCL=35241
CL=35246

15 years agoFactored out boilerplate from all html docs in doc directory:
Robert Griesemer [Thu, 1 Oct 2009 21:08:00 +0000 (14:08 -0700)]
Factored out boilerplate from all html docs in doc directory:
- the first HTML comment in those files is extracted as page
  title when serving them
- lib/godoc.html is top-level template for all pages served
- experimented a bit with package documentation layout
  (feedback welcome)
- various related cleanups

TODO:
- The / page (doc/root.html) content repeats links that are
  in the navigation bar. It needs to be cleaned up.

R=rsc
DELTA=826  (86 added, 692 deleted, 48 changed)
OCL=35230
CL=35245

15 years agogenerate float registers correctly.
Kai Backman [Thu, 1 Oct 2009 20:52:55 +0000 (13:52 -0700)]
generate float registers correctly.

go/test: passes 71% (242/339)

R=rsc
APPROVED=rsc
DELTA=9  (5 added, 0 deleted, 4 changed)
OCL=35233
CL=35243