]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agogc: bug245
Russ Cox [Tue, 19 Jan 2010 01:30:15 +0000 (17:30 -0800)]
gc: bug245

Fixes #529.

R=ken2
CC=golang-dev
https://golang.org/cl/186215

15 years agogc: multiple return value at top-level invoked multiple times
Russ Cox [Tue, 19 Jan 2010 01:00:38 +0000 (17:00 -0800)]
gc: multiple return value at top-level invoked multiple times

Fixes #402.

R=ken2
CC=golang-dev
https://golang.org/cl/186214

15 years agogc: bug243
Russ Cox [Tue, 19 Jan 2010 00:52:18 +0000 (16:52 -0800)]
gc: bug243

Fixes #481.

R=ken2
CC=golang-dev
https://golang.org/cl/186213

15 years agogc: more precise handling of import .
Russ Cox [Tue, 19 Jan 2010 00:26:40 +0000 (16:26 -0800)]
gc: more precise handling of import .

Fixes #455.

R=ken2
CC=golang-dev
https://golang.org/cl/186212

15 years agogc: be more specific about copy type errors
Russ Cox [Tue, 19 Jan 2010 00:00:13 +0000 (16:00 -0800)]
gc: be more specific about copy type errors

Fixes #539.

R=ken2
CC=golang-dev
https://golang.org/cl/190043

15 years agoreflect: fix garbage collection bug in Call.
Russ Cox [Mon, 18 Jan 2010 23:59:50 +0000 (15:59 -0800)]
reflect: fix garbage collection bug in Call.

Fixes #476.

R=r
CC=golang-dev
https://golang.org/cl/190041

15 years agonet: enable UDP broadcast before it is needed (instead of after)
Russ Cox [Mon, 18 Jan 2010 23:59:32 +0000 (15:59 -0800)]
net: enable UDP broadcast before it is needed (instead of after)

Fixes #526.

R=r
CC=golang-dev
https://golang.org/cl/186211

15 years agospec: mention Inf and NaN are supported at run time.
Russ Cox [Mon, 18 Jan 2010 23:59:14 +0000 (15:59 -0800)]
spec: mention Inf and NaN are supported at run time.
add hyperlink at mention of package reflect.

Fixes #438.

R=r
CC=golang-dev
https://golang.org/cl/190042

15 years agoUrgent parser/gofmt fix.
Robert Griesemer [Sat, 16 Jan 2010 07:17:48 +0000 (23:17 -0800)]
Urgent parser/gofmt fix.
Wrong position information for identifier
could lead to destructive reformatting of
source via hg gofmt.

R=rsc
CC=golang-dev
https://golang.org/cl/189100

15 years agogive bufio.Writer.WriteString the same signature as
Rob Pike [Sat, 16 Jan 2010 02:06:50 +0000 (13:06 +1100)]
give bufio.Writer.WriteString the same signature as
bytes.Buffer.WriteString

Fixes #535.

R=rsc
CC=golang-dev
https://golang.org/cl/189096

15 years agoTest order of evaluation in tuple assignments.
Ian Lance Taylor [Fri, 15 Jan 2010 22:02:53 +0000 (14:02 -0800)]
Test order of evaluation in tuple assignments.

gccgo currently passes this test; 8g currently does not.  I
think I counted everything out right.

R=rsc
CC=golang-dev
https://golang.org/cl/186165

15 years agoDon't check array bounds if we have been told not to.
Ian Lance Taylor [Fri, 15 Jan 2010 21:51:57 +0000 (13:51 -0800)]
Don't check array bounds if we have been told not to.

Fixes range.go test for 6g.

R=rsc
CC=golang-dev
https://golang.org/cl/189093

15 years agotemplate: look inside interface values
Russ Cox [Fri, 15 Jan 2010 21:49:31 +0000 (13:49 -0800)]
template: look inside interface values

R=r
CC=golang-dev
https://golang.org/cl/186169

15 years agoUse /etc/hosts when resolving names.
Yves Junqueira [Fri, 15 Jan 2010 21:43:14 +0000 (13:43 -0800)]
Use /etc/hosts when resolving names.

