Eli Barzilay
9a485064ed
Clarify comment re `fixnum?' non-use at the syntax level, and add a note
...
to the `fixnum?' documentation.
2010-11-05 01:48:23 -04:00
Vincent St-Amour
4c081c127a
Fixed a fixnum typechecking issue.
2010-11-04 17:27:34 -04:00
Vincent St-Amour
c0a6137c67
Fixed potential danger with fixnum optimizations.
2010-11-04 15:35:21 -04:00
Vincent St-Amour
c633913b94
Add optional argument to make-hash and co.
2010-10-27 16:15:50 -04:00
Sam Tobin-Hochstadt
561fdc8db5
Avoid dumb parsing bugs in require/typed.
2010-10-26 18:09:45 -04:00
Matthew Flatt
5d8e000d6d
swap vector*-ref' and
vector-ref', etc.
...
Merge to 5.0.2
2010-10-25 11:22:35 -06:00
Vincent St-Amour
a15236ea4f
Fix opt-lambda:. Merge to 5.0.2.
2010-10-20 14:32:37 -04:00
Vincent St-Amour
12a5454b14
Removed logging when no optimization actually happens.
2010-10-14 14:13:06 -04:00
Sam Tobin-Hochstadt
24bddafa82
Add type for `compose'
2010-10-14 11:44:14 -04:00
Vincent St-Amour
27e722f27b
Inexact-Complex -> Float-Complex
2010-10-12 16:47:46 -04:00
Vincent St-Amour
52bd739d00
Added the Float-Complex type for consistency with the new float types.
...
Inexact-Complex has been kept as a synonym for backward compatibility.
2010-10-12 16:47:45 -04:00
Vincent St-Amour
a59a99c42d
Changed the TR numeric tower to use the new flonums.
2010-10-12 16:47:45 -04:00
Vincent St-Amour
2c4d6fbb01
Added optimization for first, second and co when possible.
2010-10-12 16:47:44 -04:00
Vincent St-Amour
db0046101c
Improved TR's error messages when all domains but one have been eliminated.
2010-10-07 18:30:35 -04:00
Sam Tobin-Hochstadt
7bcd107e7f
Fix `overlap' for refinements of base types.
2010-10-07 11:19:54 -04:00
Sam Tobin-Hochstadt
a45ce954d7
Remove outdated comment.
2010-10-07 10:18:06 -04:00
Vincent St-Amour
99178c70a0
Have the optimizer ignore struct/exec.
2010-10-06 18:43:35 -04:00
Vincent St-Amour
d39cb530cf
Updated the documentation of TR's optimizer.
2010-10-06 17:32:30 -04:00
Vincent St-Amour
8baa1682af
Turned the optimizer on by default.
2010-10-06 17:32:30 -04:00
Vincent St-Amour
5395dbca12
Fixed tautology/contradiction recording to work with case-lambda.
2010-10-06 17:32:29 -04:00
Vincent St-Amour
2172328189
Register types for send exprs in the type table.
2010-10-06 17:32:29 -04:00
Sam Tobin-Hochstadt
c739128703
Contract fixes.
2010-10-01 19:29:18 -07:00
Vincent St-Amour
5a67535a95
Got rid of a broken subtyping rule.
2010-10-01 17:48:47 -04:00
Vincent St-Amour
e011ea00bd
Further improvements for TR's error messages.
...
Only the most permissive domains whose associated return type is
consistent with the expected type are shown in error messages.
For example, for a function with the following type:
Fixnum -> Fixnum
Integer -> Integer
and an expected type of Integer, only the latter domain is shown in
the error message.
2010-10-01 17:48:46 -04:00
Vincent St-Amour
206fe52047
Improved TR's error messages in presence of case-lambda types.
...
- When displaying errors involving functions that have case-lambda
types with branches that are redundant modulo filters (such as <, >
and others), only the general branches appear in the error message.
(Real Real Real * -> Boolean, in the case of < and co.).
- For all errors involving case-lambda types, only domains for which
the return type is consistent with the expected type are displayed
in the error message. Further simplification is planned.
2010-09-23 12:59:47 -04:00
Vincent St-Amour
4aa7bc8439
Explained a design decision.
2010-09-23 12:12:15 -04:00
Stevie Strickland
3028f2d142
Convert vectorof/vector-immutableof to the new regime.
...
Also add old-style vectorof to mzlib/contract.
2010-09-16 15:04:41 -04:00
Vincent St-Amour
e0bda30738
Documented optional for: and let: annotations.
2010-09-16 13:24:11 -04:00
Vincent St-Amour
8aab96faa6
Made annotations optional for let: and variants.
2010-09-16 13:24:10 -04:00
Vincent St-Amour
9f87b5a7e6
Made some type annotations optional in the for: macros.
2010-09-15 20:21:51 -04:00
Vincent St-Amour
1b28aa41c7
Removed an obsolete comment.
2010-09-15 20:21:51 -04:00
Vincent St-Amour
a10d145f25
Added annotated versions of the for macros that generate vectors.
...
They are purposedly left out of the documentation since the typchecker
can't currently handle their expansion.
2010-09-15 20:21:50 -04:00
Stevie Strickland
994ad6d10f
Now change box/c to use proxies or chaperones appropriately.
...
Create a mzlib/contract compatible version of the old box/c and use that
for mzlib/contract. Change the docs so that the docs for mzlib/contract
contain the right information.
Fix the typed-scheme implementation to only force flat box (or hash)
contracts when it already is required to be flat. Otherwise, allow
non-flat contracts for the element contract (or domain/range contracts).
2010-09-15 16:57:17 -04:00
Sam Tobin-Hochstadt
07227ed8f7
Fix doc typo.
...
Closes PR 11190.
Closes PR 11191.
2010-09-13 08:46:56 -04:00
Sam Tobin-Hochstadt
d1835175d7
Fix for new ->i syntax.
2010-09-10 18:38:02 -04:00
Sam Tobin-Hochstadt
979561354d
Fix internal error when single value expected.
2010-09-10 18:29:34 -04:00
Sam Tobin-Hochstadt
5789981f2c
Add some file primitives.
2010-09-10 18:29:34 -04:00
Vincent St-Amour
0166ece180
Extended pair optimization to the rest of the standard derived pair accessors.
2010-09-09 18:54:34 -04:00
Vincent St-Amour
7450821068
Refactoring.
2010-09-09 18:54:34 -04:00
Vincent St-Amour
024f873947
Extended pair optimizations to some derived pair accessors.
2010-09-09 18:54:33 -04:00
Vincent St-Amour
6e5ea420a1
Removed useless requires.
2010-09-09 18:54:33 -04:00
Vincent St-Amour
85550953c8
Removed unused exports.
2010-09-09 18:54:33 -04:00
Sam Tobin-Hochstadt
c15871a028
Add additional require for identifiers in the residual program.
2010-09-09 16:08:04 -04:00
Sam Tobin-Hochstadt
0ae9e0ff85
Add `require' to fix tests.
2010-09-09 16:08:04 -04:00
Sam Tobin-Hochstadt
bc6d8f98ed
Avoid printing results of `define-hierarchy'
2010-09-09 16:08:04 -04:00
Sam Tobin-Hochstadt
867f359274
Fix `require' for contracts.
2010-09-09 16:08:04 -04:00
Sam Tobin-Hochstadt
7a1b29c8f2
`require' changes
2010-09-09 16:08:04 -04:00
Sam Tobin-Hochstadt
71ae5f0a6e
Enable struct construction when not transforming. Necessary for testing.
2010-09-09 16:08:04 -04:00
Sam Tobin-Hochstadt
eea479b34a
Fix `hash-name' to avoid collisions.
2010-09-09 16:08:04 -04:00
Sam Tobin-Hochstadt
b6b840076b
Lots more laziness, and useless require removal.
2010-09-09 16:08:03 -04:00