Sam Tobin-Hochstadt
e44e454b94
Predicates for numeric comparisons.
2010-06-08 12:05:57 -04:00
Sam Tobin-Hochstadt
7f300a2c4f
Special-case (- x 1) for use in loops.
2010-06-08 12:05:56 -04:00
Sam Tobin-Hochstadt
7df8e32793
Properly handling immutable invariant structs.
2010-06-07 14:03:06 -04:00
Carl Eastlund
e7814b63a7
Renamed call/debug from unstable/debug to debugf.
2010-06-06 20:31:37 -04:00
Carl Eastlund
ddc889532e
Replaced unstable/debug with unstable/cce/debug.
2010-06-06 20:31:36 -04:00
Carl Eastlund
3a525b9a12
Replaced unstable/hash with unstable/cce/hash.
2010-06-06 20:30:48 -04:00
Carl Eastlund
e52fb81aac
Renamed bindings from unstable/hash and unstable/debug that will clash
...
with subsequent adaptation of (planet cce/scheme) to collects/unstable.
These bindings are temporary, and will be replaced in the adaptation.
2010-06-06 19:57:15 -04:00
Sam Tobin-Hochstadt
0199e11edd
Add require to base env to fix tests.
2010-06-02 11:26:48 -04:00
Matthew Flatt
4ebe2a0f52
try to fix Typed Racket after 'apply' changes
2010-06-01 21:25:54 -06:00
Vincent St-Amour
2229173b82
Changed the types of some numerical operations to be closed on naturals.
2010-05-29 11:31:47 -04:00
Sam Tobin-Hochstadt
d323a794e8
Change `typed-scheme' numerics.
...
- `number?' no longer `real?'
- Number no longer Real
- remove obsolete environments
- Fix tests to use Real where necessary.
- Fix typed/mred and typed/framework
- Fix insert-large-letters to use `sub1' for type-safe loop
Merge to 5.0.
2010-05-28 19:24:46 -04:00
Vincent St-Amour
046d95293a
Documented the for: macros.
2010-05-28 19:05:44 -04:00
Vincent St-Amour
e9a0014630
Disabled multi-valued seq-exprs in the for: macros because using them
...
triggers an internal error in the typechecker.
2010-05-28 19:05:44 -04:00
Vincent St-Amour
49caa00890
Added the for*/X: macros.
2010-05-28 19:05:43 -04:00
Vincent St-Amour
08baa400c3
Punted #:when clause expansion in the for: macros to their
...
non-annotated counterparts, except in the case of for: itself, where
it doesn't break the semantics of the underlying macro.
2010-05-28 19:05:43 -04:00
Vincent St-Amour
1ec6bd448b
Added the for/lists: and for/fold: macros.
2010-05-28 19:05:43 -04:00
Vincent St-Amour
3518428635
Better support for #:when clauses in the for: macros.
2010-05-28 19:05:42 -04:00
Sam Tobin-Hochstadt
8194bcc4d4
Guard type-equal? test.
2010-05-27 12:46:37 -04:00
Sam Tobin-Hochstadt
9701ae0065
Avoid requiring old base-types.
2010-05-27 10:56:18 -04:00
Sam Tobin-Hochstadt
bd0bcda85e
Simpler has-name? implementation.
2010-05-27 10:50:15 -04:00
Sam Tobin-Hochstadt
d4a8c52c71
Fix error message for multiple values.
2010-05-27 10:10:26 -04:00
Sam Tobin-Hochstadt
40c77586a0
Better type for `round'.
2010-05-27 10:10:26 -04:00
Vincent St-Amour
e3b994abff
Typed Scheme's optimizer now recognizes specialized (safe) float
...
operations.
2010-05-26 19:48:30 -04:00
Vincent St-Amour
762f108c04
Fixed a bug in typed Scheme's optimizer when using binary arithmetic
...
operators in a unary fashion with floats.
2010-05-26 19:48:30 -04:00
Vincent St-Amour
664ef2c0a3
Extended the type signatures of bitwise operations to be closed on naturals.
2010-05-26 19:48:29 -04:00
Vincent St-Amour
5213f54f56
Added the for:, for/list:, etc macros.
2010-05-26 19:48:15 -04:00
Vincent St-Amour
23f30af459
Rewrote do: to expand into do.
2010-05-26 19:20:32 -04:00
Sam Tobin-Hochstadt
85b59a2f4c
Fix Typed Scheme printing of types.
...
Merge to 5.0.
2010-05-25 07:58:06 -07:00
Sam Tobin-Hochstadt
27e971dce2
Check that at least one require spec is provided.
...
Closes PR 10617.
Merge to v5.0.
2010-05-24 22:33:31 -07:00
Sam Tobin-Hochstadt
460bb348e1
Better internal error messages.
2010-05-24 14:05:05 -07:00
Sam Tobin-Hochstadt
b21f704086
Print empty filters as -
2010-05-24 14:04:01 -07:00
Sam Tobin-Hochstadt
986318065d
Remove tc-toplevel from the typechecking unit.
2010-05-24 14:03:14 -07:00
Sam Tobin-Hochstadt
5b0f705b83
Only do abstraction of filters at `let's.
2010-05-24 14:01:00 -07:00
Sam Tobin-Hochstadt
f320d36e9c
Fix parsing of All on RHS of ->
2010-05-24 13:26:29 -07:00
Sam Tobin-Hochstadt
fac0e197cf
Improve verbose printer.
...
- Fewer newlines.
- Avoid printing hidden fields.
2010-05-24 13:23:37 -07:00
Sam Tobin-Hochstadt
601e693b01
Improve type of count and vector-count.
2010-05-22 18:07:50 -04:00
Sam Tobin-Hochstadt
e6d85175f3
Document Exact-Nonnegative-Integer
2010-05-22 18:03:18 -04:00
Vincent St-Amour
fece1f6d03
Fixed a bug with Typed Scheme's do: with no finish-expr.
...
Include in 5.0 release.
2010-05-21 19:31:43 -04:00
Vincent St-Amour
88dc30aa3c
Extended the type signatures of trigonometric operations.
...
Include in 5.0 release.
2010-05-21 19:31:42 -04:00
Sam Tobin-Hochstadt
230f1a59c6
More precise types for: truncate, floor ceiling
2010-05-21 10:41:24 -04:00
Sam Tobin-Hochstadt
9fe3747a19
Allow expected type to have weaker filters and objects.
...
Closes PR 10729.
2010-05-19 15:14:18 -05:00
Sam Tobin-Hochstadt
7e9313bad3
Allow recursive types in type annotations for `list'.
...
Closes PR 10562.
Tests for fixed bugs.
2010-05-19 15:14:18 -05:00
Vincent St-Amour
3e757d0fb1
Added logging to typed Scheme's optimizer.
2010-05-19 13:10:37 -04:00
Vincent St-Amour
7adedacf2b
Extended the typed Scheme optimizer to handle all the core forms.
2010-05-19 13:10:37 -04:00
Vincent St-Amour
b543177868
Extended typed Scheme's optimizer to traverse more forms.
2010-05-19 13:10:37 -04:00
Vincent St-Amour
f2edae0e9a
Typed Scheme's optimizer can now generate unsafe car and cdr.
2010-05-19 13:10:37 -04:00
Vincent St-Amour
f77e4eeb41
Added some special cases to type signatures for pair accessors.
2010-05-19 13:10:36 -04:00
Vincent St-Amour
eb95b35a12
Fixed a typo in typed Scheme's base env.
2010-05-19 13:10:36 -04:00
Vincent St-Amour
849ee86c85
Added type signatures to more pair accessors in typed Scheme's base env.
2010-05-19 13:10:36 -04:00
Vincent St-Amour
b64fb126f6
Added type signatures for caar and some others to typed Scheme's base env.
2010-05-19 13:10:35 -04:00