Sam Tobin-Hochstadt
6b35e1cb24
Test for PR 10946.
...
original commit: 0e3c2b71cc827236f4695e0271b869c416489557
2010-06-01 13:38:45 -04:00
Vincent St-Amour
58c87429da
Changed the types of some numerical operations to be closed on naturals.
...
original commit: 2229173b82b295a74269a11b9ff360a840f15b8f
2010-05-29 11:31:47 -04:00
Sam Tobin-Hochstadt
30120ded59
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.
original commit: d323a794e86993dc6a594d3d732d1cd623945d21
2010-05-28 19:24:46 -04:00
Vincent St-Amour
999ff9ebfa
Documented the for: macros.
...
original commit: 046d95293ac806e628bc804548cf3189598959d1
2010-05-28 19:05:44 -04:00
Vincent St-Amour
d7ef7a2bad
Disabled multi-valued seq-exprs in the for: macros because using them
...
triggers an internal error in the typechecker.
original commit: e9a00146303991e4517fc0f406c484f1f6cca646
2010-05-28 19:05:44 -04:00
Vincent St-Amour
506bf7890c
Wrote tests for the for: macros.
...
original commit: c92ae7385976f99bb5aa3d7a0ee29950d38a3d30
2010-05-28 19:05:44 -04:00
Vincent St-Amour
19a6f3f61d
Added the for*/X: macros.
...
original commit: 49caa00890a6bc89bb80210e041cc443cb5df2a8
2010-05-28 19:05:43 -04:00
Vincent St-Amour
a3edb55e69
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.
original commit: 08baa400c3cc03de6a5f7181a15f960238f1eaaa
2010-05-28 19:05:43 -04:00
Vincent St-Amour
48c3edca84
Added the for/lists: and for/fold: macros.
...
original commit: 1ec6bd448b4dc325603ed41ec81cf04cc33866b8
2010-05-28 19:05:43 -04:00
Vincent St-Amour
7ef168c27d
Better support for #:when clauses in the for: macros.
...
original commit: 3518428635a7adb9f591d4cb9b8905e8add439ee
2010-05-28 19:05:42 -04:00
Sam Tobin-Hochstadt
8c0e9178ac
Guard type-equal? test.
...
original commit: 8194bcc4d41c79c39cb0a4a13a810f2b6bbc35d3
2010-05-27 12:46:37 -04:00
Sam Tobin-Hochstadt
2681178ffc
Avoid requiring old base-types.
...
original commit: 9701ae0065dbc54f36059b20a78a917a20ae18e5
2010-05-27 10:56:18 -04:00
Sam Tobin-Hochstadt
53c630bc14
Simpler has-name? implementation.
...
original commit: bd0bcda85e0526e22b31a8dd64dbaf083d0d992a
2010-05-27 10:50:15 -04:00
Sam Tobin-Hochstadt
97c4253166
Fix test for new `do:' behavior.
...
original commit: 63dbde1e9eff5cf7b4d2965a6d26fbc2dc7280e9
2010-05-27 10:10:26 -04:00
Sam Tobin-Hochstadt
371934cf82
Fix error message for multiple values.
...
original commit: d4a8c52c7102778e6b1ef8fae8b5c75774069487
2010-05-27 10:10:26 -04:00
Sam Tobin-Hochstadt
b1e9e9ea82
Better type for `round'.
...
original commit: 40c77586a059efc6a09a6ef0bdf73a35808f24b0
2010-05-27 10:10:26 -04:00
Vincent St-Amour
c7db08fcf7
Typed Scheme's optimizer now recognizes specialized (safe) float
...
operations.
original commit: e3b994abfffb0ebc3a5460a0a8730441875ebbb1
2010-05-26 19:48:30 -04:00
Vincent St-Amour
3e3b203726
Fixed a bug in typed Scheme's optimizer when using binary arithmetic
...
operators in a unary fashion with floats.
original commit: 762f108c04b78f14d851b6b93b5bf0c873658399
2010-05-26 19:48:30 -04:00
Vincent St-Amour
1bd4bf1e82
Extended the type signatures of bitwise operations to be closed on naturals.
...
original commit: 664ef2c0a3bb478634591b596f2473f249095e4f
2010-05-26 19:48:29 -04:00
Vincent St-Amour
312671d85d
Added the for:, for/list:, etc macros.
...
original commit: 5213f54f56e6d9d1a14b16fd0348495a20a648e9
2010-05-26 19:48:15 -04:00
Vincent St-Amour
3bbf39b86a
Rewrote do: to expand into do.
...
original commit: 23f30af459b4157c87b62dff535cdd0b7eb46927
2010-05-26 19:20:32 -04:00
Eli Barzilay
4306ef78a7
A few more stray "racunit"s.
...
original commit: 5c702976c216362aab695a1c973fb17948b23149
2010-05-26 15:21:55 -04:00
Sam Tobin-Hochstadt
3355f0d731
Fix Typed Scheme printing of types.
...
Merge to 5.0.
original commit: 85b59a2f4c99e19948865cabbcfcc0d9b7cca6c0
2010-05-25 07:58:06 -07:00
Sam Tobin-Hochstadt
09151b1037
Remove `define-struct' from typed/racket.
...
Closes PR 10619.
original commit: 3885ba4f543626e9fa1df8d4580cdad907ce5a40
2010-05-25 00:09:04 -07:00
Sam Tobin-Hochstadt
f5c6d808af
Test for former bug. Closes PR 10470.
...
original commit: 775e1b06a577a1306ab50de05174a6e26f944d40
2010-05-25 00:09:03 -07:00
Sam Tobin-Hochstadt
987521b9eb
Check that at least one require spec is provided.
...
Closes PR 10617.
Merge to v5.0.
original commit: 27e971dce20634fa6be551fecd64e639fbd909aa
2010-05-24 22:33:31 -07:00
Sam Tobin-Hochstadt
1c955c4e56
Better internal error messages.
...
original commit: 460bb348e10f07534bc74e7f91b8b4bc8655ac68
2010-05-24 14:05:05 -07:00
Sam Tobin-Hochstadt
bbf633a95c
Tests for bug found by David Van Horn.
...
original commit: af689b253188d61ae12c01f0f0240817c767c474
2010-05-24 14:04:43 -07:00
Sam Tobin-Hochstadt
e345eb7448
Print empty filters as -
...
original commit: b21f70408687afa5617230478146ece76d71d53b
2010-05-24 14:04:01 -07:00
Sam Tobin-Hochstadt
af4ff86f52
Remove tc-toplevel from the typechecking unit.
...
original commit: 986318065d71817c59c9571e72fe8abcce4944cd
2010-05-24 14:03:14 -07:00
Sam Tobin-Hochstadt
5ba6d3297f
Only do abstraction of filters at `let's.
...
original commit: 5b0f705b8374a3a136250a40560d4e5e00c6fba3
2010-05-24 14:01:00 -07:00
Sam Tobin-Hochstadt
7692d06741
Fix parsing of All on RHS of ->
...
original commit: f320d36e9c7fc2698d1becff28511dd8413430da
2010-05-24 13:26:29 -07:00
Sam Tobin-Hochstadt
b656915497
Improve verbose printer.
...
- Fewer newlines.
- Avoid printing hidden fields.
original commit: fac0e197cfe75a4a811b0d953674731e8be14e7b
2010-05-24 13:23:37 -07:00
Sam Tobin-Hochstadt
3a0485de2b
Improve type of count and vector-count.
...
original commit: 601e693b01e3091612c3690d834becd0a83d69fb
2010-05-22 18:07:50 -04:00
Sam Tobin-Hochstadt
3257de4bff
Document Exact-Nonnegative-Integer
...
original commit: e6d85175f3713d7e65bdc0219853ff43a94f3e48
2010-05-22 18:03:18 -04:00
Vincent St-Amour
8a00140b63
Fixed a bug with Typed Scheme's do: with no finish-expr.
...
Include in 5.0 release.
original commit: fece1f6d03caea796b99921f1979a652e1a6b97c
2010-05-21 19:31:43 -04:00
Vincent St-Amour
00444e8b41
Extended the type signatures of trigonometric operations.
...
Include in 5.0 release.
original commit: 88dc30aa3c1fcc0707a440aa9e9558d0e1764bb5
2010-05-21 19:31:42 -04:00
Sam Tobin-Hochstadt
5a0e07e296
More precise types for: truncate, floor ceiling
...
original commit: 230f1a59c6bb51bf69c1651cadb3a77868bcbef5
2010-05-21 10:41:24 -04:00
Sam Tobin-Hochstadt
c679415de3
Add test file.
...
Closes PR 10594.
original commit: e9ac3651a47233a278eb332e011cd24a1c042bbc
2010-05-19 15:22:22 -05:00
Sam Tobin-Hochstadt
291937c278
Allow expected type to have weaker filters and objects.
...
Closes PR 10729.
original commit: 9fe3747a19e38d2041814d897f7db0e67d02a0e0
2010-05-19 15:14:18 -05:00
Sam Tobin-Hochstadt
1e25674287
Allow recursive types in type annotations for `list'.
...
Closes PR 10562.
Tests for fixed bugs.
original commit: 7e9313bad3c8f8b7d6e0241f6904dce45ac77786
2010-05-19 15:14:18 -05:00
Vincent St-Amour
d27153b74c
Added logging to typed Scheme's optimizer.
...
original commit: 3e757d0fb199d0cd565d2c094584a737be00942f
2010-05-19 13:10:37 -04:00
Vincent St-Amour
e78937195c
Extended the typed Scheme optimizer to handle all the core forms.
...
original commit: 7adedacf2b6acb1c8cea34aae4e8e12009141adf
2010-05-19 13:10:37 -04:00
Vincent St-Amour
a781b50533
Extended typed Scheme's optimizer to traverse more forms.
...
original commit: b543177868f97a7cfe0bdf57f555da4d580ef726
2010-05-19 13:10:37 -04:00
Vincent St-Amour
1f7ab8285d
Typed Scheme's optimizer can now generate unsafe car and cdr.
...
original commit: f2edae0e9a42e0bdb5c53224a3525edc8a6fd4d7
2010-05-19 13:10:37 -04:00
Vincent St-Amour
f824817aa9
Wrote tests for the new pair accessor type signatures.
...
original commit: 790658886b043085ec9f325e08565e52304cdd85
2010-05-19 13:10:36 -04:00
Vincent St-Amour
40360c095e
Added some special cases to type signatures for pair accessors.
...
original commit: f77e4eeb418ffc1a626d40b97e56d1cfbac6c47d
2010-05-19 13:10:36 -04:00
Vincent St-Amour
3ba7e83662
Fixed a typo in typed Scheme's base env.
...
original commit: eb95b35a12e886f6678f62f69990b4553684680c
2010-05-19 13:10:36 -04:00
Vincent St-Amour
e381611808
Added type signatures to more pair accessors in typed Scheme's base env.
...
original commit: 849ee86c855999daf91947bd26fadb4e296dfaa3
2010-05-19 13:10:36 -04:00
Vincent St-Amour
548e080a03
Added type signatures for caar and some others to typed Scheme's base env.
...
original commit: b64fb126f652a239404413db2db87c239db9b967
2010-05-19 13:10:35 -04:00