http://code.google.com/p/go/issues/detail?id=313

This conflics with Chris' patch at:
https://golang.org/cl/181063

But I believe this is more complete since it has a simple caching and proper tests.

R=cw, rsc
CC=golang-dev
https://golang.org/cl/183066

15 years ago Steps towards tracking scopes for identifiers.
Robert Griesemer [Fri, 15 Jan 2010 21:27:45 +0000 (13:27 -0800)]
Steps towards tracking scopes for identifiers.

- Identifiers refer now to the language entity (Object)
  that they denote. At the moment this is at best an
  approximation.

- Initial data structures for language entities (Objects)
          and expression types (Type) independent of the actual
  type notations.

- Initial support for declaring and looking up identifiers.

- Updated various dependent files and added support functions.

- Extensively tested to avoid breakage. This is an AST change.

R=rsc
CC=golang-dev, rog
https://golang.org/cl/189080

15 years agoImplemented ExtendFront/Back functions to insert a list of elements into a list.
Jan H. Hosang [Fri, 15 Jan 2010 21:26:13 +0000 (13:26 -0800)]
Implemented ExtendFront/Back functions to insert a list of elements into a list.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/181151

15 years agomath: special cases for Hypot
Charles L. Dorian [Fri, 15 Jan 2010 21:21:47 +0000 (13:21 -0800)]
math: special cases for Hypot

Added special case tests to all_test.go. Added tests to hypot.go,
otherwise hangs.

R=rsc
CC=golang-dev
https://golang.org/cl/186118

15 years agomath: 386 FPU functions
Charles L. Dorian [Fri, 15 Jan 2010 21:21:36 +0000 (13:21 -0800)]
math: 386 FPU functions

sin, cos, tan, asin, acos, atan, exp, log, log10,
floor, ceil, and fabs

R=rsc
CC=golang-dev
https://golang.org/cl/189083

15 years agoTest evaluation of range variables.
Ian Lance Taylor [Fri, 15 Jan 2010 18:40:30 +0000 (10:40 -0800)]
Test evaluation of range variables.

R=rsc
CC=golang-dev
https://golang.org/cl/189088

15 years agobe more explicit about initialization of embedded fields.
Rob Pike [Fri, 15 Jan 2010 00:59:53 +0000 (11:59 +1100)]
be more explicit about initialization of embedded fields.

R=rsc
CC=golang-dev
https://golang.org/cl/186161

15 years agoFix s/Width/Height/ typo in draw.go.
Nigel Tao [Fri, 15 Jan 2010 00:58:24 +0000 (11:58 +1100)]
Fix s/Width/Height/ typo in draw.go.
Fixes #531.

R=r
CC=golang-dev
https://golang.org/cl/189078

15 years agofix +0000 time zones.
Rob Pike [Thu, 14 Jan 2010 23:56:16 +0000 (10:56 +1100)]
fix +0000 time zones.

Fixes #527.

R=rsc
CC=golang-dev
https://golang.org/cl/186159

15 years agoruntime: add demo running Go on raw (emulated) hw
Russ Cox [Thu, 14 Jan 2010 03:51:59 +0000 (19:51 -0800)]
runtime: add demo running Go on raw (emulated) hw

8l: add GOOS=pchw, stop spelling out all the elf numbers.

R=r
CC=golang-dev
https://golang.org/cl/186144

15 years agodoc/devel/release.html: fix dumb typo
Russ Cox [Thu, 14 Jan 2010 02:22:16 +0000 (18:22 -0800)]
doc/devel/release.html: fix dumb typo

R=r
CC=golang-dev
https://golang.org/cl/186148

15 years agoruntime: GS already set up by setldt in Linux/386; remove duplicate
Devon H. O'Dell [Thu, 14 Jan 2010 01:50:12 +0000 (17:50 -0800)]
runtime: GS already set up by setldt in Linux/386; remove duplicate

R=rsc
CC=golang-dev
https://golang.org/cl/186146

