Commit Graph

1564 Commits

Author SHA1 Message Date
Vincent St-Amour
8dba93646a Remove redundant logging message. 2011-08-15 12:19:54 -04:00
Vincent St-Amour
2a80582ed9 Fix arity raising for letrec. 2011-08-15 12:19:54 -04:00
Vincent St-Amour
63b5747018 Formatting. 2011-08-15 12:19:54 -04:00
Vincent St-Amour
becaac8c18 Have arity raising play nice with Check Syntax. 2011-08-15 12:19:54 -04:00
Vincent St-Amour
b536445cde Fix visibility of arity-raised bindings. 2011-08-15 12:19:54 -04:00
Sam Tobin-Hochstadt
fdcb22ea32 comment out type that produces strange duplicate error message. 2011-08-14 13:40:42 -04:00
Sam Tobin-Hochstadt
54c044c36a Fix initial type environment for new-style keyword functions. 2011-08-14 13:40:42 -04:00
Sam Tobin-Hochstadt
2d094db270 Fix typechecking of `#%variable-reference' 2011-08-14 13:40:42 -04:00
Sam Tobin-Hochstadt
d948626fac Use syntax-track-origin more pervasively to get the right arrows in check syntax. 2011-08-12 11:09:11 -04:00
Vincent St-Amour
281e1003e3 Add disappeared uses to have optimized code play nice with check-syntax. 2011-08-11 18:25:46 -04:00
Vincent St-Amour
271f696c58 Refactoring. 2011-08-11 18:25:46 -04:00
Vincent St-Amour
cef410f5e2 Rename a parameter to better reflect what it's for. 2011-08-11 18:25:46 -04:00
Robby Findler
997813680d change the #:get-lock-file argument of call-with-file-lock/timeout to #:lock-file 2011-08-11 09:29:31 -05:00
Tony Garnock-Jones
54285e2f92 Correct type on typed variant of module->namespace. 2011-08-04 13:34:14 -04:00
Vincent St-Amour
5d4e5ed393 Break long lines. 2011-08-03 17:39:16 -04:00
Vincent St-Amour
b124d68f40 Improve error message for calls to 'sort' when inference fails. 2011-08-03 17:39:15 -04:00
Vincent St-Amour
1a661256f8 Abstract printing of function types. 2011-08-03 17:39:14 -04:00
Robby Findler
b972a0940d Added online expansion and compilation of files
being edited in DrRacket (via places)

Added an API to let tools have access to that
  information (and compute more stuff)

Used that to make an online version of Check Syntax
  which led to a separately callable Check Syntax API.
2011-08-02 16:28:16 -05:00
Vincent St-Amour
5f4c577d5b Get rid of pseudo-syntax. 2011-07-29 18:31:10 -04:00
Vincent St-Amour
4164b04324 Remove serialization. 2011-07-29 18:23:16 -04:00
Vincent St-Amour
0ff3aafed6 Speed up Performance Report on unsaved files. 2011-07-29 18:23:16 -04:00
Vincent St-Amour
191f7a5f17 Add an early failure case for portname matching. 2011-07-29 18:23:16 -04:00
Vincent St-Amour
30ea1afc58 Fix Performance Report on unsaved files. 2011-07-29 18:23:15 -04:00
Vincent St-Amour
aa235ac959 Use `call-with-sandbox-context'.
This should make it possible to avoid serialization.
2011-07-29 18:23:15 -04:00
Vincent St-Amour
7775779e6a Do expansion inside a sandbox. 2011-07-29 18:23:14 -04:00
Vincent St-Amour
ea1ae29e0f Have log entries carry pseudo-syntax instead of syntax.
Unlike syntax, pseudo-syntax is serializable, and it only carries the
information that Performance Report needs. Serializability is
necessary to be able to expand the program inside a sandbox and get
log entries out.
2011-07-29 18:23:14 -04:00
Vincent St-Amour
0951ad5b1b Add types for #%kernel's memq, memv and member. 2011-07-29 13:43:11 -04:00
Vincent St-Amour
88a3d93e9e Add a type for #%kernel's reverse.
Present in the expansion of for/list.
2011-07-29 12:54:29 -04:00
Vincent St-Amour
968f3b0905 Restore proper error handling. 2011-07-29 12:54:29 -04:00
Vincent St-Amour
d794d33b5e Go back to previous expansion strategy.
The DrRacket expansion functions don't offer anything more than plain
expand + a sandbox, and using them made the code less readable.

This reverts commit 96eee2b317.
This reverts commit 19ce4d44a5.
This reverts commit 58fbd8ba75.
This reverts commit b305ea9c62.
This reverts commit 860feb30ae.
2011-07-29 12:54:29 -04:00
Vincent St-Amour
5b22dfb6b0 Add for*/sum: and for*/product: to TR.
These currently don't play nice with inference, so they only work in
limited cases.
2011-07-29 12:54:29 -04:00
Vincent St-Amour
6a8011854b Add for/sum: and for/product: to TR. 2011-07-29 12:54:29 -04:00
Vincent St-Amour
5521e3ad5e Lock the top-level editor of the popup. 2011-07-29 12:54:28 -04:00
Vincent St-Amour
c085f51aa2 Fix for empty case-lambdas. 2011-07-22 17:24:14 -04:00
Vincent St-Amour
df0ae80a7f Display ellipses even if the :print-type message was already displayed. 2011-07-22 17:07:49 -04:00
Vincent St-Amour
93787f6215 Change :print-type message. 2011-07-22 17:05:03 -04:00
Vincent St-Amour
dcff8854fb Only suggest using :print-type once per REPL session. 2011-07-22 17:03:43 -04:00
Vincent St-Amour
3ba93cb165 Add a heuristic for case-lambda type simplification.
Makes simplification _much_ faster for types that have a single most
general case. That includes most numeric functions.
2011-07-22 16:55:21 -04:00
Vincent St-Amour
86490943a3 Remove stale comment. 2011-07-22 16:46:10 -04:00
Vincent St-Amour
02b76d7741 Omit a redundant pass. 2011-07-22 16:40:11 -04:00
Vincent St-Amour
84931448b5 Flip order of type simplification passes. 2011-07-22 16:38:15 -04:00
Vincent St-Amour
5b6d0ae167 Refactoring. 2011-07-22 16:22:36 -04:00
Vincent St-Amour
f7be12d313 Typecheck pregexp literals correctly. 2011-07-22 16:22:36 -04:00
Vincent St-Amour
27cd6aca6f Use set coverage for union printing. 2011-07-22 16:22:36 -04:00
Vincent St-Amour
10e79ba2ec Clean up printing of unions that involve numeric types. 2011-07-22 11:41:27 -04:00
Vincent St-Amour
96eee2b317 Refactor. 2011-07-22 11:41:27 -04:00
Vincent St-Amour
19ce4d44a5 Don't block DrRacket if expansion exits abnormally. 2011-07-21 17:14:05 -04:00
Vincent St-Amour
58fbd8ba75 Report errors during expansion in the interactions window, not as internal errors. 2011-07-21 17:06:04 -04:00
Vincent St-Amour
b305ea9c62 Use DrRacket's program-expansion mechanisms instead of directly calling expand. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
860feb30ae Unitize performance report, to get access to some DrRacket internals. 2011-07-21 17:06:03 -04:00