Commit Graph

4531 Commits

Author SHA1 Message Date
Asumu Takikawa
a14f3785fc Refactor TR define to avoid a performance bug
After commit 3d177e454ea3634060a4b9b0814f588bc7c74e49
running the main `math.scrbl` file would show peak memory
usage of around 600-700MB when before it was around 400MB.

The proximal cause appears to be the expansion of TR
definitions, which added an extra `begin` in some cases,
combined with redefinitions at the top-level. I don't
know the core cause yet.

Thanks to Matthew for pointing out the issue and to
Vincent for helping with debugging.

original commit: 92b0e86ed1cf0270730c004211387b3fdc4b0469
2014-03-31 18:21:04 -04:00
Sam Tobin-Hochstadt
617a24e932 Fix typos spotted by Ambrose Bonnaire-Sergeant.
original commit: d3ddd3a0d4f36ced0911e8e50a896176611fe941
2014-03-31 11:22:17 -04:00
Sam Tobin-Hochstadt
ece77b55cc Add a test for 2dmatch + Typed Racket.
original commit: 78987ef608f3afaca9452f322022d1d8ee41664d
2014-03-31 10:37:03 -04:00
Sam Tobin-Hochstadt
fed14d647a Respect typechecker:called-in-tail-position when calling non-thunks.
original commit: 52c5d9fde6ae4a9c6208b473d5a208f3bf18d501
2014-03-31 10:12:29 -04:00
Sam Tobin-Hochstadt
24b5bf0edf Turn timing logging on unconditionally.
original commit: 70e74b20d927ddf0454e1ba0a7daf4db6dc49405
2014-03-31 10:12:29 -04:00
Asumu Takikawa
43b4206784 Remove unused require in class-prims
original commit: 98abb8eb900e73c541da181833f1b143ad31142a
2014-03-28 16:19:04 -04:00
Asumu Takikawa
43ed379c60 Fix for commit dd239f3
Forgot to commit the edits to the tests for the
reorganization in the last commit.

original commit: e9f7f3de93437542c4c7efb01dd480ac436380db
2014-03-28 16:19:01 -04:00
Asumu Takikawa
8b873506de Cut out class dependencies for typed/racket/base
Use (require typed/racket/class) for classes when
using #lang typed/racket/base

original commit: dd239f3d4faf4f501be3dbea313b8f192c8069fe
2014-03-28 14:01:23 -04:00
Eric Dobson
5dfa1681ae Make domain-mismatches have a more sensible default value.
original commit: 4e51b1d737004bd6d7b21c8d5f1b9d251174cb89
2014-03-27 09:17:56 -07:00
Eric Dobson
860f0933df Fix misuse of expected in tc-keywords.
original commit: 2bb3fa9138db98fb77a0c2cf9adb4ce0d28af3da
2014-03-27 09:17:56 -07:00
Eric Dobson
ace04bc75c Fix misuse of expected in tc-funapp.
original commit: eaafd418d977dd77507b56b6cd8e9f0db4fcc5b6
2014-03-27 09:17:56 -07:00
Eric Dobson
c1a888eb1b Add test cases for fixed PRs.
Closes PR 13191.
Closes PR 13290.

original commit: 41ea8f3358fc286e44928f510fd7cb37be48f7b4
2014-03-26 23:33:40 -07:00
Eric Dobson
6d2bc8c4ea Make TR work with contracts enabled.
original commit: 917fa3aeb7bae505716ad1e6794df6bb5c796edb
2014-03-26 23:33:39 -07:00
Eric Dobson
9a7e34674f Make tc-error/expr return (ret -Bottom).
original commit: ca3411155f4257e890cb2eb52d0ab1896e0199ea
2014-03-26 23:33:39 -07:00
Eric Dobson
a79ba7561d Replace tc-error/expr with tc-error/delayed where appropriate.
original commit: ef98a582cb4ebf582c67244cf170d1c2a3ac1d3d
2014-03-26 23:33:39 -07:00
Vincent St-Amour
dc06d868ed Make TR random tester more robust against special values.
original commit: dd943c8754203a232af704b6a8f70c8242885894
2014-03-26 14:16:36 -04:00
Vincent St-Amour
c23c422e04 Refactor testing grammar.
original commit: 35f7a9a0e7913bc1fc16f8f635e381079f58f96c
2014-03-26 14:16:36 -04:00
Eric Dobson
68479c60f8 Add invert-filter and use it in -imp.
original commit: a662f72c9ee90969f6e45afa25db26661f5cf59a
2014-03-26 09:15:28 -07:00
Eric Dobson
4311b0b052 Make let correctly implement the TC-Let rule from the paper.
original commit: b9e7d087bae3ea5d9a46a426607d4986e7bc189d
2014-03-25 23:07:50 -07:00
Eric Dobson
6864b0fb79 Remove unused clause arguments in tc-let-unit.
original commit: 4876d7d320707c3469dd3ae97c5f126187744385
2014-03-25 23:00:27 -07:00
Eric Dobson
d1ed0c066f Add test case for PR12985.
Closes PR 12985.

original commit: 55cb28168e8a54da3bc50a903b541693b4b5a917
2014-03-25 21:25:50 -07:00
Asumu Takikawa
5f15a74891 Avoid a parameter for controlling resolve caching
The parameter dereference slowed down type-checking
new-metrics.rkt to about 28s from 16s on DrDr.

Instead of the parameter, explicitly remove items from the
cache during type alias setup.

original commit: 862d58a2f4802e13018b6acb26db7c37842b841a
2014-03-26 00:18:33 -04:00
Eric Dobson
4ca82450a1 Add test case for PR 11747.
Closes PR 11747. This was fixed at some point.