15 years agoruntime cleanup.
Russ Cox [Thu, 14 Jan 2010 01:50:02 +0000 (17:50 -0800)]
runtime cleanup.
  * move memory code into $GOOS-specific directory.
  * allow printing of static strings < 256 bytes.
    (dynamic strings will bump maxstring as they are allocated.)
  * use cgo2c for runtime.mal.

R=r, dho
CC=golang-dev
https://golang.org/cl/186143

15 years ago.hgtags: add release, release.2010-01-13
Russ Cox [Thu, 14 Jan 2010 01:12:14 +0000 (17:12 -0800)]
.hgtags: add release, release.2010-01-13

R=r
CC=golang-dev
https://golang.org/cl/189062

15 years agorelease.2010-01-13: final checkin, release notes weekly.2010-01-13
Russ Cox [Thu, 14 Jan 2010 01:08:59 +0000 (17:08 -0800)]
release.2010-01-13: final checkin, release notes

R=r
CC=golang-dev
https://golang.org/cl/186147

15 years agoclean up handling of numeric time zones
Rob Pike [Thu, 14 Jan 2010 00:57:38 +0000 (11:57 +1100)]
clean up handling of numeric time zones
allow formatting of ruby-style times.

Fixes #518.

R=rsc
CC=golang-dev
https://golang.org/cl/186119

15 years agocgo: Only allow numeric / string / character type constants for references
Devon H. O'Dell [Thu, 14 Jan 2010 00:48:14 +0000 (16:48 -0800)]
cgo: Only allow numeric / string / character type constants for references
to #defined things.

Fixes #520.

R=rsc, rsaarelm
CC=golang-dev
https://golang.org/cl/186138

15 years agocontribute.html: suggest hg mail instead of hg upload
Russ Cox [Thu, 14 Jan 2010 00:44:40 +0000 (16:44 -0800)]
contribute.html: suggest hg mail instead of hg upload

R=r
CC=golang-dev
https://golang.org/cl/186145

15 years agocreate doc/talks/.
Russ Cox [Thu, 14 Jan 2010 00:26:22 +0000 (16:26 -0800)]
create doc/talks/.

move talk-20091030 down.
add talk given at Stanford 2010/01/12.
add doc/go-logo-white.png.

R=r
CC=golang-dev
https://golang.org/cl/186132

15 years agoDistinguish between html generation and html quoting in godoc formatters.
Robert Griesemer [Wed, 13 Jan 2010 23:18:56 +0000 (15:18 -0800)]
Distinguish between html generation and html quoting in godoc formatters.
Replacement for CL 184084; originally by Roger Peppe (rogpeppe@gmail.com).

R=rsc
CC=golang-dev, rog
https://golang.org/cl/189059

15 years agovector: drop rule for bench, now in Make.pkg
Russ Cox [Wed, 13 Jan 2010 21:29:49 +0000 (13:29 -0800)]
vector: drop rule for bench, now in Make.pkg

R=gri
CC=golang-dev
https://golang.org/cl/186139

15 years agogodoc: skip template wrapping for complete HTML files
Russ Cox [Wed, 13 Jan 2010 21:09:33 +0000 (13:09 -0800)]
godoc: skip template wrapping for complete HTML files

demo at http://wreck:8080/doc/
click on go_talk-20100112.html

R=gri
CC=golang-dev
https://golang.org/cl/186137

15 years agoClarify when expressions are evaluated for a range clause.
Ian Lance Taylor [Wed, 13 Jan 2010 20:50:45 +0000 (12:50 -0800)]
Clarify when expressions are evaluated for a range clause.

R=gri, rsc
CC=golang-dev
https://golang.org/cl/189057

15 years agocgo: handle C99 bool type
Devon H. O'Dell [Wed, 13 Jan 2010 18:25:28 +0000 (10:25 -0800)]
cgo: handle C99 bool type

Fixes #307.

R=rsc
CC=golang-dev
https://golang.org/cl/186073

15 years agocodereview: split name list only on commas; some user names have spaces
Russ Cox [Wed, 13 Jan 2010 17:09:06 +0000 (09:09 -0800)]
codereview: split name list only on commas; some user names have spaces

R=r
CC=golang-dev
https://golang.org/cl/184069

