Commit Graph

269 Commits

Author SHA1 Message Date
Robby Findler
e1e9148d78 adjust the interface reference in drracket for the new view menu
(cherry picked from commit df4508573a)
2012-07-22 19:19:53 -04:00
Vincent St-Amour
a53ff364ac Replace fields with local-member-name accessors.
(cherry picked from commit 848a28266c)
2012-07-22 19:19:27 -04:00
Vincent St-Amour
4c889bc0bc Typo.
(cherry picked from commit 95e117b7f5)
2012-07-22 19:19:24 -04:00
Vincent St-Amour
4351c01038 Rename undo-thunks to clear-thunks.
They don't have anything to do with editors' undo.
(cherry picked from commit c237cee025)
2012-07-22 19:19:20 -04:00
Vincent St-Amour
8d59ea5580 Use local member names for Optimization Coach public methods.
(cherry picked from commit eda3e70670)
2012-07-22 19:19:16 -04:00
Vincent St-Amour
f0006b6535 Refactoring.
(cherry picked from commit fceb3db69c)
2012-07-22 19:19:13 -04:00
Vincent St-Amour
1975f596b6 Delete trailing whitespace.
(cherry picked from commit 6af2e49db3)
2012-07-22 19:19:09 -04:00
Vincent St-Amour
89e06e802f Optimization Coach should not catch break exceptions.
(cherry picked from commit f6feff3c51)
2012-07-22 19:19:04 -04:00
Vincent St-Amour
29557d55dd Update Optimization Coach documentation.
Please merge to release.
(cherry picked from commit ea6ba36ccb)
2012-07-22 19:19:00 -04:00
Vincent St-Amour
4bfaae4d0b Consistent capitalization with other menu items.
(cherry picked from commit 7c0ef33bb7)
2012-07-22 19:18:49 -04:00
Vincent St-Amour
82a50d3eee Only enable Optimization Coach button in Typed Racket.
Other languages can access it through the View menu.

Please merge to release.
(cherry picked from commit 24b314a40a)
2012-07-22 19:18:45 -04:00
Vincent St-Amour
497473c1ff Disable loop detection heuristic with too many false positives.
(cherry picked from commit d396b34b2d)
2012-07-22 19:18:41 -04:00
Vincent St-Amour
89565734b9 Change Optimization Coach message.
(cherry picked from commit 2e594d3606)
2012-07-22 19:18:37 -04:00
Sam Tobin-Hochstadt
1832c2b712 Ensure that structs don't overlap with simple values.
Reported by Ray Racine.

