Commit Graph

3306 Commits

Author SHA1 Message Date
Vincent St-Amour
a4b5d5d935 Allow integers as sequences in TR.
original commit: 8509b81f4701dbaa06f5b113b431768430db5039
2011-11-30 17:54:27 -05:00
Robby Findler
2db9b65576 some long overdue Rackety: renaming the 'scheme:' exports of the framework to 'racket:'
original commit: 458e2c2282adca43aabe3d1e62957389d2fbe798
2011-11-30 06:45:50 -06:00
Vincent St-Amour
a19c809042 Fix optimization of multi-argument float comparisons.
original commit: 7ab62d109fb44c99b84c4b917f028a9d364e5ead
2011-11-22 17:52:50 -05:00
Vincent St-Amour
96c0eb804c Refine types of integer-bytes->integer' and arithmetic-shift'.
original commit: 0a3a71fbbc4fece033d57b41e36f1deb591c1e8d
2011-11-15 15:31:07 -05:00
Sam Tobin-Hochstadt
8e83505012 Move ==' to racket/match'.
original commit: 81dd112f5709b2b603363899e74b140ce91f5122
2011-11-14 11:03:22 -05:00
Sam Tobin-Hochstadt
9d81fc2593 Fix missing argument.
Closes PR 12356.

original commit: 5fe89966fcd7887223d8131e42f4b151de46d799
2011-11-14 11:03:22 -05:00
Eli Barzilay
94a2c5211d Add a history note on the lazy change, make the TR history specify 5.2.
original commit: cfc465932e0f240ac173590f59f781bc1739fc85
2011-11-03 17:09:58 -04:00
Sam Tobin-Hochstadt
432b35f0b0 Fix curried function type parsing without ().
original commit: 3caf08da43398438b5f8767233ceb831361e9e98
2011-10-28 15:43:29 -04:00
Sam Tobin-Hochstadt
1c4fed2096 Add `typecheck-fail' form for explicit type errors.
original commit: 706198c0596bb1068f03073bac5198906dbb942a
2011-10-25 12:10:58 -07:00
Sam Tobin-Hochstadt
82e7f9249b Fix wrapping of null' when provided as Any'.
Reported by 'dingfeng' on #racket.
Please merge to 5.2.

original commit: da5b68fd4d944cef981062de5ed6d283a351fd1d
2011-10-21 10:55:57 -04:00
Matthew Flatt
983f943bc4 remove built-in reader and printing support for Honu
This is a backward-incompatible change, but I think it's
unlikely that any code depends on the removed bindings
or reader syntax.

original commit: ec380e34ede09586966de5e18e7e7a32a1838d8e
2011-10-05 09:40:27 -06:00
Ryan Culpepper
580c99635e removed useless requires
original commit: c7f86d276c68b12e87dc46cef4a8e1b95538f88d
2011-09-27 19:28:44 -06:00
Vincent St-Amour
0386141c38 Forbid non-productive recursive types.
original commit: ef2acecb96900e52c08170f81e5e69eaf9737f8d
2011-09-23 14:40:17 -04:00
Matthew Flatt
cd4b331886 add var-ref->mod-decl-insp' and switch cur-code-insp' uses
Macros and other tools that need syntax privilege used
`(current-code-inspector)' at the module top-level to try to
capture the right code inspector at load time. It's more
consistent to instead use the enclosing module's declaration-time
inspector, and `var-ref->mod-decl-insp' provides that. The
new function works only on references to anonymous variables,
which limits access to the inspector.

The real function name is longer, of course.

original commit: 0197902309c5400d463393829a88282c627dafd2
2011-09-20 13:50:36 -06:00
Sam Tobin-Hochstadt
6504b0856e Two types definitely overlap if they are equal.
Fixes infinite loop in Whalesong compilation.

original commit: c55cceed8c74ac7d8115fab6656e21949a1a33b8
2011-09-16 17:20:31 -04:00
Sam Tobin-Hochstadt
d1e9916c63 Minor comment formatting.
original commit: 2570fae481d2ec4d023ca254f3ea7efe0f7a89ce
2011-09-16 17:20:31 -04:00
Eric Dobson
ac2bd59ac4 Added comments to explain TR's type on subprocess and friends.
original commit: 1f3d68e55e65ec00fbb3f3c74507487604698a16
2011-09-16 17:20:31 -04:00
Eric Dobson
5f7fbd299e Gave subprocess and similar functions more precise types.
original commit: 7fcf28bef2aa0ebeee043b252caac27065bbad65
2011-09-16 17:20:31 -04:00
Eli Barzilay
6321082875 Some selective #:when (not ...)' -> #:unless ...'.
original commit: 623c7493ed2bbf7c89caea877a7b94a5f4c42c73
2011-09-16 10:48:18 -04:00
Vincent St-Amour
2448292eaa Fix type of random to accept any Integer.
original commit: 297cecebcc130551cb6bb1c134834e6ed719f965
2011-09-13 15:42:04 -04:00
Vincent St-Amour
53553c53aa Fix case-lambda type printing.
Closes PR 12188.

original commit: 7e9e50081861d92e1ae239045a2b1bf151742328
2011-09-13 15:42:04 -04:00
Vincent St-Amour
8578b9ea79 Switch to square brackets for REPL type display.
original commit: 3c3e5902e5269f83ace39f1f2cc42329ccd11a23
2011-09-13 15:42:04 -04:00
Vincent St-Amour
65401d5bd8 Generalize types shown at the REPL, to keep types simple.
original commit: 68d58f7d2acb887e3bca046ed369b31a058e4cfc
2011-09-13 15:42:04 -04:00
Vincent St-Amour
8f044e3880 Compare numeric unions using a linear scan.
original commit: 8ae1a903fa8703e86e3225b098ba0f3a5537eb9f
2011-09-13 11:22:24 -04:00
Vincent St-Amour
43e19ae248 Optimize subtyping of numeric types.
original commit: c63b5873e37d3f33a579c233d3f2f080e7e96603
2011-09-13 11:22:24 -04:00
Vincent St-Amour
c0227807da Add a field to base types to indicate if they are numeric types or not.
original commit: 40456b4fd8119c1308cfd59effe9bf0afda65ad8
2011-09-13 11:22:24 -04:00
Vincent St-Amour
9ef9332c71 Fix whitespace.
original commit: 32b56eb2fa412218c8bb2b5eecf443faa692cc8e
2011-09-13 11:22:24 -04:00
Sam Tobin-Hochstadt
af5092b6cf random' always produces Float'.
original commit: b91880b05ae79659e45fb3ff0b0d62be3e5e9c1d
2011-09-12 16:31:00 -04:00
Sam Tobin-Hochstadt
40de6c2ac7 Add test of behavior like the "module" language in DrRacket.
original commit: d0bf047121351bc696e247299776050f13cc26b3
2011-09-12 12:14:50 -04:00
Sam Tobin-Hochstadt
af26c11c83 Move environment initialization after local expansion in Typed Racket.
This means that syntax errors caught by `local-expand' are reported sooner, but shouldn't change other timing results.