15 years agoruntime: reset DF flag after running external code on 386
Russ Cox [Wed, 13 Jan 2010 17:08:39 +0000 (09:08 -0800)]
runtime: reset DF flag after running external code on 386

R=r
CC=golang-dev
https://golang.org/cl/186108

15 years agodon't worry about the number of spaces when parsing.
Rob Pike [Wed, 13 Jan 2010 03:39:30 +0000 (14:39 +1100)]
don't worry about the number of spaces when parsing.
allow an underscore to stand for a space or digit if the following number is >=10.

R=rsc
CC=golang-dev
https://golang.org/cl/186115

15 years agoignore $GOARCH inside the compiler and linker.
Rob Pike [Wed, 13 Jan 2010 03:39:16 +0000 (14:39 +1100)]
ignore $GOARCH inside the compiler and linker.
by definition, they know what they are building for.
makes it easier to switch architectures when testing.

% 6g x.go
% 6l x.6
% 6.out
"Wed Jan 13 10:57:46 EST 2010"
% 8g x.go
% 8l x.8
% 8.out
"Wed Jan 13 10:57:46 EST 2010"
% echo $GOARCH

%

R=rsc
CC=golang-dev
https://golang.org/cl/186116

15 years ago Fix minor issues with updating go-mode in an empty buffer
Kevin Ballard [Wed, 13 Jan 2010 02:32:19 +0000 (13:32 +1100)]
Fix minor issues with updating go-mode in an empty buffer

  Sometimes during editing, when the buffer is emptied (for example,
  as part of a call to M-x gofmt), an error is raised when
  remove-text-properties is called. Ensure that these calls use point-max
  instead of buffer-size to determine their end point.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/189042

15 years agoto improve the chances for compatibility, open a window of unused ids
Rob Pike [Wed, 13 Jan 2010 01:06:43 +0000 (12:06 +1100)]
to improve the chances for compatibility, open a window of unused ids
and specify a lowest id granted to users.

R=rsc
CC=golang-dev
https://golang.org/cl/186081

15 years agofix typo found by kevin ballard
Rob Pike [Wed, 13 Jan 2010 01:06:33 +0000 (12:06 +1100)]
fix typo found by kevin ballard

R=gri
CC=golang-dev
https://golang.org/cl/186113

15 years agoLight-weight scanner for general use.
Robert Griesemer [Wed, 13 Jan 2010 01:04:45 +0000 (17:04 -0800)]
Light-weight scanner for general use.

Emphasis on minimal interface and fast scanning.
Recognizes all Go literals by default. Easily
configurable to recognize different whitespace
characters and tokens.

Provides detailed position information for each
token.

R=rsc, r
CC=golang-dev
https://golang.org/cl/181160

15 years agoAdd 'bench' target to makefiles.
Adam Langley [Tue, 12 Jan 2010 23:43:20 +0000 (15:43 -0800)]
Add 'bench' target to makefiles.

R=rsc, agl, r
CC=golang-dev
https://golang.org/cl/188043

15 years agokate: Highlighting improvements
Evan Shaw [Tue, 12 Jan 2010 22:33:28 +0000 (14:33 -0800)]
kate: Highlighting improvements

* Highlight built in functions
* Add copy built in function
* Handle multi-line strings

R=rsc
CC=golang-dev
https://golang.org/cl/184059

15 years agoruntime: fix bug in preemption checks; was causing "lock count" panics
Russ Cox [Tue, 12 Jan 2010 18:03:02 +0000 (10:03 -0800)]
runtime: fix bug in preemption checks; was causing "lock count" panics

R=r
CC=golang-dev
https://golang.org/cl/186078

15 years agoFix bug that prevented the gofmt test script being run on more
Roger Peppe [Tue, 12 Jan 2010 17:45:11 +0000 (09:45 -0800)]
Fix bug that prevented the gofmt test script being run on more
than one explicitly named file.

R=rsc, gri
CC=golang-dev
https://golang.org/cl/186095

