]>
Cypherpunks repositories - gostls13.git/log
Robert Griesemer [Fri, 19 Sep 2008 22:49:55 +0000 (15:49 -0700)]
Updated spec:
- clarified constants and constant expressions
- clarified type of array composite literals (fixed vs open arrays)
- clarified type of map composite literals (need to use '&' to get
a map pointer)
- added proposal for "if-else" (TBD)
- added TODO w/ respect to "x, ok = <-ch" (and for arrays)
R=r
DELTA=51 (35 added, 0 deleted, 16 changed)
OCL=15573
CL=15575
Russ Cox [Fri, 19 Sep 2008 22:23:16 +0000 (15:23 -0700)]
export an os.Error constructor
R=r
DELTA=20 (6 added, 7 deleted, 7 changed)
OCL=15569
CL=15571
Ian Lance Taylor [Fri, 19 Sep 2008 21:39:49 +0000 (14:39 -0700)]
Check for specific error messages in the testsuite. This
permits testing that the compiler emits error messages for
specific lines that match egrep regexps. The desired error
messages are expressed using comments of the form
// ERROR "regexp"
R=r
DELTA=90 (73 added, 8 deleted, 9 changed)
OCL=15513
CL=15566
Rob Pike [Fri, 19 Sep 2008 19:52:00 +0000 (12:52 -0700)]
more nuanced handling of usage message to allow user control.
also print argv(0) in default message
R=gri
DELTA=37 (21 added, 9 deleted, 7 changed)
OCL=15540
CL=15554
Robert Griesemer [Fri, 19 Sep 2008 19:12:28 +0000 (12:12 -0700)]
- simplified parser by better factoring
R=r
OCL=15539
CL=15542
Russ Cox [Fri, 19 Sep 2008 18:55:46 +0000 (11:55 -0700)]
add gobuild.
use gobuild-generated Makefile for math and os.
other makefile tweaks.
move math/main.go to test/math.go
R=r
OCL=15529
CL=15537
Robert Griesemer [Fri, 19 Sep 2008 17:56:35 +0000 (10:56 -0700)]
- fix for out-of-bounds error found by rsc
- removed tests that may have wrong Go code from Makefile
R=r
OCL=15532
CL=15532
Russ Cox [Fri, 19 Sep 2008 16:39:09 +0000 (09:39 -0700)]
avoid dereferencing nil type on undefined name.
R=ken
DELTA=12 (12 added, 0 deleted, 0 changed)
OCL=15506
CL=15528
Robert Griesemer [Fri, 19 Sep 2008 06:30:32 +0000 (23:30 -0700)]
- fixed another parser bug, now correctly parse more tests
R=r
OCL=15518
CL=15518
Robert Griesemer [Fri, 19 Sep 2008 06:16:22 +0000 (23:16 -0700)]
- added item to TODO list in go_spec
- filed a bug
R=r
OCL=15517
CL=15517
Robert Griesemer [Fri, 19 Sep 2008 06:09:07 +0000 (23:09 -0700)]
- fixed old test cases with wrong syntax
- added more test cases to Makefile
- fixed another parser issue (possibly a 6g bug - to be tracked down)
R=r
OCL=15516
CL=15516
Robert Griesemer [Fri, 19 Sep 2008 05:53:54 +0000 (22:53 -0700)]
- fixed bug which prevented parser.go from compiling
(typo in ptr decl lead to an unresolved forward declaration)
- fixed parser bugs
- fixed Makefile
- now successfully parses most code
Issues:
- composite literals (cannot be identified easily from syntax alone)
- new(T, ...) (cannot be identified easily from syntax alone since
new is not a keyword and thus could be a different function then
the allocation function at which point "new((x + y))" is legal,
but the inner "(x" looks like the beginning of a function type)
R=r
OCL=15515
CL=15515
Robert Griesemer [Thu, 18 Sep 2008 23:58:37 +0000 (16:58 -0700)]
First cut at a Go pretty printer:
- code scavenged from Go-in-Go front-end (will merge back)
- using "symbol-table" free parsing to build AST
- no printing yet
R=r
OCL=15504
CL=15504
Russ Cox [Thu, 18 Sep 2008 22:56:46 +0000 (15:56 -0700)]
proper handling of signals.
do not run init on g0.
R=r
DELTA=161 (124 added, 23 deleted, 14 changed)
OCL=15490
CL=15497
Russ Cox [Thu, 18 Sep 2008 22:54:21 +0000 (15:54 -0700)]
whitespace
R=r
DELTA=0 (0 added, 0 deleted, 0 changed)
OCL=15492
CL=15494
Russ Cox [Thu, 18 Sep 2008 22:50:28 +0000 (15:50 -0700)]
clean blyacc
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=15489
CL=15493
Russ Cox [Thu, 18 Sep 2008 22:41:20 +0000 (15:41 -0700)]
add -K flag to check stack underflow
R=ken
DELTA=38 (36 added, 0 deleted, 2 changed)
OCL=15482
CL=15491
Russ Cox [Thu, 18 Sep 2008 22:09:48 +0000 (15:09 -0700)]
make blyacc too
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=15488
CL=15488
Russ Cox [Thu, 18 Sep 2008 22:06:43 +0000 (15:06 -0700)]
make Makefiles safe for parallel make
use -j4 (4-way parallel) in make.bash.
halves time for make.bash on r45
also add libregexp, acid to default build
R=r
DELTA=90 (39 added, 37 deleted, 14 changed)
OCL=15485
CL=15487
Russ Cox [Thu, 18 Sep 2008 22:06:14 +0000 (15:06 -0700)]
make acid build on linux.
recognize symbol table info again on 64-only linux.
R=r
DELTA=11 (9 added, 0 deleted, 2 changed)
OCL=15486
CL=15486
Russ Cox [Thu, 18 Sep 2008 20:32:14 +0000 (13:32 -0700)]
more helpful messages for name-related syntax errors.
R=ken
OCL=15477
CL=15479
Russ Cox [Wed, 17 Sep 2008 23:20:00 +0000 (16:20 -0700)]
time & date.
rename AddrToInt, StatToInt, etc -> BytePtr, StatPtr, ...
R=r
OCL=15450
CL=15456
Robert Griesemer [Wed, 17 Sep 2008 21:26:01 +0000 (14:26 -0700)]
- updated printing of chan types
R=r
OCL=15448
CL=15448
Russ Cox [Wed, 17 Sep 2008 21:09:44 +0000 (14:09 -0700)]
Linux bison rejects // comments outside { code snippets }
R=ken
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=15444
CL=15446
Russ Cox [Wed, 17 Sep 2008 21:08:52 +0000 (14:08 -0700)]
fix printing of -(1<<63)
R=r
OCL=15441
CL=15445
Robert Griesemer [Wed, 17 Sep 2008 20:57:11 +0000 (13:57 -0700)]
adjusted doc to incorporate new channel notation
(still a couple of TODO's with respect to the new
notation).
R=r
DELTA=71 (10 added, 11 deleted, 50 changed)
OCL=15419
CL=15443
Russ Cox [Wed, 17 Sep 2008 20:49:23 +0000 (13:49 -0700)]
add network listening & tests
R=r,presotto
OCL=15410
CL=15440
Robert Griesemer [Wed, 17 Sep 2008 20:05:39 +0000 (13:05 -0700)]
- changed my scanner/parser to accept new channel syntax
R=r
OCL=15439
CL=15439
Rob Pike [Wed, 17 Sep 2008 19:14:52 +0000 (12:14 -0700)]
tutorial code:
tweak a program or two
delete unused programs
add shell script to run them all
R=gri
DELTA=213 (62 added, 147 deleted, 4 changed)
OCL=15435
CL=15437
Ken Thompson [Wed, 17 Sep 2008 03:51:50 +0000 (20:51 -0700)]
assignment in select
with new select operator
R=r
OCL=15418
CL=15418
Rob Pike [Wed, 17 Sep 2008 02:40:38 +0000 (19:40 -0700)]
update to new communications syntax
R=gri
OCL=15417
CL=15417
Rob Pike [Wed, 17 Sep 2008 02:33:40 +0000 (19:33 -0700)]
update tests to new communications syntax
powser1.go has not been tested - waiting for compiler to catch up
R=ken
OCL=15415
CL=15415
Rob Pike [Wed, 17 Sep 2008 02:14:33 +0000 (19:14 -0700)]
new grammar:
binary <- is send
unary <- is recv
-< is gone
case a := <-ch: works in select
case a = <-ch: works in select
support for new cases is not yet in the compiler but all non-select
code works
second CL will update affected go source
R=ken
OCL=15414
CL=15414
Russ Cox [Tue, 16 Sep 2008 21:15:54 +0000 (14:15 -0700)]
fix / work around bugs in bufio test
R=r
DELTA=11 (8 added, 0 deleted, 3 changed)
OCL=15405
CL=15405
Rob Pike [Tue, 16 Sep 2008 21:03:43 +0000 (14:03 -0700)]
fix some broken tests (tests themselves were wrong)
R=gri,rsc
OCL=15310
CL=15402
Rob Pike [Tue, 16 Sep 2008 21:02:41 +0000 (14:02 -0700)]
var bug is fixed
R=rsc
OCL=15400
CL=15400
Russ Cox [Tue, 16 Sep 2008 20:42:47 +0000 (13:42 -0700)]
preliminary network - just Dial for now
R=r,presotto
OCL=15393
CL=15399
Rob Pike [Tue, 16 Sep 2008 20:14:44 +0000 (13:14 -0700)]
section on service multiplexing
R=gri
DELTA=75 (57 added, 4 deleted, 14 changed)
OCL=15394
CL=15398
Russ Cox [Tue, 16 Sep 2008 19:33:00 +0000 (12:33 -0700)]
acid fixes etc. still not perfect.
R=r
DELTA=764 (694 added, 38 deleted, 32 changed)
OCL=15285
CL=15395
Rob Pike [Tue, 16 Sep 2008 18:00:11 +0000 (11:00 -0700)]
replace 235 with sieve - less problematic
add programs, not yet described, to demonstrate servers.
R=gri
DELTA=279 (177 added, 16 deleted, 86 changed)
OCL=15380
CL=15389
Ken Thompson [Tue, 16 Sep 2008 02:07:23 +0000 (19:07 -0700)]
redeclaring methods
R=r
OCL=15375
CL=15375
Ken Thompson [Mon, 15 Sep 2008 22:03:10 +0000 (15:03 -0700)]
bug - divide and mod of a byte
R=r
OCL=15370
CL=15370
Rob Pike [Mon, 15 Sep 2008 21:27:15 +0000 (14:27 -0700)]
update bugs
delete bug100.go since the compiler is doing what we agreed.
R=gri
OCL=15367
CL=15367
Rob Pike [Mon, 15 Sep 2008 18:48:37 +0000 (11:48 -0700)]
develop interfaces through cats
sort
2,3,5
R=gri
DELTA=648 (647 added, 0 deleted, 1 changed)
OCL=15315
CL=15352
Ken Thompson [Mon, 15 Sep 2008 00:29:50 +0000 (17:29 -0700)]
robs wednesday bug
R=r
OCL=15327
CL=15327
Ken Thompson [Sun, 14 Sep 2008 23:57:55 +0000 (16:57 -0700)]
methods on any type
-- but only *struct tested
R=r
OCL=15326
CL=15326
Ken Thompson [Sat, 13 Sep 2008 21:51:39 +0000 (14:51 -0700)]
package name on signatures thru rename
R=r
OCL=15314
CL=15314
Ken Thompson [Sat, 13 Sep 2008 21:49:36 +0000 (14:49 -0700)]
Automated g4 rollback of changelist 15312.
*** Reason for rollback ***
<enter reason for rollback>
*** Original change description ***
correct signal name thru package rename
R=r
OCL=15313
CL=15313
Ken Thompson [Sat, 13 Sep 2008 21:46:19 +0000 (14:46 -0700)]
correct signal name thru package rename
R=r
OCL=15312
CL=15312
Ken Thompson [Sat, 13 Sep 2008 21:37:56 +0000 (14:37 -0700)]
snprints for safety
R=r
OCL=15311
CL=15311
Rob Pike [Sat, 13 Sep 2008 20:13:36 +0000 (13:13 -0700)]
remove special trap-handling code for array out of bounds -
compiler doesn't generate them any more
R=ken
OCL=15309
CL=15309
Robert Griesemer [Sat, 13 Sep 2008 00:39:29 +0000 (17:39 -0700)]
test program to generate multiples of a set of factors
(as written, factors are 2, 3, and 5)
R=r
OCL=15286
CL=15286
Ken Thompson [Fri, 12 Sep 2008 23:48:35 +0000 (16:48 -0700)]
1 got rid if static 'fn wo return' test
2 added dynamic calls to throw for array bounds
and 'fn wo return'
3 small optimization on index[constant]
R=r
OCL=15281
CL=15281
Russ Cox [Fri, 12 Sep 2008 23:42:53 +0000 (16:42 -0700)]
buffered input & output
R=r
DELTA=812 (803 added, 0 deleted, 9 changed)
OCL=15225
CL=15280
Russ Cox [Fri, 12 Sep 2008 23:35:02 +0000 (16:35 -0700)]
array literals not initialized
R=r
DELTA=11 (11 added, 0 deleted, 0 changed)
OCL=15222
CL=15276
Russ Cox [Fri, 12 Sep 2008 23:17:36 +0000 (16:17 -0700)]
change rand names to match type names
R=r
DELTA=66 (19 added, 9 deleted, 38 changed)
OCL=15232
CL=15265
Russ Cox [Fri, 12 Sep 2008 23:12:20 +0000 (16:12 -0700)]
rudimentary string utilities.
R=r
DELTA=314 (306 added, 8 deleted, 0 changed)
OCL=15074
CL=15263
Rob Pike [Fri, 12 Sep 2008 23:03:16 +0000 (16:03 -0700)]
next section: i/o package that has structs, methods
R=gri
DELTA=137 (134 added, 0 deleted, 3 changed)
OCL=15251
CL=15259
Rob Pike [Fri, 12 Sep 2008 19:35:06 +0000 (12:35 -0700)]
fix up linux trap handling - INTB 5 gives SEGV
R=rsc
OCL=15244
CL=15244
Robert Griesemer [Fri, 12 Sep 2008 19:26:22 +0000 (12:26 -0700)]
- hopefully improved language on label scopes
R=r
DELTA=18 (12 added, 0 deleted, 6 changed)
OCL=15200
CL=15240
Rob Pike [Fri, 12 Sep 2008 19:17:13 +0000 (12:17 -0700)]
fix silly portability bug
R=gri
OCL=15238
CL=15238
Robert Griesemer [Fri, 12 Sep 2008 19:09:43 +0000 (12:09 -0700)]
- updated code to work again with latest 6g version
R=r
OCL=15235
CL=15235
Rob Pike [Fri, 12 Sep 2008 16:44:41 +0000 (09:44 -0700)]
- catch trace traps
- disassemble the instructions in a trace trap to see if it's a run-time trap
- if so, print relevant info
- avoid double-printing traceback on panic
R=ken,rsc
DELTA=66 (50 added, 7 deleted, 9 changed)
OCL=15199
CL=15224
Russ Cox [Fri, 12 Sep 2008 16:43:21 +0000 (09:43 -0700)]
out of bounds bug
R=r
DELTA=9 (9 added, 0 deleted, 0 changed)
OCL=15223
CL=15223
Russ Cox [Fri, 12 Sep 2008 15:37:08 +0000 (08:37 -0700)]
bug 100 - spurious return warnings
R=r
OCL=15221
CL=15221
Ken Thompson [Fri, 12 Sep 2008 02:09:25 +0000 (19:09 -0700)]
bug075
R=r
OCL=15192
CL=15192
Robert Griesemer [Fri, 12 Sep 2008 01:23:28 +0000 (18:23 -0700)]
- simplified the ideal number terminology for better readability
R=r
DELTA=24 (0 added, 10 deleted, 14 changed)
OCL=15188
CL=15188
Robert Griesemer [Fri, 12 Sep 2008 00:48:20 +0000 (17:48 -0700)]
- rewrote section on numeric literals (grammar easier to read,
separate between ints and floats, added language regarding the
type of numeric literals)
- added language with respect to the scope of labels
- introduced ideal types for the purpose of the spec
- added language to expressions, operands
- added some more formal language about ideal type conversion
(probably not 100% correct yet)
R=r
DELTA=145 (69 added, 4 deleted, 72 changed)
OCL=15165
CL=15186
Russ Cox [Fri, 12 Sep 2008 00:19:38 +0000 (17:19 -0700)]
new bug
R=r
DELTA=34 (34 added, 0 deleted, 0 changed)
OCL=15178
CL=15181
Robert Griesemer [Fri, 12 Sep 2008 00:16:50 +0000 (17:16 -0700)]
- map composites should be of correct map type (instead of pointer type)
R=r
OCL=15180
CL=15180
Robert Griesemer [Fri, 12 Sep 2008 00:11:16 +0000 (17:11 -0700)]
- 2 bugs with composite literals
R=r
OCL=15179
CL=15179
Robert Griesemer [Thu, 11 Sep 2008 23:17:25 +0000 (16:17 -0700)]
- added 2 bugs
- moved bug 060 back into bugs
R=r
OCL=15175
CL=15175
Rob Pike [Thu, 11 Sep 2008 22:48:42 +0000 (15:48 -0700)]
fixes for funcs without returns
R=ken
OCL=15170
CL=15170
Ken Thompson [Thu, 11 Sep 2008 22:44:45 +0000 (15:44 -0700)]
function wo return is an error - not warning
R=r
OCL=15169
CL=15169
Robert Griesemer [Thu, 11 Sep 2008 22:38:22 +0000 (15:38 -0700)]
- fixed missing return issues
R=r
OCL=15168
CL=15168
Ken Thompson [Thu, 11 Sep 2008 22:23:01 +0000 (15:23 -0700)]
implement discussed function wo return statement
R=r
OCL=15166
CL=15166
Rob Pike [Thu, 11 Sep 2008 22:09:10 +0000 (15:09 -0700)]
pull O_RDONLY etc. up to os library
R=rsc
DELTA=16 (14 added, 0 deleted, 2 changed)
OCL=15156
CL=15163
Rob Pike [Thu, 11 Sep 2008 20:40:17 +0000 (13:40 -0700)]
make syscall use strings for file names
tweak os to adjust
move StringToBytes into syscall, at least for now
this program still works:
package main
import os "os"
func main() {
os.Stdout.WriteString("hello, world\n");
a, b := os.NewFD(77).WriteString("no way");
os.Stdout.WriteString(b.String() + "\n");
}
R=rsc
DELTA=263 (59 added, 176 deleted, 28 changed)
OCL=15153
CL=15153
Rob Pike [Thu, 11 Sep 2008 20:03:46 +0000 (13:03 -0700)]
add lib/os to standard build
break lib/os into multiple source files
R=rsc
DELTA=189 (178 added, 4 deleted, 7 changed)
OCL=15149
CL=15152
Rob Pike [Thu, 11 Sep 2008 17:21:02 +0000 (10:21 -0700)]
add sections about types and constants
R=gri
DELTA=133 (124 added, 0 deleted, 9 changed)
OCL=15122
CL=15143
Ken Thompson [Thu, 11 Sep 2008 02:49:35 +0000 (19:49 -0700)]
bug generating duplicate interface signatures
R=r
OCL=15119
CL=15119
Rob Pike [Thu, 11 Sep 2008 00:11:04 +0000 (17:11 -0700)]
growing the tutorial
R=gri
OCL=15115
CL=15115
Ken Thompson [Wed, 10 Sep 2008 23:45:41 +0000 (16:45 -0700)]
bug in type of first argument to slice
R=r
OCL=15113
CL=15113
Rob Pike [Wed, 10 Sep 2008 22:23:28 +0000 (15:23 -0700)]
make FD a struct with Read, Write, etc.
as methods
R=gri,rsc
DELTA=99 (56 added, 31 deleted, 12 changed)
OCL=15103
CL=15103
Robert Griesemer [Wed, 10 Sep 2008 21:21:42 +0000 (14:21 -0700)]
- added bug093.go
R=r
DELTA=80 (78 added, 2 deleted, 0 changed)
OCL=15094
CL=15101
Rob Pike [Wed, 10 Sep 2008 21:19:03 +0000 (14:19 -0700)]
add an Error type to be used as a singleton pointer
put all the code in one file for now to work around compiler bug
R=gri,rsc
DELTA=168 (120 added, 41 deleted, 7 changed)
OCL=15100
CL=15100
Ian Lance Taylor [Wed, 10 Sep 2008 20:24:47 +0000 (13:24 -0700)]
Eliminate duplication of MethodDecl nonterminal by renaming
the one associated with interface types.
R=gri
DELTA=3 (0 added, 0 deleted, 3 changed)
OCL=15092
CL=15096
Robert Griesemer [Wed, 10 Sep 2008 20:00:32 +0000 (13:00 -0700)]
- incorporated bug fixes, todo's as suggested by rsc
R=r
DELTA=32 (11 added, 2 deleted, 19 changed)
OCL=15087
CL=15093
Rob Pike [Wed, 10 Sep 2008 19:14:39 +0000 (12:14 -0700)]
rudimentary beginnings of soon-to-be-real os library
R=gri
DELTA=76 (76 added, 0 deleted, 0 changed)
OCL=15086
CL=15088
Rob Pike [Wed, 10 Sep 2008 18:46:05 +0000 (11:46 -0700)]
- stub for tutorial
- tools to make it easy to embed programs
R=gri
DELTA=103 (97 added, 2 deleted, 4 changed)
OCL=15085
CL=15085
Robert Griesemer [Wed, 10 Sep 2008 01:13:08 +0000 (18:13 -0700)]
- added convenience wrappers for sort
(work now with Ken's latest compiler fix)
- exoanded test cases accordingly
- fixed a type in the spec (thx r)
R=r
DELTA=65 (62 added, 2 deleted, 1 changed)
OCL=15050
CL=15050
Ken Thompson [Tue, 9 Sep 2008 22:47:31 +0000 (15:47 -0700)]
fixed bug in certain
evaluation of complex literals
R=r
OCL=15036
CL=15036
Rob Pike [Tue, 9 Sep 2008 19:46:21 +0000 (12:46 -0700)]
update golden
R=gri
OCL=15014
CL=15014
Russ Cox [Tue, 9 Sep 2008 18:50:14 +0000 (11:50 -0700)]
go threads for OS X
R=r
OCL=14944
CL=15013
Robert Griesemer [Tue, 9 Sep 2008 17:48:14 +0000 (10:48 -0700)]
- moved spec todo's into spec (as html comment)
- cleaned up todo.txt a bit
R=r
OCL=15009
CL=15009
Robert Griesemer [Tue, 9 Sep 2008 17:37:19 +0000 (10:37 -0700)]
- added missing language to almost all types
- fixed several examples to use new function type syntax
- added list of open spec issues to todo.txt
R=r
DELTA=143 (88 added, 8 deleted, 47 changed)
OCL=14974
CL=15007
Rob Pike [Tue, 9 Sep 2008 02:30:14 +0000 (19:30 -0700)]
fix bug in stack limit calculation - was setting limit reg in wrong place.
R=ken
OCL=14981
CL=14981
Robert Griesemer [Tue, 9 Sep 2008 01:50:35 +0000 (18:50 -0700)]
fixed sorting.go to use proper composite literal {}'s instead of
"conversion"
R=r
OCL=14976
CL=14976
Robert Griesemer [Tue, 9 Sep 2008 01:43:42 +0000 (18:43 -0700)]
- added sort package and test case
R=r
OCL=14975
CL=14975
Russ Cox [Mon, 8 Sep 2008 22:22:55 +0000 (15:22 -0700)]
go linux x86-64 kernel fixes:
* change .gosymtab and .gopclntab to section 7 (note)
* start INITTEXT at 4MB, not 4KB
R=r
OCL=14953
CL=14959