Vincent St-Amour
4488b7e69a
Fix TR contracts.
...
original commit: 034aacafabd76b46eee4f475e3787056ad53ff92
2013-02-25 19:25:39 -05:00
Vincent St-Amour
1a4fc8a417
Generalize type of curry to functions of arity 3+.
...
original commit: 088006413f3ec10dcf188b7b21668a89409f27a5
2013-02-25 14:03:17 -05:00
Eli Barzilay
8185a65308
Newlines at EOFs scan.
...
original commit: cec73f5652aee0b78f9265e6a2c4135f131a8248
2013-02-23 02:09:56 -05:00
Eric Dobson
b7c3ede8ce
Make mutable lists be sequences.
...
original commit: f6df93ed964e775cdd1734edd9a41d70b98ab0d8
2013-02-22 21:01:21 -08:00
Asumu Takikawa
75d3e13492
Add doc subforms for keyword types
...
original commit: e8b49e2c824542dcee27471df360c98f5e94b4d5
2013-02-21 15:35:14 -05:00
Vincent St-Amour
6c207dfc33
Add examples of function types with keyword arguments.
...
original commit: e69f66fd00a859b1e507611a27a47d0f4816ddc7
2013-02-21 10:49:58 -05:00
Vincent St-Amour
59299338e3
Filters for comparisons with inifinity.
...
original commit: 034d7245a4fb8109cde8cdc0c5612a8040839892
2013-02-21 10:49:57 -05:00
Vincent St-Amour
6755a11d36
Fix subtyping for Negative-Single-Flonum.
...
original commit: 12aaa229a3fb84018a44f0aff175982a1841b764
2013-02-21 10:49:57 -05:00
Eric Dobson
441845b18a
Make naturals be a sequence type.
...
original commit: 18d90115e7b10c92b02ac843aabe3cb929d975ce
2013-02-20 21:25:02 -08:00
Eric Dobson
19a05ebadc
Make (Set a) a subtype of (Sequenceof a).
...
Closes PR13485.
Closes PR12615.
original commit: 4f9f00680ee560ee59cddd5bdb3fb737c6bcc7f1
2013-02-20 21:25:02 -08:00
Eric Dobson
44d6d411cf
Fix subtyping of invariant data structures.
...
Closes PR13521.
original commit: a7bc758505b0f4d1bb3f4f1053bf1821fa29a118
2013-02-20 21:25:02 -08:00
Eric Dobson
7c4051e62c
Add subtyping for Parameters.
...
Closes PR11992.
This required moving more stuff in to base-abbrev so that it could be
used in subtype.
original commit: ddb8e7f8076e057bf0ef7bb076a17170b5fd2ccc
2013-02-20 21:25:02 -08:00
Eric Dobson
3908da65f5
Make struct types overlap with procedures.
...
Closes PR11971.
original commit: 0b87c999b3113bf378f7c79578a6e65c28e1df67
2013-02-20 21:25:02 -08:00
Eric Dobson
82337641a2
Fixes *-filter types and filter of zero?.
...
Closes PR13275.
original commit: 13b205aa0a6387fe40207753941cccb4c3bed61c
2013-02-18 11:56:59 -05:00
Eric Dobson
aeb152a92b
Improve type of make-immutable-hash.
...
Closes PR13297.
original commit: 36cc3220ea7e07b21b430d2accb373503ccfe7b0
2013-02-18 11:56:58 -05:00
Eric Dobson
2f137e6e10
Improve types for exit and in-naturals.
...
original commit: 7d6888f2291570d05e7cab2b632e6edbc733395e
2013-02-18 11:56:57 -05:00
Eric Dobson
e457b15977
Add testcases for many already fixed bugs.
...
Closes PR11901.
Closes PR11972.
Closes PR12022.
Closes PR12224.
Closes PR12506.
Closes PR12533.
Closes PR12596.
Closes PR13198.
Closes PR13418.
Already fixed bugs, with existing testcases.
Closes PR12529.
Closes PR12631.
Closes PR13127.
Closes PR13128.
Closes PR12970.
original commit: 7e88895bd03fed78028fc79c34856f162c7ba06b
2013-02-18 11:56:55 -05:00
Eric Dobson
a51f55d04e
Make lists with minimum lengths be a subtype of sequences.
...
original commit: 5ed26e806bb890db0aa4c3482c5780d9203a6637
2013-02-14 18:24:52 -05:00
Eric Dobson
4c543e9a5d
Add a simple-Union and Bottom, and have code use them.
...
Requires splitting out the match expanders from base-abbrev.
original commit: 3c31803c192ea9212f5f5f6be73cd1e62afa9853
2013-02-14 18:24:52 -05:00
Eric Dobson
31397e96aa
Make tc-let do unions correctly.
...
original commit: b4beabc977b7e0ce1c4c1363e779079d28c6198d
2013-02-14 18:24:52 -05:00
Vincent St-Amour
236548bf06
Fix optimization of unary complex - and /.
...
original commit: 60959467cf68e3e7e7ec096c038e5e7aa42942cb
2013-02-14 18:24:52 -05:00
Vincent St-Amour
7c65255791
Fix optimizations for complex unboxing.
...
Omitted parts were not used properly.
original commit: c6029cacf83366e505e9c2d0742c1f311f79d73b
2013-02-14 18:24:52 -05:00
Vincent St-Amour
23c105fa8d
Improve a number of numeric function types.
...
Closes PR13468.
original commit: 29a181175ffdc24470a811351733b7129000860a
2013-02-14 18:24:52 -05:00
Eric Dobson
f78ac40491
Add tests for subtyping -poly. Closes PR13510.
...
original commit: 67c6d7804d7ffb6c129b2f98a75e8650744c39ad
2013-02-12 17:07:02 -05:00
Vincent St-Amour
5c11968cec
Forbid singleton types for integers whose type is platform-dependent.
...
Closes PR13501.
original commit: 0bccf6b0b0f425d7052338400b5a0f3a97e124bb
2013-02-11 14:30:19 -05:00
Asumu Takikawa
63f4bfb6c5
Use up-to-date struct syntax in example
...
original commit: 59eb1ad13c02bf9b0fadd5ee2d0131f86f95292f
2013-02-09 19:42:21 -05:00
J. Ian Johnson
a098030f88
For/product treated like for/sum for special annotation. Also allowed no annotation to be consistent with the docs.
...
original commit: 469a69772cefc7d09714e1ab5374b6c7e74c0368
2013-02-08 11:32:21 -05:00
Eric Dobson
7dc142c60e
Add missing pure functions.
...
original commit: 40a9794c8f53c41f1b5dffb7e9ca5bd0c4dd7f95
2013-02-08 11:19:10 -05:00
Eric Dobson
72e090598d
Make overlap more precise.
...
original commit: 19241c09792dc23ff0c633ab6406d5b9189a2e83
2013-02-08 11:19:10 -05:00
Eric Dobson
5a77ece770
Fix :print-type. Closes PR13503.
...
original commit: c2b8671169c51aa20782bd4ba3c046aabea6c351
2013-02-08 11:19:09 -05:00
Vincent St-Amour
c436421efa
Add extra tests and warning about -PosIntNotFixnum.
...
original commit: 830db3c908f6b1b212036d1763a18ffeba884391
2013-02-07 15:19:42 -05:00
Eric Dobson
a8a37a78eb
Make static single flonum checks correct.
...
Closes PR13499.
original commit: 9030da217bd79249ef694f262a26ede8470180da
2013-02-07 15:19:42 -05:00
Asumu Takikawa
83d573bac4
Add a test for PR 13490
...
The bug itself was already fixed by Eric Dobson
original commit: 9636a70f8bdacf347a5bbf2853e8fad69ef1a65f
2013-02-07 13:49:50 -05:00
Vincent St-Amour
163b3dc11e
Allow cast in typed/racket/no-check.
...
original commit: bf2768f2c5a28ff4940ae7e640894738af9f3686
2013-02-05 16:57:42 -05:00
Vincent St-Amour
df3fafae8c
Fix docs for text-based TR optimization logging.
...
Closes PR13493.
original commit: 83413e4704eba009a546f03e88251148b09aede6
2013-02-05 16:57:41 -05:00
Vincent St-Amour
6687c8c5cd
Exclude the right zeroes when checking for equality.
...
original commit: b42034f98b548aa473384e06e2cd153ba9847858
2013-02-04 14:32:44 -05:00
Vincent St-Amour
327c55a28b
Don't special case typechecking of =.
...
Its type is more useful than the special typing rule.
original commit: 568f401bdcea778acfa8c1b80f18b23e9e9c9345
2013-02-04 14:32:44 -05:00
Eric Dobson
916a8bf3e2
Add types for imaginary numbers and fix type of exact? and inexact?.
...
original commit: 9e8cc6af3cb69eac97f998960b58140b1fb115b9
2013-02-04 14:32:44 -05:00
Vincent St-Amour
7dbbd56d47
Add extra tests for contract generation and float zeroes.
...
original commit: ec0446728277c1dfecc88ee1affae8aefdeb3339
2013-02-04 14:32:44 -05:00
Eric Dobson
3899a23a03
Make generated contracts for Floats include NaN.
...
Closes PR13464.
original commit: e656bdb1c572c9e256901a89bfda985aa5700877
2013-02-04 14:32:44 -05:00
Vincent St-Amour
7c8cb9a476
Fix test for invalid fixnum quotient optimization.
...
The test depended on fixnum width, which is not portable.
original commit: 5efaa004f0541b5562400be822bfdeb6f89aa9bc
2013-01-29 16:15:00 -05:00
Vincent St-Amour
02ad4095fa
Improve type of exact? and exact->inexact.
...
Adapted from a pull request by Eric Dobson.
original commit: 0bc60a77c86499186fdf8087621191183104b10f
2013-01-29 12:35:29 -05:00
Vincent St-Amour
e68c287705
Fix type of quotient on fixnums.
...
Closes PR13466.
original commit: 32b3dfc528169609bc05a8fc769da5166d5a2858
2013-01-29 12:35:29 -05:00
Eric Dobson
dc40fa31e8
Type check with expected type when checking recursive loops.
...
Closes PR12678.
original commit: 3c02bb1abbe0d8965c2cd70649ebb1357499a3ee
2013-01-28 16:03:01 -05:00
Eric Dobson
e9e54d41a8
Do not update subtype and resolve caches when subtyping.
...
Closes PR13412.
original commit: 13ff5883fe097f8b37e6a7663e3e0d8baf8c466b
2013-01-28 15:35:56 -05:00
Sam Tobin-Hochstadt
ae3a41a9ab
Avoid using unsafe structure access.
...
Moral: a little temporary speed should never be bought at the cost of safety.
original commit: 492bda2305665445e429ad34db495f0e12d0e466
2013-01-24 23:15:06 -05:00
Sam Tobin-Hochstadt
96bb6af7c2
Fix contracts and expected computation for tc-any-results.
...
original commit: e75e494e6a10b43b952de8d47c436c4f56e1fa41
2013-01-24 23:15:06 -05:00
Eric Dobson
80ed6585fb
Remove tc-results? and other minor improvements.
...
original commit: a2f33f17e900c48fe242d10f86d43a9d2f1ce808
2013-01-23 18:15:21 -05:00
Eric Dobson
378daf06b9
Made tc/exprs check its non final terms with the correct type.
...
Closes PR12974.
original commit: 5a43a5c73078b71dbe4d8b170a88b55812dcb383
2013-01-23 16:41:09 -05:00
Eric Dobson
6e55c674d6
Add tc-any-results as new result-type.
...
original commit: 05e53a0de5febe00d78c358f38a5c9aeb8e0df45
2013-01-23 16:41:09 -05:00
Eric Dobson
ab06e489eb
Make AnyValues but don't actually start using it yet.
...
original commit: aac25b42c92ccdcff8e36d89bf33b81dd9f6331a
2013-01-23 16:41:09 -05:00
Asumu Takikawa
0e1f460ae8
Use new parameter/c argument for contract generation
...
Closes PR 13446
original commit: 4b279eaf6a71017733888bc5df3a6b95bfe4d082
2013-01-23 14:45:59 -05:00
Vincent St-Amour
7466f47f33
Fix TR optimizer tests for TR info logging.
...
original commit: 091e26cde841f9e493b255f84efeaafe05ef7d91
2013-01-18 18:25:18 -05:00
Asumu Takikawa
4275e4970b
Fix filters on odd? and even?
...
Closes PR 13233
original commit: e1b6e84089af1f01e097cec5c612e1b4ce309420
2013-01-18 18:25:18 -05:00
Asumu Takikawa
eeb21f2d8d
Add tests for PR 13094.
...
The bug itself was fixed already when ordinary
type variable scoping was fixed.
Closes PR 13094
original commit: 28d46105c90a026d2313d316581faf8166da1f9a
2013-01-15 15:44:34 -05:00
Eric Dobson
ed0bb82dcf
Make TR compile with contracts enabled again.
...
original commit: 5fe004cd9b85eadf15957cb75f5c15dd7226392e
2013-01-15 12:36:42 -05:00
Eric Dobson
106b3a98cf
Replace uses of Type? with Type/c?.
...
original commit: f315880b50564180a80de561f6fcd2e55a75e69e
2013-01-15 12:23:42 -05:00
Eric Dobson
c21fbc4aac
Fix register-struct-bindings! to meet correct contract.
...
Please merge to 5.3.2.
original commit: a5daacd74701603eede1bd31346520c8afce4e09
2013-01-14 17:30:29 -05:00
Sam Tobin-Hochstadt
ac0ee36da8
Typed modules as languages doesn't currently work.
...
original commit: b6564980abc2d2669ba817152237e48896fd7858
2013-01-14 14:27:33 -05:00
Asumu Takikawa
acccf9c06a
Fix error typo
...
Please merge to 5.3.2
original commit: d95be2ed4de0f3b1554b91361482e16d67d447ea
2013-01-11 21:22:12 -05:00
Vincent St-Amour
2f8b4ba791
Move Optimization Coach to PLaneT 2.
...
original commit: 2c8e5f9acb97f251bf4c9e940c440166bc5943f7
2013-01-11 18:40:23 -05:00
Vincent St-Amour
9f7a0be1f2
Document profiler support.
...
original commit: 903eec448e5978c7cd1f0ad2b25bacb1aeb577e6
2013-01-11 18:40:23 -05:00
Vincent St-Amour
f5e1e7bbfd
Refactor arithmetic hidden cost logging.
...
original commit: 50777aaca4b580173c9f618f9c2f65fd9463dc8c
2013-01-11 18:40:22 -05:00
Vincent St-Amour
5111bed780
Don't track provenance at the log entry level.
...
Not necessary anymore.
original commit: 96078c9da637d6e2df215fc9cd0f5d5032c4437f
2013-01-11 18:40:21 -05:00
Vincent St-Amour
cdee1cc411
Report potential exact rational arithmetic in hot code.
...
original commit: 4271675f698d169945fc057ffa55839f2839ee8c
2013-01-11 18:40:20 -05:00
Vincent St-Amour
6838ac39df
Report struct constructors used in hot code.
...
original commit: 9c7356370577067fffd66d3770cf4a5f3da8a53f
2013-01-11 18:40:20 -05:00
Sam Tobin-Hochstadt
8fd0b9b328
Add struct constructor table.
...
original commit: 696583582b55958028f50fa494a49a682787e6a5
2013-01-11 18:40:20 -05:00
Vincent St-Amour
bd2f48a5a3
Log operations with hidden costs from TR.
...
Currently only implicit parameter dereferences.
original commit: cc168d148dda7758ad79c84cf08fbd5dc56079e3
2013-01-11 18:40:20 -05:00
Vincent St-Amour
c3a4416c69
Rethink profiler integration.
...
Requires the program to manually call the profiler. This dumps the results in
a separate file.
original commit: c8d3aea6dd4066c40dc6e47454a81b776efbc23c
2013-01-11 18:40:18 -05:00
Sam Tobin-Hochstadt
4ec778616e
Fix parsing of maybe-optimize
result.
...
Merge to 5.3.2.
original commit: 1a678bd5de65aac6e806f6cf220cf0c7d441eeb8
2013-01-11 18:15:53 -05:00
Asumu Takikawa
657652d8b9
Change exception predicate for a test
...
For some reason, the other predicate breaks on some
test setups, even though it usually succeeds.
Please merge to 5.3.2
original commit: c5c6280d8767a33891060c6d54907b2aafe778aa
2013-01-09 18:12:45 -05:00
Asumu Takikawa
472ae5dbb2
Fix polydots
...
- parsing of polydots values was fixed
- certain polydots error cases are now reported
- the custom application rule for values was fixed
Closes PR 13365
Please merge to 5.3.2
original commit: f577b49a4df973aab1cfc8cdb45f93320637009d
2013-01-09 18:12:45 -05:00
Asumu Takikawa
04bc05d607
Use correct contract for Procedure type
...
The only problem with this contract is that it does
not produce a very good error message
original commit: 27d3042ad6008432428368bda882987f1f8a23c1
2013-01-08 20:03:16 -05:00
Asumu Takikawa
30da00ba79
Disallow duplicate type variable declarations
...
Closes PR 13416
Please merge to 5.3.2
original commit: 9c0a611b59d57548c0d0b527862f8a501a0098df
2013-01-08 14:50:08 -05:00
Vincent St-Amour
80afaf902f
Extend type of min to preserve fixnumness.
...
original commit: 057a2bd0d2d1c9bc2085eab3817b776aa66dfa19
2013-01-07 17:00:32 -05:00
Vincent St-Amour
c30fb69cdd
Fix fixnum comparisons to prove more bounds.
...
original commit: 81cccb4c8f9ca6a22cb908d2bbf445ab45cc0708
2013-01-02 16:55:28 -05:00
Matthew Flatt
dca5fc09a0
rename test file
...
":" is not allowed in a file name on Windows.
original commit: 43e01d7f4e47d83fe93b38f37ddcd0150b659b8a
2013-01-02 06:33:10 -07:00
Vincent St-Amour
d5bd8a61e9
Fix tests.
...
original commit: 678451f8c41601eaa8b82bb101c0ad2051f447b8
2013-01-01 18:14:52 -05:00
Vincent St-Amour
91f639247e
Make let: annotations optional.
...
original commit: 4137eb9e73d7e4b6d1aa2fe5cff52e81c9ba10da
2013-01-01 18:14:52 -05:00
Neil Toronto
78ee359d5a
More precise return type for `magnitude' (it always returns nonnegative)
...
original commit: e06f31c94e6655c1ecf88ff18a0ecbee9af2e250
2012-12-31 14:17:17 -07:00
Sam Tobin-Hochstadt
c8e5b8caee
Fix type of log-message
.
...
original commit: 0d01db8543d3a05d858243c697687e15dd925206
2012-12-30 22:14:44 -05:00
Matthew Flatt
ffd81f136f
logging: allow name in `log-message', report it in a log-receiver evt
...
The synchronization result of a log receiver is now a vector of four
values, instead of three, where the last one reports the name.
Also, an optional argument to `make-logger' provides a notification
callback for each event sent to the logger.
These changes enable more control over loggers and events. Suppose
that you have processes A and B, and you want all log events of A
to be visible to B, but not vice-versa. Furthermore, you want the
log events to appear at B in the right order: if A logs an event
before B, then A's event should arrive at a log receiver's before
B's. Now that a log receiver gets the name associated with the
original event, and now that the name can be re-sent in a
`log-receiver', it's possible to give A and B separate loggers and
send all of the events from A's logger to B's logger. Furthermore,
you can use the notification callback so that when an event is logged
in B, you can make sure that all available events from from A's
logger have been transferred to B's logger.
original commit: f2d870859aad7cf21d96f81f1f9dfc0eae8adaa7
2012-12-27 14:12:40 -06:00
Matthew Flatt
592e802ad0
add (system-type 'word)
...
Returns 32 or 64 to indicate whether Racket is running as a
32-bit program or a 64-bit program.
original commit: 4a57db44489055115ecf1811b116c5b3f2e3b3e5
2012-12-24 06:38:53 -07:00
Vincent St-Amour
6991bbaad0
Add failing test case for instantiation and special typing rules.
...
original commit: 67af968a73de3df4b86e87c71a8023bc3c929e75
2012-12-19 13:45:49 -05:00
Asumu Takikawa
160d731c4a
Add define: form variant for polymorphic non-function values
...
original commit: acda049f7d102bd370d750e524e8fd7638201627
2012-12-19 13:08:41 -05:00
Vincent St-Amour
0c509a001f
Fix contract generation for functions with optionals and keyword arguments.
...
Closes PR13354.
original commit: 8c66be33e79c4326960efecb00c79a0f41c67a0b
2012-12-17 13:57:32 -05:00
Vincent St-Amour
0145f047ff
Allow #:unless' in
for:'.
...
Also allow `#:break' and `#:final' in all the `for:' macros.
Unfortunately, the expansion of `#:break' and `#:final' cannot be
typechecked at the moment.
original commit: ec673fd58d3e24e999426e4bc07d72a05e3a099b
2012-12-17 13:57:31 -05:00
Asumu Takikawa
9b126624ac
Explain scope of type variables in docs
...
original commit: 57268c2fc9ef3a7b39c99621f809aaffee9d97a8
2012-12-13 17:54:58 -05:00
Asumu Takikawa
444362d5d7
Rackety
...
original commit: ece218fc85570b51dcab99cfe6e0cd47dbf8d6ad
2012-12-13 17:54:58 -05:00
Asumu Takikawa
714c628bca
Fix unsound type variable scoping
...
Closes PR 13123
original commit: 13b831f0ec03f908d836cb1d27aa66c898a8b469
2012-12-13 17:54:58 -05:00
Asumu Takikawa
a13b354d96
Simplify expansion of pdefine:
and define:
...
original commit: 6c716759d7e172bf1a092e584c56a56da778a0a8
2012-12-13 17:54:58 -05:00
Asumu Takikawa
e1799227f0
Fix tests where type variable scoping is wrong
...
original commit: 28108884ab90dfe29f721dcee8575afd7d1a7f5b
2012-12-13 17:54:58 -05:00
Asumu Takikawa
e8fc1ce747
Refactor to use syntax/id-table
...
original commit: 5c80743ed530031150e915dcf178bc4c9b89ec2b
2012-12-13 17:54:58 -05:00
Asumu Takikawa
6639ac8f4c
Add type for xor
...
original commit: 2bc15286300c93542632f296140ed606819fbd88
2012-12-10 15:49:51 -05:00
Asumu Takikawa
300d3dae51
Fix TR error for missing mandatory keywords
...
original commit: c7162ec533ece42d3ece961f30a1c4ba2f8f4b3b
2012-12-06 12:20:54 -05:00
Vincent St-Amour
f7d1cab2bb
Fix tests.
...
original commit: 9a5db10124a68e51bdaff2da4915ca16d5157a65
2012-12-04 19:29:16 -05:00
Vincent St-Amour
efb8befe33
Disable optimization of mixed-mode arithmetic that may involve exact 0.
...
Exact 0 turns out to also be a corner case for addition.
At this point, mixed-mode optimizations pretty much only apply for mixes
of floats and literal non-zero non-floats.
original commit: ac58c45477b060fbdc066f378eb200bb44defb59
2012-12-04 19:29:16 -05:00
Vincent St-Amour
2553e36d24
Don't warn about exact arithmetic for inexact numbers.
...
original commit: 45a3b9f48de31075fe8f83e60a7f47fe5db78aaa
2012-12-04 19:29:16 -05:00
Vincent St-Amour
21e2041a79
Don't optimize mixed-mode arithmetic if it would change results.
...
original commit: 93939f45d01206121b5c129ac2c7ba5ed89f7564
2012-12-04 19:29:16 -05:00
Vincent St-Amour
17c30d1648
Fix partial bounds checking elimination.
...
Closes PR13341.
original commit: fb73bc8b0eb35bfd9e2c35f14fce9ffd97b2b354
2012-12-04 19:29:16 -05:00
Vincent St-Amour
7e20c6dae8
Be less aggressive about fixnum recommendations.
...
Reduces false positives.
original commit: ca47b1c693b9fd48255b5e4872e20a8e7aca955b
2012-12-04 19:29:15 -05:00
Vincent St-Amour
849c6aca05
Fix source location information for do:' and
let:'.
...
original commit: d544e9fbe72b205ca5b5c6efa4772067833d5b30
2012-12-04 19:29:15 -05:00
Asumu Takikawa
7917ff2033
Support path/object reasoning for promises
...
original commit: 5802b42f66706b6d7396aa1855f3d1d0b5f2ca17
2012-12-04 18:03:11 -05:00
Asumu Takikawa
3ff53eb009
Provide a more informative internal error
...
original commit: 04e8e33313842d94d0cbff458ad23047ee1441fc
2012-12-04 16:10:39 -05:00
Asumu Takikawa
a0c32ff288
Fix call/comp's type
...
original commit: 3f2d4663a87939a02223b6620407e25b0507aa4a
2012-12-04 16:10:39 -05:00
Vincent St-Amour
50713b7368
Randomly test the TR optimizer.
...
Compares results of a Racket and a TR sandbox.
original commit: ee0a1d4b89b2dbab9382d37fc4b0139a4ff9b53d
2012-12-03 21:54:01 -05:00
Vincent St-Amour
1501c1db01
Fix optimization of unary float subtraction.
...
Closes PR13339.
original commit: 9f9092b762cb4394e04901694301a1d0750f95d7
2012-12-03 19:46:29 -05:00
Ryan Culpepper
eb40161575
move lazy-require to racket/lazy-require
...
original commit: fd7d8a412cd9d6c4cb8b4c2e43dabd65890267b8
2012-12-03 19:28:12 -05:00
Asumu Takikawa
233e8964eb
Support Any wrapping for promises
...
Closes PR 13326
original commit: 0252207e38aaa679ff78df8bba86f69c70d6912b
2012-12-03 17:59:55 -05:00
Asumu Takikawa
aab9400fbd
Fix default prompt tag type
...
Note: this type could be made more precise,
but we need some contract changes for that.
original commit: 213ff3655409b7ad526154f3733de054f34d290c
2012-12-03 14:37:18 -05:00
Asumu Takikawa
24842684da
Document the default prompt tag in TR
...
Note: this isn't the ideal location for this in the long
run because it isn't a special form. When we have more
bindings like this, we should move them to a new manual
section.
original commit: ffde8ec486abec4741e4d0299f841dcbfe65a3f2
2012-12-03 14:37:17 -05:00
Asumu Takikawa
d5a89d5cff
Fix blame parties for proxied default prompt tag
...
original commit: 55944057b5bdf02b9fd48a964739dfcd4ee516d8
2012-12-03 14:37:17 -05:00
Asumu Takikawa
6ba4798b06
Revert "Ignore contracted proxies from racket
"
...
This reverts commit 702676030b8d4c956d063b3ce4e3bf0d3dc2c594.
(this should actually be documented)
original commit: 25ed52f9d6f407b5ab32ecf5dca70d853d679744
2012-12-03 14:37:17 -05:00
Asumu Takikawa
de8434f9fa
Ignore contracted proxies from racket
...
original commit: 702676030b8d4c956d063b3ce4e3bf0d3dc2c594
2012-11-30 23:45:23 -05:00
Asumu Takikawa
14187b4cdd
Refactor (make argument arity clear)
...
original commit: 42fc3aeda01b987e1a60e14fe760444fc31732a4
2012-11-30 17:37:33 -05:00
Asumu Takikawa
0f0966b8f9
Add a type for continuation?
...
original commit: d9f8c5e382d941150369ccb0a0d09b9e8ce27cb5
2012-11-30 17:37:33 -05:00
Asumu Takikawa
711e418eec
Univ -> ManyUniv
...
original commit: 5fe8841c9951bce9453dae77ca3e4768d6a59c3e
2012-11-30 17:37:33 -05:00
Asumu Takikawa
fec01c3f97
Add more tests for continuation marks & Any wrapping
...
original commit: a42cc9a0012cb7490da13228d21b2182fb1af9d3
2012-11-30 17:37:33 -05:00
Asumu Takikawa
bca928688a
Rename control types to be consistent with other types
...
original commit: 904db66f6557a868ea616421253b8f0cc5e6bd27
2012-11-30 17:37:33 -05:00
Asumu Takikawa
37cbd6d5a9
Docs for prompt tag & mark key types
...
original commit: aae8890cd3939bf6dd6d0bddc640a2e03dcd1c3f
2012-11-30 17:37:33 -05:00
Asumu Takikawa
c6d22871bc
Improve type of call-with-continuation-prompt
...
Now works with the handler argument omitted, in which case
the default handler is used. Note that the default handler
cannot be used in conjunction with the default prompt tag
because it is unsound to do so.
original commit: 4e0b38ea79b8ffa84fd099d980a2713a3831d589
2012-11-30 17:37:33 -05:00
Asumu Takikawa
80f7b65db7
Apply Any wrappers for default-continuation-prompt-tag in TR
...
original commit: 42b07475e95542ec77b47e216e8711573e0820a1
2012-11-30 17:37:33 -05:00
Asumu Takikawa
0c112d8da2
Refactor and move a macro to a helper library
...
original commit: 2511cf02bc67130abe360d39b59e40da3e4a741b
2012-11-30 17:37:33 -05:00
Asumu Takikawa
16a162a150
Fix up old TR tests that should fail now
...
original commit: d6b0c71a91e186837bd4350080d8936acdc494f5
2012-11-30 17:37:33 -05:00
Asumu Takikawa
550d4fde27
Add new tests for typed control
...
original commit: 3ed1d56b0526fb96546a2324d216527590518452
2012-11-30 17:37:33 -05:00
Asumu Takikawa
a613159c6b
Add the rest of the continuation functions
...
original commit: 0accfe24e2d3f351d026d6a3138951e4cad7fdb7
2012-11-30 17:37:32 -05:00
Asumu Takikawa
06f43b2f41
Add Top types for prompt tags and mark keys
...
original commit: 41b59cb46a4b6f6d30cd57f0586fe73f79ef7584
2012-11-30 17:37:32 -05:00
Asumu Takikawa
6f376407d9
Typecheck prompt tags
...
original commit: 4b5d6e71fdfe68dea748b296c4427209d54a920f
2012-11-30 17:37:32 -05:00
Asumu Takikawa
5069b7b9b9
Fix continuation-mark-set-first type
...
original commit: e123e85a9068941d52dff902c4e4f1c0692ebf2c
2012-11-30 17:37:32 -05:00
Asumu Takikawa
72b7c5962e
Contract generation for continuation mark keys
...
original commit: 5fbeffaec6094e8599175fde71ddc4194c2f5f1d
2012-11-30 17:37:32 -05:00
Sam Tobin-Hochstadt
373a7e8b0e
Starting on control typing.
...
original commit: 29d54fb0d0650c62abf05729674d138c53ffefd8
2012-11-30 17:37:32 -05:00
Asumu Takikawa
c87dbd87a7
Forgot to add the test for commit b4dd3b5e1dcb
...
Relevant to PR 13209
original commit: d7163142be1b1d1d1f92bb233a1734762205e0de
2012-11-30 00:12:35 -05:00
Neil Toronto
7969c012a3
Stubbed out missing math/array' and
math/statistics' doc entries to
...
clean up build
Moved `float-complex?' and `number->float-complex' to `math/base',
documented them
Documented `flexpt1p'
Removed `samples->immutable-hash' (not covariant anyway; not going to
use hashes)
original commit: 6f1ffecc2374f2874c1942fe0558420b74cbe223
2012-11-27 18:05:38 -07:00
Asumu Takikawa
678972a806
Fail gracefully on TR struct arity errors
...
Closes PR 13209
original commit: b4dd3b5e1dcbec41512c02f947253233f8c53370
2012-11-20 17:47:13 -05:00
Vincent St-Amour
c9972ae31c
Add new versions of for/hash: and co that the typechecker can handle.
...
Based on Eric Dobson's implementation.
Closes PR13248. Closes PR13249.
original commit: 95d51fc8928145fb6f82c8c877e1efcb92432128
2012-11-20 17:45:15 -05:00
Vincent St-Amour
c797b00d02
Heterogenous -> heterogenEous.
...
Found by Ray Racine.
original commit: e2007abd7a06f5bd5ab7a5fd03180e9f2c20bc7f
2012-11-20 17:06:51 -05:00
Vincent St-Amour
c5600af371
Fix types of variable arity functions to work with 0-argument return values.
...
Closes PR13218.
original commit: d994ba19146f284809f410962e682c7293c41d63
2012-11-20 16:15:20 -05:00
Vincent St-Amour
dd27a40ad8
Only generate ->* contracts when arguments are really optional arguments.
...
Closes PR13274.
original commit: 6a7b971cd66b79e1aac0e0ea65bc59f667ef727e
2012-11-19 17:35:07 -05:00
Neil Toronto
690f54e633
Added `define-typed/untyped-identifier' to typed/untyped-utils
...
Made return types of `flvector-length' and `unsafe-flvector-length' more precise (they return Index)
original commit: ac424a73a5f3fa81d34f11585ff80b63b5cdebb6
2012-11-16 10:52:56 -07:00
Sam Tobin-Hochstadt
728e347f29
Use error-display-handler
instead of threads for multiple error reporting.
...
Closes PR 13240 (in reality, avoids the bug, but ryanc says that it's too
hard to fix).
original commit: 30e26f00cdcf9a08f076b03bceb0a9b9255151fa
2012-11-15 12:33:25 -08:00
Asumu Takikawa
f6106431fb
Fix whitespace in test
...
original commit: b4a98af3197ec0828dbe83ce835453598459bd22
2012-11-10 12:03:47 -05:00
Asumu Takikawa
fb52e98a05
Fix Custodian type
...
original commit: d22532db163bdb06007c248628c4002280817579
2012-11-10 11:12:06 -05:00
Asumu Takikawa
cf1a2c71d0
Fix a free variance bug
...
Commit ffe45ecce had introduced a regression with some
polymorphic functions imported between typed modules due to
miscommunicated variance information.
original commit: daca1c0d5b6040978b1c75d4cc822c0a3a819181
2012-11-09 01:43:57 -05:00
Sam Tobin-Hochstadt
3892d0101e
Correctly bind place?
for contract generation.
...
original commit: 0a0ac35ee6a427d3ca8341eb04a844a4ae7b8514
2012-11-07 12:21:09 -05:00
Sam Tobin-Hochstadt
dcb7dbac6d
Chars are compared with eqv?
.
...
original commit: 056c1aaff44918a4e2439aa84c6b931e1afd4473
2012-11-07 12:21:09 -05:00
Eli Barzilay
3e4bbc8394
Newlines at EOFs.
...
original commit: 14d8c8b5a5b665d03c14748e5416ec2f1753d4fb
2012-11-06 14:07:15 -05:00
Eli Barzilay
3fdc7889cb
Some "obvious" switching from racket' to
racket/base'.
...
original commit: 1c8001d174db69c57bfb0ee42e0ce75c2371e72e
2012-11-06 13:29:09 -05:00
Sam Tobin-Hochstadt
2dfa34a01c
This test always errors -- belongs in fail.
...
original commit: c1cace28ec8072e77d70ccc40c27011c5f788295
2012-11-01 21:14:50 -04:00
Danny Yoo
dd38ff4d8c
adding close-eval at the end of scribble files that have a toplevel evaluator
...
original commit: dcf4d8b040f1acdc535d1542e0d7b1bb1112d987
2012-11-01 15:32:53 -06:00
Tony Garnock-Jones
4229c80060
Correct TR types for udp-bind! and udp-connect!.
...
original commit: a57e158c43b25fac9803cb1af399e53b97144df0
2012-10-31 21:42:57 -04:00