15 years agomath: special cases for Ceil, Exp, Floor, Log, Log10
Charles L. Dorian [Tue, 12 Jan 2010 05:28:02 +0000 (21:28 -0800)]
math: special cases for Ceil, Exp, Floor, Log, Log10

Added special case tests to all_test.go. Added tests to Floor,
in-lined tests in Exp and Log.

R=rsc
CC=golang-dev
https://golang.org/cl/184081

15 years agoasn1: fix marshaling of structures with >1 elements.
Adam Langley [Tue, 12 Jan 2010 02:54:13 +0000 (18:54 -0800)]
asn1: fix marshaling of structures with >1 elements.

Fixes #515.

R=rsc
CC=golang-dev
https://golang.org/cl/184079

15 years agoasn1: fix parsing of elements after a string in a structure.
Adam Langley [Tue, 12 Jan 2010 02:53:58 +0000 (18:53 -0800)]
asn1: fix parsing of elements after a string in a structure.

Fixes #516.

R=rsc
CC=golang-dev, golang-dev
https://golang.org/cl/184080

15 years agodelete debugging prints
Rob Pike [Tue, 12 Jan 2010 01:35:51 +0000 (17:35 -0800)]
delete debugging prints

R=rsc
CC=golang-dev
https://golang.org/cl/186079

15 years agodelete debugging prints
Rob Pike [Tue, 12 Jan 2010 01:35:06 +0000 (17:35 -0800)]
delete debugging prints

R=rsc
CC=golang-dev
https://golang.org/cl/186079

15 years agoadd pprof output format to prof.
Rob Pike [Tue, 12 Jan 2010 00:53:45 +0000 (16:53 -0800)]
add pprof output format to prof.
amd64 linux only.

R=rsc
CC=golang-dev
https://golang.org/cl/186077

15 years agomath: special cases for Fmod
Charles L. Dorian [Tue, 12 Jan 2010 00:20:51 +0000 (16:20 -0800)]
math: special cases for Fmod

Added special case tests to all_test.go for Fmod. Fixed Fmod [hung
for Fmod(+/-Inf, <finite>)]. Also added test for Ceil in all_test.go.

R=rsc
CC=golang-dev
https://golang.org/cl/186076

15 years agodoc/contribute.html: change copyright year
Bill Neubauer [Mon, 11 Jan 2010 21:06:58 +0000 (13:06 -0800)]
doc/contribute.html: change copyright year

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/184055

15 years ago cgo: Make constants #define'd in C available to Go (as consts)
Devon H. O'Dell [Mon, 11 Jan 2010 21:05:26 +0000 (13:05 -0800)]
cgo: Make constants #define'd in C available to Go (as consts)

  Fixes #435

R=rsc
CC=golang-dev
https://golang.org/cl/181161

15 years agogc: clean opnames.h
Yongjian Xu [Mon, 11 Jan 2010 21:03:01 +0000 (13:03 -0800)]
gc: clean opnames.h

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/181186

15 years agoRemove -oldprinter flag from gofmt; all code is
Robert Griesemer [Mon, 11 Jan 2010 20:58:13 +0000 (12:58 -0800)]
Remove -oldprinter flag from gofmt; all code is
now printed using the semicolon-free style.

Removed NoSemis flag and mechanism dealing with
optional semicolons from go/printer.

Updated all go/printer output files using the
semi-colon free style.

Changes have no formatting impact on checked in
go code under src and misc.

R=rsc, r
CC=golang-dev
https://golang.org/cl/184068

15 years agoClean up and make consistent the comments in the math package.
Rob Pike [Mon, 11 Jan 2010 20:38:31 +0000 (07:38 +1100)]
Clean up and make consistent the comments in the math package.

R=rsc
CC=golang-dev
https://golang.org/cl/186042

15 years agomath: fix pow10 comment, test portable Sqrt
Russ Cox [Mon, 11 Jan 2010 19:25:37 +0000 (11:25 -0800)]
math: fix pow10 comment, test portable Sqrt

R=r
CC= golang-dev, Charlie Dorian, golang-dev
https://golang.org/cl/184058

