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
Eli Barzilay
7585edbcb6
xrepl improvments:
...
* a single function to set up all environment parameters.
* improve `getarg's treatment of default thunk
* Add an error display handler that doesn't show the context and instead
add a ,bt command to show it.
2011-07-29 07:29:29 -04:00
John Clements
0bcff68226
minor testing changes
2011-07-28 22:51:00 -04:00
John Clements
e178dbc4f2
unimportant tabbing fixup
2011-07-28 22:51:00 -04:00
Robby Findler
a26eb340c8
fix the parent of the 'can close this window?' messages for tabs that aren't the frontmost tab
2011-07-27 07:39:48 -05:00
Matthew Flatt
b78a1a8355
remove abbreviations for for/sum' and
for/product'
2011-07-27 07:55:20 +01:00
Matthew Flatt
fae6e273ed
lexer tweak to get named procedure
2011-07-27 07:55:18 +01:00
Matthew Flatt
7123996b30
change `eval-jit-enabled' initialization
...
to reflect whether JIT compilation is supported by the build
(i.e., set it to #f initially when the JIT is not supported)
2011-07-27 07:55:05 +01:00
Matthew Flatt
9ace663021
Racket-implemented reverse',
member', memv',
memq'
...
With the JIT, the `reverse' function is significantly faster,
while the `member' variants do not really change; the main
benefit is that the operations play well with futures.
The C implementation is still used when the JIT is unavailable,
since the Racket implementations can be much slower in
interpreted mode.
2011-07-27 05:47:46 +01:00
Matthew Flatt
f1160da419
add for/sum',
for/product', etc.
2011-07-27 05:47:46 +01:00
Matthew Flatt
c6f1178be3
fix an error message
2011-07-27 05:47:46 +01:00
Robby Findler
344168690e
likely fix for bug on mailing list that Matthias reported
...
("drracket fails to start up properly" Tue, Jul 26, 2011 at 2:12 PM)
et fails to start up properly
2011-07-26 21:05:49 -05:00
Jon Rafkind
1e4c9b4ec3
use new reader for #lang honu
2011-07-26 17:41:07 -06:00
Jon Rafkind
ae6a69b8eb
make syntax objects
2011-07-26 17:41:07 -06:00
Jon Rafkind
a39cd8773a
refactor
2011-07-26 17:41:07 -06:00
Jon Rafkind
df9b8db14a
parse sub-trees
2011-07-26 17:41:06 -06:00
Jon Rafkind
1f9b9b4c51
parse tokens into a tree
2011-07-26 17:41:06 -06:00
Jon Rafkind
1978002312
handle end of line comments
2011-07-26 12:31:45 -04:00
Jon Rafkind
f941e56f71
lex identifiers and delimiters
2011-07-26 12:31:45 -04:00
Jon Rafkind
4e8e18463b
add lexer for honu
2011-07-26 12:31:44 -04:00
Jay McCarthy
99fd3546be
Adding serialization of theories
2011-07-26 08:22:19 -04:00
Eli Barzilay
61f628f2c6
fix error reporting in `reencode-output-port'
...
Closes PR 12077
2011-07-25 23:46:16 -04:00
Robby Findler
eba9c56d8c
adjust the control-s keybinding so that it behaves like the menu shortcut
...
keep the old keybinding on esc;% (only under linux)
2011-07-25 13:40:15 -04:00
Matthew Flatt
e01ee43300
fix error reporting in `reencode-input-port'
...
Closes PR 12076
2011-07-25 13:11:05 -04:00
Matthew Flatt
73b16c8578
don't constant-fold an fx operation if the result is non-fx
...
In fact, the result must be an fx on all platforms, since
compilation should be platform-independent.
2011-07-25 11:30:23 -04:00
Matthew Flatt
f13a669d05
add 'no-focus style to `editor-canvas%'
2011-07-25 11:30:23 -04:00
Matthew Flatt
69f7e912d2
cocoa: fix problems with sheets and focus
...
Avoids a problem with the file dialog when a sheet is the
current "main window" (Cocoa terminology); when the file
dialog is closed, both the sheet owner and the sheet
become the main window (in that order), so that when the
sheet goes away, the sheet owner doesn't become the main
window as it should. It seems like a Cocoa problem. The
workaround is to hook into the callback that says a
sheet went away.
Closes PR 12073
2011-07-25 11:30:22 -04:00
Robby Findler
b0ea1efc9e
whoops^2 (both this and the previous commit: a refactoring put the wrong default argument in a function's parameter list)
2011-07-25 06:28:00 -04:00
Robby Findler
43a85acc8f
oops
2011-07-25 00:08:18 -04:00
Robby Findler
01fe366e8c
fix standard-fish when the mouth is to the right
2011-07-24 23:26:14 -04:00
Robby Findler
7d06ae80f4
do a better job putting the right info into the struct id for provide/contract's struct clauses
...
closes PR 12053
2011-07-24 23:25:39 -04:00
Robby Findler
899b339a16
improved the expansion of struct/c
2011-07-24 23:24:20 -04:00
Stephen Bloch
764f356fdc
Added some tests for map-image/extra and build-image/extra.
2011-07-24 21:50:39 -04:00
Stephen Bloch
9a24e66df0
Fixed an off-by-one bug in "myflip", an example for build-image. Now it passes its tests :-)
2011-07-24 21:50:38 -04:00
Stephen Bloch
ab01d563ca
Changed error messages in test case to match corrected error messages in
...
2htdp.
2011-07-24 21:50:38 -04:00
Jay McCarthy
3fca28c68f
Adding documentation for servlet testing system
2011-07-24 16:59:00 -04:00
Jay McCarthy
6e59cbf1d7
Adding documentation and tests for xml/path
2011-07-24 16:58:59 -04:00
Jay McCarthy
75631c6f2a
Repairing tests
2011-07-24 16:58:59 -04:00
Jay McCarthy
bc5846d40e
Small typo in error usage
2011-07-24 16:58:59 -04:00
Jay McCarthy
df0e35b213
Adding the basics of the servlet testing library, but then discovered a weird error, and took a sidetrack to catch it. I'm making a commit to be able see if there were any real problems or if it is just broken tests
2011-07-24 16:58:59 -04:00
Stephen Chang
7e933ee8a4
fix stepper test-engine unclosed input-port (in windows) problem
2011-07-24 12:19:05 -04:00
Stephen Chang
8956364387
change recon-val in stepper to use render-to-sexpr for non-lazy lists
2011-07-24 12:18:09 -04:00
Matthew Flatt
42f41d868a
fix compiler/zo-parse for sequence splice
...
Merge to 5.1.2
2011-07-22 22:19:58 -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
Jon Rafkind
23e907aa5c
add printf. recognize strings as atoms
2011-07-22 14:43:45 -04:00
Jon Rafkind
d4ea3b5d79
parse multiple call arguments
2011-07-22 14:43:45 -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
Matthias Felleisen
ed7f16c872
fixed a totally misleading error message in big-bang; MUST GO INTO RELEASE
2011-07-22 10:34:26 -04:00
Matthew Flatt
8711aa6c5d
work around win64 drawing problem
...
Merge to 5.1.2
2011-07-22 07:51:01 -06:00
Robby Findler
56b82ba83c
fix the png conversion code for 2htdp/image images
...
closes PR 12061
please merge to the release branch
2011-07-22 08:09:17 -05:00
Stevie Strickland
01396784c9
Fix set/c to conform to hash/c-like restrictions.
...
Since sets are implemented using the elements as the domain of a hash table,
the following must be true:
* element contracts for (seteq ...) must be flat
* element contracts for (seteqv ...) must be flat
* element contracts for (set ...) must be chaperones, and the resulting
contract is a chaperone contract
Also, change higher-order set/c contracts to be chaperone contracts
due to the new restrictions.
2011-07-21 18:49:06 -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
Vincent St-Amour
30146b7b8c
Expose more of the TR opt logging.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
73140544ce
Clean up.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
b068e4a53b
Add a lower-level interface to unstable/logging.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
fe58048844
Remove stale comment.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
fae966146f
Handle desired types being outside of the function's range.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
59027c6b40
Moved handling of empty pruned case-lambdas.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
c0d0211ebb
Add a function to query how to get a given return type from a function.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
51b98138d5
Fix :print-type to use tc-setup.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
a71db7c15c
Document how to start a TR REPL from the command line.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
4735ad3523
Refactoring.
2011-07-21 17:06:03 -04:00
Vincent St-Amour
70e1d63bed
Add a function to print whole types.
...
With this, it's possible to get more information than the simplified
types shown at the REPL. The types are as unwieldy as ever, but you
have to ask for them explicitly.
This is not an adequate long-term solution, and will be replaced by a
"Type Explorer" tool.
2011-07-21 17:06:02 -04:00
Vincent St-Amour
1a66f60eb4
Don't print full function intersection types at the REPL, if possible.
2011-07-21 17:06:02 -04:00
Robby Findler
754b4df5e8
make sure the language-specific toolbar buttons are put into the toolbar in the right order initially
...
closes PR 12068
2011-07-21 14:15:11 -05:00
Robby Findler
1c2f4ab05c
add an exit handler setting for the drracket:eval:* functions
...
(and then adjust the drracket-repl exit handler to take
precedence over that one)
closes PR 12071
2011-07-21 13:34:54 -05:00
Robby Findler
7820db9f8d
missed a spot in the addition of chaperone info for opt/c
2011-07-21 09:38:22 -05:00
Jon Rafkind
1b914ead61
add optional val before functions and arguments
2011-07-20 19:22:30 -06:00
Jon Rafkind
292512221e
function == lambda. add new syntax for defining functions
2011-07-20 19:22:30 -06:00
Matthew Flatt
8504996862
fix `raco ctool -e' for syntax taints
...
Merge to 5.1.2
2011-07-20 14:09:38 -06:00
Sam Tobin-Hochstadt
7a763a2da8
Fix types of kernel struct constructors to include parent fields.
...
Merge to 5.1.2.
2011-07-20 15:19:53 -04:00
Matthias Felleisen
59f0732fa0
fixed docs for >=; Closes PR 12066
2011-07-20 15:20:22 -04:00
Robby Findler
9595145d79
adjust the teaching languages so they print images specially.
...
I picked "#<image>" not because I think it is a good way to print,
but just so that there is something there to be easily changed later,
when someone who has an opinion decides to change it.
2011-07-19 16:17:06 -05:00
Robby Findler
2a78ea9723
change autowrapping preference default
...
please merge to release branch
2011-07-19 16:17:04 -05:00
Robby Findler
230f18a366
add some detail about bullet and o-bullet to slideshow docs
...
closes PR 12055
2011-07-19 16:17:02 -05:00
Robby Findler
3fa2cc0d67
adjust the size-pref frame mixin to track the position of the frame in a multi-monitor sensitive way
...
(also fix various issues with that code and unify the framework and drracket way of doing this)
2011-07-19 16:16:50 -05:00
Sam Tobin-Hochstadt
f67d46cd2f
Pass the correct number of arguments to `display-size'. Closes PR 12062.
2011-07-19 17:04:51 -04:00
Eli Barzilay
1b86ff641a
Typo in comment
2011-07-19 17:04:42 -04:00
Sam Tobin-Hochstadt
8a608ed840
Conditionalize use of contract.
2011-07-19 16:47:13 -04:00
Eric Dobson
e07ce478af
Switched name field in struct type to identifier. Closes PR 11728.
...
Closes PR 11998. Closes PR11859.
2011-07-19 16:47:13 -04:00
Eric Dobson
81b1178a17
Fixed TR contracts to be more/less strict
2011-07-19 16:47:13 -04:00
Eric Dobson
a7f0f7591d
Fixed types for path operations. Closes PR12057.
2011-07-19 16:47:13 -04:00
Eli Barzilay
8109299ec8
Improve macro stepper output, and some more ,stx outputs.
2011-07-19 16:39:15 -04:00
Eli Barzilay
f5e53de4d9
XREPL tests.
...
Not too much, but already tests large parts of sensitive code. Caught a
bug where ,top would use (enter! #f) but enter grabbed the wrong
namespace since it was instantiated in the wrong namespace.
2011-07-19 16:39:15 -04:00
Vincent St-Amour
419398ce1a
Fix test to not be dependent on floating-point printing.
2011-07-19 15:19:17 -04:00
Vincent St-Amour
29882d8fa1
Remove redundant precision-loss messages.
2011-07-19 15:19:17 -04:00
Guillaume Marceau
2ae0376476
Fixes the (cons an image empty) error message
2011-07-19 13:01:07 -04:00
Jon Rafkind
a7768a13a3
use #%module-begin for honu modules so top level expressions get printed
...
macros return whether they terminate parsing
2011-07-19 11:00:32 -06:00
Matthew Flatt
255549c8c8
win32: fix is-maximized' in
frame%'
...
Merge to 5.1.2
2011-07-19 08:55:33 -06:00
Matthew Flatt
6d073e0cf7
fix `get-slides-as-picts' to record margin with picts
...
Closes PR 12059
2011-07-19 08:45:11 -06:00
Matthew Flatt
c8b3763359
cocoa: fix image paste
...
Closes PR 12028
Merge to 5.1.2
2011-07-19 08:12:39 -06:00
Stevie Strickland
6bf13ee2dd
For lack of a colon, unit tests were failed.
2011-07-19 08:25:42 -04:00
Carl Eastlund
302cbb5275
Fixed a macro stepper bug: can't use zero? on syntax span, as it can be #f.
...
Please include in the upcoming release.
2011-07-19 03:07:53 -04:00
Matthew Flatt
23a2a075ea
add get-display-count' and #:screen argument to
get-display-size'
...
and to `get-display-left-top-inset'
add -M <monitor> option to Slideshow
2011-07-18 20:15:15 -06:00
Matthew Flatt
b096fb7503
gtk: `get-display-size' reports main monitor only
...
and the same for `get-display-left-top-inset'
2011-07-18 19:59:05 -06:00
Matthew Flatt
25329c203c
typo
2011-07-18 19:59:05 -06:00
Sam Tobin-Hochstadt
42b79dd489
Fix Typed Racket handling of exception handling with multiple return values.
2011-07-18 17:42:28 -04:00
Sam Tobin-Hochstadt
23c47728c5
Strengthen contracts to require syntax lists.
2011-07-18 17:41:17 -04:00
Sam Tobin-Hochstadt
25cdd87405
Fix internal error message.
2011-07-18 17:38:40 -04:00
Eli Barzilay
09c8880ea0
Fix reading a 'line argument: always succeeds and returns the line as-is.
2011-07-18 15:39:18 -04:00
Eli Barzilay
261288c394
Add $F for ,sh commands.
2011-07-18 15:34:31 -04:00
Eli Barzilay
3c1e624916
Add an example for extending xrepl, the very stupid way.
...
For the record, a way to do this permanently is to add something like
this to your ~/.racketrc:
(eval '(begin
(saved-values-char #\~)
(defcommand eli "stuff" "eli says" ["Make eli say stuff"]
(printf "Eli says: ~a\n" (getarg 'line)))
(defcommand er #f "alias for errortrace" ["Runs errortrace"]
(run-command 'errortrace)))
(module->namespace 'xrepl/xrepl))
But this is too stupid even for a section that has "Hacking" in its title.
There should definitely be an organized way to do this. This will
require several things:
* A decent API for doing these things for user code. (So the above
`eval' turns to a `require' for your file which uses this API.) This
goes beyond just documenting what's in there -- there are issues to
resolve like some argument reading protocol (separating the
declaration of argument types from the command implementation code),
so a new command can call another with arguments that it reads.
* There should also be some ,set command for customization
options (reading and changing) and code to use the preference file for
doing that. I almost started to do this, but currently there are only
three values that this could apply to (`saved-values-char', `-number',
and `wrap-column' (which might be better to dump and use
`pretty-print-columns' instead)).
* Also, it might be nice to have some command to do the same for simple
aliases. (But this might get into shady parsing issues if it's more
than just "I want `foo' to be an alias for an existing `bar' command".)
2011-07-18 15:23:09 -04:00
Eli Barzilay
5fb8390609
Hook XREPL into a few places where readline' and
enter!' are mentioned.
2011-07-18 14:25:10 -04:00
Eli Barzilay
d7c14cbd3f
XREPL documentation.
2011-07-18 14:25:10 -04:00
Eli Barzilay
c57ab7b4fc
Lots of improvements:
...
* Rename `make-command-{reader,evaluator}' -> `make-xrepl-{reader,evaluator}'
* Move the commented-out ,meta block to a better place
* Protect the prompt computation against errors, to avoid infinite
exception output if an exception is raised.
* Add ",switch ?" to query namespaces, and ",switch - <name>" to remove
one. Forbid resetting the default initial `*' namespace.
* Clarify that multiple arguments can be sent to ,stx and fix it to
display the current syntax when there are no arguments.
* Various minor typos and improvements.
* Restore the use-last-arguments-by-default functionality of ,rr
* Re-do argument reading to make it easier to have a default
argument (as in ,enter and ,edit).
2011-07-18 14:25:10 -04:00
Eli Barzilay
50b74c453f
Typo in the `errortrace' language description.
2011-07-18 14:25:10 -04:00
Eli Barzilay
45394bb7b6
Use (banner) instead of a fixed "Welcome to Racket" in the More tutorial
...
and in the guide.
Also, add a tag to the readline "License Issues" to be able to link to
it from the xrepl docs.
2011-07-18 14:25:10 -04:00
Eli Barzilay
3f8bb7a453
Rename prompt-shown' ->
zero-column!', and use it only in the
...
non-readline reader. Use line reading for ,install!.
2011-07-18 14:25:10 -04:00
Jon Rafkind
3a1dde7f14
parse arguments. provide basic math operations
2011-07-18 11:28:34 -06:00
Stephen Chang
7eedae8f69
fix lazy stepper test - lazy-cond1
2011-07-18 12:34:14 -04:00
Vincent St-Amour
4c5bb1ddaf
Change a TR doc example to take two arguments.
...
Otherwise, the docs don't have any examples for the syntax of
multi-argument functions that doesn't involve polydots.
2011-07-18 11:53:39 -04:00
Ryan Culpepper
7e1627679c
unstable/gui/blur: added box blur option
2011-07-18 09:01:26 -06:00
Ryan Culpepper
5cf2767e7a
macro-stepper: update tests
2011-07-18 09:01:26 -06:00
Ryan Culpepper
0f0dd65d83
macro-stepper: update for new letrec-syntaxes+values expansion
2011-07-18 09:01:26 -06:00
Ryan Culpepper
61ab93b87e
added unstable/future
2011-07-18 09:01:26 -06:00
Ryan Culpepper
bb5bcf2ae1
added unstable/gui/blur
2011-07-18 09:01:26 -06:00
Ryan Culpepper
deb8c222d8
unstable/gui/ppict: add ppict-add*
2011-07-18 09:01:26 -06:00
Robby Findler
c06db14bfd
improved opt/c so that it knows about chaperones
2011-07-18 07:55:55 -05:00
Robby Findler
a0e08514b1
fixed up contract test suite
2011-07-18 07:55:54 -05:00
Robby Findler
2b99c86321
fix missing argument to format
...
please merge to release branch
2011-07-18 07:55:54 -05:00
Guillaume Marceau
adf965e92a
Undoes the 'produces -> return' part of commit c31d352f
, keeping the 'changes -> mutates' change and the assorted bug fixes it contained.
2011-07-17 16:48:12 -04:00
Matthew Flatt
d8d762517f
fix `get-module-path' and associated exception
...
Closes PR 12029
2011-07-17 08:14:33 -06:00
Matthew Flatt
67936b7a66
fix `enter!' to set module source name
...
Merge to 5.1.2
2011-07-17 08:14:33 -06:00
Robby Findler
2308701476
add a test case for the contract system error (and adjust the fix a little bit)
2011-07-16 22:52:32 -05:00
Matthew Flatt
92671ab3ea
fix source name of built-in modules
...
Closes PR 12051
Merge to 5.1.2
2011-07-16 21:42:57 -06:00
Matthew Flatt
67272f114b
belated test case for cm ".dep"-read fix
...
Merge to 5.1.2
2011-07-16 21:25:56 -06:00
Matthew Flatt
701c9666d6
fix printing of namespace with places enabled
...
This commit goes with 62acb298bd
.
2011-07-16 21:17:10 -06:00
Matthew Flatt
ab0e78122c
revert unnecessary refactoring
...
--- intended to avoid creating a dependency that already exists
Merge 5.1.2
2011-07-16 21:02:41 -06:00
Matthew Flatt
fc914dfac8
restore deinprogramm reader module suffix
2011-07-16 20:15:15 -06:00
Matthew Flatt
bd10ccc1b7
don't compile test file with image constant
2011-07-16 19:29:35 -06:00
Matthew Flatt
7af5d490ad
fix cm to configure reader when reading .dep files
...
Merge to 5.1.2
2011-07-16 19:29:28 -06:00
Casey Klein
a2bc43eabd
Fixes error for functions that return wrong number of values
2011-07-16 18:19:22 -05:00
Casey Klein
6ff5dc779b
Fixes keyword tests
2011-07-16 18:19:22 -05:00
Matthew Flatt
5edc0c70af
change GDK_POINTER_MOTION_HINT_MASK back to GDK_POINTER_MOTION_MASK
...
because HINT doesn't works as expected, and the problem it
seemed to solve at one time (slow resize in DrRacket) seems
to have been fixed some other way. GDK_MOUSE_MOTION_MASK
isn't needed, since GDK_POINTER_MOTION_MASK covers it.
Merge to 5.1.2
2011-07-16 14:30:08 -06:00
Matthew Flatt
5e0d6e0dee
fix void result to match contract
...
Merge to 5.1.2 if Robby agrees
2011-07-16 14:30:08 -06:00
Matthias Felleisen
59499b84bd
optional limit for number of ticks
2011-07-16 13:59:55 -04:00
Robby Findler
75c1aa5f4d
adding teaching language executable creation test case
2011-07-16 09:38:45 -05:00
Matthew Flatt
4307bcace5
fix taint behavior of some syntax operations
...
`syntax-local-get-shadower' and
`syntax-make-delta-introducer' both taint their
results when a given syntax object is tainted
2011-07-16 08:03:54 -06:00
Matthew Flatt
e57b7b9e54
limit build parallelism to 4 on a 32-bit machine
...
Merge to 5.1.2
2011-07-16 08:03:53 -06:00
Mike Sperber
429c3b0d93
Synch German string constants with latest.
2011-07-16 13:19:00 +02:00
Robby Findler
e4e1792bbe
made the htdp lang's executable creation code use the modules that
...
string->lib-path asks it to use, but for both GUI and non-GUI mode
also refactored that code to move it into a separate file so
eventually can add a drdr test for it
2011-07-15 21:25:16 -05:00
Robby Findler
9e0a866969
typo
2011-07-15 21:25:14 -05:00
Robby Findler
7993d38e35
fix a bug in the arity checking for contracts
2011-07-15 21:25:10 -05:00
Matthew Flatt
072003f2f4
fix `#lang errortrace'
...
Since `#lang errortrace' annotates the result of `local-expand',
it needs to handle `letrec-syntaxes+values', as well as allowing
`#%expression' in more places.
This change relies on a change to `kernel-syntax-case'. This
isn't a new bug, and it's ok to not include it in 5.1.2
(especially since the `kernel-syntax-case' change should not be
merged).
2011-07-15 20:17:44 -06:00
Matthew Flatt
0f61d62ea1
fix errortrace
...
The `eq?'ness of syntax objects used to reconstruct the result
was broken by disarming. The solution is to reconstruct based
on the disarmed syntax object instead of the original.
Merge to 5.1.2.
2011-07-15 20:17:44 -06:00
Matthew Flatt
f40dc87c29
add letrec-syntaxes+values' to
kernel-syntax-case'
...
Do not merge to 5.1.2; the implications for backward
compatibility are not clear to me.
2011-07-15 20:16:58 -06:00
Matthew Flatt
d718a2b128
fix docs to clarify that `#%expression' appears from local-expand
2011-07-15 20:16:45 -06:00
Matthew Flatt
bed64be873
allow larger font sizes --- up to 1024
...
It's not clear that any limit is still needed, and probably
font sizes should be liberalized to reals instead of
integers (but I don't want to spend that kind of time
right now).
2011-07-15 19:43:47 -06:00
Matthew Flatt
f288c694db
clarification
2011-07-15 19:43:47 -06:00
Ryan Culpepper
91a2e283a6
macro-stepper: disable taint display until correct
...
Merge to release branch
2011-07-15 14:31:33 -06:00
Kevin Tew
bf4a8ad5c4
create hash codes for place shared objects
2011-07-15 13:06:07 -06:00
Vincent St-Amour
ce32003de2
Make Performance Report work on unsaved editors.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
e07de3947b
Have Performance Report work on multi-file programs.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
47f0a36553
Fix when there are no reports in a file.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
5d4d9f2636
Add test for missed opts in multi-file programs.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
f632aa52dd
Document Performance Report.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
db9d51fef7
Change the structure of the "extra precision" missed optimizations.
...
Avoids reports that are almost duplicates.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
c1e7d07586
Fix merging of report-entries.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
93e1e6d710
Fix display of syntax.
2011-07-15 15:04:57 -04:00
Vincent St-Amour
218fdcceb4
Fix highlight removal.
2011-07-15 15:04:57 -04:00
Vincent St-Amour
76d91b4e3d
Don't highlight irritants in the main editor. Leads to hard to understand red blobs.
2011-07-15 15:04:57 -04:00
Vincent St-Amour
be67f304a8
Update messages. Irritants are now highlighted, not circled.
2011-07-15 15:04:57 -04:00
Vincent St-Amour
f788f8c4c7
Popup formatting.
2011-07-15 15:04:57 -04:00
Vincent St-Amour
72975a4e1c
Use rectangle highlighting instead of ellipses. Works better across multiple lines.
2011-07-15 15:04:57 -04:00
Vincent St-Amour
d7cb6fcc75
Separate each entry into multiple editors, for finer-grained control.
2011-07-15 15:04:57 -04:00
Vincent St-Amour
ac3b487a9f
First stab at highlighting irritants in the popup.
2011-07-15 15:04:57 -04:00
Vincent St-Amour
2b9d035045
Add comments.
2011-07-15 15:04:57 -04:00
Vincent St-Amour
baab138252
Fix highlight range and refactor.
2011-07-15 15:04:57 -04:00
Vincent St-Amour
6dda3c3e03
Display code in monospace.
2011-07-15 15:04:56 -04:00
Vincent St-Amour
869df45881
Rewind the canvas to the beginning after inserting text.
2011-07-15 15:04:56 -04:00
Vincent St-Amour
90ae7bc25f
Use editor snips to display multiple report in a single popup.
2011-07-15 15:04:56 -04:00
Vincent St-Amour
8e2645a946
Display each opt/missed-opt separately in the tool.
...
This should make it easier to highlight irritants in the popup.
This required redesigning the report data structures.
2011-07-15 15:04:56 -04:00
Vincent St-Amour
f4c3e51d3b
Make a test a bit more complicated.
2011-07-15 15:04:56 -04:00
Vincent St-Amour
ec1dedffbb
Reformat message.
2011-07-15 15:04:56 -04:00
Vincent St-Amour
e59a84dc96
Abstract out popup management.
2011-07-15 15:04:55 -04:00
Vincent St-Amour
46b984a94b
Use editor locking.
2011-07-15 15:04:55 -04:00
Vincent St-Amour
b42952a2f4
Use auto-wrapping.
2011-07-15 15:04:55 -04:00
Vincent St-Amour
4e3650005a
First stab at using a text% to display messages.
2011-07-15 15:04:55 -04:00
Vincent St-Amour
3c91ae012a
Add break-lines to unstable/pretty.
2011-07-15 15:04:55 -04:00
Vincent St-Amour
c5d46449b7
Fix new optimization to use the new loggin facilities.
2011-07-15 15:04:55 -04:00
Vincent St-Amour
c1fe25200b
Keep located syntax around so we can use it in the tool.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
d2a8a620b1
Call locate-stx at the last minute, to avoid overeager duplicate detection.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
34ccf6a3fb
Fix new optimization to use new logging.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
4e0b1bfa3c
Fix display of code in popup.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
e736653413
Split tool into multiple files.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
d3db388c05
Use locate-stx earlier in the logging process, for nicer display in the tool.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
0ce280da89
Display relevant code in pop-up when there's more than one message.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
604e690982
Fix name.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
f02c65dfcc
Deal with overlapping opts/missed opts more nicely.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
d146f8c590
Report missed fixnum optimizations.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
fbf802e61c
Fix tests.
2011-07-15 15:04:54 -04:00
Vincent St-Amour
bfc4ad4225
Add nicer optimization reporting messages.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
d33c13e0f6
Use various shades of pink/red for highlights depending on the badness.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
47af9d51bc
Make performance-report state local, to support multiple files at once.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
092df83c18
Have an icon for performance-report.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
9640d2bfbc
Fix tests for new log format.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
ff5ca8a234
Handle irritants without source location properly.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
00d23a4535
Add the remaining diagnosis messages.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
975cb7ad9d
Rewrite TR logging facilities to play nicely with the DrRacket tool.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
d68267cbfa
Have a more useful message for float missed opts.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
5ddfcfba9d
Circle irritants.
2011-07-15 15:04:53 -04:00
Vincent St-Amour
a134e4ffb7
Have nicer information to present in pop-ups.
2011-07-15 15:04:52 -04:00
Vincent St-Amour
28f51f7376
Clicking on highlighted regions brings up more information.
2011-07-15 15:04:52 -04:00
Vincent St-Amour
5e5fdb2981
Remove redundant optimization reporting.
2011-07-15 15:04:52 -04:00
Vincent St-Amour
65e56ab387
Remove extra keyword argument.
2011-07-15 15:04:52 -04:00
Vincent St-Amour
8d680ced89
Display larger regions for optimizations.
2011-07-15 15:04:52 -04:00
Vincent St-Amour
2ecec626b3
Remove highlights after editing.
2011-07-15 15:04:52 -04:00
Vincent St-Amour
14be886288
Highlight opts and missed-opts in the editor.
2011-07-15 15:04:52 -04:00
Vincent St-Amour
7f3bb5d017
Pass log struct along with the log messages.
2011-07-15 15:04:52 -04:00
Vincent St-Amour
75f62dbdcc
Preserve lines and columns.
2011-07-15 15:04:51 -04:00
Vincent St-Amour
c598ae2048
Switch to using get-port-name.
2011-07-15 15:04:51 -04:00
Vincent St-Amour
27f3eb3870
Report optimizations and missed optimizations with the DrRacket tool.
...
Currently, that just means showing the text that would be shown on the
command line. Eventually, it should highlight code in the editor, and
have tooltips explaining what happened.
2011-07-15 15:04:51 -04:00
Vincent St-Amour
a71a45e41f
Relocate TR logging capture.
2011-07-15 15:04:51 -04:00
Vincent St-Amour
101feb8200
Added a button for the performance report tool when in a typed language.
2011-07-15 15:04:51 -04:00
Matthias Felleisen
6c51155fec
adjusted expected error messages to accommodate Stephen's change
2011-07-15 14:50:34 -04:00
Matthias Felleisen
91932033af
documented error reporting functions
2011-07-15 12:24:40 -04:00
Matthias Felleisen
562252f589
fixed bug in exception handling for drawing; Closes PR 12044
2011-07-15 12:24:39 -04:00
Robby Findler
9190fbade2
fix bug introduced in recent refactor
2011-07-15 07:10:10 -06:00
Guillaume Marceau
7134d67921
Roll back the "expr -> expression" change in the grammar documentation of the
...
teaching languages. The extra width was breaking some browsers.
2011-07-15 03:34:59 -04:00
Guillaume Marceau
c31d352f2b
Standartize the vocabulary to "the function returns" and "set! mutates"
2011-07-15 03:27:27 -04:00
Robby Findler
00bb92816c
cleaned up the generated code for -> and friends
2011-07-14 22:58:12 -06:00
Matthew Flatt
1c4722eaee
remove obsolete reference to '#%mred-kernel
2011-07-14 21:32:47 -06:00
Matthew Flatt
5e5172baab
fix typo; eliminate "this" as a noun; otherminor improvements
2011-07-14 21:32:47 -06:00
James Swaine
e9460282ac
Deleted junk code that was commented out in the futures test suite
2011-07-14 19:44:19 -06:00
James Swaine
32a3828a2e
Made continuation-mark-set-first future-safe. Fixed a rarely occurring bug with lightweight continuation capture for futures.
2011-07-14 19:30:52 -06:00
Matthew Flatt
7be0c8236f
fix `procedure-reduce-keyword-arity' checking
...
and clarify need for distinct keywords in parts of the
documentation
2011-07-14 17:07:18 -06:00
Jon Rafkind
3736571ad0
fix sequences
2011-07-14 16:54:26 -06:00
Jon Rafkind
a29d64b44a
enable #lang honu
2011-07-14 16:54:26 -06:00