original commit: e4716bd68a31f790ab7b0616feb2d4aa63e68300
2014-03-25 19:24:06 -07:00
Eric Dobson
e1851074b7 Fix tc-let for mutable variables.
Closes PR 14415.

original commit: b09ced6a0cc085bb0ed38b0bdb210a531a7e645f
2014-03-25 18:52:57 -07:00
Eric Dobson
8005c6be2f Add support for contracts on non-returning functions with filters.
original commit: b67c3272dc34147a907623c9723187952e333ff5
2014-03-25 09:41:57 -07:00
Sam Tobin-Hochstadt
0e02a31e85 Use lazy-require to avoid dependency for fv.
original commit: fe4d784fc4a77c9de3838e36f9b8e71ef87e279b
2014-03-25 09:16:02 -04:00
Eric Dobson
237aeb761c Make TR use rest annotations over expected type.
Closes PR 10936.

original commit: c67f5f753cadf2b5a4f595b4e4c14264382aea16
2014-03-25 01:16:43 -07:00
Eric Dobson
684601415e Make -imp simplify more, and use it in more places.
Also add filter tests for implication.

original commit: 049057edd9634f9bf9b0c5d1e1b527df130813bf
2014-03-25 00:03:39 -07:00
Eric Dobson
6a4eeea99f Make Bottom not a special case for tc-any-results.
original commit: fcedc4ab59e4d6f21d396cf3ed1979155b75a337
2014-03-24 20:27:54 -07:00
Eric Dobson
82050c3b40 Make -filter and -not-filter do more simplification.
original commit: cc377272d666d709687ce330eadad822619d7d84
2014-03-24 00:09:17 -07:00
Eric Dobson
b4e5d4dd47 Remove dead code in tc-metafunctions.
original commit: aedf612a069fbfad30479148b2fece4f542f30da
2014-03-23 22:49:27 -07:00
Eric Dobson
da85e3ccf9 Make typecheck tests provide more information.
original commit: 240695a4c1391b6e5b895e3e292ff534671ba082
2014-03-23 14:35:36 -07:00
Eric Dobson
a2741ff57b Fixup rec-lambda contract
original commit: ac1d7ea19ea2dada94b15d86352fd2e814ee8e5d
2014-03-22 17:12:30 -07:00
Eric Dobson
bc979afe28 Remove duplicate top-filter empty case.
original commit: 94a5f215b17b99467fd836fe1ff3c2eeb30dd8ed
2014-03-21 23:45:47 -07:00
Eric Dobson
da368d9e46 Fix use of expected type of ignore expressions.
original commit: ca082c2176ce8bd79e8bb572d7a0a8d2e53b225f
2014-03-21 23:45:47 -07:00
Eric Dobson
df3d7d642b Fix misuse of expected in tc-send.
original commit: 8de32baf28b507db1d834349a8d8289992e447bf
2014-03-21 22:58:45 -07:00
Eric Dobson
aa6c6e96e3 Fix tc-if. Remove dead cases and misuse of expected.
original commit: cf713b7030ff147bcd845c0f3d6814d96c8b2c95
2014-03-21 22:58:44 -07:00
Eric Dobson
e97ada3017 Fix expected use in single-value.
original commit: 750e408d942a4335ead436a58684a47026625b21
2014-03-21 22:58:44 -07:00
Eric Dobson
76953553f9 Make wcm not misuse the expected results.
original commit: 29fb1c60c2e972b6c89f0e12fe6c54316ad274ad
2014-03-21 22:58:44 -07:00
Eric Dobson
f241d2b36b Make tc-values not misuse expected.
original commit: e355539c41958de8fe6a992c5ea603cc3725065f
2014-03-21 22:58:44 -07:00
Eric Dobson
b518da29d3 Change tc-app-lambda to not return bad filters.
Makes tc/rec-lambda/check return the actual results, and erase the names of
the values bound by the let.

original commit: 8cf1246fb1d32e1ea4cf1d1df4bfc6c70ae30f46
2014-03-21 22:58:43 -07:00
Eric Dobson
2f3ec59680 Make heterogenous vector typechecking not double typecheck the arguments.
original commit: 74f8dc74366a22a3b55f4475bf42c316f705302e
2014-03-21 22:44:45 -07:00
Eric Dobson
ff7f9ce9a2 fixup
original commit: a7d6809243cbe4bf88863e369dbd2f654cca0362
2014-03-21 22:01:32 -07:00
Eric Dobson
2d27138aea Update current-seen
original commit: 534f41e729b8136e901359d38c946d8b23f637fb
2014-03-21 22:01:32 -07:00
Eric Dobson
c2fafe90e0 Make version of tc-err that checks return types.
original commit: bbec6422840bcd6c11530de441b851801eb4d974
2014-03-21 09:04:49 -07:00
Eric Dobson
c9ed25f192 Make check-below not return no-filter and no-obj.
original commit: 43449f820c0786ddd0bf3b150822b3176fa1192d
2014-03-21 08:52:32 -07:00
Eric Dobson
437d07aae9 Make abbreviation for make-Event to match others.
original commit: a7f0be7165886f4ac3a6a62942e359a8a76e362a
2014-03-20 21:12:42 -07:00
Eric Dobson
1b2947b765 Add type key to ClassTop.
original commit: efd27fa4f7d48add6d42f482fb453e5a5cc0eec0
2014-03-20 20:42:10 -07:00
Eric Dobson
e0403713c6 Simplify typechecking of extend-parameterization.
original commit: ca867bc97f3cca1381d331f30cb14f3b9555ffdf
2014-03-20 20:22:17 -07:00
Eric Dobson
296f83ff19 Fix polymorphic class checking.
original commit: 9aa7accd89a2a338c03f1c3ac034e7e047135f08
2014-03-20 08:31:55 -07:00