15 years agoReplicate signal names from syscall in os/signal.
David Symonds [Mon, 11 Jan 2010 19:23:46 +0000 (11:23 -0800)]
Replicate signal names from syscall in os/signal.

R=rsc
CC=golang-dev
https://golang.org/cl/183142

15 years agoPartial work-around for gofmt bug.
Robert Griesemer [Mon, 11 Jan 2010 18:38:06 +0000 (10:38 -0800)]
Partial work-around for gofmt bug.

Addresses some cases and respects position of
closing parenthesis; but doesn't work yet in
all cases. Heuristic; will need to be replaced
by a real solution eventually. Does not cause
existing code to be reformatted.

R=r
CC=golang-dev, rsc
https://golang.org/cl/186043

15 years agomath: Sqrt using 386 FPU.
Charles L. Dorian [Sun, 10 Jan 2010 23:41:07 +0000 (15:41 -0800)]
math: Sqrt using 386 FPU.

Note: sqrt_decl.go already in src/pkg/math/.

R=rsc
CC=golang-dev
https://golang.org/cl/183155

15 years agoruntime: check for preemption due to garbage collection
Russ Cox [Sat, 9 Jan 2010 17:47:45 +0000 (09:47 -0800)]
runtime: check for preemption due to garbage collection
in various already expensive routines.

helps keep cpu utilization up when GOMAXPROCS > 1,
but not a full solution.

http://groups.google.com/group/golang-nuts/t/7a9535c4136d3e2

R=r
CC=golang-dev
https://golang.org/cl/184043

15 years agocodereview: do not send mail when submitting for others
Russ Cox [Sat, 9 Jan 2010 17:47:14 +0000 (09:47 -0800)]
codereview: do not send mail when submitting for others

rename original_author to copied_from so that it reads
better when used as a condition.

R=r
CC=golang-dev
https://golang.org/cl/185045

15 years agomath: special cases for Atan, Asin and Acos
Charles L. Dorian [Fri, 8 Jan 2010 22:12:10 +0000 (14:12 -0800)]
math: special cases for Atan, Asin and Acos
Added tests for NaN and out-of-range values.
Combined asin.go and atan.go into atan.go.

R=rsc
CC=golang-dev
https://golang.org/cl/180065

15 years agofix typo
Rob Pike [Fri, 8 Jan 2010 20:32:26 +0000 (07:32 +1100)]
fix typo

R=gri, iant
CC=golang-dev
https://golang.org/cl/183160

15 years agogc: bug238
Russ Cox [Fri, 8 Jan 2010 08:01:03 +0000 (00:01 -0800)]
gc: bug238

Fixes #471.

R=ken2
CC=golang-dev
https://golang.org/cl/181184

15 years agogc: bug219, bug239, bug240
Russ Cox [Fri, 8 Jan 2010 07:24:48 +0000 (23:24 -0800)]
gc: bug219, bug239, bug240

Fixes #475.

R=ken2
CC=golang-dev
https://golang.org/cl/183157

15 years agogc: bug241
Russ Cox [Fri, 8 Jan 2010 07:20:00 +0000 (23:20 -0800)]
gc: bug241

Fixes #495.

R=ken2
CC=golang-dev
https://golang.org/cl/183156

15 years agoRewrite tokenizer to clean up and fix a bug with spaces before delimited block.
Rob Pike [Fri, 8 Jan 2010 06:49:55 +0000 (17:49 +1100)]
Rewrite tokenizer to clean up and fix a bug with spaces before delimited block.
Fixes #501.

R=rsc
CC=golang-dev
https://golang.org/cl/181183

15 years agoAdd builder scripts.
Adam Langley [Fri, 8 Jan 2010 02:45:45 +0000 (18:45 -0800)]
Add builder scripts.

These are the scripts behind godashboard.appspot.com. Nothing is
particularly beautiful about it, but it does run.

I still need to add support for per-builder keys and for running the
benchmarks.

R=rsc
CC=golang-dev
https://golang.org/cl/183153

15 years agoadd doc/devel/index.html, linked from nav bar
Russ Cox [Fri, 8 Jan 2010 02:23:41 +0000 (18:23 -0800)]
add doc/devel/index.html, linked from nav bar

