Commit Graph

33578 Commits

Author SHA1 Message Date
Matthew Flatt
82326631a9 raco {pkg,planet}: exit with non-0 status for bad sub-command 2014-07-04 05:17:20 +01:00
Matthew Flatt
b99260bb32 fix declaration for non-places, non+futures build 2014-07-04 05:17:20 +01:00
Matthew Flatt
50715f7bda setup/pkg-deps: fix "racket" mapping
I'm unable to construct a test that exposes the problem, but fix the
"type" on the dependency list for the special "racket" package.
2014-07-04 05:17:20 +01:00
Robby Findler
f49dd363fa added list-contract?
and specialized a bunch of list-related contracts to track list?-ness,
notably recursive-contract now accepts a #:list-contract? argument
that means that it insists that values it accepts be list? (and
thus not cyclic)

related to PR 14559
2014-07-03 23:07:38 -05:00
Robby Findler
0db4df1d33 Revert "adjust recursive-contract so that it terminates on cyclic values"
This reverts commit 7728e062f4.
2014-07-03 22:18:33 -05:00
Robby Findler
822526a5a2 add natural-number/c random generator 2014-07-03 22:18:32 -05:00
Robby Findler
400e4de891 bring down below 102 columns 2014-07-03 22:18:32 -05:00
Asumu Takikawa
881d5de9a0 Fix `possible-domains' function in TR internals
This fixes type error message generation in some cases
and also the `query-type/result` command on multiple
valued functions.

The latter still does not allow multiple return type
queries (TODO) but it won't crash now.

Closes PR 14493
2014-07-03 17:25:05 -04:00
Burke Fetscher
cccd067792 redex: cleanups after refactoring unifier 2014-07-03 12:49:45 -05:00
Burke Fetscher
a1f7efc39d redex: refactor pattern unifier
- swap mutable for immutable hashes represetning eqs
- most functions now return p*e pairing patterns with envs
2014-07-03 12:49:45 -05:00
Burke Fetscher
72a5e3949a redex: add variable-not-in to derivation generator 2014-07-03 12:49:45 -05:00
Matthew Flatt
116555c517 optimizer: fix crashing bug
A continuation of 22b7cc6a5e: a second old bug in
shift_closure_compilation() than became more exposed.
2014-07-02 12:09:50 +01:00
Matthew Flatt
cfb700a85f raco setup: constrain Scribbled document names
Contrain the fourth element of a list describing a document in
`scribblings` (in "info.rkt") to a collection-path element, instead of
allowing an arbitrary relative path. This constraint is needed by
various parts of the build system, which assume (for example) that all
documents are rendered to an immediate subdirectory.
2014-07-02 09:52:11 +01:00
Matthew Flatt
be1ac354f0 meta/pkg-build: first cut at service to build all packages
The service relies on a VirtualBox VM to isolate package builds and
to quickly rewind an installation.

The service is not ready to run, but maybe it's getting close.
2014-07-02 09:07:36 +01:00
Matthew Flatt
183ad7e3e4 raco catalog-archive: fix dependencies and tags in new catalog 2014-07-02 09:07:36 +01:00
Matthew Flatt
a94a633f36 raco setup: fix installation of pre-built docs
Fix the case that the destination doc directory does not match
the document's source name.
2014-07-02 09:07:36 +01:00
Matthew Flatt
d316652160 raco setup / raco pkg install: add --fail-fast flag
This flag is useful for speculative package installations runs where
we'd like to give up and try something else if it's not working.
Specifically, we might try installing multiple packages at once,
and then back off to a smaller subset if something goes wrong.
2014-07-02 09:07:36 +01:00
Asumu Takikawa
6629c999d1 Improve error for applying vals of Procedure type 2014-07-01 18:16:21 -04:00
Asumu Takikawa
316e51835a Document other TR wrapper libraries 2014-07-01 16:01:04 -04:00
Stephen Chang
3da81b5278 add @history[] notes for typed/racket/async 2014-07-01 14:04:31 -04:00
Stephen Chang
2dc59f7d6b add version numbers for TR pkgs 2014-07-01 13:25:54 -04:00
Eric Dobson
615776f8d1 Merge V, X, and Y arguments into a single context in infer. 2014-06-30 21:10:37 -07:00
Eric Dobson
3ba607542c Do not add filters to the prop environment. 2014-06-30 21:01:33 -07:00
Eric Dobson
c2e706277b Strengthen simplification of filters in tc-subst. 2014-06-30 21:01:33 -07:00
Eric Dobson
76f9175fc3 Improve filters generated for true values in tc-id and tc-let. 2014-06-30 21:01:33 -07:00
Eric Dobson
0c187c52b7 Make overlap for procedures and simple data stronger. 2014-06-30 21:01:33 -07:00
Eric Dobson
6b69c396f4 Make -id-path handle mutable variables correctly. 2014-06-30 21:01:33 -07:00
Eric Dobson
e9899a07a6 Fix inference of two recursive types.
Closes PR14608.
2014-06-30 20:59:37 -07:00
Eric Dobson
cfe35fa0a4 Make union simplification not happen during subtyping.
Union simplification calls subtype, calling subtype during subtyping is
slow so we want to avoid it.

Closes PR 14582.
2014-06-30 20:50:23 -07:00
Asumu Takikawa
864cda2614 Remove wrapping in typed/racket/async-channel
Now that TR supports contracted functions, the wrapping
is not necessary.
2014-06-30 14:50:28 -04:00
Matthew Flatt
b6e4a06320 tools doc: fix use of block in an element
Also, adjust @history[] use to make the change more clear in
rendered docs.
2014-06-30 19:00:23 +01:00
Matthew Flatt
b032784417 fix typo in doc implementation 2014-06-30 18:46:46 +01:00
Matthew Flatt
795c13d4a4 file/untar: fix handling of filename prefix in USTAR format
Combine prefix and filename with a "/".
2014-06-30 18:38:00 +01:00
Matthew Flatt
bdccb135e7 Unix installer: add support for command-line arguments
Command-line arguments replace interactive prompts, which is
better for scripting runs of the installer.
2014-06-30 18:38:00 +01:00
Robby Findler
83e8cfbafe added @history[] note for e8bfd42d36 2014-06-30 09:56:59 -05:00
Robby Findler
145644ace4 added @history[] note for d067311cf7 2014-06-30 09:56:55 -05:00
Robby Findler
3cd15ceaa5 add @history[] note for 74831b41cc 2014-06-30 09:56:51 -05:00
Stephen Chang
b7814e7eb1 fix async-channel static contract in TR 2014-06-30 10:50:02 -04:00
Matthew Flatt
2d3da47447 raco test: add history note on --heartbeat
Should have been included with f3c8638366.
2014-06-30 10:17:03 +01:00
Matthew Flatt
dac8ba2873 scribble & pict: add history
These history notes should have been part of commits c4a58dc4a5 and
05760a12f6.
2014-06-30 09:41:26 +01:00
Matthew Flatt
a67ecb96ab scribble/manual: change history sort order
Now that some entries have changes over multiple versions, a forward
sort order seems better than reverse to me.
2014-06-30 09:19:42 +01:00
Matthew Flatt
22f90ce8fe pkg/lib: add #:package-exn-handler to pkg-catalog-archive 2014-06-30 09:18:38 +01:00
Matthew Flatt
646b836183 racket/draw: fix bad rounding of paper sizes in points 2014-06-30 07:32:23 +01:00
Eric Dobson
393d7d49fc Replace procedure-rename with eta-expansion.
Closes PR 14612.
2014-06-29 23:25:05 -07:00
Eric Dobson
72d1128604 Make TR contract generation not wrap everything in recursive contract.
Eta expand struct predicates, as this was the reason for recursive
contracts in the first place.

Closes PR 14611.
2014-06-29 23:24:34 -07:00
Eric Dobson
decc3c6376 Add tests for generated syntax of static contracts. 2014-06-29 16:01:33 -07:00
Eric Dobson
b10cb6d089 Change make-predicate/define-predicate to use flat-contract-predicate.
Closes PR 14610.
2014-06-29 16:01:33 -07:00
Jens Axel Søgaard
6ecbf2c542 Improve speed of partitions 2014-06-29 23:38:46 +02:00
Vincent St-Amour
13f1565f4d Have TR log regexp operations that use non-regexp patterns.
For consumption by Optimization Coach.
2014-06-29 14:41:23 -04:00
Matthew Flatt
05760a12f6 scribble: use 'pdf-bytes+bounds8, etc.
Use 'pdf-bytes+bounds8, 'png-bytes+bounds8, etc. to convert images
for Latex/PDF and HTML output. The new conversions particularly
help with picts that draw text, since the baseline of the text
can be handled properly in HTML output.

The new conversion also helps hide the difference between a bounding
box and the "inked" area of a pict, since picts normally ink only
slightly outside the bounding box, and the default for pict conversion
pads the image with a few pixels/units in each direction.

Also, add a `++convert <fmt>` command-line option to select a
preferred target for image conversions. (This preference can be
overridden by the existing `render-convertible-as` style property
for HTML rendering.)
2014-06-27 17:35:42 +01:00