]>
Cypherpunks repositories - gostls13.git/log
Rob Pike [Tue, 10 Mar 2009 01:00:41 +0000 (18:00 -0700)]
delete float80 from libraries
R=rsc
DELTA=40 (0 added, 38 deleted, 2 changed)
OCL=25969
CL=25969
Rob Pike [Tue, 10 Mar 2009 00:47:15 +0000 (17:47 -0700)]
document reflect.
R=rsc
DELTA=201 (90 added, 0 deleted, 111 changed)
OCL=25904
CL=25966
Robert Griesemer [Tue, 10 Mar 2009 00:30:38 +0000 (17:30 -0700)]
Fixing comment.
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=25956
CL=25960
Robert Griesemer [Tue, 10 Mar 2009 00:16:42 +0000 (17:16 -0700)]
scanner.go documentation
R=r
DELTA=22 (8 added, 3 deleted, 11 changed)
OCL=25947
CL=25955
Robert Griesemer [Tue, 10 Mar 2009 00:13:15 +0000 (17:13 -0700)]
token.go documentation
R=r
DELTA=34 (24 added, 2 deleted, 8 changed)
OCL=25946
CL=25954
Robert Griesemer [Mon, 9 Mar 2009 19:41:53 +0000 (12:41 -0700)]
- directory rename lang -> go
R=rsc
DELTA=2070 (1035 added, 1035 deleted, 0 changed)
OCL=25939
CL=25939
Ken Thompson [Sun, 8 Mar 2009 01:33:42 +0000 (17:33 -0800)]
binary search for constant case statements.
R=r
OCL=25890
CL=25890
Rob Pike [Sun, 8 Mar 2009 00:57:01 +0000 (16:57 -0800)]
document bufio
R=rsc
DELTA=61 (27 added, 2 deleted, 32 changed)
OCL=25877
CL=25889
Rob Pike [Sun, 8 Mar 2009 00:56:44 +0000 (16:56 -0800)]
document os
R=rsc
DELTA=143 (96 added, 0 deleted, 47 changed)
OCL=25876
CL=25888
Rob Pike [Sun, 8 Mar 2009 00:56:21 +0000 (16:56 -0800)]
document hash
R=rsc
DELTA=50 (33 added, 4 deleted, 13 changed)
OCL=25878
CL=25887
Rob Pike [Sun, 8 Mar 2009 00:56:05 +0000 (16:56 -0800)]
document time
R=rsc
DELTA=42 (23 added, 1 deleted, 18 changed)
OCL=25881
CL=25886
Russ Cox [Sat, 7 Mar 2009 01:51:31 +0000 (17:51 -0800)]
document Conn interface better, in preparation
for per-method interface documentation
by mkdoc.pl.
implement timeouts on network reads
and use them in dns client.
also added locks on i/o to ensure writes
are not interlaced.
R=r
DELTA=340 (272 added, 25 deleted, 43 changed)
OCL=25799
CL=25874
Ken Thompson [Sat, 7 Mar 2009 01:50:43 +0000 (17:50 -0800)]
1. type switches
2. fixed fault on bug128
3. got rid of typeof
4. fixed bug in t,ok = I2T
R=r
OCL=25873
CL=25873
Rob Pike [Sat, 7 Mar 2009 01:29:25 +0000 (17:29 -0800)]
document sort
R=rsc
DELTA=20 (20 added, 0 deleted, 0 changed)
OCL=25869
CL=25872
Rob Pike [Sat, 7 Mar 2009 01:20:53 +0000 (17:20 -0800)]
document syscall. all we do is redirect elsewhere.
R=rsc
DELTA=7 (7 added, 0 deleted, 0 changed)
OCL=25859
CL=25871
Robert Griesemer [Sat, 7 Mar 2009 00:54:26 +0000 (16:54 -0800)]
weekend snapshot
- fixed a minor bug
- some initial code to extract interface of a package
R=r
OCL=25866
CL=25866
Robert Griesemer [Sat, 7 Mar 2009 00:11:40 +0000 (16:11 -0800)]
- wrote simple template substitution package
- use template in pretty printing now instead of hand-coded mechanism
R=r
OCL=25863
CL=25863
Rob Pike [Sat, 7 Mar 2009 00:03:59 +0000 (16:03 -0800)]
delete vestigial references to package syscall
R=rsc
DELTA=8 (0 added, 5 deleted, 3 changed)
OCL=25857
CL=25861
Rob Pike [Fri, 6 Mar 2009 11:43:44 +0000 (03:43 -0800)]
document io
R=rsc
DELTA=44 (30 added, 4 deleted, 10 changed)
OCL=25819
CL=25835
Rob Pike [Fri, 6 Mar 2009 11:36:50 +0000 (03:36 -0800)]
document once
R=rsc
DELTA=14 (7 added, 5 deleted, 2 changed)
OCL=25818
CL=25834
Rob Pike [Fri, 6 Mar 2009 11:35:38 +0000 (03:35 -0800)]
document fmt.
the description of the format verbs still needs to be done.
R=rsc
DELTA=288 (88 added, 12 deleted, 188 changed)
OCL=25814
CL=25833
Rob Pike [Fri, 6 Mar 2009 11:22:02 +0000 (03:22 -0800)]
document unicode, such as it is
R=rsc
DELTA=18 (9 added, 0 deleted, 9 changed)
OCL=25817
CL=25832
Rob Pike [Fri, 6 Mar 2009 03:26:27 +0000 (19:26 -0800)]
document rand
R=rsc
DELTA=27 (16 added, 8 deleted, 3 changed)
OCL=25804
CL=25813
Rob Pike [Fri, 6 Mar 2009 03:22:06 +0000 (19:22 -0800)]
document container/intvector
R=rsc
DELTA=15 (15 added, 0 deleted, 0 changed)
OCL=25794
CL=25812
Rob Pike [Fri, 6 Mar 2009 03:15:13 +0000 (19:15 -0800)]
document utf8
R=rsc
DELTA=18 (12 added, 0 deleted, 6 changed)
OCL=25807
CL=25811
Robert Griesemer [Fri, 6 Mar 2009 02:44:21 +0000 (18:44 -0800)]
- using doc template for gds now
- no interface extraction yet
R=r
OCL=25808
CL=25808
Russ Cox [Fri, 6 Mar 2009 02:26:12 +0000 (18:26 -0800)]
new approach for generating sysimport.c
(renamed to avoid any conflict with old p4 copies).
this approach doesn't require auto-generating
files also kept in p4, so it should be easier on
go users who don't sync very often.
this approach will be more work for go developers:
builtin.c needs to be copied to builtin.c.boot in p4
as new functions are added. mkbuiltin does this
for certain $USERs to help us remember.
R=r
DELTA=343 (176 added, 162 deleted, 5 changed)
OCL=25803
CL=25805
Rob Pike [Fri, 6 Mar 2009 01:50:36 +0000 (17:50 -0800)]
document testing and incidentally gotest
R=rsc
DELTA=25 (25 added, 0 deleted, 0 changed)
OCL=25798
CL=25802
Robert Griesemer [Fri, 6 Mar 2009 01:15:36 +0000 (17:15 -0800)]
Lots of cleanups in prep. for checking in parser and ast into lib:
- removed any symbol table stuff
- some interface cleanup
- removed lot's of dead wood
- half the support for type switches (simple form)
- name capitalization
Several rounds to come.
R=r
OCL=25797
CL=25797
Rob Pike [Fri, 6 Mar 2009 01:02:34 +0000 (17:02 -0800)]
document strings
R=rsc
DELTA=9 (4 added, 0 deleted, 5 changed)
OCL=25793
CL=25795
Russ Cox [Thu, 5 Mar 2009 23:57:03 +0000 (15:57 -0800)]
bug085 bug129
R=ken
OCL=25787
CL=25791
Ken Thompson [Thu, 5 Mar 2009 23:49:34 +0000 (15:49 -0800)]
new switch implementation
in preparation of type switch.
no functional change (yet).
R=r
OCL=25784
CL=25788
Russ Cox [Thu, 5 Mar 2009 23:48:12 +0000 (15:48 -0800)]
net: doc, doc-inspired cleanup
R=r
DELTA=368 (87 added, 14 deleted, 267 changed)
OCL=25773
CL=25786
Russ Cox [Thu, 5 Mar 2009 23:29:04 +0000 (15:29 -0800)]
strconv: doc
R=r
DELTA=110 (64 added, 19 deleted, 27 changed)
OCL=25761
CL=25782
Robert Griesemer [Thu, 5 Mar 2009 23:01:54 +0000 (15:01 -0800)]
revert QualifiedIdent to old production
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=25732
CL=25777
Russ Cox [Thu, 5 Mar 2009 21:35:45 +0000 (13:35 -0800)]
misc doc
R=r
DELTA=50 (28 added, 0 deleted, 22 changed)
OCL=25763
CL=25770
Rob Pike [Thu, 5 Mar 2009 21:31:03 +0000 (13:31 -0800)]
delete deprecated files.
deletion beats documentation for deprecation.
R=rsc,gri
DELTA=509 (2 added, 490 deleted, 17 changed)
OCL=25737
CL=25768
Russ Cox [Thu, 5 Mar 2009 21:31:01 +0000 (13:31 -0800)]
math: doc
R=r
DELTA=173 (74 added, 14 deleted, 85 changed)
OCL=25753
CL=25767
Rob Pike [Thu, 5 Mar 2009 21:30:39 +0000 (13:30 -0800)]
document vector
R=rsc
DELTA=36 (30 added, 0 deleted, 6 changed)
OCL=25740
CL=25766
Rob Pike [Thu, 5 Mar 2009 06:46:44 +0000 (22:46 -0800)]
log: document
R=rsc
DELTA=26 (17 added, 1 deleted, 8 changed)
OCL=25731
CL=25734
Rob Pike [Thu, 5 Mar 2009 06:43:51 +0000 (22:43 -0800)]
flag: document
also write to stderr not stdout
R=rsc
DELTA=48 (38 added, 2 deleted, 8 changed)
OCL=25729
CL=25733
Rob Pike [Thu, 5 Mar 2009 06:03:35 +0000 (22:03 -0800)]
delete bogus vestige
R=rsc
OCL=25730
CL=25730
Rob Pike [Thu, 5 Mar 2009 05:41:12 +0000 (21:41 -0800)]
typos
R=gri
DELTA=3 (0 added, 1 deleted, 2 changed)
OCL=25728
CL=25728
Russ Cox [Thu, 5 Mar 2009 05:30:07 +0000 (21:30 -0800)]
sync: add documentation
R=r
DELTA=63 (57 added, 1 deleted, 5 changed)
OCL=25727
CL=25727
Rob Pike [Thu, 5 Mar 2009 05:06:38 +0000 (21:06 -0800)]
remove some incorrect capitalizations.
add commentary.
R=rsc
DELTA=231 (41 added, 24 deleted, 166 changed)
OCL=25724
CL=25726
Rob Pike [Thu, 5 Mar 2009 04:39:39 +0000 (20:39 -0800)]
fix an HTML glitch.
say a little more about package main.
R=rsc
DELTA=7 (4 added, 0 deleted, 3 changed)
OCL=25725
CL=25725
Russ Cox [Thu, 5 Mar 2009 01:38:37 +0000 (17:38 -0800)]
reject invalid map key types at compile time
R=ken
OCL=25720
CL=25720
Russ Cox [Thu, 5 Mar 2009 01:37:47 +0000 (17:37 -0800)]
fix build
TBR=gri
OCL=25719
CL=25719
Russ Cox [Thu, 5 Mar 2009 01:19:21 +0000 (17:19 -0800)]
Suggested tweaks up to package section.
Major ones:
* Be consistent: "numeric type" and "arithmetic operator".
* if/swtch take "simple statement" not "short variable declaration".
* There was a comment that implied for x,y := range z() might
evaluate z() multiple times. I deleted it.
R=r,gri
DELTA=124 (24 added, 4 deleted, 96 changed)
OCL=25706
CL=25715
Robert Griesemer [Thu, 5 Mar 2009 01:16:58 +0000 (17:16 -0800)]
- missing makefile
R=r
OCL=25714
CL=25714
Robert Griesemer [Thu, 5 Mar 2009 01:13:12 +0000 (17:13 -0800)]
Created new directory lib/lang:
- move scanner to into lib/lang
- added test
- adjusted various make and build files
R=r
DELTA=1731 (973 added, 753 deleted, 5 changed)
OCL=25668
CL=25713
Russ Cox [Wed, 4 Mar 2009 22:50:25 +0000 (14:50 -0800)]
disallow ordinary-type.(T), as in spec.
R=ken
OCL=25705
CL=25705
Russ Cox [Wed, 4 Mar 2009 22:44:51 +0000 (14:44 -0800)]
change Go logo to link to home page
fix grammar for forward declaration of interface, struct.
move array down next to slice.
fix type equal example for structs.
R=r,gri
DELTA=247 (122 added, 114 deleted, 11 changed)
OCL=25694
CL=25704
Robert Griesemer [Wed, 4 Mar 2009 02:25:07 +0000 (18:25 -0800)]
Preparation for moving scanner into a lib:
- separated out token definition from scanner
- cleaned up token and scanner implementation
- added comments to exported interfaces
R=r
OCL=25665
CL=25665
Rob Pike [Wed, 4 Mar 2009 00:10:15 +0000 (16:10 -0800)]
rephrase redundancy.
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=25652
CL=25656
Rob Pike [Wed, 4 Mar 2009 00:09:40 +0000 (16:09 -0800)]
enable pretty in run.bash
R=rsc
DELTA=5 (0 added, 0 deleted, 5 changed)
OCL=25651
CL=25655
Rob Pike [Wed, 4 Mar 2009 00:09:12 +0000 (16:09 -0800)]
update missed test case to {}
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=25648
CL=25654
Robert Griesemer [Wed, 4 Mar 2009 00:00:06 +0000 (16:00 -0800)]
- allow ()'s and {}'s for now when parsing calls/composite literals
- require ()'s around composite literals at the if/for/switch control clause level
- fixed a nasty bug: passing a value instead of a pointer to a value to an interface
variable - and not noticing that the value is copied
R=r
OCL=25649
CL=25649
Russ Cox [Tue, 3 Mar 2009 23:40:30 +0000 (15:40 -0800)]
The final piece of the alternative to my parens proposal
(i.e., the status quo with braces in composite literals).
DELTA=20 (16 added, 0 deleted, 4 changed)
OCL=25640
CL=25646
Russ Cox [Tue, 3 Mar 2009 16:41:02 +0000 (08:41 -0800)]
back to T{x}, stricter handling of T(x) vs x.(T)
R=ken
DELTA=131 (60 added, 41 deleted, 30 changed)
OCL=25617
CL=25633
Russ Cox [Tue, 3 Mar 2009 16:39:12 +0000 (08:39 -0800)]
Automated g4 rollback of changelist 25024,
plus significant hand editing.
Back to T{x} for composite literals.
R=r
OCL=25612
CL=25632
Russ Cox [Tue, 3 Mar 2009 16:10:25 +0000 (08:10 -0800)]
clarify conversions vs type guards.
allow conversions between equal types.
R=r
DELTA=15 (4 added, 4 deleted, 7 changed)
OCL=25618
CL=25630
Robert Griesemer [Tue, 3 Mar 2009 04:27:09 +0000 (20:27 -0800)]
scanner cleanup - getting it ready to as a library
- removed unneeded code that accumulated over time
- change src from string to []byte (perhaps should be io.Read
but that has some other disadvantages)
- simplified interface
R=r
OCL=25615
CL=25615
Rob Pike [Tue, 3 Mar 2009 04:17:12 +0000 (20:17 -0800)]
redo poor example of slices.
R=rsc
OCL=25614
CL=25614
Rob Pike [Tue, 3 Mar 2009 03:13:40 +0000 (19:13 -0800)]
address most of the editorial comments through "types"
R=rsc
DELTA=41 (9 added, 4 deleted, 28 changed)
OCL=25611
CL=25611
Robert Griesemer [Tue, 3 Mar 2009 01:52:58 +0000 (17:52 -0800)]
- itob
- more test cases
R=rsc
DELTA=97 (52 added, 4 deleted, 41 changed)
OCL=25585
CL=25607
Rob Pike [Tue, 3 Mar 2009 01:52:52 +0000 (17:52 -0800)]
delete paragraph about unimplemented select-on-type feature.
change () to {} in all composite literals
DELTA=20 (0 added, 7 deleted, 13 changed)
OCL=25604
CL=25606
Rob Pike [Tue, 3 Mar 2009 00:17:29 +0000 (16:17 -0800)]
Packages.
DELTA=170 (73 added, 21 deleted, 76 changed)
OCL=25556
CL=25594
Russ Cox [Tue, 3 Mar 2009 00:12:04 +0000 (16:12 -0800)]
fix names: s/fd/r/
R=r
DELTA=9 (0 added, 0 deleted, 9 changed)
OCL=25593
CL=25593
Rob Pike [Sat, 28 Feb 2009 00:47:48 +0000 (16:47 -0800)]
most of the rest.
only the package section is untouched.
R=gri
DELTA=542 (186 added, 70 deleted, 286 changed)
OCL=25485
CL=25532
Robert Griesemer [Sat, 28 Feb 2009 00:28:36 +0000 (16:28 -0800)]
fix a bug: do not print a ';' after a label if there wasn't one
R=r
OCL=25526
CL=25528
Robert Griesemer [Fri, 27 Feb 2009 23:40:17 +0000 (15:40 -0800)]
Steps towards a general scanner/parser library for Go:
- converted more of AST and parser to use interfaces and explicit
structs for individual Go constructs (can be replaced now with
interface calls such that the parser becomes AST structure
independent, as suggested by rsc)
- added more tests (find all .go files under GOROOT)
- (temporarily) lost html links for identifiers when generating
html output
- TODO: lots of cleanups
R=r
OCL=25518
CL=25518
Rob Pike [Fri, 27 Feb 2009 00:37:23 +0000 (16:37 -0800)]
finish types.
expressions. (they were in pretty good shape; mostly cosmetic and HTML edits)
R=gri
DELTA=655 (226 added, 97 deleted, 332 changed)
OCL=25459
CL=25481
Robert Griesemer [Thu, 26 Feb 2009 00:58:57 +0000 (16:58 -0800)]
fixed a typo
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=25449
CL=25449
Rob Pike [Thu, 26 Feb 2009 00:31:42 +0000 (16:31 -0800)]
bug130 is fixed
R=ken
OCL=25448
CL=25448
Rob Pike [Thu, 26 Feb 2009 00:20:44 +0000 (16:20 -0800)]
Continue editing types section.
Do a little work polishing the "zero value" discussion.
R=gri
DELTA=486 (129 added, 120 deleted, 237 changed)
OCL=25392
CL=25444
Rob Pike [Wed, 25 Feb 2009 01:47:45 +0000 (17:47 -0800)]
complete types
R=gri
DELTA=29 (0 added, 12 deleted, 17 changed)
OCL=25388
CL=25391
Rob Pike [Tue, 24 Feb 2009 23:18:21 +0000 (15:18 -0800)]
text and formatting are now folded into go_spec; delete
OCL=25292
CL=25383
Rob Pike [Tue, 24 Feb 2009 23:17:59 +0000 (15:17 -0800)]
Updated the section on Types.
Moved assignment compatibility to its own small section. Although most rules are type-specific,
some are not and it reduces redundancy to combine them.
Also, more experimentally, wrote a section on comparison compatibility.
R=gri
DELTA=382 (125 added, 122 deleted, 135 changed)
OCL=25355
CL=25382
Ken Thompson [Tue, 24 Feb 2009 06:43:04 +0000 (22:43 -0800)]
bug 130 (go/defer) interface.method()
R=r
OCL=25356
CL=25356
Rob Pike [Tue, 24 Feb 2009 03:26:07 +0000 (19:26 -0800)]
Move Types before Declarations and Scopes.
This is the only change in this CL: only rearrangement, no content change, so subsequent edits will be easier to understand.
R=gri
OCL=25353
CL=25353
Rob Pike [Tue, 24 Feb 2009 03:22:05 +0000 (19:22 -0800)]
Work on declarations, unsafe, alignment.
Change <tt> to <code>
R=gri
DELTA=664 (222 added, 189 deleted, 253 changed)
OCL=25294
CL=25352
Robert Griesemer [Tue, 24 Feb 2009 01:16:55 +0000 (17:16 -0800)]
- fixed a bug with //-comment parsing
R=r
OCL=25343
CL=25343
Rob Pike [Sun, 22 Feb 2009 23:39:50 +0000 (15:39 -0800)]
add logo to documentation directory.
R=rsc
OCL=25293
CL=25293
Ken Thompson [Sat, 21 Feb 2009 20:41:34 +0000 (12:41 -0800)]
bug with select :=
R=r
OCL=25278
CL=25278
Russ Cox [Fri, 20 Feb 2009 23:35:20 +0000 (15:35 -0800)]
draft of memory model.
R=tgs
DELTA=545 (545 added, 0 deleted, 0 changed)
OCL=25212
CL=25268
Rob Pike [Fri, 20 Feb 2009 21:36:14 +0000 (13:36 -0800)]
Rewrite lexical section.
Put grammar productions into a box with a separate background color.
R=gri
DELTA=397 (132 added, 49 deleted, 216 changed)
OCL=25235
CL=25258
Rob Pike [Fri, 20 Feb 2009 03:49:56 +0000 (19:49 -0800)]
autogenerate the table of contents
R=rsc
DELTA=149 (1 added, 145 deleted, 3 changed)
OCL=25231
CL=25234
Rob Pike [Fri, 20 Feb 2009 01:31:36 +0000 (17:31 -0800)]
Fix most HTML errors.
Cut introduction.
Start rewrite.
R=gri
DELTA=201 (20 added, 118 deleted, 63 changed)
OCL=25226
CL=25229
Robert Griesemer [Fri, 20 Feb 2009 00:49:10 +0000 (16:49 -0800)]
go_spec.txt formatted in html.
No textual changes except for html formatting.
Seems like a fine intermediate step.
R=r
DELTA=7638 (4079 added, 3559 deleted, 0 changed)
OCL=25211
CL=25224
Robert Griesemer [Fri, 20 Feb 2009 00:47:58 +0000 (16:47 -0800)]
- permit ()'s in types (TODO: update spec)
- accept embedded interfaces in interfaces
- missing: output incorrect, but at least all source code is accepted again
R=r
OCL=25223
CL=25223
Rob Pike [Fri, 20 Feb 2009 00:20:00 +0000 (16:20 -0800)]
Finish the lexical section.
DELTA=176 (172 added, 0 deleted, 4 changed)
OCL=25182
CL=25222
Rob Pike [Wed, 18 Feb 2009 23:39:51 +0000 (15:39 -0800)]
First piece of Go reference manual.
R=ken,gri,rsc
DELTA=185 (185 added, 0 deleted, 0 changed)
OCL=25133
CL=25169
Russ Cox [Wed, 18 Feb 2009 18:07:46 +0000 (10:07 -0800)]
allow parens to disambiguate types.
examples:
chan <- (chan int)
chan (<- chan int)
(map[string]func())("a": main)
R=ken
OCL=25151
CL=25151
Rob Pike [Wed, 18 Feb 2009 03:59:23 +0000 (19:59 -0800)]
drop trailing slashes - missed comment from last review
TBR=rsc
OCL=25135
CL=25135
Rob Pike [Wed, 18 Feb 2009 03:35:01 +0000 (19:35 -0800)]
more fun with triv.go: flags and arguments
R=rsc
DELTA=23 (23 added, 0 deleted, 0 changed)
OCL=25088
CL=25134
Russ Cox [Tue, 17 Feb 2009 21:40:28 +0000 (13:40 -0800)]
few more Sizeof.
R=r
DELTA=3 (0 added, 1 deleted, 2 changed)
OCL=25106
CL=25106
Ken Thompson [Tue, 17 Feb 2009 21:10:57 +0000 (13:10 -0800)]
fix unsafe.Sizeof("abc")
R=rsc
OCL=25105
CL=25105
Rob Pike [Tue, 17 Feb 2009 05:55:37 +0000 (21:55 -0800)]
use proper strconv in string values.
make test a little stronger.
R=rsc
DELTA=94 (27 added, 39 deleted, 28 changed)
OCL=25085
CL=25087
Russ Cox [Tue, 17 Feb 2009 04:44:29 +0000 (20:44 -0800)]
comment nit
R=r
DELTA=2 (0 added, 2 deleted, 0 changed)
OCL=25081
CL=25084