Please merge to release.
(cherry picked from commit 4a90c6c1fe)
2012-07-20 15:29:47 -04:00
Sam Tobin-Hochstadt
7468ae4e3c Document Struct.
Merge to release.
(cherry picked from commit a589d02751)
2012-07-19 12:53:53 -04:00
Robby Findler
3b5eb1da41 add a View menu item for the optimization coach 2012-07-17 13:45:33 -05:00
Matthew Flatt
c8f4ac6ae4 submodules: make .zo path stick for consistent independent loading
When a module is loaded from bytecode and then the value of
`use-compiled-file-paths' changes, an attempt to load a submodule
would fail, because source isn't used if the main module is
already declared, and the bytecode code is not used according to
`use-compiled-file-paths'. Make the bytecode path stick when it
is used once, so that submodule loads succeed, and make it work
even with `namespace-module-attach'.

The module-attach part of this protocol requires a change to the
API of a module name resolver: the notification mode gets two
arguments, instead of one, where the second argument is an
environment.
2012-07-17 09:47:05 -06:00
Sam Tobin-Hochstadt
22904ef43e Use lazy instead of delay, as recommended by Eli. 2012-07-17 07:11:23 -04:00
Eric Dobson
9dac995e36 Fix things broken by bad rebasing. 2012-07-15 19:21:26 -04:00
Eric Dobson
1df6165e9f Clean up of typechecking for heterogeneous vectors and structs. 2012-07-15 19:21:26 -04:00
Eric Dobson
dd078dcb95 Clean up of tc-app.rkt. 2012-07-15 19:21:26 -04:00
Eric Dobson
779291c795 Remove special cases for - and fx- in tc-app.rkt. 2012-07-15 19:21:26 -04:00
Eric Dobson
8f98bb6d92 Added cond-check-below 2012-07-15 19:21:26 -04:00
Eric Dobson
3dfd4c52a9 Fix bad contract and clashing provides in TR when contracts are enabled. 2012-07-15 19:21:25 -04:00
Eric Dobson
030e56311e Make TR compile cleanly with contracts enabled.
Added a couple of contracts and fixed some others up as well.
The two bugs were that with-contract was not imported, and that
subtype could be called with Values and Results.
2012-07-15 19:21:11 -04:00
Sam Tobin-Hochstadt
8c659d50ed Properly handle quoted constants with bad expected types.
Closes PR 12874.
2012-07-14 23:06:13 -04:00
Sam Tobin-Hochstadt
1dca82784b Handle arbitrary recursive contracts generated from Rec types. 2012-07-14 22:45:08 -04:00
Sam Tobin-Hochstadt
2aaeec4520 Improve type of values when applied to one argument.
Closes PR 12846.
2012-07-14 22:45:08 -04:00
Sam Tobin-Hochstadt
ccf79943ab Fix special case for expected unions of vectors.
Closes PR 12845.
2012-07-14 21:56:44 -04:00
Sam Tobin-Hochstadt
2500dad8f1 Don't shortcut simple letrec forms that aren't lambdas.
Closes PR 12841.
2012-07-14 21:36:56 -04:00
Sam Tobin-Hochstadt
9e097866bf Vector fixes.
- Allow indexing into a VectorTop, with result `Any`.
- Don't use special typing rules for applications when the operator
  has an annotation or instantiation.

Closes PR 12887.
Closes PR 12888.
2012-07-14 21:30:26 -04:00
Sam Tobin-Hochstadt
49b030ac8d Fix documentation of Sequenceof type.
Closes PR 12831.
2012-07-14 21:30:26 -04:00
Sam Tobin-Hochstadt
f40c7f11a6 Mutable data at typed boundaries can't have flat contracts.
Closes PR 12884.
2012-07-14 20:43:35 -04:00
Sam Tobin-Hochstadt
546c12cf2a Parse (Struct t) as StructTop.
Close PR 12903.
2012-07-14 19:20:51 -04:00
Sam Tobin-Hochstadt
418a0c311b Print StructTop nicely.
Related to PR 12903.
2012-07-14 18:41:42 -04:00
Sam Tobin-Hochstadt
4cba6e010f Intern Struct types properly wrt. identifiers. 2012-07-13 17:10:50 -04:00
Sam Tobin-Hochstadt
e6697fe43f Require binding of add-mod. 2012-07-13 17:10:50 -04:00
Sam Tobin-Hochstadt
683f8e4e4b Use promises for current-type-names. 2012-07-13 17:10:50 -04:00
Sam Tobin-Hochstadt
2dd9a43d1b Fix tests for new type name declaration. 2012-07-12 17:41:12 -04:00
Sam Tobin-Hochstadt
396b04eb86 Reduce some dependencies of Typed Racket prims. 2012-07-12 17:41:12 -04:00
Sam Tobin-Hochstadt
5ab3827b48 Delay actual initialization of type environment. 2012-07-12 17:41:12 -04:00
Sam Tobin-Hochstadt
775dc67a3b Rename type-decl submodule to #%type-decl. 2012-07-12 17:41:12 -04:00
Vincent St-Amour
1a7c9844ec Disable Optimization Coach in the student languages.
Also disables it for other language menu languages.
2012-07-12 12:42:20 -04:00
Vincent St-Amour
60a0f3b854 Rename Performance Report to Optimization Coach.
The new name is more accurate.
2012-07-11 10:59:35 -04:00
Vincent St-Amour
decdea8806 Refactoring. 2012-07-11 10:59:35 -04:00
Vincent St-Amour
9f12764d25 Have Performance Report popups be trigged by a right-click menu.
Taking over left-click in highlighted regions is bad style.
2012-07-11 10:59:35 -04:00
Vincent St-Amour
c5d9f6a228 Refactoring. 2012-07-11 10:59:35 -04:00
Vincent St-Amour
8b64dc8aef Only highlight text, not empty space at the end of lines.
To play nicer with pop-up menus.
2012-07-11 10:59:35 -04:00
Vincent St-Amour
d48762fa1d Comment on tradeoff. 2012-07-11 10:59:35 -04:00
Vincent St-Amour
895e3a94fa Accept inliner log messages from unsaved editors. 2012-07-11 10:59:35 -04:00