Commit Graph

3049 Commits

Author SHA1 Message Date
Eric Dobson
a8a46ddeef Fix error message construction.
original commit: 98c573557eb4cfe8f88aa225043669448d248d19
2013-11-11 08:13:59 -08:00
Eric Dobson
d771ecdd8b More refactoring.
original commit: c162a83c69a116cdcc2a41ad23a361cb987854f4
2013-11-11 08:13:59 -08:00
Eric Dobson
5deef7e6b6 Clean up unboxed function parsing loop.
original commit: d882abe47bfdd899bdb5371cc6f604bdff97e13e
2013-11-11 08:13:58 -08:00
Eric Dobson
c49290c3f3 Add syntax class for unboxed functions.
original commit: a56f2af6711e8aae9d458129936fbe5213a097d4
2013-11-11 08:13:58 -08:00
Eric Dobson
071e56bb44 Make function for adding an unboxed function.
original commit: c76ec838cf8d7ee2864eded6e300291d82d1b1e2
2013-11-11 08:13:58 -08:00
Eric Dobson
788ef23b07 Make function for adding vars to unboxed vars table.
original commit: 7af7dea0781cc8b1b299001c30a20f202c3ce4ce
2013-11-11 08:13:58 -08:00
Eric Dobson
adcdc052ff Move uses of unboxed-vars to centralized definition.
original commit: 3cab38845ef2b760699fdda5c8b915080ac1c75a
2013-11-11 08:13:58 -08:00
Eric Dobson
0ae7a5cdd4 Move unboxed tables to seperate file.
original commit: ce109d79234e63d24c2921225b8dad08ef2bb089
2013-11-11 08:13:58 -08:00
Eric Dobson
41241a3ff5 Make float-complex optimizations be more picky.
original commit: 547b57c29e26393845c7a2e047c1ed27bfa8d54b
2013-11-11 08:13:58 -08:00
Eric Dobson
e7b33c0f52 Make conjugate correctly optimize.
original commit: 0d30866d045218e2626f60be3163df75da1e154c
2013-11-11 08:13:58 -08:00
Eric Dobson
f55d5445d6 Minor fix to number matching in complex opts.
original commit: 73c03103699bfd2ccaa7ff97bb831d77d5ac4bfd
2013-11-11 08:13:57 -08:00
Eric Dobson
e4894c9cec Make float complex multiplication not optimize on number expressions.
original commit: fda570e915db2e220214005975442cd5cf153d7c
2013-11-11 08:13:57 -08:00
Eric Dobson
604997de6b Correct unary minus in complex numbers.
original commit: 161da0a2eb3393f3e805de7ee27ab6641e65070c
2013-11-11 08:13:57 -08:00
Vincent St-Amour
89d248332c Have optimizer ignore #%top expressions.
original commit: 3494b89f25525db0b848c8da5bb21db382578a2f
2013-11-08 16:43:09 -05:00
Vincent St-Amour
08adb59b66 Have optimizer ignore contract definitions.
This bug was hidden by a bug in syntax/parse.

original commit: 80fba7f42d98255b1ab8a8e1c48d62f17303bf11
2013-11-08 16:43:08 -05:00
Vincent St-Amour
df0d87c948 Add missing core form.
original commit: 2d6fc203508445de04511bab038f7c6e69e65be0
2013-11-08 16:43:08 -05:00
Vincent St-Amour
1eca551202 Typo.
original commit: 47aee51359f6b1ba5e84c21d333524f783512442
2013-11-08 16:43:08 -05:00
Ambrose Bonnaire-Sergeant
cdc131b29e typos
original commit: 8cfe4173c4f52a577fd4841a823633c8408e67fa
2013-11-06 15:22:52 -05:00
Asumu Takikawa
36ba652e5c Revert type key change from 0a6537a6cbed7ca477d153
Sets are still treated as hash sets. Eventually
when we have a type for generic sets, it should have
a #f type key.

original commit: 570c58961ed1603733e2c5c7be3402db60e766b8
2013-11-06 14:20:10 -05:00
Asumu Takikawa
c550151a02 Name and print top types consistently
Closes PR 14117
Closes PR 14118

original commit: ac3823228231bc2d24d7f9a90a0d0842069c5732
2013-11-06 14:08:16 -05:00
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 requires
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