R=r
CC=golang-dev
https://golang.org/cl/181156

15 years agocodereview: repeated hg mail sends "PTAL"
Russ Cox [Fri, 8 Jan 2010 02:23:30 +0000 (18:23 -0800)]
codereview: repeated hg mail sends "PTAL"

also send out hg mail for TBR submits

R=r
CC=golang-dev
https://golang.org/cl/183137

15 years agohttp: most of a URL shouldn't use URL-escaping
Russ Cox [Fri, 8 Jan 2010 02:10:29 +0000 (18:10 -0800)]
http: most of a URL shouldn't use URL-escaping

Fixes #502.

R=r, hoisie
CC=golang-dev
https://golang.org/cl/181179

15 years agoAdd a parser to the time package, the inverse of time.Format
Rob Pike [Fri, 8 Jan 2010 01:59:20 +0000 (12:59 +1100)]
Add a parser to the time package, the inverse of time.Format

R=rsc
CC=golang-dev
https://golang.org/cl/183141

15 years agoadded some missing periods
Robert Griesemer [Thu, 7 Jan 2010 17:27:24 +0000 (09:27 -0800)]
added some missing periods

R=rsc
CC=golang-dev
https://golang.org/cl/181171

15 years agomake Format about twice as fast by removing allocations, using a bytes.Buffer
Rob Pike [Thu, 7 Jan 2010 03:36:54 +0000 (14:36 +1100)]
make Format about twice as fast by removing allocations, using a bytes.Buffer
add a benchmark

R=rsc
CC=golang-dev
https://golang.org/cl/181164

15 years agoupdate timing logs for benchmarks.
Rob Pike [Thu, 7 Jan 2010 03:36:28 +0000 (19:36 -0800)]
update timing logs for benchmarks.
some significant improvements:
reverse-complement
nbody (gccgo only)
regex-dna
pidigits
one mysterious drop:
binary-tree.go (gccgo only)

R=rsc
CC=golang-dev
https://golang.org/cl/181158

15 years ago8g: float->uint64 conversion optimization
Evan Shaw [Thu, 7 Jan 2010 03:28:19 +0000 (19:28 -0800)]
8g: float->uint64 conversion optimization

Using FUCOMIP instead of the FUCOMP-FSTSW-SAHF sequence gives better performance and saves code space.

R=rsc
CC=golang-dev
https://golang.org/cl/183139

15 years agolibmach: Add disassembly for newly implemented opcodes
Evan Shaw [Thu, 7 Jan 2010 03:26:04 +0000 (19:26 -0800)]
libmach: Add disassembly for newly implemented opcodes

R=rsc
CC=golang-dev
https://golang.org/cl/183140

15 years agoruntime: close TODO now that 8c bug is fixed
Russ Cox [Thu, 7 Jan 2010 03:24:11 +0000 (19:24 -0800)]
runtime: close TODO now that 8c bug is fixed

R=r
CC=golang-dev
https://golang.org/cl/183138

15 years agoadd a standard interface that wraps ReadByte, io.ReadByter
Rob Pike [Thu, 7 Jan 2010 02:29:43 +0000 (13:29 +1100)]
add a standard interface that wraps ReadByte, io.ReadByter

R=rsc
CC=golang-dev
https://golang.org/cl/181163

15 years agosync make-arm.bash with make.bash
Russ Cox [Thu, 7 Jan 2010 02:19:56 +0000 (18:19 -0800)]
sync make-arm.bash with make.bash

R=r
CC=golang-dev
https://golang.org/cl/183135

15 years ago8c: only refer to extern register variables in MOVL instructions
Russ Cox [Thu, 7 Jan 2010 02:18:07 +0000 (18:18 -0800)]
8c: only refer to extern register variables in MOVL instructions

R=ken2
https://golang.org/cl/183136

15 years agodeps.bash: handle space between .go and \ in GOFILES=
Russ Cox [Thu, 7 Jan 2010 01:59:15 +0000 (17:59 -0800)]
deps.bash: handle space between .go and \ in GOFILES=

