- 22 Jan, 2011 1 commit
-
-
Rob Pike authored
no public fields. Fix a couple of tests caught out by this change. R=rsc CC=golang-dev https://golang.org/cl/4044043
-
- 20 Jan, 2011 1 commit
-
-
Russ Cox authored
also: cmplx -> complex float64(1.0) -> 1.0 float64(1) -> 1.0 R=gri, r, gri1, r2 CC=golang-dev https://golang.org/cl/3991043
-
- 12 Jan, 2011 1 commit
-
-
Rob Pike authored
No functional (ha!) change. R=rsc CC=golang-dev https://golang.org/cl/3959041
-
- 11 Jan, 2011 1 commit
-
-
Rob Pike authored
Such fields are simply ignored. R=rsc, r2 CC=golang-dev https://golang.org/cl/3889043
-
- 09 Dec, 2010 1 commit
-
-
Rob Pike authored
Fixes #1278. R=rsc CC=golang-dev https://golang.org/cl/3434046
-
- 05 Nov, 2010 1 commit
-
-
Rob Pike authored
underlying type; otherwise encoding fails when sending a pointer value. R=rsc CC=golang-dev https://golang.org/cl/2922041
-
- 31 Oct, 2010 1 commit
-
-
Rob Pike authored
1) Be sure to use the eval-time encoder/decoder rather than the compile-time decoder. In a few cases the receiver for the compiling encoder was being pickled incorrectly into a closure. (This is the fix for issue 1238). 2) Get the innermost name right when given a pointer to an unnamed type. 3) Use a count to delineate interface values, making it possible to ignore values without having a concrete type to encode into. This is a protocol change but only for the new feature, so it shouldn't affect anyone. The old test worked because, amazingly, it depended on bug #1. Fixes #1238. R=rsc, albert.strasheim CC=golang-dev https://golang.org/cl/2806041
-
- 22 Oct, 2010 3 commits
-
-
Rob Pike authored
Simplify error handling during the compilation phase. R=rsc CC=golang-dev https://golang.org/cl/2652042
-
Rob Pike authored
Remove err from the encoderState and decoderState types, so we're not always copying to and from various copies of the error, and then use panic/recover to eliminate lots of error checking. another pass might take a crack at the same thing for the compilation phase. R=rsc CC=golang-dev https://golang.org/cl/2660042
-
Rob Pike authored
The implemetation describes each value as a string identifying the concrete type of the value, followed by the usual encoding of that value. All types to be exchanged as contents of interface values must be registered ahead of time with the new Register function. Although this would not seem strictly necessary, the linker garbage collects unused types so without some mechanism to guarantee the type exists in the binary, there could be unpleasant surprises. Moreover, the receiver needs a reflect.Type of the value to be written in order to be able to save the data. A Register function seems necessary. The implementation may require defining types in the middle of of sending a value. The old code never did this. Therefore there has been some refactoring to make the encoder and decoder work recursively. This change changes the internal type IDs. Existing gob archives will break with this change. Apologies for that. If this is a deal breaker it should be possible to create a conversion tool. Error handling is too complicated in this code. A subsequent change should clean it up. R=rsc CC=golang-dev https://golang.org/cl/2618042
-
- 20 Oct, 2010 1 commit
-
-
Rob Pike authored
R=adg, r2 CC=golang-dev https://golang.org/cl/2596041
-
- 21 Jul, 2010 1 commit
-
-
Rob Pike authored
Fixes #934. R=rsc CC=golang-dev https://golang.org/cl/1869043
-
- 29 Jun, 2010 2 commits
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/1695046
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/1698045
-
- 28 Jun, 2010 1 commit
-
-
Rob Pike authored
also fix a bug handling nil maps: before, would needlessly send empty map R=rsc CC=golang-dev https://golang.org/cl/1739043
-
- 24 Jun, 2010 1 commit
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/1708048
-
- 21 Jun, 2010 1 commit
-
-
Russ Cox authored
gob: substitute slice for map R=r CC=golang-dev https://golang.org/cl/1699045
-
- 20 Jun, 2010 1 commit
-
-
Russ Cox authored
update other code to match. R=r CC=golang-dev https://golang.org/cl/1680044
-
- 01 Jun, 2010 1 commit
-
-
Nigel Tao authored
"change the encoding of uints...". R=r CC=golang-dev https://golang.org/cl/1436041
-
- 07 May, 2010 1 commit
-
-
Rob Pike authored
values are encoded for transmission. R=rsc CC=golang-dev https://golang.org/cl/1146041
-
- 05 May, 2010 1 commit
-
-
Rob Pike authored
Because maps are mostly a hidden type, they must be implemented using reflection values and will not be as efficient as arrays and slices. R=rsc CC=golang-dev https://golang.org/cl/1127041
-
- 24 Mar, 2010 1 commit
-
-
Rob Pike authored
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev https://golang.org/cl/741041
-
- 02 Mar, 2010 1 commit
-
-
Robert Griesemer authored
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev https://golang.org/cl/223076
-
- 28 Dec, 2009 1 commit
-
-
Rob Pike authored
Fixes #459. R=rsc, imkrasin, sonia CC=golang-dev https://golang.org/cl/181073
-
- 15 Dec, 2009 1 commit
-
-
Robert Griesemer authored
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev https://golang.org/cl/180048
-
- 02 Dec, 2009 1 commit
-
-
Russ Cox authored
TBR=r https://golang.org/cl/163064
-
- 10 Nov, 2009 1 commit
-
-
Robert Griesemer authored
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1026036
-
- 09 Nov, 2009 1 commit
-
-
Robert Griesemer authored
R=rsc, r http://go/go-review/1025029
-
- 08 Oct, 2009 1 commit
-
-
Russ Cox authored
R=gri OCL=35485 CL=35488
-
- 07 Oct, 2009 1 commit
-
-
Russ Cox authored
R=gri DELTA=1359 (138 added, 32 deleted, 1189 changed) OCL=35408 CL=35420
-
- 17 Sep, 2009 1 commit
-
-
Russ Cox authored
R=r OCL=34731 CL=34731
-
- 15 Sep, 2009 1 commit
-
-
Russ Cox authored
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
-
- 12 Aug, 2009 2 commits
- 30 Jul, 2009 1 commit
-
-
Rob Pike authored
R=rsc DELTA=154 (71 added, 6 deleted, 77 changed) OCL=32483 CL=32492
-
- 29 Jul, 2009 1 commit
-
-
Rob Pike authored
easier and faster to read. they are now either a one-byte value or a n-byte value preceded by a byte holding -n. R=rsc DELTA=150 (45 added, 7 deleted, 98 changed) OCL=32381 CL=32387
-
- 28 Jul, 2009 1 commit
-
-
Rob Pike authored
- derive int, uint, float, uintptr decoders based on their size - add overflow checks in decode R=rsc DELTA=407 (281 added, 44 deleted, 82 changed) OCL=32286 CL=32290
-
- 17 Jul, 2009 1 commit
-
-
Rob Pike authored
R=rsc DELTA=99 (32 added, 22 deleted, 45 changed) OCL=31759 CL=31759
-
- 15 Jul, 2009 1 commit
-
-
Rob Pike authored
than io.Readers and io.Writers. change the Encoder/Decoder protocol so that each message is preceded by its length in bytes. R=rsc DELTA=468 (119 added, 23 deleted, 326 changed) OCL=31700 CL=31702
-
- 09 Jul, 2009 1 commit
-
-
Rob Pike authored
change Type to gobType. fix some bugs around recursive structures. lots of cleanup. add the first cut at a type encoder. R=rsc DELTA=400 (287 added, 11 deleted, 102 changed) OCL=31401 CL=31406
-