Asumu Takikawa
8250375175
Be more picky about Opaque type parsing
...
Closes PR 14122
original commit: 05fced3a68dc1adaf78dbee554ce1a988331777c
2013-11-04 20:10:17 -05:00
Asumu Takikawa
61a18def23
Add in-set
to Typed Racket
...
Closes PR 14128
original commit: 3fa3225c544160b3d2f0448012de1d7cd66b5195
2013-11-04 18:09:53 -05:00
Asumu Takikawa
b903379c2a
Initialize base-special-env in TR typecheck tests
...
original commit: a3a04387fa2bd533743ebf79b00eda526e249667
2013-11-04 18:09:53 -05:00
Asumu Takikawa
b5efb00d7e
Add a TR test that I forgot to commit
...
Relevant to commit 18d4eb51351bb265f69f16b82593
original commit: 54e338037567d5dec688bc522f1871602a1cee43
2013-11-04 15:29:11 -05:00
Asumu Takikawa
d87e869321
Remove unnecessary require
s
...
These imports are unnecessary because of the
`except-in` import of `racket` near the top.
original commit: c1082c9706a7f92e4ea62301caa07820adbdc42a
2013-11-04 15:10:01 -05:00
Asumu Takikawa
5576307897
Delete trailing whitespace
...
original commit: dc1e4fc4e77d0fcfc881942b819b2f9f2db2f48e
2013-11-04 15:10:00 -05:00
Asumu Takikawa
c3f46cf49b
Clean up Typed Racket's main base type environment
...
Sort by manual section, reformat for consistent formatting,
remove redundant lines.
original commit: 50bf292eeb6982bf41facf670477362b55b541c4
2013-11-04 15:10:00 -05:00
Asumu Takikawa
5101cb0507
Renumber section comments.
...
Most were off by one due to documentation changes. Also
reformat for consistency.
original commit: 87273726c2883841730a61475be41a37d2551657
2013-11-04 15:01:13 -05:00
Asumu Takikawa
538bcb518e
Refactor abbrev modules in TR
...
Removed redundant whitespace and lines. Reworded/reformatted
comments for consistency.
original commit: 89c71b4e0486f34e801b00d0d611ae4f6ef03ef1
2013-11-04 15:01:13 -05:00
Robby Findler
1ee060a9aa
unbreak TR (more of my stupidity)
...
original commit: cdbe416b0965f9f5c8f5c86d24a86b13df98a19d
2013-11-02 10:04:24 -05:00
Robby Findler
389a84b5b2
Sorry all; stupid mistake
...
This reverts commit 90fc899b368bbbd16d284d03dcef53039fffbfca.
This reverts commit 780fb37c0dab0bdab8b91a083660ae88021435e8.
This reverts commit 9e54b2bc1b8c0ca8a3d84b86a438153e8e1ff2e7.
This reverts commit 43a584f7105ba3a0d7830879003a8c5241258969.
original commit: 40f7ab2ba4a948a9ac9f6b1114a91c71a0968e9b
2013-11-02 09:51:10 -05:00
Sam Tobin-Hochstadt
ec2ee0af5f
Log types of expressions and fully expanded syntax (before typechecking)
...
original commit: 780fb37c0dab0bdab8b91a083660ae88021435e8
2013-11-02 09:05:11 -05:00
Robby Findler
2f3b9bb927
adjust tc-setup to have a smaller template
...
original commit: 96a782fe9104f949d2082d9f32e0451394c27ede
2013-11-02 09:04:11 -05:00
Vincent St-Amour
6225cc1301
Use the new #:keep-going? option for TR random testing.
...
original commit: 7f90ace5468c612cce1b0cdc57554bb7d945c0f4
2013-11-01 17:47:50 -04:00
Asumu Takikawa
99f901da81
Use the correct fail handler in type lookup
...
The other handler is meant for type name environments.
In practice, this should never come up in the current
codebase, but extensions that use `lookup-type` could
rely on it.
original commit: 612a7fcca97523e7f4b82b0cb5ecc0d6a6321e29
2013-10-31 23:21:23 -04:00
Sam Tobin-Hochstadt
ad1db428d3
handle sets in any-wrap/c
...
original commit: 3ae298b14504be101713692ab7e3169841670a09
2013-10-30 14:29:46 -04:00
Eric Dobson
11eeb1a4ad
Add new known bug.
...
original commit: 4f5e10d7308dc040a65ba465c12cf7e04fcbbce5
2013-10-29 21:50:48 -07:00
Eric Dobson
379b6db28c
Correct type for processor-count.
...
original commit: 83b43df4559f9bd8164cbbc8fefb3b6296c356db
2013-10-29 21:04:27 -07:00
Eric Dobson
69bd69f6d7
Make unary float complex operations optimize.
...
This removes an unnecessary allocation.
original commit: f09ebdb74353c890a836c31297683014a46e4090
2013-10-29 20:29:29 -07:00
Eric Dobson
9ea2a86d94
Add more bugs to known bugs list.
...
original commit: e392b0880ae846c54a36a3e09845f36730b11885
2013-10-27 09:57:29 -07:00
Eric Dobson
62a29e93aa
Reduce testcases for known bugs and document the root causes.
...
original commit: 74377e717e86257c01a823f0b7ed6bda0fa4eea7
2013-10-27 09:23:46 -07:00
Asumu Takikawa
f5ba0864a0
Swap conditional order
...
This has no effect on the truth table, but affects
side effects. It shouldn't actually matter because
`check-all-registered-types` is not called in the
TR top-level anyway, but this seems safer.
original commit: cf7b5b79e766254611255765e8e50f0b80d4c803
2013-10-26 00:12:36 -04:00
Asumu Takikawa
aeee35bccb
Allow re-definition at TR top-level
...
original commit: e513cdc1c445f7d2ca15ef7033caada29ccf63ff
2013-10-25 22:59:58 -04:00
Sam Tobin-Hochstadt
d89b936cc5
Major revision of subtyping code for performance.
...
Improves tests/typed-racket/succeed/new-metrics.rkt by about 33% overall runtime.
Major changes include:
- Handling memoization entirely inside the `subtype*` function.
- Remembering only previously seen pairs of types when one of them
might be a recursive type (such as Mu or a structure).
Thanks to Ryan Newtown for this this idea, which enables the
previous change as well.
- Doing as much as possible without touching parameters.
(Unfortunately, not as much as I hoped was possible here).
- Replacing uses of => in `match` with #:when (written for this purpose).
- Significant improvement to the `Type-key` system so that it is
useful much more often.
- Use of unsafe operations.
- Minor optimizations to a few other operations.
original commit: 0a6537a6cbed7ca477d1539749b0afa371a2fda9
2013-10-22 19:14:26 -04:00
Sam Tobin-Hochstadt
d60c5ca746
Tests use test-engine/scheme-tests
...
original commit: 1d7cd499c1f648782de6188f39b48a258001b618
2013-10-22 15:30:14 -04:00
Eric Dobson
ca2f878a80
Make known bugs executable.
...
original commit: 94e4941f6f74b53ccd476063e700cd002818b77e
2013-10-22 08:43:14 -07:00
Eric Dobson
a04cecd5bf
Replace calls to display with write-string.
...
original commit: 3eb06116ef2c5e5677fb18270f76eeb2392979e1
2013-10-22 08:42:45 -07:00
Eric Dobson
842da7398f
Improve transform.
...
* Make it close the source file after it has finished reading.
* Run in parallel when the file are supplied via the command line.
original commit: 43eadd0fa75e4235318d337e9bd015e1ae6ddd24
2013-10-22 08:42:45 -07:00
Ryan Culpepper
2f5d5f4129
fix named let: errors
...
closes PR 13806
Still to do: document the subtleties of ~and w/ error reporting.
original commit: 504c7a89576f31aa25012cf4351cd3ff42c94895
2013-10-21 23:02:11 -04:00
Asumu Takikawa
c93a0b3921
Adjust contract on make-pred-ty
...
Allow old-style and new-style filter path objects.
original commit: 319a1d68afac507ae9498a75397acffc858786bb
2013-10-18 15:46:07 -04:00
Asumu Takikawa
aee45b227d
Make Typed Racket build with contracts again
...
original commit: f7a49c5e0601d8d82c4149c187c50faf2f69236a
2013-10-18 15:46:07 -04:00
Asumu Takikawa
bc2492bfb9
More TR caveats
...
original commit: 51bca4208c4837cfe84a8beef3b6dca7448267f8
2013-10-16 17:02:03 -04:00
Asumu Takikawa
68da446549
Abstract out "Expected foo, but got bar" errors
...
Use the new helper function to report errors more
helpfully when two identically named type variables
from different scopes are encountered.
original commit: 18d4eb51351bb265f69f16b825932d93b228e69e
2013-10-16 14:39:24 -04:00
Asumu Takikawa
ccdaf6e564
Use string->uninterned-symbol instead of gensym
...
The reason these functions used gensym to begin with
was that fresh variables resulted in confusing error
messages of the form "Expected a, but got a".
An upcoming commit fixes these error messages, so
the gensym is replaced.
original commit: b214fa01c11c6fc74f24318bc702bbb5ad915822
2013-10-16 14:39:24 -04:00
Asumu Takikawa
ef1bb66deb
Linkify
...
original commit: e24310629483b3c2527e04dd82e509fb0b51f7b7
2013-10-16 14:39:24 -04:00
Asumu Takikawa
9aef2f0bed
Typo (plurality)
...
original commit: 6f344c6259ef6ff9d645c502619afbda885189a5
2013-10-16 14:39:24 -04:00
Matthew Flatt
40bc64482e
remove some unneeded dependencies
...
original commit: d5f6b72e6976a36d6777709711765af1117c959b
2013-10-15 17:50:32 -06:00
Matthew Flatt
947181fe22
move some test & doc collections out of "racket-" pkgs to new pkgs
...
original commit: 1920ac59ab0607502641298fc575b66e6acd8c73
2013-10-15 17:50:32 -06:00
Asumu Takikawa
3e57d7972b
Add a caveats and limitations chapter to TR guide
...
original commit: 99427ea6c3788f4e2c5d4259df172f10db119c14
2013-10-15 19:11:26 -04:00
Ambrose Bonnaire-Sergeant
9b715f5ba2
Typo in comment
...
original commit: 51a3094fdcb79b03fd7e9e1973206ca09039e9d3
2013-10-15 13:58:23 +08:00
Vincent St-Amour
82d0c4a3b8
TR for clause specialization: Report specialization failures.
...
original commit: d6372ef2dced88bba56d640b03158f1652671be5
2013-10-10 17:18:03 -04:00
Vincent St-Amour
5b36f34fe4
TR for clause specialization: More detailed message.
...
original commit: 456f32b77f10f807a31388fae951fa66755fd9b4
2013-10-10 17:18:03 -04:00
Vincent St-Amour
e1c1f270a5
TR for clause specialization: log syntax objects with location info.
...
original commit: cef7348e8de66d89baa612ad201054bc1656b197
2013-10-10 17:18:03 -04:00
Asumu Takikawa
61f436be0f
Make : error on unbound identifiers
...
Closes PR 13298
original commit: f6d62b2813616b6efa56acc0695403d7a32e9386
2013-10-08 12:06:58 -04:00
Vincent St-Amour
6a96687838
Fix TR constructor detection.
...
Was accidentally turning #%expression into #%plain-app in some cases.
original commit: ba9873b0a062c2d6a64f8e5a8db3e6bd01a6a5c7
2013-10-04 10:18:44 -04:00
Sam Tobin-Hochstadt
3405bbdfac
Add (very simple) type for hash
.
...
original commit: c88e536c460ff05fc1e8b4c134a5361a14a3f32f
2013-10-03 13:14:02 -04:00
Vincent St-Amour
d49488ebaf
Add Asumu and Eric to the TR credits.
...
original commit: 88f9608c178464806029366353eb5de848a510c3
2013-09-28 17:18:10 -04:00
Vincent St-Amour
89f5af7712
Fix running individual optimizer tests.
...
original commit: 8e225621c3ab2976e40b92e1a2c8ed40206b90b5
2013-09-28 16:40:50 -04:00
Vincent St-Amour
8dbf844521
Fix reporting of struct constructors in TR.
...
original commit: 5f2dfa51442a0adfa20a0aa44bdfb681cd18eca2
2013-09-28 16:40:50 -04:00
Asumu Takikawa
aa5d2e6a82
Improve error message for misuse of type names
...
Closes PR 13289
original commit: cd004fd9cec127cf0e409e824c8b0194983b1cee
2013-09-20 15:49:31 -04:00