R=r
CC=golang-dev
https://golang.org/cl/181157

15 years agoPorted runtime to Windows.
Hector Chu [Thu, 7 Jan 2010 01:58:55 +0000 (17:58 -0800)]
Ported runtime to Windows.

R=rsc
CC=golang-dev
https://golang.org/cl/176066

15 years agotime: fix Makefile so deps.bash is happy (fixes build)
Russ Cox [Thu, 7 Jan 2010 00:35:28 +0000 (16:35 -0800)]
time: fix Makefile so deps.bash is happy (fixes build)

TBR=r
https://golang.org/cl/183133

15 years agogodoc: serve index.html in place of directory listing, when present
Russ Cox [Wed, 6 Jan 2010 23:59:03 +0000 (15:59 -0800)]
godoc: serve index.html in place of directory listing, when present

R=gri
CC=golang-dev
https://golang.org/cl/181155

15 years agoadd release log as doc/devel/release.html
Russ Cox [Wed, 6 Jan 2010 23:46:09 +0000 (15:46 -0800)]
add release log as doc/devel/release.html

won't appear online until next release

R=r
CC=golang-dev
https://golang.org/cl/183126

15 years agoUse remove-text-properties instead of
Austin Clements [Wed, 6 Jan 2010 23:45:43 +0000 (15:45 -0800)]
Use remove-text-properties instead of
remove-list-of-test-properties, since the latter is missing
from XEmacs.

Fixes #462.

R=rsc
CC=golang-dev
https://golang.org/cl/181152

15 years agohttp: avoid header duplication - take struct fields out of Header map
Russ Cox [Wed, 6 Jan 2010 23:45:30 +0000 (15:45 -0800)]
http: avoid header duplication - take struct fields out of Header map

R=r
CC=golang-dev, petar-m
https://golang.org/cl/183132

15 years agocgo: Use -fno-eliminate-unused-debug-types when calling gcc to for dwarf stabs.
Devon H. O'Dell [Wed, 6 Jan 2010 23:45:08 +0000 (15:45 -0800)]
cgo: Use -fno-eliminate-unused-debug-types when calling gcc to for dwarf stabs.

This keeps debug symbols in for e.g. unreferenced enums.

Fixes #479

R=rsc
CC=golang-dev, waltermundt
https://golang.org/cl/181102

15 years agoNew time formatter, time.Format(formatString)
Rob Pike [Wed, 6 Jan 2010 23:32:48 +0000 (10:32 +1100)]
New time formatter, time.Format(formatString)
The model is that formatString is a a representation of a standard time,
and that Format converts the time to that representation.
Standard representaitons are defined for ANSIC, RFC850, RFC1123, and ISO8601.
There's also a humane Kitchen fomat: 3:04PM.

R=rsc, benolive, cw
CC=golang-dev
https://golang.org/cl/181130

15 years agoAdded me to authors and contributors.
Jan H. Hosang [Wed, 6 Jan 2010 21:55:47 +0000 (13:55 -0800)]
Added me to authors and contributors.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/181153

15 years agoFix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of
Devon H. O'Dell [Wed, 6 Jan 2010 15:47:56 +0000 (07:47 -0800)]
Fix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of
QUOTED_GOBIN. Re-take of 181077; fixes copy-pasta that broke build.

Fixes #468

R=rsc
CC=golang-dev
https://golang.org/cl/183125

15 years agoAdd http.CanonicalPath and tests for it. Remove BUG(rsc) from url.go.
Ivan Krasin [Wed, 6 Jan 2010 15:47:40 +0000 (07:47 -0800)]
Add http.CanonicalPath and tests for it. Remove BUG(rsc) from url.go.

R=rsc, imkrasin
CC=golang-dev
https://golang.org/cl/179126

15 years agoPropagate error to the caller in json.Marshal. Fixes issue 445.
Ivan Krasin [Wed, 6 Jan 2010 15:25:17 +0000 (07:25 -0800)]
Propagate error to the caller in json.Marshal. Fixes issue 445.

R=rsc, imkrasin
CC=golang-dev
https://golang.org/cl/179125