]>
Cypherpunks repositories - gostls13.git/log
Russ Cox [Tue, 6 Jan 2009 17:53:38 +0000 (09:53 -0800)]
delete blyacc
R=r
DELTA=3562 (0 added, 3560 deleted, 2 changed)
OCL=22112
CL=22114
Russ Cox [Tue, 6 Jan 2009 17:53:30 +0000 (09:53 -0800)]
make acid build with bison.
ask for bison explicitly in cc, gc to try to
avoid problems with other yaccs that
might be installed.
R=r
DELTA=29 (10 added, 2 deleted, 17 changed)
OCL=22110
CL=22113
Russ Cox [Tue, 6 Jan 2009 17:41:38 +0000 (09:41 -0800)]
8a, 8c, and 8l from inferno distribution
R=r
DELTA=19539 (19539 added, 0 deleted, 0 changed)
OCL=22109
CL=22109
Russ Cox [Tue, 6 Jan 2009 01:32:23 +0000 (17:32 -0800)]
add comments and delete dead code
R=ken
OCL=22078
CL=22080
Rob Pike [Mon, 5 Jan 2009 21:09:34 +0000 (13:09 -0800)]
clean up some tests
R=rsc
DELTA=10 (1 added, 2 deleted, 7 changed)
OCL=22033
CL=22033
Russ Cox [Mon, 5 Jan 2009 19:18:20 +0000 (11:18 -0800)]
change time.Tick test to use 100ms intervals.
now passes even under loaded conditions on r45.
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=22019
CL=22022
Russ Cox [Mon, 5 Jan 2009 19:18:15 +0000 (11:18 -0800)]
fix 6a line number bug -
was incrementing lineno twice for
the \n after a // comment.
R=r
DELTA=3 (0 added, 2 deleted, 1 changed)
OCL=21984
CL=22021
Robert Griesemer [Mon, 5 Jan 2009 19:17:26 +0000 (11:17 -0800)]
A first attempt to capture the type changes.
Instead of trying to make open arrays look like arrays (which they aren't,
they just look like them), I decided to call them "slice types". As a result
they have value semantics, and one can really talk about what they really are.
Note:
- There are lots of missing details
- There are probably lots of mistakes
Looking for some initial feedback.
R=r
DELTA=444 (180 added, 189 deleted, 75 changed)
OCL=21769
CL=22020
Ian Lance Taylor [Tue, 30 Dec 2008 23:03:46 +0000 (15:03 -0800)]
Test for a go statement which calls a method on an interface.
R=ken
DELTA=20 (20 added, 0 deleted, 0 changed)
OCL=21889
CL=21929
Ken Thompson [Tue, 30 Dec 2008 22:03:54 +0000 (14:03 -0800)]
one bignum test fails
has to do with printing
patched it out
R=r
OCL=21921
CL=21923
Ken Thompson [Tue, 30 Dec 2008 22:02:20 +0000 (14:02 -0800)]
allow slices (open arrays) to be
receivers in methods.
put back original code for hilbert/bignum
R=r
OCL=21910
CL=21920
Ken Thompson [Fri, 26 Dec 2008 22:42:20 +0000 (14:42 -0800)]
diagnostic to catch pointer to
rvalue promoted to method receiver.
fixes to bignum that failed.
R=r
OCL=21827
CL=21827
Rob Pike [Tue, 23 Dec 2008 17:34:38 +0000 (09:34 -0800)]
put array test in table, with TODO to fix when arrays work in interfaces.
TBR=rsc
OCL=21766
CL=21766
Rob Pike [Mon, 22 Dec 2008 19:04:17 +0000 (11:04 -0800)]
print array (not just *array) using %v
TBR=rsc
DELTA=34 (33 added, 0 deleted, 1 changed)
OCL=21718
CL=21718
Rob Pike [Sun, 21 Dec 2008 02:15:34 +0000 (18:15 -0800)]
hilbert now runs.
it's 25% faster and runs with 40% less memory allocation than before
R=rsc
DELTA=20 (15 added, 0 deleted, 5 changed)
OCL=21690
CL=21690
Rob Pike [Sun, 21 Dec 2008 01:25:43 +0000 (17:25 -0800)]
update to new regime.
lines marked BUG are rewrites working around 6g bug.
R=rsc
DELTA=161 (42 added, 2 deleted, 117 changed)
OCL=21689
CL=21689
Russ Cox [Sun, 21 Dec 2008 00:30:44 +0000 (16:30 -0800)]
fix new(T) if type T []int.
make sure type of expr is T not just []int
R=ken
OCL=21688
CL=21688
Ken Thompson [Sun, 21 Dec 2008 00:07:56 +0000 (16:07 -0800)]
regfree
R=r
OCL=21685
CL=21687
Rob Pike [Sun, 21 Dec 2008 00:07:43 +0000 (16:07 -0800)]
update map test.
convert to printf.
increase count to 1000 - maps are faster now.
add cases for structure values as key and maps.
R=rsc
DELTA=197 (66 added, 18 deleted, 113 changed)
OCL=21683
CL=21686
Ken Thompson [Sun, 21 Dec 2008 00:05:12 +0000 (16:05 -0800)]
LEAQ bug
R=r
OCL=21684
CL=21684
Rob Pike [Sat, 20 Dec 2008 21:38:29 +0000 (13:38 -0800)]
fix some tests. only 3 remain broken (complit, hilbert, initcomma).
leaving golden.out alone for now.
R=ken
DELTA=13 (0 added, 0 deleted, 13 changed)
OCL=21682
CL=21682
Russ Cox [Sat, 20 Dec 2008 01:11:54 +0000 (17:11 -0800)]
[] and struct in interfaces.
other [] cleanup.
convert() is gone.
R=r
DELTA=352 (144 added, 68 deleted, 140 changed)
OCL=21660
CL=21662
Russ Cox [Fri, 19 Dec 2008 23:52:21 +0000 (15:52 -0800)]
allow Listen on ":9999" as an alias for "0.0.0.0:9999"
R=r
DELTA=21 (12 added, 0 deleted, 9 changed)
OCL=21653
CL=21653
Ian Lance Taylor [Fri, 19 Dec 2008 22:32:00 +0000 (14:32 -0800)]
Update for source code changes.
R=gri
DELTA=15 (13 added, 1 deleted, 1 changed)
OCL=21632
CL=21639
Ken Thompson [Fri, 19 Dec 2008 22:26:52 +0000 (14:26 -0800)]
array compare (except = != nil) are illegal
R=r
OCL=21637
CL=21637
Ken Thompson [Fri, 19 Dec 2008 22:04:25 +0000 (14:04 -0800)]
portability bug
cant assign to closed array
R=r
OCL=21634
CL=21634
Russ Cox [Fri, 19 Dec 2008 20:18:44 +0000 (12:18 -0800)]
fix new(bool) error message
R=ken
OCL=21616
CL=21616
Russ Cox [Fri, 19 Dec 2008 20:05:22 +0000 (12:05 -0800)]
chan and map of [] and struct
R=r
DELTA=192 (145 added, 8 deleted, 39 changed)
OCL=21609
CL=21614
Russ Cox [Fri, 19 Dec 2008 17:03:44 +0000 (09:03 -0800)]
g4 open sysimport.c before writing it
R=r
DELTA=1 (1 added, 0 deleted, 0 changed)
OCL=21577
CL=21603
Russ Cox [Fri, 19 Dec 2008 17:03:24 +0000 (09:03 -0800)]
new error messages
x.go:11: illegal types for operand: AS
*I
*T
(*interface vs *struct)
R=r
DELTA=10 (8 added, 0 deleted, 2 changed)
OCL=21457
CL=21602
Russ Cox [Fri, 19 Dec 2008 11:13:39 +0000 (03:13 -0800)]
malloc bug fixes.
use malloc by default.
free stacks.
R=r
DELTA=424 (333 added, 29 deleted, 62 changed)
OCL=21553
CL=21584
Russ Cox [Fri, 19 Dec 2008 11:06:19 +0000 (03:06 -0800)]
fmt and reflect updates for recent changes
TBR=r
OCL=21580
CL=21583
Russ Cox [Fri, 19 Dec 2008 11:05:54 +0000 (03:05 -0800)]
compiler changes for *chan -> chan; *map -> map; new(T) -> new(*T)
mainly a syntactic change: the compiler representations don't change
(chan and map are now hidden pointers like string).
R=ken
OCL=21578
CL=21582
Russ Cox [Fri, 19 Dec 2008 11:05:37 +0000 (03:05 -0800)]
change *map to map; *chan to chan; new(T) to new(*T)
fix bugs left over from *[] to [] conversion.
TBR=r
OCL=21576
CL=21581
Russ Cox [Fri, 19 Dec 2008 06:37:22 +0000 (22:37 -0800)]
convert *[] to [].
R=r
OCL=21563
CL=21571
Ken Thompson [Fri, 19 Dec 2008 06:17:05 +0000 (22:17 -0800)]
print(array)
R=r
OCL=21570
CL=21570
Ken Thompson [Fri, 19 Dec 2008 06:01:46 +0000 (22:01 -0800)]
bug in [const]
R=r
OCL=21569
CL=21569
Russ Cox [Fri, 19 Dec 2008 05:59:12 +0000 (21:59 -0800)]
new []int literal
R=ken
OCL=21568
CL=21568
Ken Thompson [Fri, 19 Dec 2008 05:33:45 +0000 (21:33 -0800)]
cmp [] to nil
R=r
OCL=21567
CL=21567
Russ Cox [Fri, 19 Dec 2008 05:15:26 +0000 (21:15 -0800)]
another [] fix
R=ken
OCL=21566
CL=21566
Russ Cox [Fri, 19 Dec 2008 05:11:56 +0000 (21:11 -0800)]
[] fixes
R=ken
OCL=21565
CL=21565
Ken Thompson [Fri, 19 Dec 2008 04:06:28 +0000 (20:06 -0800)]
arrays
R=r
OCL=21564
CL=21564
Russ Cox [Fri, 19 Dec 2008 02:23:48 +0000 (18:23 -0800)]
libmach: always print 0x on hex numbers
R=r
DELTA=3 (0 added, 0 deleted, 3 changed)
OCL=21558
CL=21558
Russ Cox [Thu, 18 Dec 2008 23:42:39 +0000 (15:42 -0800)]
host and port name lookup
R=r,presotto
DELTA=1239 (935 added, 281 deleted, 23 changed)
OCL=21041
CL=21539
Russ Cox [Thu, 18 Dec 2008 23:42:28 +0000 (15:42 -0800)]
malloc in runtime (not used by default)
R=r
DELTA=1551 (1550 added, 0 deleted, 1 changed)
OCL=21404
CL=21538
Robert Griesemer [Thu, 18 Dec 2008 21:29:11 +0000 (13:29 -0800)]
- receiver ident may be optional
R=r
DELTA=5 (2 added, 0 deleted, 3 changed)
OCL=21508
CL=21510
Robert Griesemer [Thu, 18 Dec 2008 17:55:33 +0000 (09:55 -0800)]
- fixed a bug in Natural.And()
- removed some non-beneficial factorization and reduced number of array slices per
operations significantly
- reduced line count
- benchhil benchmark time reduced by ~2%
R=r
DELTA=313 (106 added, 163 deleted, 44 changed)
OCL=21473
CL=21497
Robert Griesemer [Wed, 17 Dec 2008 23:39:15 +0000 (15:39 -0800)]
- ripped out excessively fancy way of describing grammar
in favor of explicit constructs
- simpler, clearer, and shorter overall
- no spec changes
(in retrospect it was just a (my) mistake to put it in in the first place)
R=r
DELTA=55 (13 added, 28 deleted, 14 changed)
OCL=21434
CL=21462
Ken Thompson [Wed, 17 Dec 2008 20:13:19 +0000 (12:13 -0800)]
small bug
new printarray
R=r
OCL=21429
CL=21429
Russ Cox [Wed, 17 Dec 2008 18:14:29 +0000 (10:14 -0800)]
trailing white space
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=21403
CL=21415
Robert Griesemer [Wed, 17 Dec 2008 02:08:16 +0000 (18:08 -0800)]
fix syntax error (syntax accepted by 6g, but not by pretty printer)
R=r
OCL=21385
CL=21385
Robert Griesemer [Wed, 17 Dec 2008 02:03:18 +0000 (18:03 -0800)]
- added missing file
R=r
OCL=21384
CL=21384
Robert Griesemer [Wed, 17 Dec 2008 02:02:22 +0000 (18:02 -0800)]
Snapshot.
Preparations to track identifiers and declarations so that we can
generate good html links as pretty printer output:
- brought over old code and adjusted it
- initial hookups, nothing really running yet
R=r
OCL=21383
CL=21383
Russ Cox [Wed, 17 Dec 2008 01:45:28 +0000 (17:45 -0800)]
fix type/name thing, again
R=r
DELTA=8 (7 added, 0 deleted, 1 changed)
OCL=21379
CL=21379
Russ Cox [Wed, 17 Dec 2008 01:37:07 +0000 (17:37 -0800)]
another "want type got name" error case
R=ken
OCL=21377
CL=21377
Robert Griesemer [Tue, 16 Dec 2008 22:45:09 +0000 (14:45 -0800)]
- Add introduction section (1 page), essentially a condensed form
of an earlier intro.
- Updated contents section.
- Removed left-over text from earlier documents.
No spec changes.
R=r
DELTA=379 (147 added, 227 deleted, 5 changed)
OCL=21312
CL=21331
Russ Cox [Tue, 16 Dec 2008 22:39:29 +0000 (14:39 -0800)]
clear flags so that %+v does not pass the +
to the first field it prints.
R=r
DELTA=2 (1 added, 0 deleted, 1 changed)
OCL=21324
CL=21328
Rob Pike [Tue, 16 Dec 2008 21:01:39 +0000 (13:01 -0800)]
If ByteBuffer has never been used, b.buf is nil but Data() should still work.
Fix the bug using a (safe) shared global empty array.
R=rsc
DELTA=8 (8 added, 0 deleted, 0 changed)
OCL=21303
CL=21303
Robert Griesemer [Tue, 16 Dec 2008 19:38:56 +0000 (11:38 -0800)]
language for range clause
(I have deliberately left away the forms w/ := or = and
the forms with :)
R=r
DELTA=106 (44 added, 13 deleted, 49 changed)
OCL=21192
CL=21283
Robert Griesemer [Tue, 16 Dec 2008 18:45:39 +0000 (10:45 -0800)]
- fixed minor bug in example (found by ken)
R=r
OCL=21272
CL=21272
Rob Pike [Tue, 16 Dec 2008 18:31:08 +0000 (10:31 -0800)]
update tests - 119 is fixed
R=gri
DELTA=62 (28 added, 34 deleted, 0 changed)
OCL=21269
CL=21271
Ken Thompson [Mon, 15 Dec 2008 23:07:35 +0000 (15:07 -0800)]
new convention, direction bit is
always left cleared. changed
compiler generated memcpy and
memset to assume CLD.
R=r
OCL=21215
CL=21215
Ken Thompson [Mon, 15 Dec 2008 21:44:27 +0000 (13:44 -0800)]
range clause must have = or :=
:= illegal in for-increment
R=r
OCL=21204
CL=21204
Russ Cox [Mon, 15 Dec 2008 18:50:41 +0000 (10:50 -0800)]
off-by-one error assigning src files to functions
R=r
DELTA=2 (2 added, 0 deleted, 0 changed)
OCL=21178
CL=21187
Russ Cox [Mon, 15 Dec 2008 18:50:33 +0000 (10:50 -0800)]
check printf format strings
R=r
DELTA=18 (16 added, 0 deleted, 2 changed)
OCL=21177
CL=21185
Russ Cox [Mon, 15 Dec 2008 16:56:32 +0000 (08:56 -0800)]
correct arg register in bsdthread_create
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=21040
CL=21176
Russ Cox [Mon, 15 Dec 2008 16:56:17 +0000 (08:56 -0800)]
add test for once
R=r
DELTA=31 (31 added, 0 deleted, 0 changed)
OCL=21043
CL=21175
Ken Thompson [Mon, 15 Dec 2008 02:45:00 +0000 (18:45 -0800)]
even more code improvement
R=r
OCL=21160
CL=21160
Ken Thompson [Mon, 15 Dec 2008 01:06:06 +0000 (17:06 -0800)]
more code optimization
R=r
OCL=21159
CL=21159
Ken Thompson [Sun, 14 Dec 2008 00:41:47 +0000 (16:41 -0800)]
code generation
R=r
OCL=21146
CL=21146
Ken Thompson [Sat, 13 Dec 2008 21:16:14 +0000 (13:16 -0800)]
code improvement
R=r
OCL=21144
CL=21144
Rob Pike [Fri, 12 Dec 2008 21:29:25 +0000 (13:29 -0800)]
test update
R=rsc
DELTA=16 (5 added, 10 deleted, 1 changed)
OCL=21085
CL=21087
Ken Thompson [Fri, 12 Dec 2008 21:10:36 +0000 (13:10 -0800)]
bug104
R=r
OCL=21082
CL=21082
Robert Griesemer [Fri, 12 Dec 2008 18:30:10 +0000 (10:30 -0800)]
closing a TODO:
- define integer overflow as wrap-around
- be more specific about machine representation
DELTA=54 (34 added, 7 deleted, 13 changed)
OCL=20870
CL=21070
Russ Cox [Fri, 12 Dec 2008 02:19:07 +0000 (18:19 -0800)]
bug129
package foo
import "syscall"
func f() {
syscall := 1
}
R=ken
OCL=21036
CL=21036
Robert Griesemer [Fri, 12 Dec 2008 01:45:45 +0000 (17:45 -0800)]
- support for range clauses
R=r
OCL=21030
CL=21030
Russ Cox [Fri, 12 Dec 2008 01:04:12 +0000 (17:04 -0800)]
remove implicit int -> string
R=ken
OCL=21020
CL=21020
Russ Cox [Fri, 12 Dec 2008 00:53:33 +0000 (16:53 -0800)]
print field names on struct members.
also don't concatenate strings next
to each other in the struct,
like p.doprint does.
expose additional print flags to formatters
R=r
DELTA=128 (111 added, 11 deleted, 6 changed)
OCL=20991
CL=21018
Ken Thompson [Fri, 12 Dec 2008 00:09:45 +0000 (16:09 -0800)]
restrict declarations of type map/chan/string
(they must be pointers)
R=r
OCL=21009
CL=21009
Russ Cox [Thu, 11 Dec 2008 23:56:13 +0000 (15:56 -0800)]
reject struct to interface conversion for now
R=ken
OCL=21007
CL=21007
Rob Pike [Thu, 11 Dec 2008 22:41:12 +0000 (14:41 -0800)]
add uintptr to reflect and print
R=rsc
DELTA=70 (35 added, 4 deleted, 31 changed)
OCL=20993
CL=20998
Rob Pike [Thu, 11 Dec 2008 21:24:04 +0000 (13:24 -0800)]
if the typestring gives a field name of "?", drop it.
R=rsc
DELTA=11 (7 added, 0 deleted, 4 changed)
OCL=20988
CL=20988
Rob Pike [Thu, 11 Dec 2008 20:59:49 +0000 (12:59 -0800)]
handle the nil interface better in reflect and print
R=rsc
DELTA=25 (19 added, 0 deleted, 6 changed)
OCL=20985
CL=20985
Russ Cox [Thu, 11 Dec 2008 20:25:58 +0000 (12:25 -0800)]
add JSON library
R=r
DELTA=1127 (1127 added, 0 deleted, 0 changed)
OCL=20975
CL=20983
Russ Cox [Thu, 11 Dec 2008 19:58:45 +0000 (11:58 -0800)]
fix race with fresh perforce checkouts
R=r
DELTA=15 (9 added, 0 deleted, 6 changed)
OCL=20977
CL=20981
Russ Cox [Thu, 11 Dec 2008 19:54:33 +0000 (11:54 -0800)]
only generate non-trivial signatures in the
file in which they occur. avoids duplicate
trampoline generation across multiple files.
R=ken
OCL=20976
CL=20980
Russ Cox [Thu, 11 Dec 2008 05:20:48 +0000 (21:20 -0800)]
looks like i broke the build
TBR=r
OCL=20963
CL=20963
Russ Cox [Thu, 11 Dec 2008 01:17:59 +0000 (17:17 -0800)]
DNS messages
R=r
DELTA=685 (683 added, 0 deleted, 2 changed)
OCL=20926
CL=20951
Ken Thompson [Thu, 11 Dec 2008 00:23:29 +0000 (16:23 -0800)]
bug
R=r
OCL=20940
CL=20940
Russ Cox [Wed, 10 Dec 2008 23:55:59 +0000 (15:55 -0800)]
assorted cleanup and fixes
R=r
DELTA=209 (109 added, 79 deleted, 21 changed)
OCL=20930
CL=20934
Rob Pike [Wed, 10 Dec 2008 23:46:45 +0000 (15:46 -0800)]
StringBytes help routine, common functionality put into package io for sharing.
R=rsc
DELTA=10 (10 added, 0 deleted, 0 changed)
OCL=20928
CL=20931
Rob Pike [Wed, 10 Dec 2008 22:59:43 +0000 (14:59 -0800)]
another bug cleanup.
R=rsc
DELTA=117 (54 added, 62 deleted, 1 changed)
OCL=20924
CL=20927
Ken Thompson [Wed, 10 Dec 2008 22:17:24 +0000 (14:17 -0800)]
bug120
R=r
OCL=20921
CL=20921
Rob Pike [Wed, 10 Dec 2008 21:55:47 +0000 (13:55 -0800)]
update tests: nil is no longer integer-compatible
R=rsc
DELTA=56 (17 added, 32 deleted, 7 changed)
OCL=20876
CL=20916
Robert Griesemer [Wed, 10 Dec 2008 21:51:19 +0000 (13:51 -0800)]
Snapshot:
- fixed html tag generation
- simplified html escaping machinery
(not 100% correct for strings yet)
- can now produce the first mostly correct formatted html pages from source
with (fake) links: e.g. pretty -html srcfile.go > srcfile.html
R=r
OCL=20915
CL=20915
Ken Thompson [Wed, 10 Dec 2008 21:28:46 +0000 (13:28 -0800)]
string hash function faults w empty string
fixes maps[""]
R=r
OCL=20909
CL=20911
Ken Thompson [Wed, 10 Dec 2008 20:38:16 +0000 (12:38 -0800)]
2 minor bugs
R=r
OCL=20906
CL=20906
Ken Thompson [Wed, 10 Dec 2008 02:31:31 +0000 (18:31 -0800)]
bug126
R=r
OCL=20879
CL=20879
Ken Thompson [Wed, 10 Dec 2008 01:52:41 +0000 (17:52 -0800)]
bug127
R=r
OCL=20874
CL=20874
Rob Pike [Wed, 10 Dec 2008 01:43:11 +0000 (17:43 -0800)]
fix historical editing glitch
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=20871
CL=20873