original commit: f9b0f0ce7320b09eb2203580a7d04d909dc2f430
2011-09-12 11:52:26 -04:00
Sam Tobin-Hochstadt
24ce1f006d Make the type of `syntax-local-module-defined-identifiers' more precise.
original commit: ce45c12b67c670485d5c4cc8e2af550340d8e91d
2011-09-12 11:52:25 -04:00
lvilnis
6ba006538a Fixed a bug where predicates would sometimes fail to match 0.0
original commit: 80ece9023aa583428be9292f120ee25f02cd161e
2011-09-09 12:10:58 -04:00
Vincent St-Amour
a9b46a0a80 Fix Performance Report message in the absence of irritants.
original commit: bb62ca4c2b6a933dc2c465e7420b50b90e1d30cc
2011-09-08 18:01:15 -04:00
Matthew Flatt
386f74eb98 generalized `begin-for-syntax'
original commit: d3c56c9f13327d07513f8b6bf7ea0230acb7f489
2011-09-08 14:06:00 -06:00
Sam Tobin-Hochstadt
48766fe47f Switch to racket/base to fix bizarre bug.
original commit: cd073ad549b67f3fe501456b0144f0cb17fd5bd7
2011-09-07 16:08:00 -04:00
Eric Dobson
d642105b65 Fixed subtyping for StructTop. Closes PR11099.
original commit: c62f09ac5b5d4788d06401010eb7cfd02a91c623
2011-09-07 09:17:04 -04:00
Eric Dobson
505327ffed Change overlap for structs in TR. Closes PR11390.
original commit: 32becc2e0a9a2c4d14b0c48fef602187e83e1d28
2011-09-07 09:17:04 -04:00
Eric Dobson
536ed6c037 Resolve names in overlap in TR. Closes PR11392.
original commit: 53ce20d3f9edc9d405a33a8fb2e031b67dad7a09
2011-09-07 09:17:03 -04:00
Vincent St-Amour
b911bd4d36 Forge identifiers instead of dumpster-diving.
original commit: c893502857d2484540e8ba7bde72e101d23fb22c
2011-09-06 16:35:15 -04:00
Sam Tobin-Hochstadt
c5fc573bdf Whitespace fixes, small optimizations of union cases.
original commit: 64a1aee65df1f7babc1e832a39a0fe891f2e39f4
2011-09-06 11:14:57 -04:00
Sam Tobin-Hochstadt
b46873bd75 Switch to id-table, Rackety.
original commit: 076c0fe6d821bc99c80eda95d627091e6fe0d7c3
2011-09-06 11:07:03 -04:00
Sam Tobin-Hochstadt
d42ee35141 Add logging to typechecker main loop.
original commit: 41bfb878c3dfc111be9107276712b35a995d4dcc
2011-09-06 11:07:03 -04:00
Sam Tobin-Hochstadt
1dbda12c6b Micro-optimization.
original commit: c25f7cea2709624b08bed57a468db35abe6a5b21
2011-09-06 11:07:03 -04:00
Sam Tobin-Hochstadt
2422a57cd0 Use better language for lang-info
original commit: 2faa761f533604d99df08a041aa244a45d23495c
2011-09-05 14:21:15 -04:00
Eli Barzilay
7c2f751af5 Some more "typed-scheme" -> "typed-racket".
original commit: fde857e0cbb5a1099eba0f8c88d1570f59d39746
2011-09-05 00:34:05 -04:00
Eli Barzilay
779c621e82 "typed-scheme" -> "typed-racket".
original commit: 746aea002420c8abb7c281720fac22aedc497352
2011-09-05 00:08:17 -04:00
Sam Tobin-Hochstadt
f82fee857c Tests for all Typed Racket languages, and add missing ones.
original commit: c0b4743b407f6ddf09a7c7bf78b7b66f6c311d81
2011-09-04 12:58:13 -04:00
Eli Barzilay
c5432390c5 Revert "Abolish "typed-scheme"."
This reverts commit 49a89da81860e09955f1678bab6106ce8eae8376.

(Will be redone later today.)

original commit: 6ebf3ab32d666e9d1e56cd546fea29d18c42dfff
2011-09-04 10:27:58 -04:00
Eli Barzilay
911fc81ec6 Abolish "typed-scheme".
original commit: 49a89da81860e09955f1678bab6106ce8eae8376
2011-09-04 08:46:03 -04:00
Sam Tobin-Hochstadt
e232403bac Add type for `make-reader-graph'.
original commit: 09f515dff4f1b97eb4e80e161eb182b5fed105f9
2011-09-04 08:34:19 -04:00