Commit Graph

25083 Commits

Author SHA1 Message Date
Matthew Flatt
a6cfe3d5fb fix `resolve-module-path-index' when w.r.t. is submodule
A submodule path on the w.r.t. path was incorrectly (in most
cases) added to the resolved path.
2012-11-11 09:38:15 -07:00
Matthew Flatt
9c4cfdecc4 fix problem with require' inside begin-for-syntax'
The dependency wasn't recorded under the right phase.
2012-11-11 09:38:15 -07:00
Matthew Flatt
4ca7e6bc77 ffi/unsafe: fixes related to `define-cstruct' and properties
Fix the binding context for property and property-value
expressions. Propagate wrappers (and therefore properties)
to cstruct subtypes.
2012-11-11 09:38:15 -07:00
Matthew Flatt
b223ad2d90 x86_64 JIT: use 32-bit jumps until forced to allocate far away
The JIT was pessimistically using 64-bit jumps for long branches
or any jump between code that is allocated at different times.
Normally, though, code allocation stays within the same 32-bit
range of the heap, so stick to 32-bit jumps until forced by
allocation addresses to use 64-bit jump targets.
2012-11-11 09:38:15 -07:00
Robby Findler
b822efb9e5 add a check when switching between tabs to only do the required
work when the current tab isn't the one we're switching to
2012-11-11 08:53:13 -06:00
Robby Findler
0e655f8e79 only clear out the (offline) check syntax error message
panel when there is something definitely in the panel,
insert of doing on every insertion to the editor
2012-11-11 08:53:12 -06:00
Robby Findler
6704346db1 adjust the bluebox record-keeping code so that if there
is no bluebox information, then we can just bypass updating
it on insertions (especially important when loading a big
file into drracket, as there is a lot of insertion but no
blue boxes (yet))
2012-11-11 08:53:12 -06:00
Robby Findler
2626824aef detect when tracing:reset doesn't need to happen and skip it 2012-11-11 08:53:12 -06:00
Asumu Takikawa
90f6f1b300 Adjust benchmark test driver for TR 2012-11-10 19:28:56 -05:00
Asumu Takikawa
7c5db431a0 Add typed version of collatz benchmark 2012-11-10 19:28:56 -05:00
Robby Findler
c5330194a9 improve drracket's response to an unhappy aspell program
Specifically, two things:

 - make drracket more careful to not crash when aspell
   doesn't behave, and

 - have a more careful test when clicking the menu item
   (it now does a trial run of aspell instead of just
    looking for the binary)

closes PR 13242 (I realize there is still a feature
request mentioned in the audit trail of that PR, but
since the main problem is fixed, I'll consider that
to just be something separate)
2012-11-10 13:00:09 -06:00
Asumu Takikawa
b4a98af319 Fix whitespace in test 2012-11-10 12:03:47 -05:00
Asumu Takikawa
d22532db16 Fix Custodian type 2012-11-10 11:12:06 -05:00
Robby Findler
4421e227ff when changing the error arrows, only invalidate the editor
when the arrows are actually different (just using eq? here)
2012-11-10 08:51:58 -06:00
Robby Findler
867f2d3a43 use the real rectangles-intersect? predicate, not a broken one 2012-11-10 08:51:58 -06:00
Mike Sperber
59d378ce1e Synch German string constants with latest. 2012-11-10 09:18:50 +01:00
Mike Sperber
114f47fad6 Merge branch 'master' of git.racket-lang.org:plt 2012-11-10 08:57:48 +01:00
Claire Alvis
2f426943f0 Implementation of #:defaults keyword for define-generics 2012-11-09 20:14:56 -05:00
Danny Yoo
7618a6a737 Drop dead code. 2012-11-09 13:08:41 -07:00
Danny Yoo
641e855786 Translate uses of display with write-string.
Eli recommends that write-string should be faster in http://lists.racket-lang.org/dev/archive/2012-November/010764.html
2012-11-09 13:08:40 -07:00
Asumu Takikawa
daca1c0d5b Fix a free variance bug
Commit ffe45ecce had introduced a regression with some
polymorphic functions imported between typed modules due to
miscommunicated variance information.
2012-11-09 01:43:57 -05:00
Robby Findler
87dae0df7a add support for collecting backtraces 2012-11-08 07:45:19 -06:00
Jay McCarthy
fae660b0e4 Release Planet 2 (beta)
This was developed in a different repository, so the history will be
archived there:

https://github.com/jeapostrophe/galaxy
2012-11-08 06:16:42 -07:00
Robby Findler
d20f9a8866 should have been removed in an earlier commit, but I wrote
the wrong git commandline
2012-11-07 21:52:14 -06:00
Danny Yoo
5cb2f3eb58 Avoid regexp-replace* unless the string really contains escapable characters. 2012-11-07 16:09:28 -07:00
Danny Yoo
40116eb16d Lift out empty-tag-shorthand parameter lookup out of the hot spot. 2012-11-07 16:09:27 -07:00
Danny Yoo
6d189287a9 Add let loop for recursion and slight performance increase. 2012-11-07 16:09:27 -07:00
Danny Yoo
fb3a95f9d5 Replace fprintf with explicit display for performance.
Replace fprintf with explicit display for performance.
2012-11-07 16:09:27 -07:00
Robby Findler
741be85f07 make the log follower always available in DrRacket 2012-11-07 16:07:07 -06:00
Matthew Flatt
7b04571fac racket/gui: add `get-current-mouse-state' 2012-11-07 14:37:39 -07:00
Eli Barzilay
d15059ada7 v5.3.1 stuff 2012-11-07 14:50:24 -05:00
Danny Yoo
5c6498b355 Fix for PR 13234. xexpr-core: added more test cases to
correct-xexpr?.  Inverted the logic and replaced the
continuation-passing style with simpler test-for-error logic.  Also
corrected typo in attribute symbol checker that could otherwise lead
to a contract error.  (taking the cadr of a non-cadrable value)
2012-11-07 11:46:32 -07:00
Robby Findler
facea9fe43 make the position and position-token structs transparent
(these seem to only not be transparent because that is
the default)
2012-11-07 11:57:07 -06:00
Sam Tobin-Hochstadt
0a0ac35ee6 Correctly bind place? for contract generation. 2012-11-07 12:21:09 -05:00
Sam Tobin-Hochstadt
056c1aaff4 Chars are compared with eqv?. 2012-11-07 12:21:09 -05:00
Eli Barzilay
1e55f71f8a Two more #lang racket' -> #lang racket/base'. 2012-11-07 11:34:33 -05:00
Eli Barzilay
672910f27b Lots of bad TAB eliminations.
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.

If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces.  For example, to see
per-line authors, use "git blame -w <file>".  Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".
2012-11-07 11:22:20 -05:00
Matthew Flatt
891932074c adjust run length of short R5RS benchmarks 2012-11-07 07:46:26 -07:00
Matthew Flatt
ab5bbb5b37 flatten simple `define-values' within a module
This flattening is useful for the definition of `assq', for example.
2012-11-07 07:46:25 -07:00
Matthew Flatt
8033900674 add ad hoc optimization of car' to unsafe-car', etc.
In `(if (pair? x) E1 E2)', convert `(car x)' in E1 to
`(unsafe-car x)', and similarly for `(cdr x)'. Also,
`(begin (car x) (cdr x))' converts to `(begin (car x)
(unsafe-cdr x))' since `(car x)' implies a `pair?' test
on `x'.
2012-11-07 07:46:25 -07:00
Eli Barzilay
b786a49b5b #lang racket' -> #lang racket/base' conversions in frtime. 2012-11-07 08:03:46 -05:00
Eli Barzilay
6e4cad01e6 #lang racket' -> #lang racket/base' conversions in stepper. 2012-11-07 08:03:46 -05:00
Eli Barzilay
586b323430 #lang racket' -> #lang racket/base' conversions in net/websocket. 2012-11-07 08:03:46 -05:00
Eli Barzilay
f7dd4317a1 #lang racket' -> #lang racket/base' conversions in future-visualizer. 2012-11-07 08:03:46 -05:00
Eli Barzilay
4c8d1f67b2 #lang racket' -> #lang racket/base' conversions in demodularizer. 2012-11-07 08:03:45 -05:00
Eli Barzilay
bffe336220 #lang racket' -> #lang racket/base' conversions in plot and in images. 2012-11-07 08:03:45 -05:00
Eli Barzilay
26045a27fb #lang racket' -> #lang racket/base' conversions in drracket and in redex. 2012-11-07 08:03:44 -05:00
Eli Barzilay
39a0ab60a7 Some more #lang racket' -> #lang racket/base' conversions
(And some other related minor racketisms.)
2012-11-07 08:03:44 -05:00
Robby Findler
bc59cc43d4 fix the draw contract (and change some one-of/c's to or/c's) 2012-11-06 21:55:36 -06:00
Robby Findler
261700ef2c whoops, forgot to add this file in my last commit 2012-11-06 20:57:15 -06:00
Jay McCarthy
b778e4e03c enabling shared in plai with some shameless copying of kernel code 2012-11-06 19:53:03 -07:00
Robby Findler
c02797b121 improve the language dialog a little bit:
- make clicking on the example languages
  select the 'The Racket Language' radio button
- when the clicked example language matches
  the buffer, have a more friendly message
2012-11-06 20:31:12 -06:00
Robby Findler
66c1045b42 adjust the language dialog so that clicking on the example
the corresponding #lang line.
2012-11-06 19:15:53 -06:00
Robby Findler
9377b634ff added show-derivations to redex 2012-11-06 19:15:53 -06:00
Danny Yoo
b5f5d420c4 correcting the type signature docs for htdp-intermediate's compose. 2012-11-06 14:39:23 -07:00
Asumu Takikawa
9e6329abee slideshow/balloon: fix balloon to match docs 2012-11-06 14:09:41 -05:00
Asumu Takikawa
5f74f120c8 Add examples for the rest of built-in pict constructors 2012-11-06 14:09:34 -05:00
Eli Barzilay
14d8c8b5a5 Newlines at EOFs. 2012-11-06 14:07:15 -05:00
Eli Barzilay
95679bdab5 Switch from except' (from racket/unit') to #:except' in 2htdp/private'.
This is used by the `function-with-arity' macro, and the use of `except'
looks like something that is better done with a keyword.  I think that
this change should be fine since it's a private function.
2012-11-06 13:29:09 -05:00
Eli Barzilay
5aca765989 racket' -> racket/base' switches in htdp' and 2htdp'.
All of these look safe.  Also, see comment in `2htdp/batch-io' about the
splitting thing (which should probably be revised with the extensions to
`racket/string').
2012-11-06 13:29:09 -05:00
Eli Barzilay
1c8001d174 Some "obvious" switching from racket' to racket/base'. 2012-11-06 13:29:09 -05:00
Eli Barzilay
d49aeecd8a Switch the teachpack wrappers to `racket/base'.
(I think that the change to `teachpack/htdp/dir' is fine too, looks like
the previous code is dealing with the old restriction of not requiring a
binding that conflicts with the language bindings.)
2012-11-06 13:29:09 -05:00
Robby Findler
95ff9637c0 make ellipsis clickable 2012-11-06 12:12:02 -06:00
Robby Findler
3bbf6035d1 adjust the language dialog based on feedback from dev@ 2012-11-06 09:46:18 -06:00
Robby Findler
3e8cd0277f increase snips test timeout 2012-11-06 09:46:18 -06:00
Robby Findler
f311676096 clarify the way the undoable? flag in begin-edit-sequence works 2012-11-06 09:46:17 -06:00
Jay McCarthy
bf6adf0c4a Adding the xorg config 2012-11-05 22:33:29 -07:00
Jay McCarthy
777efd4a58 starting gui tests early and enabling more parallelism 2012-11-05 22:33:29 -07:00
Stevie Strickland
7acfc80d79 Fix bogus method name in interface contract errors.
Closes PR 13238
2012-11-05 18:54:57 -05:00
Matthew Flatt
25f142299b fix propagation of "multiple result" flag when optimizing `begin0' 2012-11-05 16:15:48 -07:00
Asumu Takikawa
68dd17bf08 Make control contracts play nice with has-contract? 2012-11-05 18:08:10 -05:00
Ryan Culpepper
321cd1b4ae macro-stepper: fix for lifted provides
closes PR 13236
2012-11-05 17:26:46 -05:00
Matthew Flatt
bd0e6ae941 fix problems with chaperones, printing, and cycles 2012-11-05 10:48:46 -07:00
Matthew Flatt
f21280e24d fix problems with non-parallel places
The implementation of message passing in thread-simulated
places had not kept up with the parallel implementation.
2012-11-05 10:48:45 -07:00
Matthew Flatt
885382e12e benchmark tweaks and addition 2012-11-05 10:48:45 -07:00
Robby Findler
f22aaec21d the 'audit the invalidate-bitmap-cache' commit (2 commits ago) avoided
running the 'redraw the definitions/interactions label' timer when the
language didn't ask for those labels; this commit also avoids running
the timer when the user has disabled the labels
2012-11-04 19:52:52 -06:00
Danny Yoo
0fa78a8cee documentation: removing the korean characters out of the example. Was breaking the build at LaTeX generation time. 2012-11-04 18:20:54 -07:00
Robby Findler
81dc3bae37 audit the calls to invalidate-bitmap-cache in the framework and in
drracket and try to make them happen less often (or, if there will be
multiple ones, try to guarantee that there is an edit sequence)
2012-11-04 19:02:55 -06:00
Matthew Flatt
1126f02ddd change JIT inlining of `/' to be fast on a fixnum result 2012-11-04 17:20:11 -07:00
Robby Findler
ef3eb3154a adjust log following to make it work for the middle of a drracket
editing session
2012-11-04 14:39:55 -06:00
Robby Findler
e9e2557356 unbreak code that changes drracket's dock icon dynamically
(when transition to or from the weekend or valentines day)
2012-11-04 14:39:55 -06:00
Robby Findler
f3a060ccc1 insert examples directly into drracket instead of simulating
typing them in, in the module language test suite

this speeds it up; going from 140 to 105 seconds on my (mac)
machine. (drdr was taking 240 or so seconds, tho)
2012-11-04 14:39:54 -06:00
Matthew Flatt
068240e9fe racket/gui: fix problems with control labels and client/global positions
Closes PR 13232
2012-11-04 08:47:50 -07:00
Matthew Flatt
0c82f54912 racket/gui: add delete' to choice%' and `list-control<%>'
Closes PR 13230
2012-11-04 08:25:43 -07:00
Matthew Flatt
c6fc92915d make figure target rendering configurable
from Kevin Tew
2012-11-04 06:38:30 -07:00
Matthew Flatt
7ee6a814e5 explicitly close evaluator for plot doc
Although this shouldn't affect document rendering, since
each document is run under a custodian that is shut down,
it simplifies using the document individually to check for
leaks.
2012-11-04 06:09:21 -07:00
Matthew Flatt
4c61dfc217 fix test to not depend on network connection 2012-11-04 06:09:21 -07:00
Matthew Flatt
ad703025c5 error message repair 2012-11-04 06:09:21 -07:00
Danny Yoo
4901c6714e documentation: correcting my broken example for heap-copy 2012-11-03 15:40:15 -06:00
Danny Yoo
6ab4085db3 documentation: adding data/heap examples 2012-11-03 15:36:11 -06:00
Robby Findler
a6384e7de3 Oops, didn't mean to push this one
Revert "working on something to show derivations"

This reverts commit 77fb5ec69d.
2012-11-03 15:52:14 -05:00
Robby Findler
4669b6bfed adjust tests for the new language dialog
(the names of the textbooks are no longer explicit
in the hierarchy of the languages so just specify
"Beginning Student", for example)
2012-11-03 15:49:33 -05:00
Robby Findler
77fb5ec69d working on something to show derivations 2012-11-03 13:54:48 -05:00
Robby Findler
5768009e3b Revise the language dialog to emphasize the teaching
languages and the 'in the source' language at the expense
of all other dialog-based languages
2012-11-03 13:54:48 -05:00
Robby Findler
e1760fa7c0 add find-labelled-windows 2012-11-03 13:54:48 -05:00
Robby Findler
c375042f10 fix test so that labels can be regexps (as was already
documented) and tidy up framework/test docs
2012-11-03 13:54:48 -05:00
Robby Findler
0377bda947 make popup menus respond to mouse-up events, not mouse-down ones 2012-11-02 20:32:55 -05:00
Asumu Takikawa
27aa999446 Fix docs on continuation barriers
Closes PR 13085
2012-11-02 18:30:47 -04:00
Asumu Takikawa
4948ca0863 Fix typo
Closes PR 13158
2012-11-02 18:17:38 -04:00
Matthew Flatt
f232e56623 tweak optimization tests
Use `racket/base' to speed up the test suite
2012-11-02 10:54:23 -06:00
Matthew Flatt
56a4691664 tweak test to hit a less bad overflow point 2012-11-02 10:34:17 -06:00
Asumu Takikawa
948e898406 Fix continuation mark chaperones
Failed to redirect correctly on `continuation-mark-set-first`
when the mark set argument was #f.
2012-11-02 11:26:40 -04:00
Robby Findler
4ead534227 It appears that the colorer was always creating a new port to read
from, each time it starts on a new event boundary (this means that in
the old (5.3) version of the colorer, it also created a new co-routine
on each event boundary! (in other words, most of the reason one would
want co-routines here was bogus))

So, refactor the code to just always do this and eliminate a bunch of
set!'s and private fields in favor of just passing arguments like sane
code does. (We can't eliminate all of that, because we still do need
to be able to abort and thus all calls must be tail calls.)
2012-11-02 10:24:34 -05:00
Robby Findler
95841b9303 lift the restriction that the port passed to open-input-text-editor
cannot change its revision number during reading

This restriction was enforced only for editors that have non
string-snip% snips. The restriction was in place because the
implementation strategy was to chain thru the snips in the editor
using (send snip next) and that isn't safe if the revision number
changes.

The lifting of the restriction is implemented by tracking the position
in the editor where the last snip ended and, if the revision number
changes, starting over trying to get a snip from that position. This
has the effect that, if the revision number never changes, the code
should behave the same as it was doing before (so hopefully any new
bugs I've introduced in this commit will only show up if the old
implementation would have raised an error)

Also, exploit the lifting of this restriction in the colorer so it
doesn't to restart the port during to coloring that happens along with
the parsing
2012-11-02 10:24:34 -05:00
Robby Findler
6c760b086f reindent the implementation of open-input-text-editor
Apologies for the gratuitious reindent, but I was having
a lot of trouble reading this file; it appears to have
last been worked on in an Emacs that used tabs for indentation
and doesn't use the same tab width as drracket.
2012-11-02 10:24:34 -05:00
Matthew Flatt
a830f77403 scribble: more control over version formatting
Add "Version" in front of a version name via `.version:before' or
`.versionNoNav:before' and `\SVersionBefore', so that they can
be configured through overriding CSS or Latex macro declarations.

Also, improve the documentation for how the `#:version' argument
of `title' is propagated to a `part' style property.

Closes PR 13227
2012-11-02 07:45:57 -06:00
Matthew Flatt
008f476210 Scribble PDF/Latex: Hangul support 2012-11-02 07:45:57 -06:00
Robby Findler
916046dacd don't run follow-log.rkt in drdr 2012-11-02 07:28:34 -05:00
Robby Findler
3d5178bcb0 adjust generate-term so that it has an '=' in its concrete
syntax when generating something from a metafunction

export redex-generator (and add docs)

rename generate-types.rkt to typing-rules-no-ellipses.rkt
2012-11-01 21:13:39 -05:00
Robby Findler
478fedeeb7 fix up mac os x version of the redex bitmap tests 2012-11-01 21:13:39 -05:00
Robby Findler
6f5e43b851 added a script that collects log messages for use in performance debugging drracket 2012-11-01 21:13:39 -05:00
Sam Tobin-Hochstadt
c1cace28ec This test always errors -- belongs in fail. 2012-11-01 21:14:50 -04:00
Danny Yoo
dcf4d8b040 adding close-eval at the end of scribble files that have a toplevel evaluator 2012-11-01 15:32:53 -06:00
Danny Yoo
354a71b080 documentation: adding examples for string input. 2012-11-01 14:32:12 -06:00
John Clements
1f02a0a8b8 exposed mapping for unreserved characters 2012-11-01 12:38:09 -07:00
Jon Rafkind
3de9b1da74 [honu] add syntax form that is not parsed by enforest so it can contain normal racket code 2012-11-01 11:22:55 -06:00
Jon Rafkind
fb42f390c9 [honu] provide honu-syntax through the user api 2012-11-01 11:22:55 -06:00
Jon Rafkind
2984bfe8e2 [honu] remove printf 2012-11-01 11:22:55 -06:00
Jon Rafkind
dc1b34479c [honu] move honu-syntax to syntax.rkt. allow each pattern to specify a syntax result 2012-11-01 11:22:55 -06:00
Jon Rafkind
ae15ef55b3 [honu] clean up syntax parse attributes in patterns. dont remove repeats too early from syntax 2012-11-01 11:22:55 -06:00
Jon Rafkind
9c9f269765 [honu] add syntax-rules analog 2012-11-01 11:22:54 -06:00
Jay McCarthy
0c892b5b0d pushing update timeout 2012-11-01 11:13:02 -06:00
Jay McCarthy
6d101c9472 add a test for the patch 2012-11-01 11:13:02 -06:00
Jay McCarthy
2274e23394 Fix error with min-width and fractions 2012-11-01 11:13:02 -06:00
Burke Fetscher
6be405975e don't use disunify* to check disequations, since at this point they are fully instantiated 2012-11-01 11:52:19 -05:00
Burke Fetscher
e6ab32593e add redex-generator form and some tests
update examples/generate-types
2012-11-01 11:52:19 -05:00
Vincent St-Amour
ee97c08e0a Replace #lang scheme deprecation notice with a pointer to #lang racket. 2012-11-01 12:15:26 -04:00
Matthew Flatt
739aa11404 Scribble Latex/PDF: use tocstyle only if it's available 2012-11-01 09:29:26 -06:00
Matthew Flatt
0e4305fc45 fix problem with places and `struct-type-info'
Merge to v5.3.1
2012-11-01 07:19:53 -06:00
Robby Findler
e7dc4a70ee fix redex bitmap tests under linux 2012-10-31 21:48:21 -05:00
Tony Garnock-Jones
a57e158c43 Correct TR types for udp-bind! and udp-connect!. 2012-10-31 21:42:57 -04:00
Sam Tobin-Hochstadt
f2fd47905f Fix binding of udp?. 2012-10-31 21:39:16 -04:00
Sam Tobin-Hochstadt
0e71f2d5dc Fix accidental use of the wrong letrec-bound variable. 2012-10-31 21:18:44 -04:00
Robby Findler
b2b350eff5 fix typesetting of builtin non-terminals 2012-10-31 19:51:50 -05:00
Robby Findler
e2d74f2cf3 streamline the objects that are sent across the channel from
the expansion place to the main drracket place during
online check syntax
2012-10-31 16:52:44 -05:00
Danny Yoo
b9a0eaf5da Adding an example for equal<%> 2012-10-31 15:31:50 -06:00
Matthew Flatt
8f73ebbc36 fix error-message code
Closes PR 13222
2012-10-31 12:17:49 -06:00
Robby Findler
9582fe830a add logging to the colorer 2012-10-31 10:16:16 -05:00
Robby Findler
fdfa5bf134 add docs for get-spell-check-strings and set-spell-check-strings 2012-10-31 10:16:16 -05:00
Robby Findler
226a7140b5 fix a bug in the colorer refactoring
As it turns out, changing the color (via change-style) can somtimes
split snips, which can change the revision number, which means that
the open port into the editor is no longer valid.

Since this doesn't seem to happen very much when editing in DrRacket,
we just detect this situation and give up on this colorer's port, and
hopefully it actually doesn't happen much (the place it happened that
let me notice this was when inserting an image via a menu in the
drracket test suites)
2012-10-31 10:16:16 -05:00
Matthew Flatt
08c659c5d5 fix a bug in `free-identifier=?'
The bug is related to macro-introduced `require' and rename on
export.
2012-10-31 08:03:47 -06:00
Robby Findler
f07c8cf490 changed the colorer so that it doesn't use a co-routine; instead,
refactor it so it doesn't add anything to the continuation ever, and
just check if it has been a while since we started (giving other
events a chance to run, if so). Also, interleave the calls to
change-style with the parsing of the buffer to get a more accurate
count of the time the colorer is taking
2012-10-30 22:11:52 -05:00
Matthew Flatt
195cbe832c fix problem with compiler's cross-module shape tracking 2012-10-30 17:47:15 -06:00
Matthew Flatt
8fab527ce3 fix problems with `would-be-future' 2012-10-30 17:28:37 -06:00
Matthew Flatt
d7bf677645 track import "shapes" as procedure or structure type
Shape information allows the linker to check the importing
module's compile-time expectation against the run-time
value of its imports. The JIT, in turn, can rely on that
checking to better inline structure-type predicates, etc.,
and to more directy call JIT-generated code across
module boundaries.

In addition to checking the "shape" of an import, the import's
JITted vs. non-JITted state must be consistent. To prevent shifts
in JIT state, the `eval-jit-enabled' parameter is now restricted
in its effect to top-level bindings.
2012-10-30 13:29:28 -06:00
Sam Tobin-Hochstadt
6b436cac5a Try running universe test with gracket on DrDr.
Maybe serialization on the display will cause it to stop failing.
2012-10-30 14:05:59 -04:00
Ryan Culpepper
832d90bf93 fix doc typo
closes PR 13216
2012-10-30 12:43:41 -04:00
Ryan Culpepper
203a7a660c db: fix another sqlite3 finalization bug 2012-10-30 12:33:02 -04:00
Sam Tobin-Hochstadt
9773d89a44 Clean up drdr:random props. 2012-10-29 16:35:13 -04:00
Jay McCarthy
9f66a39794 removing unnecessary grackets 2012-10-29 13:44:56 -06:00
Matthew Flatt
7cca723382 fix SRFI 1 testing of `unfold-right' 2012-10-29 07:56:57 -06:00
Matthew Flatt
78d48160b6 add SRFI 1's `unfold-right' to doc index 2012-10-29 07:46:10 -06:00
Matthew Flatt
eb97b2f193 fix in srfi/1
Closes PR 13214
2012-10-29 07:32:14 -06:00
Robby Findler
93aea7036b hide the get-online-expansion-colors method 2012-10-29 06:45:13 -05:00
Robby Findler
33eba697a0 adjust the fields of the gui-event struct 2012-10-29 06:45:13 -05:00
Robby Findler
b7681e0807 adjust racket/engine so that it logs the time that various things happen
(and remove the commented out printfs that seem to be printing
out that same information)
2012-10-29 06:45:12 -05:00
Danny Yoo
47a33f2edf Added another example for for/fold/derived: for/max.
Updated example for for/digits to avoid confusion: it's not clear
otherwise that the intentional syntax error wasn't just a casual
mistake.

Added an example for sequence-add-between.
2012-10-28 16:36:00 -06:00
James Swaine
995af02c11 Make future trace docs point to the right place when discussing gc-info 2012-10-28 15:51:02 -03:00
Matthew Flatt
55b358f201 list PSMTabBarControl among included software 2012-10-28 12:04:37 -06:00
Sam Tobin-Hochstadt
5861bf0b9f Make Typed Racket name printing more deterministic. 2012-10-28 13:55:02 -04:00
Matthew Flatt
ba6e383963 racket/gui gtk: fix on-subwindow-... handling
Handling was broken by changes to fix enter and
leave events (in commit a5d7812732)

Merge to v5.3.1
2012-10-27 21:34:08 -06:00
Matthew Flatt
fa743d7058 remove obsolete "based on" entry 2012-10-27 21:34:08 -06:00
Robby Findler
10a8a625fa record the (uncompiled) domain pattern with a reduction
relation so that context-closure can adjust the domain

closes PR 13204
2012-10-27 20:39:04 -05:00
Stephen Chang
19f88c0f80 add heap sequencing fns to data/heap 2012-10-27 21:09:29 -04:00
Sam Tobin-Hochstadt
4124c9a41b Add more specific class types instead of Any.
Fixes Insert Large Letters dialog.  Merge to 5.3.1.
2012-10-27 17:44:52 -07:00
Sam Tobin-Hochstadt
7573fd7ee0 Formatting. 2012-10-27 17:44:51 -07:00
Robby Findler
54301ad5ed fix apparent type error in the definition of in-plt? 2012-10-27 18:37:59 -05:00
Robby Findler
117fde6857 adjust the online check syntax frame/tab leak test case
so that it waits until online check syntax actually
finishes (otherwise, there actually is a leak;
the link is broken when the message comes back from the
other place)
2012-10-27 16:45:44 -05:00
Robby Findler
789ab0d9f0 add missing docs for color:misspelled-text-color-style-name 2012-10-27 14:42:09 -05:00
Asumu Takikawa
0d30c43a68 Add call/cc contracts to prompt-tag/c 2012-10-27 11:06:17 -04:00
Matthew Flatt
616d49124c fix testing prop 2012-10-27 09:24:02 -06:00
Matthew Flatt
c7d3de435f scribble Latex/PDF: use the `tocstyle' package
Fixes the spacing of section numbers for a section like N.M where
both N and M have two digits.
2012-10-27 09:24:02 -06:00
Robby Findler
24592a0800 adjust drracket gui test suite infrastructure so that
it waits for pending events to finish when looking for
new frames
2012-10-27 10:23:01 -05:00
Asumu Takikawa
b56574e4d5 scribble: add examples for most def* forms 2012-10-27 07:01:02 -04:00
Matthew Flatt
5f30cc87ea track information about `struct' bindings during compilation
This tracking allows the compiler to treat structure sub-type
declarations as generating constant results, and it also allows
the compiler to recognize an applications of a constructor or
predicate as functional.
2012-10-27 07:58:56 -06:00
Matthew Flatt
736e6efc2d recognize `struct' bindings as constant
The JIT takes advantage of known-constant bindings to avoid the
check that a variable is still bound to a structure predicate,
selector, or mutator; that makes the code short enough to really
inline. The inlined version takes about half the time of the
indirect version.

The compiler does not yet track bindings precisely enough to
recognize constants for sub-type declarations.
2012-10-27 06:53:21 -06:00
Robby Findler
8bc3b70a3c clean up rectangle computations, fixing some bugs along the way 2012-10-26 21:49:45 -05:00
Robby Findler
c6caf11323 Adjust online check syntax's trace replay code so that it:
- lets other events be handled based on how long it has been
  replaying the current trace (instead of based on the number of
  pieces in the trace that have been seen)

- breaks up the syncheck:add-rename-menu pieces of the trace to
  be more granular (to make the previous point work better)

This should make DrRacket more responsive when the trace is being
replayed
2012-10-26 21:49:45 -05:00
Robby Findler
e89a121ae5 add some first-cut logging information to drracket
to track how long events take to be handled
2012-10-26 21:49:44 -05:00
Robby Findler
7e8ac872fe add logging to mred's event callback mechanism to record
how long event processing takes
2012-10-26 21:49:44 -05:00
Jay McCarthy
f16e76ca32 second attempt at removing reliance on tcp. available has been greatly simplified because it relied on the behavior the thread.rktl test is actually testing 2012-10-26 15:26:39 -06:00
Jay McCarthy
7f23a85e15 fixing PR13210 2012-10-26 14:46:43 -06:00
Sam Tobin-Hochstadt
fa5846cb0c Flvectors and Fxvectors are higher-order if we give them restricted float types. 2012-10-26 11:09:03 -07:00
Sam Tobin-Hochstadt
c6dc1e6ece Improve contract generation in Typed Racket.
This fixes several issues:
 - `Parameter` generates impersonator contracts correctly
 - `Any` handling now copies immutable data when possible
 - `Any` now recognizes more atomic base types

Merge to 5.3.1.
2012-10-25 23:31:02 -07:00
Robby Findler
cb566b1ba4 fix font resizing performance bug in the traces window 2012-10-24 23:56:31 -05:00
Robby Findler
9d4a3a6e07 improve the performance for dragging around items in mrlib/graph
(used by Redex's traces window and the module browser)
2012-10-24 23:56:30 -05:00
Stevie Strickland
717cf332b6 Don't copy chaperoned immutable vectors. 2012-10-24 19:11:03 -07:00
Matthew Flatt
b239a29544 doc repair
Looks like it was an accidental incorrect update

Merge to v5.3.1
2012-10-24 17:03:35 -07:00
Matthew Flatt
f43172128b fix syntax checking for `case'
Merge to v5.3.1
2012-10-24 13:18:53 -07:00
Matthew Flatt
1bf5fda869 fix `chaperone-prompt-tag' 2012-10-24 13:18:53 -07:00
Jay McCarthy
7b149b7f5a Revert "Change thread test to use fake tcp with same structure"
This reverts commit d39780a130.

Matthew says this test is really about TCP, so it should not be
changed. Although perhaps we can use a more basic TCP test to check if
this should be done.
2012-10-24 13:25:49 -06:00
Robby Findler
06e5239441 add rule names to the derivation struct
change the intermediate data structures built up
while building the derivation to use their own
structs (instead of vectors)
2012-10-24 12:30:40 -05:00
Asumu Takikawa
65338f15ec Examples for basic pict constructors & combiners 2012-10-24 09:08:40 -04:00
Robby Findler
661f702497 attempted to clean up the derivation support
so that no derivation data structure creation
happens during just a normal judgment-holds,
but this was not entirely successful, so there
still is some....

Also, improved the test-util to show stacktraces
for errors (when they exist)
2012-10-23 18:31:06 -05:00
Jay McCarthy
d39780a130 Change thread test to use fake tcp with same structure 2012-10-23 11:28:27 -06:00
Jay McCarthy
552fe0f755 Test localhost tcp before running echo server test 2012-10-23 11:28:27 -06:00
Ryan Culpepper
1137b444ad macro-stepper: show errors in provide expansion
closes PR 13018
2012-10-22 18:00:45 -04:00
Ryan Culpepper
5f15401561 macro stepper: fix bug re taking over run button
Closes PR 13019
2012-10-22 18:00:45 -04:00
John Clements
f60d57a27f updated manual tests 2012-10-22 14:57:38 -07:00
Ryan Culpepper
b382e79210 update props for removed file 2012-10-22 16:54:48 -04:00
Ryan Culpepper
8226899df3 db: fix finalization bug 2012-10-22 13:27:59 -04:00
Robby Findler
b61f1789c7 fix bug in detecting the name of the language
(encoding problems)

Also, Rackety
2012-10-22 11:49:14 -05:00
Robby Findler
7355c59fb1 added the ability to extract a derivation
from a judgment-form via build-derivation
(returns derivation structs)
2012-10-21 23:19:54 -05:00
Robby Findler
67d52138f9 provide language, reduction relation, and typing judgment from stlc.rkt 2012-10-21 19:55:53 -05:00
Robby Findler
9baefbe725 remove bogus case in stlc typing judgment form 2012-10-21 19:55:52 -05:00
Robby Findler
9696bd7337 adjust judgment-holds so it generates less code 2012-10-21 19:55:52 -05:00
Matthew Flatt
9708a01a0a ffi/unsafe: defend against some finalization bugs
Turn use of a finalized ffi callout into a reported error,
instead of a crash. Clarify the existence of the finalizer
in the docs. Fix error logging of the finalizer thread.

Merge to v5.3.1
2012-10-21 08:11:45 -06:00
Jay McCarthy
d77803b687 Adding in id-cookie library after 19th use in a Web app 2012-10-20 19:41:33 -06:00
Ryan Culpepper
6283ce733d add test for unsolved db crash 2012-10-20 18:28:20 -04:00
Stephen Bloch
71a59cf653 Changed "right" error messages to match new actual error messages. 2012-10-20 13:31:00 -04:00
Mike Sperber
c39ad69447 Synch German string constants with latest. 2012-10-20 15:17:01 +02:00
James Swaine
196dc3de11 FV: fix layout bug with timelines containing GC's, add GC
node to summary hierlist
2012-10-20 01:36:20 -05:00
James Swaine
797979f0ae FV: blocks/syncs on worker threads now show primitive name, etc.,
and connecting lines use different colors to show
connections between blocks on worker threads and corresponding ones
on runtime thread
2012-10-20 01:36:20 -05:00
Jay McCarthy
09dd60789a changing tests for environments where listen fails 2012-10-19 15:24:20 -06:00
Jay McCarthy
23816b496d Fixing typo re: pull request 156 2012-10-19 14:25:22 -06:00
Asumu Takikawa
43f99839c2 unstable: add cross-out and backdrop pict functions 2012-10-19 15:34:35 -04:00
Asumu Takikawa
862fd346c7 Doc typo 2012-10-19 15:06:46 -04:00
James Swaine
9a0f19da59 Fix futures-disabled build errors introduced by changes to even? and odd? 2012-10-19 13:49:05 -05:00
Matthew Flatt
e59066debe bytecode validator: check "constant" annotations on variable references
Bytecode changes in two small ways to help the validator:
 * a cross-module variable reference preserves the compiler's
   annotation on whether the reference is constant, fixed, or other
 * lifted procedures now appear in the module body just before the
   definitions that use them, instead of at the beginning of the
   module body
2012-10-19 11:27:52 -06:00
Ryan Culpepper
839408e6f7 ppict: allow #:next w/o placer 2012-10-19 11:35:49 -04:00
Eli Barzilay
cbfb1fdb37 A whole bunch of missing newlines at EOFs (and a few other spaceages). 2012-10-19 06:47:24 -04:00
Eli Barzilay
bc29e6ed2a Change checksums for -h changes.
Also add completion for the new -R option.
2012-10-19 05:17:56 -04:00
Eli Barzilay
a03b636936 No more "planet" executable. 2012-10-19 05:17:56 -04:00
Robby Findler
3ba54a2a3e adjust the teaching languages interactions with
drracket so they put the 'source' field into the
syntax objects that they create (at the very top)

this allows the debugger to connect the syntax objects
to the file that's open in drracket (the way this worked
changed a while back, but I didn't check the teaching
languages to see if the debugger was supposed to work there)

closes PR 13159

please merge to the release branch
2012-10-18 22:07:11 -05:00
James Swaine
05e0836b88 Make odd? and even? future-safe 2012-10-18 21:22:11 -05:00
Danny Yoo
323fc273ad expanson -> expansion 2012-10-18 18:19:57 -04:00
James Swaine
7c8f0ce093 FV: fix drawing code to handle truncated logs, tests 2012-10-18 14:00:04 -05:00
James Swaine
4a64b81562 FV: handle empty-timeline cases more gracefully 2012-10-18 13:32:32 -05:00
James Swaine
39f2185856 FV: improve left-hand block/sync hierlist display 2012-10-18 13:32:32 -05:00
James Swaine
2ef3569381 FV: remove unused panel, make info-detail display areas drag-resizable 2012-10-18 13:32:31 -05:00
James Swaine
e7cbba271d FV: click on node in creation graph --> select events in the future's timeline 2012-10-18 13:32:31 -05:00
James Swaine
7d0578fc3b FV: Fix hover display "stickiness" 2012-10-18 13:32:25 -05:00
James Swaine
e57155d21e Fix fv truncated-display issue 2012-10-18 13:31:55 -05:00
James Swaine
b94caa2d77 FV: refactoring, various layout/display fixes 2012-10-18 13:31:42 -05:00
Matthew Flatt
be538b4f69 accomodate OpenBSD linking of libssl
Merge to v5.3.1
2012-10-18 11:58:59 -06:00
Matthew Flatt
274d004546 racket/draw: fix problems with monochrome PNGs
Merge to v5.3.1
2012-10-18 10:01:20 -06:00
Burke Fetscher
484636d92e remove extra tut-subst.rkt and tmp.rkt files 2012-10-17 23:24:44 -05:00
Robby Findler
975426f00c fix group-test
merge to release branch, please
2012-10-17 20:19:15 -05:00
Matthias Felleisen
f733f149f5 fix string-ith's error message; Closes PR 13197 2012-10-17 20:27:12 -04:00
Matthias Felleisen
b48d122dd7 fixed Adam Shaw's typo, eliminated the word match 2012-10-17 20:27:12 -04:00
Matthew Flatt
e1a6d2b07d fix raco exe' for module+' submodules
Closes PR 13116

Merge to v5.3.1
2012-10-17 16:28:41 -06:00
Matthew Flatt
bd146e2d8d fix planet `raco exe' tests
Merge ot v5.3.1
2012-10-17 16:28:41 -06:00
Burke Fetscher
44dd4acb44 Additional random test generation capability for Redex.
This adds the option to generate random terms that satisfy
judgment-forms and metafunctions.

Currently functionality does not include:
- patterns/terms using: ellipses, in-hole/hole and relatives, side-conditions, unquotes
- define-relation
- redex-check integration
2012-10-17 16:30:51 -05:00
Eli Barzilay
47a68197b6 Tidy things up. 2012-10-17 15:05:42 -04:00
Danny Yoo
18753621e1 adding examples for sequences 2012-10-17 15:05:42 -04:00
Matthew Flatt
04e8689a9b add another argument to `{chaperone,impersonate}-prompt-tag'
The new argument gets to chaperone/impersonate a guard at
the prompt, and it is applied when the continuation is applied ---
based on a wrapper on th prompt tag of the continuation (as opposed to
the prompt tag of the prompt).
2012-10-17 10:24:09 -06:00
Samuel Bronson
e9d830badb Hack to keep search.js and search-context.html up-to-date in doc/ trees by pretending that make-search.zo depends on them 2012-10-17 08:46:47 -04:00
Ryan Culpepper
67d901ccc4 fix define-for-syntax within splicing-syntax-parameterize 2012-10-16 17:58:59 -04:00
Matthew Flatt
843c722146 add an argument to `{chaperone,impersonate}-prompt-tag'
The new argument gets to filter results that come from a
non-composable continuation that replaces one delimited
by a prompt using the chaperoned/impersonated prompt tag.
2012-10-16 15:11:50 -04:00
Asumu Takikawa
8325db3d37 Add examples for code macro in slideshow 2012-10-16 14:50:02 -04:00
Matthew Flatt
755cd47cc5 make chaperone-of?' accept prop:equal+hash'
There appears to be no reason to block equality based on
`prop:equal+hash' when using `chaperone-of?'.
2012-10-16 12:17:42 -04:00
Robby Findler
b8f5776797 add examples to redex-match and redex-match?
please include in release
2012-10-16 10:51:45 -05:00
Robby Findler
5b3ac50fb9 add get-token-range to color:text<%> (it was already documented
as if it was there)
2012-10-16 10:51:45 -05:00
Asumu Takikawa
0eb85a1dfe Add Guide pointers to Refs on exceptions & control 2012-10-16 01:31:20 -04:00
Eli Barzilay
d67396cbb1 Minor pickinesses. 2012-10-15 15:03:53 -04:00
Robby Findler
7ffe9f2612 adjust logger to use a name instead of an environment variable 2012-10-15 13:25:17 -05:00
Robby Findler
0ec7f47339 adjust background compilation log messages so they only appear
when the PLTDRBACKGROUNDCOMPILELOG environment variable is set
(since things seem stable now)
2012-10-15 12:32:46 -05:00
Vincent St-Amour
fd6e2bd6c5 Don't provide for/vector: helpers. 2012-10-15 12:03:53 -04:00
Robby Findler
4787361d7f show a dialog box saying that aspell/ispell cannot be
found instead of just silently not checking the spelling

also, fix a bug in that case that used to cause drracket
to just crash
2012-10-15 07:41:42 -05:00
Matthew Flatt
79ada3b16e fix JIT bug in struct pred/get/set corner case
When thie JIT guesses that an identifier is bound to a
structure predicate, getter, setter, etc., but that guess
turns out to be wrong, and the call is in a tail position,
then preserve tail-call behavior.

(Changes include some setup to inline structure constructors.)
2012-10-15 06:05:33 -04:00
Robby Findler
a59df8c7ee add preference settings so that the misspelled words color
can be configured
2012-10-14 22:27:50 -05:00
Robby Findler
44a0c8a6c1 adjust spelling code so that it runs in the abortable part
of the syntax colorer; adjust the spelling code so that it
uses nack events to communicate, in case things get aborted
2012-10-14 21:20:36 -05:00
Robby Findler
c75cc48f5c fix spell checker encoding 2012-10-14 18:45:10 -05:00
Robby Findler
72fa1d45a1 add capability to spell-check string constants
(calls out to ispell or aspell)
2012-10-14 17:40:56 -05:00
Vincent St-Amour
5bc108c7b1 Fix type of raise-range-error. 2012-10-14 17:19:35 -04:00
Michael Wijaya
4bf94de5f5 Added examples to string-ports document
In cooperation with Xiangqi Li and Kevin Tew
2012-10-14 17:01:22 -04:00
Vincent St-Amour
326e3ba33f Add test. 2012-10-14 16:55:36 -04:00
Neil Toronto
cdcf8f6432 Added typed/untyped-utils (just require/untyped-contract for now) 2012-10-14 16:53:33 -04:00
Vincent St-Amour
aeddd7c18c Document plet:. 2012-10-14 16:28:42 -04:00
Neil Toronto
9c11324cec Added plet: 2012-10-14 16:28:42 -04:00
Neil Toronto
6f52be186b Added working for/vector:, for*/vector:, for/flvector:, for*/flvector:
Closes PR13185.
2012-10-14 16:28:41 -04:00
Vincent St-Amour
3a8f4c24d9 More types for raise-* functions. 2012-10-14 15:44:55 -04:00
Eric Dobson
d31005b380 Add type for raise-argument-error in TR.
Closes PR13132.
2012-10-14 15:44:55 -04:00
Eric Dobson
788b046549 Make expt type more correct.
Closes PR13170.
2012-10-14 15:44:54 -04:00
Vincent St-Amour
844e898a54 Generate ->* contracts for functions with both optional and keyword arguments. 2012-10-14 15:44:54 -04:00
Vincent St-Amour
149d8535eb More float conversion optimizations. 2012-10-14 15:35:50 -04:00
Asumu Takikawa
df594d3b3b Move define/match to racket/match 2012-10-14 14:39:36 -04:00
Matthias Felleisen
1ccedf5eb2 added checksum calculation 2012-10-14 14:32:54 -04:00
Stephen Chang
4be0219855 fix docs for define-judgment
clarify the places where unquotes are not allowed
2012-10-14 12:35:55 -04:00
Asumu Takikawa
be21153818 Fix typesetting of code:blank in the Scribble docs 2012-10-14 07:34:55 -04:00
Matthew Flatt
33db9589a4 make `list-ref' future-safe even for large fixnum indices 2012-10-14 11:10:23 -04:00
Stephen Chang
93784be78d fix define-judgment docs
change so mode-spec is not optional in grammar
2012-10-14 11:06:55 -04:00
Matthew Flatt
2b902d0eda repair for picture-to-bitmap conversion 2012-10-13 17:45:07 -04:00
Mike Sperber
c8dc421ec3 Synch German string constants with latest. 2012-10-13 17:00:23 +02:00
Robby Findler
42c5b287ff change "speculative" to "background" for the online check syntax messages 2012-10-13 08:54:11 -05:00
Mike Sperber
25e5fc715c Synch German string constants with latest. 2012-10-13 15:48:05 +02:00
Matthew Flatt
5d65cada2e make DrRacket's picture values convertible to PNG and PDF 2012-10-12 22:37:48 -04:00
Matthew Flatt
a755479d59 slideshow/pict repair
Merge to v5.3.1
2012-10-12 22:37:47 -04:00
Matthew Flatt
a150140684 raco setup: improve description of `--doc-pdf'
Merge to v5.3.1
2012-10-12 22:37:47 -04:00
Jay McCarthy
b6fc190c7a Adding support for byte counting rather than char counting in XML 2012-10-12 17:15:13 -06:00
Vincent St-Amour
758e4ff112 Only recommend dropping exactness in truly inexact contexts.
Please merge to release.
2012-10-12 14:42:16 -04:00
Jon Rafkind
59ec52dd8b [honu] remove debugging lines 2012-10-11 21:50:39 -06:00
Ryan Culpepper
678fc4d6f8 make macro stepper recover from jumps within expansion 2012-10-11 17:44:51 -04:00
Ryan Culpepper
07da9c0c3c fixed template tests 2012-10-11 17:37:57 -04:00
Jon Rafkind
44974c54f8 inside a revealing slide (reveal n) is a predicate for whether its time to show slide n or not 2012-10-10 23:02:35 -06:00
Jon Rafkind
204333fc25 [honu] add syntax_var which is the same as define-syntax 2012-10-10 23:02:35 -06:00
Jon Rafkind
8b627ed8fd [honu] xml example doesnt need its own < and > literals 2012-10-10 23:02:35 -06:00
Jon Rafkind
a3e2c2fae6 [honu] add xml example 2012-10-10 23:02:35 -06:00
Jon Rafkind
20ec2356cb [honu] add macro user api 2012-10-10 23:02:34 -06:00
Jon Rafkind
d7ebe6599c [honu] add phase{ ... }, which is like begin-for-syntax 2012-10-10 23:02:34 -06:00
Jon Rafkind
f91d9ded25 [honu] completely expand function arguments 2012-10-10 23:02:34 -06:00
Robby Findler
cb763c81b9 preserve the error-print-source parameter when installing planet packages 2012-10-10 19:46:52 -05:00
Robby Findler
f756f694e7 rename 'online' to 'speculative' in the drracket GUI.
closes PR 13176
2012-10-10 10:44:02 -05:00
Robby Findler
197b8308d0 fix some part of the check syntax blinking arrows infrastructure
to better cope with tooltips when tabs change and when the frame
becomes in-active.

related to PR 13139
2012-10-10 10:44:01 -05:00
Samuel Bronson
88e6e5bcf6 Fix a couple of doc typos. 2012-10-10 11:06:40 -04:00
Samuel Bronson
a624d8de15 Misc improvements to the doc search JavaScript code
* Stamp "plt-index.js" with the path of its generator.

* Fix most of the "use strict" and js2-mode warnings in scribble's
  JavaScript.

* Some code improvements in the generating code too.

(With some edits by Eli.)
2012-10-10 11:05:25 -04:00
Matthew Flatt
6a82c8bb7c Scribble Latex: more complete and consistent handling of accented letters 2012-10-10 07:13:05 -06:00
Matthew Flatt
de9ccea7f1 Scribble: add some macron accents for Latex
Merge to v5.3.1
2012-10-10 06:49:01 -06:00
Matthew Flatt
ebe0b64d47 racket/gui win32: fix drag-and-drop onto frame
Closes PR 13109

Merge to v5.3.1
2012-10-09 21:13:34 -06:00
Matthew Flatt
a414b34b14 fix `vector-append' error reporting
Closes PR 13151

Merge to v5.3.1
2012-10-09 21:13:22 -06:00
Matthew Flatt
75008f14d7 win32: fix combo-field% click handling
Closes PR 13173

Merge to v5.3.1
2012-10-09 20:05:47 -06:00
Vincent St-Amour
7d317f1e96 Recommend float-specific operations in case of unexpected complex.
Please merge to release.
2012-10-09 16:58:04 -04:00
Kevin Tew
40ca07ee7c [Distributed Places] use racket -lm to launch new racket nodes instead of -tm 2012-10-09 14:29:44 -06:00
Danny Yoo
444aaf6eb7 Small typo fix 2012-10-09 14:00:34 -04:00
Sam Tobin-Hochstadt
385246f4db Add Frame% and message-box types. 2012-10-09 12:07:28 -04:00
Sam Tobin-Hochstadt
6945c5bfb1 Handle contract generation for recursive class types. 2012-10-09 12:07:28 -04:00
Robby Findler
7e7ebffdd4 Adjust linux version of Redex bitmap tests 2012-10-09 09:45:52 -05:00
Robby Findler
751dcb4bd1 adjust define-judgment-form's typesetting so that it
tracks the lines of the premises in the source when
deciding how to linebreak the premises of the typeest form
2012-10-09 09:06:09 -05:00
Asumu Takikawa
7826efcdf5 Add examples for tabular in scribble reference 2012-10-08 23:10:52 -04:00
Sam Tobin-Hochstadt
9054d0db7d Allow #:opaque and #:struct in require/typed. 2012-10-08 16:30:43 -04:00
Robby Findler
daed2aaed0 minor Rackety and add a little more info into the log from when
DrRacket gets confused
2012-10-08 09:58:14 -05:00
Robby Findler
9ed7b44222 adjust the code that initializes the pre-"first Run" repl
construction so it has the right inspector

closes PR 13056
2012-10-08 09:58:14 -05:00
Sam Tobin-Hochstadt
0feb2a45e9 Move to fix build. 2012-10-07 21:44:47 -04:00
Sam Tobin-Hochstadt
724aee0188 Add type for in-directory. 2012-10-07 17:45:09 -04:00
Sam Tobin-Hochstadt
630a77cea8 Improve type specifications for bitmap handling functions.
Fixes build issue.
2012-10-06 14:32:08 -04:00
Matthias Felleisen
6a1f50226e typo fixed with (lambda () ..); Closes PR 13164 2012-10-05 18:00:07 -04:00
Sam Tobin-Hochstadt
6fde63007e Allow invoking thunks on the untyped side of an Any. 2012-10-05 17:09:07 -04:00
James Swaine
f38bd159d2 Add frame options to show-pict 2012-10-05 16:04:13 -05:00
Sam Tobin-Hochstadt
b6b5043ff9 Add typed interface for the futures visualizer. 2012-10-05 16:11:16 -04:00
Matthew Flatt
fcfff27c31 ffi/com: implement vardesc-based dispatch
The `title' property of IE9 triggers the new code, which wasn't
implemented before because I didn't have an example.
2012-10-05 12:26:14 -06:00
Matthew Flatt
7c5174d54e ffi/com: faster when calling methods on many objects of same type
Move the method-type cache to the type-info object, instead of
the instance.
2012-10-05 11:05:42 -06:00
Matthew Flatt
5c2b00ea78 ffi/com: try to reduce overhead on `com-invoke'
Also, fix a potential memory bug: the exception-record value
passed to Invoke() as synthesized by `_ptr' was GCable and
movable.
2012-10-05 11:05:41 -06:00
Sam Tobin-Hochstadt
962f2472e1 Revamp handling of Any as a contract.
The contract now has two major differences:
 - It raises an error when it would have to wrap.
 - It uses chaperones to delay errors as long as possible

In general, using `Any` as a type when exporting to untyped
code will now just work, unless the untyped code tries to
communicate values back to the typed side, in which case an
immediate error will be raised.

Much of the implementation comes from the membrane design
from [Strickland et al, OOPSLA 2012].
2012-10-05 12:39:11 -04:00
Sam Tobin-Hochstadt
b3c640870e Simplify fast path for typechecking simple function applications.
Also, minorly revise subtyping code.
2012-10-05 12:12:39 -04:00
Eli Barzilay
73526b449b Fix json treatment of eof, plus tests.
(Also, no need for a keyword in the interna function.)
2012-10-05 11:48:31 -04:00
Asumu Takikawa
c26faaebfa redex: export documented but missing predicate 2012-10-05 11:42:32 -04:00
Asumu Takikawa
16b15c89f7 redex: doc fixes 2012-10-05 11:42:32 -04:00
Manu
e7db0bdac4 Added CSS rules for printing. 2012-10-05 11:15:59 -04:00
Marc Burns
25bc661a03 Fix socket leak on redirected `*-pure-port' calls.
A port over which a redirection is served to get-pure-port is not closed
if `get-pure-port' follows the redirection.  This leaks file descriptors
on the host machine.
2012-10-05 11:14:38 -04:00
Marc Burns
fa0336bfad Call close-output-port' on abandoned port in ssl-abandon-port'.
This change causes the abandoned output port to be properly shutdown,
when the `shutdown-on-close' option is set, and decrements the mzssl
struct reference count when a port is abandoned.

Previously, the `*-[im]pure-port' methods from `net/url' would fail to
close the SSL socket associated with the connection when
`close-input-port' was called on the port object returned.  This patch
causes the underlying socket to be closed when `close-input-port' is
called on SSL-based ports returned by functions in `net/url'.
2012-10-05 11:13:20 -04:00
Jon Rafkind
cb42b7ed6a [honu] clean up requires by separating code into modules 2012-10-04 23:53:03 -06:00
Jon Rafkind
c758069a09 [honu] remove unused embedding of racket code inside a honu expression via %racket 2012-10-04 23:53:03 -06:00
Jon Rafkind
8210acc696 [honu] add postfix keyword for unary definitions 2012-10-04 23:53:03 -06:00
Jon Rafkind
afdd5c4393 [honu] support postfix unary operators 2012-10-04 23:53:03 -06:00
Jon Rafkind
84b334168b docs for items-slide 2012-10-04 23:53:02 -06:00
Jon Rafkind
fbf153a435 add items-slide 2012-10-04 23:53:02 -06:00
Jon Rafkind
6c20513587 [honu] add binary_operator and unary_operator forms for plain expression-based operators 2012-10-04 23:53:02 -06:00
Sam Tobin-Hochstadt
8bb697108e Fix contract-min/max base case. 2012-10-04 16:13:21 -04:00
Robby Findler
8b92ec5677 linebreaking adjustments for typographical reasons 2012-10-04 10:17:28 -05:00
Matthew Flatt
b4b723df4e fix `in-directory'
Closes PR 13163
2012-10-04 06:40:36 -06:00
Matthew Flatt
683e72e9e3 scribble: make `linebreak' work more for Latex/PDF rendering 2012-10-04 06:40:36 -06:00
Robby Findler
ec05ecf558 change the dir field of the multi file search dialog
into a combo-field

Initial version of this commit from Kieron Hardy
2012-10-03 22:49:20 -05:00
Sam Tobin-Hochstadt
86522a1804 This pattern of typed submodules exposes Racket bugs. 2012-10-03 12:24:16 -04:00
Mike Sperber
41d6d8f579 Provide `provide' in the DMdA languages.
(The course at U Kiel needs this for the term project following the
intro course.)
2012-10-03 17:28:19 +02:00
Robby Findler
58c9905eff adjust tooltip windows so they go away whenever
they get a mouse event

related to PR 13139
2012-10-02 20:56:34 -05:00
Matthew Flatt
4b6a57bd2e add info on building Racket to the "Inside" document
Closes PR 13156
2012-10-02 15:06:27 -06:00
Samuel Bronson
1dce7e587f scribble/private/manual-form: Implement racketgrammar in terms of racketgrammar*
This is just a refactoring for readability.
2012-10-02 15:06:27 -06:00
Carl Eastlund
bc681836bc Updating read-json to produce eof when appropriate. 2012-10-02 13:46:31 -04:00
Vincent St-Amour
937c901ce7 Add separator before Optimization Coach right-click menu entry. 2012-10-02 11:24:07 -04:00
Vincent St-Amour
69873c8db8 Fix Optimization Coach's handling of paths with spaces. 2012-10-02 10:45:29 -04:00
Vincent St-Amour
6ba0c1416e Remove out of date comment. 2012-10-02 10:18:48 -04:00
Vincent St-Amour
61b83045fc Fix loop detection heuristic based on self-out-of-fuel. 2012-10-02 10:18:48 -04:00
Matthew Flatt
7ddd99cf52 racket/gui win32: fix duplicate pre- events for controls 2012-10-02 07:26:25 -06:00
Matthew Flatt
a5d7812732 racket/gui: skip some redundant 'enter & 'leave events 2012-10-02 07:26:25 -06:00
Robby Findler
d6a8ac85b4 added some pretty-print using term formatters and fixed the
docs for term->pict.

closes PR 13150
2012-10-01 23:27:48 -05:00
Robby Findler
d0f981f9cb fix a bug in color padding code
closes PR 13153
2012-10-01 22:53:58 -05:00
Matthew Flatt
64bac4e573 racket/draw: fix return value of load-file' from bitmap%' 2012-10-01 18:14:19 -06:00
Matthew Flatt
efcad101d1 win32: fix coordinates of non-client mouse events
Closes PR 13141
2012-10-01 13:08:24 -06:00
Jon Rafkind
dcc853e841 add docs for revealing-slide 2012-10-01 12:11:58 -06:00
Jon Rafkind
c62907da58 add revealing-slide 2012-10-01 12:03:58 -06:00
Jon Rafkind
71b7f60b29 add docs for codeblock->pict 2012-10-01 11:06:13 -06:00
Jon Rafkind
e8d0ea30b0 add codeblock->pict to convert between scribble and slideshow representations of code 2012-10-01 11:06:13 -06:00
Robby Findler
a4b79ccf66 adjust Check Syntax so that it tries to point to the
raw-module-path inside of a phaseless-spec (see
the #%require docs for the description of these).
Also, Rackety

in conjunction with commit 9047427 (and an earlier
commit in those files/dirs), this commit:
 closes PR 7815
 closes PR 10455
 closes PR 10788
2012-10-01 10:47:23 -05:00
Matthew Flatt
6a5f73d3d9 scriblib/autobib: more graceful failure when bib not rendered 2012-10-01 07:14:46 -06:00
Matthew Flatt
38a49c89b9 doc improvement 2012-10-01 07:14:46 -06:00
Matthew Flatt
9047427e07 further improvements to source locations for `require' forms 2012-10-01 07:14:46 -06:00
Matthew Flatt
259a2b8c19 doc repair 2012-10-01 07:14:46 -06:00
Robby Findler
ce8d8eb763 fix the way check syntax traverses #%require expressions that it sees
(the way things currently stand, check syntax needs more information
 from the fully expanded form, but at least now it has a better chance
 to actually use that information, if it were there ...)

related to PR 7815
related to PR 10455
related to PR 10788
2012-09-29 22:09:02 -05:00
Matthew Flatt
14e276094a improve source correlation on `require' expansion 2012-09-29 08:59:10 -06:00
Matthew Flatt
4809c11548 doc fix 2012-09-29 08:59:10 -06:00
Robby Findler
60a035889f make tooltips go away if the drracket window isn't
the top-level window (and make them not appear in
that case, too)

closes PR 13139
2012-09-28 23:09:16 -05:00
Robby Findler
e958c33739 make a bunch of unmutated private fields bound to procedures into private methods
(the usual (define f ...) in a class confusion)
2012-09-28 22:44:27 -05:00
Robby Findler
34bd9bfa72 add a note about the red boxes
related to PR 13080
2012-09-28 15:54:51 -05:00
Robby Findler
e0c4e4055d make color and pen from 2htdp/image be structs in the sense
that 'color' and 'pen' have compile-time info saying that
they are structs

closes PR 13146
2012-09-28 15:09:29 -05:00
Robby Findler
8971cb5981 adjust define-primitive so that it cooperates with struct-info.
Specifically, if there is a third argument to define-primitive, then
it uses the prop:struct-info setup, using that third argument
as the struct-info (in the list format).
2012-09-28 15:09:25 -05:00
Eli Barzilay
679c308c53 Improve setperms example. 2012-09-28 09:31:53 -04:00
Sam Tobin-Hochstadt
3b37d64936 Document ~e from racket/format. 2012-09-27 18:29:55 -04:00
Sam Tobin-Hochstadt
d84631bc6f Don't provide internal identifier. 2012-09-27 18:29:43 -04:00
Eric Dobson
8a8dc66a19 Replace uses of Type? in contracts with Type/c. 2012-09-27 18:10:38 -04:00
Sam Tobin-Hochstadt
cab90c16d5 Test for appropriate predicates for invariant structs. 2012-09-27 17:26:32 -04:00
Sam Tobin-Hochstadt
ee4ba2e3dd Fix define-typed-struct/exec to pass struct-info. 2012-09-27 17:08:49 -04:00
Sam Tobin-Hochstadt
d066a5c1d2 Fix error message pattern for use of cons/c. 2012-09-27 16:39:16 -04:00
Sam Tobin-Hochstadt
c07852eaf1 Ensure that identifiers defined by struct are registered as being defined in the correct module. 2012-09-27 16:22:22 -04:00
Eric Dobson
cf4d43c04f Made free-variance have less special cases. 2012-09-27 16:22:22 -04:00
Eric Dobson
ffe45ecce4 Working covariant applications. 2012-09-27 16:22:22 -04:00
Eric Dobson
40809e768d WIP on fixing free-variance. 2012-09-27 16:22:22 -04:00
Eric Dobson
e3743b446c Split adding the struct type and the bindings. 2012-09-27 16:22:22 -04:00
Eric Dobson
40236a3b26 Cleanup define-struct parsing. 2012-09-27 16:22:22 -04:00
Eric Dobson
8ea7502c12 More cleanup of struct type registration. 2012-09-27 16:22:21 -04:00
Eric Dobson
d84391b695 More struct work 2012-09-27 16:22:21 -04:00
Eric Dobson
626f807f00 Removed cert value. 2012-09-27 16:22:21 -04:00
Eric Dobson
8226b6764c Cleanup of tc-struct and tc-toplevel. 2012-09-27 16:22:21 -04:00
Eric Dobson
d54a573494 Removed unused constructor-return argument. 2012-09-27 16:22:21 -04:00
Eric Dobson
54401182bb Make tc-struct no longer have long lines. 2012-09-27 16:22:21 -04:00
Eric Dobson
12233600c1 Fix -struct to use the right number of arguments to make-Struct. 2012-09-27 16:22:21 -04:00
Eric Dobson
6fe850ce39 Clean up contracts in TR. 2012-09-27 16:22:21 -04:00
Eric Dobson
2a8512ed72 Removed unused fields in Struct 2012-09-27 16:22:21 -04:00
Eric Dobson
745403a88e Make struct type contracts better 2012-09-27 16:22:21 -04:00
Eric Dobson
9e1cf579a4 Fix type->contract on structures. Now uses struct/c. 2012-09-27 16:22:21 -04:00
Ryan Culpepper
8ba835a3c9 added unstable/custom-write 2012-09-27 12:45:55 -04:00
Ryan Culpepper
d8296a31f5 syntax/parse/experimental/template: make errors consistent with 'syntax' 2012-09-27 12:45:55 -04:00
Robby Findler
d9a58e5a6d fix rectangle computation for shortcircuiting drawing
in the module browser

closes PR 13080
2012-09-27 11:16:35 -05:00
Robby Findler
fa891703a8 clean up indentation and move arrows to the front, while I'm here 2012-09-27 11:13:26 -05:00
Robby Findler
28c1c16ed5 fix module browser's red coloring of boxes in the
case that a file is required as x.ss, but its name
is actually x.rkt (and similar situations)

related to PR 13080

Also, Rackety
2012-09-27 10:57:26 -05:00
Robby Findler
c5b5c6f9b5 fixes suggested by latest reviewer of the hosc submission 2012-09-27 09:48:35 -05:00
Matthew Flatt
3f59309634 ffi/unsafe doc repairs
Closes PR 13143
2012-09-27 08:12:56 -06:00
Matthew Flatt
afeeb56fe8 fix doc bug for `gauge%' 2012-09-27 08:12:56 -06:00
Matthew Flatt
dd4dc53e82 when PLTPICTBOX is set, include "Insert Pict Box" in DrRacket
Works well enoough for demos, at least.
2012-09-27 08:12:56 -06:00
Robby Findler
9b0eb1ab78 fix redex pdf generation when a string is passed 2012-09-25 15:32:38 -05:00
Jay McCarthy
a5acdb473f Squelching port-closed error messages 2012-09-25 10:21:20 -06:00
Mike Sperber
b420e40b0e Synch German string constants with latest. 2012-09-25 09:51:01 +02:00
Asumu Takikawa
646552b2c4 Reference: fix interface example typo 2012-09-25 01:48:56 -04:00
Robby Findler
ec6408b343 Adjust the web download phase of the install .plt file
menu item in drracket so that it first checks to see if
the downloaded file matches a .plt archive and, if not,
try to put some friendlier message in front of the gzip error

closes PR 9425
closes PR 13129
2012-09-24 14:11:21 -05:00
Ryan Culpepper
008d1f7f1b syntax/parse/experimental/template: quasitemplate, template/loc 2012-09-24 13:31:03 -04:00
Matthew Flatt
44e55689a2 Scribble overview: mention tables comments, and pictures 2012-09-23 11:53:30 -05:00
Matthew Flatt
3fb12b4ff4 raco exe: handle failing submodule search correctly
An attempt to detect a submodule could trigger the original module
name resolver when the would-be enclosing module would be handled
by the embedding-specific resolver. When a submodule is not found
but its would-be enclosing module is embedded, then assume that
the default resolver wouldn't find the submodule, eithe --- and
therefore avoid a potential "collection not found" error.
2012-09-23 10:47:24 -05:00
Matthew Flatt
1eabd154fb setup/path-relativize: fix for unknown root path 2012-09-22 08:11:08 -06:00
Robby Findler
c3a454aebf Add a missing check for when arrow-records might be #f
closes PR 13133
2012-09-21 16:20:07 -05:00
Matthew Flatt
9b6ff5d94d compiler/cm: fix self-dependency check for ".ss" vs. ".rkt" 2012-09-21 08:31:04 -06:00
Matthew Flatt
cb041850f4 scribble: decode a lone ` as a left "curly quote"
Also, add 'lsquo as allowed content.

Omitting the ` conversion in the first place was over-conservative.
There's a backward-compatibility issue with this addition (i.e., a
document might contain a backquote in a decoded context that is
meant to be rendered as a backquote), but the potential problems
seem minor.
2012-09-21 07:37:30 -06:00
Matthew Flatt
c75c0d9946 setup/dirs: fix for failure to find embedding executable 2012-09-21 07:18:55 -06:00
Matthew Flatt
99274b203a doc fix
Closes PR 13105
2012-09-20 17:49:50 -06:00
Matthew Flatt
5dcebb86ac change `stream-append' to use its last argument as the result tail
Closes PR 13130
2012-09-20 17:49:50 -06:00
Robby Findler
3f4b117c1a remove redunant arguments (they were the same as the default args, in 70-something places) 2012-09-20 18:46:40 -05:00
Robby Findler
a6d74c8e3b avoid the default handler for call-with-continuation-prompt in
favor of one that behaves much like it, but never escapes

closes PR 13121
2012-09-20 18:46:40 -05:00
Matthew Flatt
d05f9bacb3 slideshow/balloon: Rackety 2012-09-20 16:46:07 -06:00
Matthew Flatt
a422256393 slideshow/pict: make `colorize' accept list of bytes (as documented) 2012-09-20 16:46:07 -06:00
Matthew Flatt
39d54d2576 Slideshow viewer: "s" and "a" keys navigate next/previous by title
The new keys are useful for skipping animation groups. They
actually navigate by slide name, which defaults to the slide title,
but can be specified separately with the `#:name' argument to
`slide'.
2012-09-20 16:46:07 -06:00
Ryan Culpepper
8a02ff54ac syntax/parse/experimental/template: improve prop handling & syntax checks
Separate parameters for props to serialize and those to transfer.
Make syntax?/list? checks on attributes explicit.
Also add continuation barrier around metafunction application.
2012-09-20 12:28:18 -04:00
Ryan Culpepper
ddcafbc6d1 syntax/parse/experimental/template: fix ellipses/depth rules again 2012-09-20 12:19:51 -04:00
Matthias Felleisen
37ff798163 sqrt 2 to show #i numbers 2012-09-20 09:05:33 -04:00
Robby Findler
0e7688349e add syntax error check when the arrow in a reduction
relation isn't just an identifier

add a syntax error check when an identifier appears
under two different ellipses depths in the same pattern
2012-09-20 07:09:17 -05:00
Eli Barzilay
e4f03a4045 Improvements to "meta/images/taking-screenshots".
Improve text layout and avoid enforcing org-mode, improve the racket
script.
2012-09-19 23:04:25 -04:00
Eli Barzilay
f49165720c Clarify that the `*-node' is not in the list of nodes. 2012-09-19 22:54:13 -04:00
Eli Barzilay
3e02c64cc6 Remove reference to outdated software. 2012-09-19 22:54:13 -04:00
Jay McCarthy
661079aab6 Fixing error discovered by Steven Lyde 2012-09-19 15:56:34 -06:00
Robby Findler
e6a25f65ca fix first-order test for struct/dc contracts
closes PR 13090
2012-09-19 15:41:56 -05:00
Matthew Flatt
c16b696272 win32: fix for clipboard bitmap decoding
Closes PR 13119
2012-09-19 09:12:57 -06:00
Matthew Flatt
4f75350bf3 win32: fix(?) printing page-size calculation when in 100*mm
Windows provide page metrics in either 1000ths of inches or
100ths of millimeters. I think Racket's calculation was wrong
in the mm case.
2012-09-19 08:40:24 -06:00
Matthew Flatt
e68db772b2 fix grammar for fully expanded submodules 2012-09-19 06:02:44 -06:00
Matthew Flatt
07e5526d6a switch generator' implementation to use prompt' and `call/cc'
Instead of `shift' and `reset'. Performance is a little better,
since `call/cc' acts as hint to the run-time system that the
continuation doesn't need to compose.
2012-09-19 05:59:57 -06:00
Robby Findler
21e0d9e031 make check syntax traverse (module* ...) expressions
closes PR 13095
2012-09-19 06:48:09 -05:00
Robby Findler
ae87169d7e eliminate some dead code (showuld have been removed in an earlier commit) 2012-09-19 06:08:03 -05:00
Robby Findler
f1dd6be88b adjust the installer dialog so that it prints a "completed"
message at the end of the transcript and so that it shuts down
the installation custodian (which means that any threads or
anything like that that the .plt file's code may have created
will die, plus that the "abort installation" button will now
be greyed out)

closes PR 13122
2012-09-19 06:03:03 -05:00
Robby Findler
51d41c6cfe adjust check syntax so that it doesn't take over the right-click
menu, but instead cooperates with the existing protocol
(using keymap:add-to-right-button-menu)
2012-09-19 05:19:03 -05:00
Vincent St-Amour
f1f1826bff Move screenshot scripts to the meta collect. 2012-09-18 14:17:36 -04:00
Vincent St-Amour
a2157b86dc Rackety and minor edits. 2012-09-18 14:17:36 -04:00
Diogo F. S. Ramos
f147871728 Add instructions on how to take screen shots
This instructs the adventurer on how to take screen shots using the
same look and feel used to take the ones that can be found at
`collects/scribblings/gui/image'.

There are also two scripts that might help automate this process.
2012-09-18 14:17:36 -04:00
Diogo F. S. Ramos
54ab1bfbfa Add a Widget Gallery to Racket GUI documentation
It's very helpful to have a visual aid when dealing with a graphical
interface toolkit.

This patch adds an overview of the widgets available in the library
consisting of screen shots of the main ones and the snippets used to
produce them.

Each widget image link back to the full documentation.
2012-09-18 14:17:36 -04:00
Asumu Takikawa
ddaef42576 define/match: fix docs & more examples 2012-09-18 13:36:15 -04:00
Matthew Flatt
e81cd0d8d7 add `slideshow/code-pict' and code transformers
The `slideshow/code-pict' library is the same as `slideshow/code', but
it works in non-GUI settings. Only the `slideshow/code' library connects
the code font size to `current-font-size', though.

The `code' macro, `define-code', etc., now support "code transformers",
which are syntax bindings that trigger otherwise-unescaped transformations
in the code to typeset (which can make the code easier to read and
friendlier to auto-indentation).
2012-09-18 10:03:26 -06:00
Asumu Takikawa
59915409a5 unstable/match: forgot the tests for 1a0a06d 2012-09-17 20:21:11 -04:00
Asumu Takikawa
1a0a06db62 unstable/match: add define/match
Match-based function definition form that supports optional,
keyword, rest-arg, and curried arguments.
2012-09-17 19:46:46 -04:00
Ryan Culpepper
35a0e50de4 syntax/parse/experimental/template: fixed bugs, added error tests 2012-09-17 18:11:44 -04:00
Jay McCarthy
348005047b Fixing PR13117 2012-09-17 13:03:41 -06:00
Ryan Culpepper
97954f7c37 fixed macro-stepper tests 2012-09-17 12:43:36 -04:00
Ryan Culpepper
29a9abf394 fix bad attr reference (datum attr doesn't exist)
That macro doesn't seem to be used anywhere. Perhaps it can just
be deleted.
2012-09-17 12:29:17 -04:00
Ryan Culpepper
fcac1fdc50 syntax/parse/experimental/template: fix bad initial environment 2012-09-17 12:29:17 -04:00
Ryan Culpepper
9d34f0f147 db: added support for postgresql 9.2 types (json, ranges)
Other major changes:
 - pg code now uses only binary format
 - pg timestamptz now always UTC (tz = 0), added doc section
 - added contracts to most pg "can't-convert" errors
2012-09-17 12:29:17 -04:00
Robby Findler
c675cf47f0 adjust the print-to-ps preference in DrRacket so that you can also
choose to print to pdf as well. Also, enable the preference
under linux (ie, make it available to be chosen-- all platforms
still default to printing via the platform-specific mechanism)
2012-09-17 10:47:22 -05:00
Matthias Felleisen
b1ba81d0cc replace example for string=; Closes PR 13112 2012-09-17 06:57:07 -04:00
Ryan Culpepper
f621855aa3 racket/unit lang uses racket/base and racket/unit
Probably fixes PR 13118
2012-09-16 17:12:02 -04:00
Ryan Culpepper
d70e80e837 racket/format: change ~r to accept #:notation argument
Another possibility would be
  #:exponential? (or/c boolean? (-> rational? boolean?))
but that violates the "everything's a boolean" convention.
2012-09-16 17:12:02 -04:00
Matthew Flatt
d1cd4621de racket/draw: add make-dc' convenience method to bitmap%' 2012-09-14 15:58:47 -06:00
Matthew Flatt
7fd4f59e5a racket/draw: doc overview fix and tweaks 2012-09-14 15:37:11 -06:00
Matthew Flatt
fc52248446 add #:break' and #:final' to `for' forms
Support for break clauses complicates expansion to `for/fold/derived';
a new `syntax/for-body' library provides a helper for macros that need
to split a `for'-style body into a prefix part and wrappable part.
2012-09-14 14:57:35 -06:00
Matthew Flatt
c28d3190b2 doc fix for `in-producer' 2012-09-14 13:03:06 -06:00
Matthew Flatt
adb5c01ac4 racket/generator: add optional #:arity' clause to in-generator'
Allows the use of `in-generator' to produce multiple values in a
position other than immediately within `for' (where the arity
can be inferred).

Closes PR 11662
2012-09-14 13:02:55 -06:00
Matthew Flatt
ff35e7c95b racket/gui: fix docs on reparenting (which is now possible)
Closes PR 13108
2012-09-13 14:17:14 -06:00
Matthew Flatt
ade2d7a4a4 minor doc fixes 2012-09-13 14:17:14 -06:00
Matthew Flatt
11045a0384 improve editor-canvas resizing
A recent bug fix involved moving part of an `editor-canvas%' resize
out of atomic mode by queueing a callback (because the resize involves
quesrying the editor for its size, etc.), but then the callback
happens after a canvas is shown, which can cause it to appear with
bogus initial scrollbars. Queue the callback instead as a "refresh"
level callback, which gets a chance to run before a frame is made
visible.
2012-09-13 14:17:14 -06:00
Asumu Takikawa
e71caa5d06 Fix doc contracts for continuation aborts 2012-09-13 14:48:46 -04:00
Matthew Flatt
4cc475ad68 Scribble: fix problem with URL redirection 2012-09-13 11:05:52 -06:00
Matthew Flatt
6b7acd187b reference: fix docs for Windows path cleansing 2012-09-13 11:05:52 -06:00
Matthias Felleisen
f4576c4941 fixed pad equality; Closes PR 13106 2012-09-13 07:33:41 +02:00
Robby Findler
c069fa67a9 adjust the find-in-files initial config dialog to
get the "global" framework keybindings

closes PR 13110
2012-09-13 00:31:17 -05:00
Matthew Flatt
ac5965a1dc racket/set: add set-first' and set-rest' 2012-09-12 17:57:03 -06:00
Robby Findler
b8acee5655 small cleanup 2012-09-12 15:41:37 -05:00
Matthew Flatt
e7b1af845b compiler/cm: repair related to compiled-file-roots 2012-09-12 12:03:08 -06:00
Matthew Flatt
906ddb7fbf Windows: avoid Unix-specific test 2012-09-12 11:19:51 -06:00
Matthew Flatt
3fb42cf3f1 scribble/html-properties: allow URLs in css-addition' and js-addition' 2012-09-11 18:52:59 -06:00
Matthew Flatt
9162fc2504 racket/html-properties: add `js-addition' 2012-09-11 17:39:12 -06:00
Matthew Flatt
dc925d2d8c scribble HTML: add head-extra' and support for attributes'
For a part that corresponds to an HTML page.
2012-09-11 17:18:14 -06:00
Matthew Flatt
7a8ebdab7b add `xml/xexpr'
Exports `xexpr?' and `xexpr/c' without dependencies on the rest of
the `xml' library.
2012-09-11 17:17:38 -06:00
Matthew Flatt
f1671f2044 fix default logging levels for stderr and syslog 2012-09-11 13:18:18 -06:00
Matthew Flatt
4f351dd6b1 add `current-compiled-file-roots', PLTCOMPILEDROOTS, and -R/--compiled
The new parameter (and supporting environment variables and
command-line flags) can bytecode lookup to a tree other than
where a source file resides, so that sources and generated
compiled files can be kept separate. It also supports storing
bytecode files in a version-specific location (either with
the source or elsewhere).
2012-09-11 13:18:18 -06:00
Asumu Takikawa
3daec14cbb racket/generic: better error message in empty case
Closes PR 13048
2012-09-11 14:43:19 -04:00
Vincent St-Amour
1975014c55 Remove TR optimizer log key, made redundant by named loggers. 2012-09-11 13:48:14 -04:00
Vincent St-Amour
ab328ea80b Fix TR tests for new logging system. 2012-09-11 13:48:14 -04:00
Vincent St-Amour
805a6477a7 Use named loggers to tell TR and inliner logs apart. 2012-09-11 13:48:14 -04:00
Vincent St-Amour
251159e64a Allow launching OC when it's already running. 2012-09-11 13:48:14 -04:00
Vincent St-Amour
39100bd3e3 Fix OC for new logging system. 2012-09-11 13:48:14 -04:00
Vincent St-Amour
5a24b57a95 Fix unstable/logging to work with the new logging system. 2012-09-11 13:48:14 -04:00
Robby Findler
0fd52435a4 add a note about "" in with-compound-rewriter 2012-09-09 23:45:54 -05:00
Vincent St-Amour
adceb4322a Integers include inexact single-float integers.
Closes PR13103.
2012-09-09 15:46:29 -04:00
Vincent St-Amour
729d154deb Fix types of comparisons between zero and non-negative integer types. 2012-09-08 18:51:38 -04:00
Robby Findler
9b15450b08 export and document enabled-shown-button?
label-of-enabled/shown-button-in-top-level-window?
       and button-in-top-level-focusd-window?
2012-09-08 15:58:25 -05:00
Eli Barzilay
d88eef6bfb Some "@racket" fixes.
Two reported by Lee Duhem, and two more in other files.

Fixes PR 13092.
2012-09-08 15:17:04 -04:00
Eli Barzilay
ff5c9f73ce Some formatting fixes. 2012-09-08 15:15:47 -04:00
John Clements
9a884c84fa nused -> used 2012-09-07 16:37:28 -07:00
Matthew Flatt
a774cc93b9 move future-visualizer docs out of the Reference 2012-09-07 09:11:16 -06:00
Matthew Flatt
d92b9cb404 add `define-logger' and filtering based on logger name
The `make-log-receiver' function now includes a logger-name
filter. This filter is implemented as a low enough level that
it affects `log-level?' tests to check whether a log message
needs to be constructed at all.

The -W and -L flags and PLTSTDERR and PLTSYSLOG environment variables
support filters of the form "<level> <level>@<name> ...", where
<level>@<name> specializes filtering of events for a logger whose
name matches <name> to show <level> and higher.
2012-09-07 08:16:38 -06:00
Matthew Flatt
8728a3a1e9 fix bug in relative `submod' path handling 2012-09-07 08:16:37 -06:00
Matthew Flatt
fc0d605d18 change `log-error', etc., to support format mode
One subexpression => string literal. Multiple subexpressions
=> arguments to `format'.
2012-09-07 08:16:37 -06:00
Matthew Flatt
b53e458e3f add `racket/format'
The new library is Ryan's `unstable/cat', but the names have been
changed. (The task of removing `unstable/cat' remains.)
2012-09-07 08:16:37 -06:00
Gregory Cooper
5e5c564532 fix the other frtime compilation error by commenting out the body of collects/frtime/frtime-opt-lang.rkt
add a TODO to fix the underlying problem and uncomment the module body
2012-09-05 17:07:37 -07:00
Gregory Cooper
1ef42832b3 fix one frtime compilation error by updating require and provide forms in collects/frtime/reactive.rkt 2012-09-05 17:07:37 -07:00
Matthew Flatt
2f7d4b5eaf change a thread's initial prompt to use the default handler
The thread's initial prompt previously ignored its arguments.
2012-09-05 12:21:43 -06:00
Matthew Flatt
3a7724e422 fix documentation of the prompt installed by `module' 2012-09-05 12:21:43 -06:00
Patrick Mahoney
3d8fc4ad01 Apply Gregory Cooper's suggestions
https://github.com/plt/racket/pull/138/files#r1447006
2012-09-04 21:57:16 -07:00
Patrick Mahoney
65c54a9dd9 Apply Gregory Cooper's changes
-remove the dead in-string procedure.
-cleanup empty lines.

https://github.com/plt/racket/pull/138/files#r1447006
2012-09-04 21:57:15 -07:00
Patrick Mahoney
a95a90a9da Implement changes suggested by Gregory Cooper
-reorder requires and cleanup
-remove unneccessary newline.
2012-09-04 21:57:15 -07:00
Patrick Mahoney
857b05798b Implement Gregory Cooper's suggested changes
-apply Dr.Racket indentation formatting
-fixup provides
-don't know if it is possible to remove mzlib/private/stxset

https://github.com/plt/racket/pull/138
2012-09-04 21:57:15 -07:00
Patrick Mahoney
6611b5f519 Implement Gregory Cooper's changes
-remove unnecessary import
-fix formatting of the frtime:provide block
-remove unnecessary newlines.
-apply Dr.Racket formatting.
https://github.com/plt/racket/pull/138
2012-09-04 21:57:15 -07:00
Patrick Mahoney
10076ad289 End file at a newline char.
Per suggestions at https://github.com/plt/racket/pull/138
2012-09-04 21:57:15 -07:00
Patrick Mahoney
06dd61afae Responding to Gregory Cooper's github comments.
Changes:
-reorder and cleanup requires as suggested by Gregory
-apply Dr.Racket indentation.
Discussion at:
https://github.com/plt/racket/pull/138
2012-09-04 21:57:15 -07:00
Patrick Mahoney
5a8618a74e Remove mzlib/match dependency 2012-09-04 21:57:15 -07:00
Patrick Mahoney
e64c20d79f require racket async-channel instead of scheme 2012-09-04 21:57:14 -07:00
Patrick Mahoney
3ad0c594a9 Remove mzlib/etc import 2012-09-04 21:57:14 -07:00
Patrick Mahoney
7be82a8eca Update the scribbling-frtime extends Racket now 2012-09-04 21:57:14 -07:00
Patrick Mahoney
ba4295bf34 Use racket for the Dr Racket tool info 2012-09-04 21:57:14 -07:00
Patrick Mahoney
e5b6172427 Move tetris.rkt to racket frtime 2012-09-04 21:57:14 -07:00
Patrick Mahoney
af83d7b6bd Revert to frtime/struct
Moving to syntax/struct was resulting in tile-game.rkt breaking.
Apparently it is the only demo using structs, or one of a few.
2012-09-04 21:57:14 -07:00
Patrick Mahoney
5c935ba0b6 Remove mzlib/etc require 2012-09-04 21:57:14 -07:00
Patrick Mahoney
67d75b4c09 Use racket/class in lieu of mzlib/class 2012-09-04 21:57:14 -07:00
Patrick Mahoney
9b22a64175 Remove unnecessary frtime/frlibs/etc import. 2012-09-04 21:57:13 -07:00
Patrick Mahoney
5fd7e2fc1a Remove opt-lambda uses, unused imports 2012-09-04 21:57:13 -07:00
Patrick Mahoney
a02d53130e Remove mzlib opt-lambda uses
Racket's lambda provides optional args. Use this in favour of the
mzlib/etc opt-lambda.
2012-09-04 21:57:13 -07:00
Patrick Mahoney
4ecc0525e7 Use lifted Racket math definitions
Continue to provide the same definitions, but lift the Racket ones
rather than rewrite and redefine them.
2012-09-04 21:57:13 -07:00
Patrick Mahoney
65ace21d22 Change all instances of make-hash to make-hasheq
Merge Gregory Cooper's suggested change. With this, the demos are all
working!
2012-09-04 21:57:13 -07:00
Patrick Mahoney
c13cbf448f Add the helper to begin developing frtime 2012-09-04 21:57:13 -07:00
Patrick Mahoney
0ef9104a52 Big Commit that introduces the freeze in demos relying on animation 2012-09-04 21:57:13 -07:00
Patrick Mahoney
489d21520e Move the gui modules to lang racket 2012-09-04 21:57:12 -07:00
Patrick Mahoney
7337c44604 Move core to racket lang.
This was an easy set of modules to port-just switched the #lang form
from #lang scheme to #lang racket.
2012-09-04 21:57:12 -07:00
Patrick Mahoney
01df178c3f Move graphics-unit.rkt to racket lang. 2012-09-04 21:57:12 -07:00
Patrick Mahoney
4eca7a7bd0 Move graphics-sig.rkt to racket lang. 2012-09-04 21:57:12 -07:00
Patrick Mahoney
d1d7bdf5f9 Move graphics-posn-less to lang racket
-write a macro to convert rec uses to Racket's letrec.
-remove opt-lambdas in favor of Racket's lambda.
2012-09-04 21:57:12 -07:00
Patrick Mahoney
5ec59b1793 Use racket lang for graphics.rkt 2012-09-04 21:57:12 -07:00
Patrick Mahoney
fe4a4c8e62 Use racket for syntax in animation.rkt 2012-09-04 21:57:12 -07:00
Patrick Mahoney
85d4b9b0a5 Move date.rkt to racket lang. 2012-09-04 21:57:11 -07:00
Patrick Mahoney
025c5f3cf1 Remove unnecessary gui.rkt imports. 2012-09-04 21:57:11 -07:00
Patrick Mahoney
b61ecf9874 Remove mzlib/list require from gui.rkt 2012-09-04 21:57:11 -07:00
Patrick Mahoney
7f7867c46d Remove unnecessary require 2012-09-04 21:57:11 -07:00
Patrick Mahoney
032dd1948c Switch instances of mzlib/list to racket/list 2012-09-04 21:57:11 -07:00
Patrick Mahoney
21fcc4934c Require racket/match instead of mzlib/match
match pattern changes:
($ struct-id ...) -> (struct-id ...)
(hd tl) -> (list hd tl)
-small provide cleanup in lang-utils.rkt
2012-09-04 21:57:11 -07:00
Patrick Mahoney
01ec2d3fde Begin transition to racket lang in lang-utils.rkt
-Maximize the number of bindings brought in from racket vs. mzscheme by
replacing mzscheme in the (all-except mzscheme form with racket.
-import from mzscheme sparingly rather than bringing it all in except
the lang-core bindings.
-switch mzlib/list require to racket/list
-some cleanup of requires and provides
2012-09-04 21:57:11 -07:00
Patrick Mahoney
69de8e95b3 Small provides cleanup. 2012-09-04 21:57:10 -07:00
Patrick Mahoney
7c8980cf5a Explicit requires from frtime/core/frp
Cleanup and reorder requires.
2012-09-04 21:57:10 -07:00
Patrick Mahoney
c558ae7e1a Remove scheme/list, scheme/base requires for-syntax
Replace with Racket equivalents.
2012-09-04 21:57:10 -07:00
Patrick Mahoney
4baae35e7c Remove mzlib/etc dependency 2012-09-04 21:57:10 -07:00
Patrick Mahoney
1eac1be6d7 Remove scheme/list dependency in favor of racket/list
Favor explicit requires.
2012-09-04 21:57:10 -07:00
Patrick Mahoney
f32aa2081c Remove scheme/bool dependency 2012-09-04 21:57:10 -07:00
Patrick Mahoney
1e98b644f2 Move lang-ext.rkt to racket/base lang
scheme/base to racket/base appears to be a no-hassle change, assuming
the require forms are kept to the simple ones.
2012-09-04 21:57:10 -07:00
Patrick Mahoney
182cf25bfa Reorder provides in lang-core.rkt 2012-09-04 21:57:10 -07:00
Patrick Mahoney
fa740ebfcf Reorder and cleanup requires in lang-core.rkt. 2012-09-04 21:57:09 -07:00
Patrick Mahoney
2d12f007a9 Reduce dependency on mzlib/etc requires.
Only opt-lambda remains imported from this lib. Later, this dependency
will be removed.
2012-09-04 21:57:09 -07:00
Patrick Mahoney
ca236f0ad7 Remove srfi/43/vector-lib dependency 2012-09-04 21:57:09 -07:00
Patrick Mahoney
37aa13b96d Remove srfi/43/vector-lib dependency in favor of racket/vector 2012-09-04 21:57:09 -07:00
Patrick Mahoney
7640e5ddb2 Require imports from frtime/core/frp explicitly
-Animation tests pass.
-Generally prefer explicit imports.
2012-09-04 21:57:09 -07:00
Patrick Mahoney
360eb60568 Explicitly import identifiers from syntax/struct. 2012-09-04 21:57:09 -07:00
Patrick Mahoney
7e21d64cdf Refactor mzlib/list syntax require into two Racket requires.
mzlib/list exports foldl, whereas racket/base exports this identifier.
2012-09-04 21:57:09 -07:00
Patrick Mahoney
6c4d8aa336 Require syntax/struct instead of frtime/struct
Can frtime/struct.rkt be removed now? (likely yes).
2012-09-04 21:57:08 -07:00
Patrick Mahoney
818b7c132b Update syntax and template requires to use racket/base 2012-09-04 21:57:08 -07:00
Patrick Mahoney
6c8556c4b5 Require racket/struct-info instead of scheme/struct-info. 2012-09-04 21:57:08 -07:00
Patrick Mahoney
7c2b31c61f Change lang of struct.rkt from scheme/base to racket/base. 2012-09-04 21:57:08 -07:00
Patrick Mahoney
64e9bdd92d Change require from mzlib/class to racket/class. 2012-09-04 21:57:08 -07:00
Matthew Flatt
ba56fd72da racket/class: add dynamic-get-field' and dynamic-set-field!' 2012-09-04 15:28:18 -06:00
Matthew Flatt
8bd5dbf7cc ffi/unsafe: change `cast' to avoid pitfalls for you
The old `cast' didn't work right for a mismatch between
a pointer GCableness and the source or target types, and
it didn't work right for an GCable pointer with a non-zero
offset. While those pitfalls were documented, the first
of them definitely has been a source of bugs in code that
I wrote.

Also added `cpointer-gcable?'
2012-09-04 15:28:18 -06:00
Matthew Flatt
7d2ce136fa scribble: another Latex/PDF section repair 2012-09-03 08:07:34 -06:00
Matthew Flatt
16621ad437 scribble: fix for Latex and `\Ssection' changes 2012-09-03 06:10:27 -06:00
Matthew Flatt
69d2adce4d racket/gui: new-style error messages 2012-09-02 16:38:43 -06:00
Matthew Flatt
64eb4f9389 racket/gui: make `editor-canvas%' fail more gracefully on too-large content
Closes PR 13087
2012-09-02 10:08:23 -06:00
Matthew Flatt
19b2ee5e90 racket/gui: get get-scroll-pos', etc., arguments for canvas%' 2012-09-02 10:08:18 -06:00
Matthew Flatt
9f9f91207f ffi/com: add an ActiveX example to the docs 2012-09-01 16:05:37 -06:00
Jay McCarthy
b68fb6f228 Obey contract in internal test 2012-09-01 12:48:14 -06:00
Marc Burns
be72d1475b Include bindings via query string in POST request bindings.
The original implementation does not generate bindings from
the URL query string on POST requests. However, it is often
necessary to retrieve information from the query string on
a POST.
2012-09-01 12:12:07 -06:00
Matthew Flatt
3f825b8d20 ffi/com: fix reference counting
Don't AddRef() on "in" arguments, do AddRef() on "out"
or "in-out" arguments.
2012-09-01 09:48:35 -06:00
Matthew Flatt
f1ff9c6059 ffi/com: fix unmarshal of by-ref results 2012-09-01 09:48:35 -06:00
Matthew Flatt
eb7fd51d02 ffi/com: add `any ...' support for method arguments
Also allow `?' for the length of an array and suport VT_SAFEARRAY
arguments (mostly the same as VT_ARRAY).
2012-09-01 09:48:35 -06:00
Matthew Flatt
e407303c5e ffi/com: add missing export 2012-09-01 09:48:34 -06:00
Matthew Flatt
3a2b562ff4 remove debugging printf 2012-09-01 09:48:34 -06:00
Robby Findler
4571afa6ab speed up the test-engine drracket tests some 2012-08-31 20:52:48 -05:00
Robby Findler
6ca79d56fa fix check-error so it compares the rewritten error messages,
not the raw error messages
2012-08-31 20:52:48 -05:00
Vincent St-Amour
a85438bc69 Add comment about the current state of the latex character table. 2012-08-31 19:31:20 -04:00
Matthew Flatt
7b2e18afc5 scribble: for Latex output, use `\Ssection', etc. for section
A style override might change `\section' to `\chapter', etc.
2012-08-31 16:07:10 -06:00
Matthew Flatt
9cfcf8911c fix `in-directory' to properly propagate filesystem errors 2012-08-31 16:07:10 -06:00
Sam Tobin-Hochstadt
eed93825ab Track mutable variables across modules. 2012-08-31 17:45:11 -04:00
Asumu Takikawa
cd23fd48cf Comment and clarify top-level evaluation & barriers 2012-08-31 16:27:35 -04:00
Sam Tobin-Hochstadt
ab5403d1ed Simplifying case-> to union is only safe for 1-argument functions.
Closes PR 13002.
2012-08-31 10:27:51 -04:00
Matthew Flatt
d841ec1bd0 propagate prefix repair to to scribble/jfp' and scribble/lncs' 2012-08-31 07:33:08 -06:00
fbanados
0b19326ac6 include scribble/scribble-prefix.tex packages to scribble/sigplan 2012-08-31 07:33:08 -06:00
Matthew Flatt
d11e58b639 ffi/unsafe/atomic: add `in-atomic-mode?'
The new function can be useful for debugging, at least.
2012-08-31 07:33:08 -06:00
Ryan Culpepper
70a2ced71a syntax/id-table: simplify use of chaperones 2012-08-29 20:44:04 -04:00
Ryan Culpepper
3ccc93590a syntax/id-table: more work on *-id-table/c 2012-08-29 20:43:24 -04:00
Eric Dobson
e7c7e14485 Added tests to idtbl/c and fixed revealed bugs. 2012-08-29 20:25:32 -04:00
Eric Dobson
d4efe8f5aa Clean up creation of identifiers in id-table.rkt 2012-08-29 20:25:32 -04:00
Eric Dobson
4725775126 Implemented contract for immutable id-tables. 2012-08-29 20:25:32 -04:00
Eric Dobson
8f8bc76e39 Add idtbl-chaperone and implement contracts on top of that. 2012-08-29 20:25:32 -04:00
Eric Dobson
54b82871ab Add support for contracts on identifier tables. 2012-08-29 20:25:31 -04:00
Matthew Flatt
7291e1a24d racket/gui win32: atomicity repair 2012-08-29 17:45:59 -06:00
Robby Findler
977fd37913 adjust contract for test:button-push so it isn't so ugly 2012-08-29 14:52:56 -05:00
Matthias Felleisen
93ca0bf9f7 eliminated stateful variables from 16 year old code, and now I know it is correct
Closes PR 13074

set! sucks
2012-08-29 11:35:34 -04:00
Matthew Flatt
b4fea2ff36 fix `delay/thread' error when promise-running thread terminates 2012-08-29 09:32:54 -06:00
Matthew Flatt
6039e35afd fix race in `delay/sync' 2012-08-29 07:20:24 -06:00
Ryan Culpepper
8ad09dee8e fix bug typo
closes PR 13055
2012-08-28 23:37:00 -04:00
Ryan Culpepper
ae843f9a62 readline: prefer 5 (fast) over 6 (slow)
Running racket in a terminal with readline 6 has excruciating delays
in response and bizarrely slow pasting. The culprit is probably a bug
in readline v6.2 that causes the rl_event_hook to be called repeatedly
even when input is ready. See also the discussion here:
http://lists.gnu.org/archive/html/bug-readline/2012-06/msg00005.html

It's not clear whether racket can work around the issue in readline 6,
but it can at least use readline 5 instead when it is available.
2012-08-28 23:36:50 -04:00
Ryan Culpepper
ecb88ffd45 Revert "db: use channel instead of semaphore + result variable"
Using a sync. channel breaks kill-safety.

This reverts commit 8363db9258.
2012-08-28 22:04:05 -04:00
Matthew Flatt
d953bc27ba fix `ffi/unsafe/nsalloc'
Using `call-as-atomic' isn't right, because that allows an escape
via `call-as-nonatomic'. Assuming that `call-as-nonatomic' isn't
used, it seems like `call-as-atomic' should be ok, anyway, but
somehow its leads to unbalanced `end-atomic' calls.
2012-08-28 18:45:55 -06:00
Matthew Flatt
003613395d fix `font%' amnipulation to work in atomic mode 2012-08-28 17:27:14 -06:00
Matthew Flatt
dba3c14746 fix editor-canvas%' internal on-size' handling
The `on-size' method is called in atomic mode,
and we can't call into the editor's sizing functions
in atomic mode.

Watch out for refresh and/or window-sizing problems.
2012-08-28 17:21:45 -06:00
Matthew Flatt
b61f3f751c port position-tracking clean-ups
Add `file-position*', which can return #f instead of raising
an exception when a port's position is unknown. Change
`make-input-port' and `make-output-port' to accept more
kinds of values as the initial position.

These changes make it possible to synchronize a port's
position with a `port-commit-peeked' action. It's ugly,
which I think reflect something broken about position
tracking in the port protocol (which seems difficult to fix
without breaking compaibility).
2012-08-28 16:04:41 -06:00
Asumu Takikawa
466b4e2c60 racket/generic: eliminate ctc dependency in private interface
Closes PR 13051
2012-08-28 17:54:35 -04:00
Robby Findler
496bfd3b57 add anote about C-F6 and a pointer to how to search in
the keybindings window for more such bindings
2012-08-28 16:30:33 -05:00
Robby Findler
fc03ab6c69 add a mention of the flat/chaperone/impersonator contract hierarchy to the contract docs 2012-08-28 13:19:05 -05:00
Matthew Flatt
763882f651 add port shortcut for `make-{input,output}-port'
Providing a port instead of a reading or writing procedure
redirects the read/write to the specified port. This shortcut
is kind of a hack, but the run-time system can easily streamline
the redirection when it's exposed this way.

Using the new redirection feature reduces overhead in
`with-output-to-bytes' and `pretty-print'.
2012-08-28 08:54:26 -06:00
John Clements
2c93ccdf18 failed to include test file for example 2012-08-27 23:47:44 -07:00
John Clements
f107c4d265 finish adding stepper external interface 2012-08-27 22:23:27 -07:00
John Clements
f933535639 adding external interface 2012-08-27 22:23:26 -07:00
Matthew Flatt
fe1cc4f009 doc repair 2012-08-27 20:17:06 -06:00
Matthew Flatt
85b99de7b1 ffi/unsafe/objc: more support for loading in unsupported contexts 2012-08-27 19:47:44 -06:00
Matthew Flatt
cb95a99d68 change `transplant-{input,output}-port' to propagate buffering
Affects derived functions, such as `dup-output-port' and
`relocate-output-port', and uses in `pretty-print'.
2012-08-27 19:44:06 -06:00
Matthew Flatt
704cb4bd01 make-output-port': fix enable-break?' argument to callbacks 2012-08-27 19:44:06 -06:00
Matthew Flatt
310945ee73 racket/pretty: replace internal table with `prop:output-port' structs 2012-08-27 19:44:05 -06:00
Robby Findler
8a4567f5aa adjust the tooltip position so it goes to the end of the line where the arrowhead sits 2012-08-27 20:13:49 -05:00
Robby Findler
9934f202c9 avoid allocating a bunch of boxes (instead use ones already lying around) 2012-08-27 20:13:49 -05:00
Jay McCarthy
9fdb0ac507 correct cut implementation without mutation 2012-08-27 15:13:18 -06:00
John Clements
614ff235fc remove dependencies on mz-testing.rkt 2012-08-27 13:35:38 -07:00
Sam Tobin-Hochstadt
514c1c5921 Refactoring of new tc-app. 2012-08-27 14:46:30 -04:00
Eric Dobson
1e15d4496e Fix errors in tc/app-hetero, cleanup tc/app. 2012-08-27 14:43:45 -04:00
Eric Dobson
5c7ed4a21d Cleaned up special cases by adding macros to reduce duplication. 2012-08-27 14:43:45 -04:00
Eric Dobson
ba7647d7e2 Moved the rest of special cases to reified syntax classes. 2012-08-27 14:43:45 -04:00
Eric Dobson
dda1d60211 Rough draft of syntax classes for tc-app. 2012-08-27 14:43:45 -04:00
Eric Dobson
020d053e0a Add back template require. 2012-08-27 14:43:45 -04:00
Eric Dobson
6c2be05749 Removed dependencies from tc-app-hetero. 2012-08-27 14:43:44 -04:00
Eric Dobson
d8c9a581f2 Remove unneeded requires 2012-08-27 14:43:44 -04:00
Eric Dobson
7005f12f0d Cleanup of tc-app refactor. 2012-08-27 14:43:44 -04:00
Eric Dobson
54d49d0ec1 Moved last special cases out of tc-app.rkt. 2012-08-27 14:43:44 -04:00
Eric Dobson
67c7e3537b Moved lambda special cases out of tc-app.rkt. 2012-08-27 14:43:44 -04:00
Eric Dobson
51671fcec4 Moved eq? et al. special casing out of tc-app.rkt. 2012-08-27 14:43:44 -04:00
Eric Dobson
73bd7da049 Moved object special cases out of tc-app.rkt. 2012-08-27 14:43:44 -04:00
Eric Dobson
c2ab21c5a5 Moved keyword special cases out of tc-app.rkt. 2012-08-27 14:43:44 -04:00
Eric Dobson
6034423472 Split out special cases for apply and values from tc-app.rkt. 2012-08-27 14:43:44 -04:00
Eric Dobson
fcb06ac433 Move TR list special cases to tc-app-list.rkt. 2012-08-27 14:43:44 -04:00
Matthew Flatt
7b49ad088a ffi/unsafe/objc: `objc_lookUpClass' produces #f when unavailable
This change allows `ffi/unsafe/nsstring', for example, to at least load
on all platforms.
2012-08-27 10:29:55 -06:00
Matthew Flatt
2504eec834 fix condense-mode slide counting in `with-steps' 2012-08-27 10:29:55 -06:00
Matthew Flatt
a523270025 ffi/com: repair for DCOM instance creation 2012-08-27 08:57:01 -06:00
Robby Findler
e44835117b move the baseline comment to image-baseline from the y-place? docs 2012-08-25 19:23:29 -05:00
Robby Findler
38ca627788 attempt to clarify the composition properties of empty-image 2012-08-25 19:13:07 -05:00
Ryan Culpepper
c5472fbf3e db: eliminate some copying from postgresql message reading 2012-08-25 19:04:24 -04:00
Ryan Culpepper
8363db9258 db: use channel instead of semaphore + result variable 2012-08-25 19:02:18 -04:00
Ryan Culpepper
01e19983da db: split example logs into one per scribble file to make drdr happy 2012-08-25 19:02:18 -04:00
Ryan Culpepper
81b022a3b8 db: fixed bug in db docs 2012-08-25 19:02:18 -04:00
Ryan Culpepper
7da5063782 db: added variations of concurrency test 2012-08-25 19:02:18 -04:00
Ryan Culpepper
7c395e9c7c db: updated to new error convention (mostly) 2012-08-25 19:02:18 -04:00
Ryan Culpepper
325293ceea added tests for racket/syntax 2012-08-24 18:14:40 -04:00
Matthew Flatt
876b703353 doc repair
Applied patch from Lee Duhem.

Closes PR 13042
2012-08-24 15:48:58 -06:00
Matthew Flatt
bd8e1e8b1f fix JIT bug related to bad struct-field mutators
We can't disallow the creation of bad mutators without breaking
old code, but we can prevent the JIT from treating them like
good ones.

Closes PR 13062
2012-08-24 15:48:58 -06:00
Matthew Flatt
23722e64c2 change `exn:break:hang-up' handling to skip display
Since SIGHUP normally means that the output has gone away,
don't try to write to it.

Closes PR 13058 (although it doesn't solve the more general
problem that is noted in the PR)
2012-08-24 15:48:58 -06:00
Matthew Flatt
088d1dadb4 add ffi/unsafe/nsalloc' and ffi/unsafe/nsstring' 2012-08-24 15:48:58 -06:00
Robby Findler
c42fbb68cb refinement to recent commit suggested by Ryan 2012-08-24 12:43:04 -05:00
Robby Findler
605e1b8c89 adjust redex so that identifiers preserve their syntax-original ness 2012-08-24 09:47:18 -05:00
Robby Findler
e4450e2705 make record-disappeared-uses call syntax-local-introduce
on the identifiers passed to it
2012-08-24 09:34:41 -05:00
Robby Findler
97f47e4fbb up the timeout for the no-write-and-frame-leak.rkt drracket test 2012-08-24 07:42:51 -05:00
Robby Findler
0fa2e6d7d5 adjust planet tests to use 'raco planet' command-line tool, not 'planet' 2012-08-24 07:41:05 -05:00
Robby Findler
0d92608367 rename contract-gui.rkt to blueboxes-gui.rkt 2012-08-23 21:42:07 -05:00
Robby Findler
d3b4db2ed1 fix the computation of the minimum width for the blue boxes
(you could see it going wrong with 'this' from racket/class)
2012-08-23 21:27:00 -05:00
Robby Findler
4a0506a24f adjust struct/dc so error say "struct/dc" not "-struct/dc" 2012-08-23 18:59:11 -05:00
Robby Findler
66b78bf488 add a check that struct/c can find all of the selectors in the current scope 2012-08-23 18:59:11 -05:00
Robby Findler
1ad2c75531 add the ability to specify #:parent to struct/dc (and fix struct/c to use it)
closes PR 13049
2012-08-23 18:59:11 -05:00
Sam Tobin-Hochstadt
0233c5a14f Move Ephemeronof documentation.
Closes PR 12952.
2012-08-23 14:04:37 -04:00
Matthew Flatt
edd2035f88 racket/draw: fix set-clipping-rect' in record-dc%' 2012-08-23 09:42:34 -06:00
Matthew Flatt
d9784aa7eb win32 racket/gui: fix decoding of system font name
Closes PR 12997
2012-08-23 08:16:23 -06:00
Robby Findler
8ed42e6162 rename function scale-to-fit to avoid conflict
with newly introduced function with that name
2012-08-22 22:47:50 -05:00
Robby Findler
7647e94eee add scale-to-fit to slideshow/pict 2012-08-22 22:06:07 -05:00
Robby Findler
f40277df89 Rackety 2012-08-22 22:06:07 -05:00
Asumu Takikawa
07119c371d Fix stream bug introduced by generics
Stream generic operations stopped working for lists
since the operations used only the generic dispatcher
instead of the real generic functions.

(Moral of this story: write more tests)
2012-08-22 18:15:25 -04:00
Matthew Flatt
7a0281c571 props fixup 2012-08-22 15:58:00 -06:00
Sam Tobin-Hochstadt
b7f9c77069 Remove #:transparent to work around place message limitations. 2012-08-22 16:50:50 -04:00
Sam Tobin-Hochstadt
e207f5c67d Add -v option to TR tests.
Also, print errors from serialization and place message sending.
2012-08-22 16:50:50 -04:00
Eric Dobson
e9f209977b Fix typechecking of polymorphic structs with parent types.
Closes PR12998.
2012-08-22 16:50:49 -04:00
John Clements
a5ddd73000 removed vestigial mz-testing file 2012-08-22 10:14:13 -07:00
John Clements
46899084f1 use for rather than let loop 2012-08-22 10:14:13 -07:00
Matthew Flatt
ef525233a2 references: link "A parameter that..." to the definition of "parameter" 2012-08-22 10:28:56 -06:00
Ryan Culpepper
c4edc684eb db: added notes about custodians and connection-pool, virtual-connection 2012-08-22 11:55:11 -04:00
Ryan Culpepper
c7a6272f4b added unstable/error, raise-misc-error 2012-08-22 11:55:11 -04:00
Ryan Culpepper
9bd5a9189b db: use log-based-eval for most examples 2012-08-22 11:55:05 -04:00
Ryan Culpepper
062a8ef5e7 added make-log-based-eval 2012-08-22 11:54:15 -04:00
Ryan Culpepper
f5b86c1ddd added make-variable-like-transformer 2012-08-22 11:31:22 -04:00
Sam Tobin-Hochstadt
26a57f6420 Use module registry trick to slightly speed up TR tests. 2012-08-22 11:13:07 -04:00
Matthew Flatt
30da0f4bf4 fix internal position adjustment for `pane%'
Closes PR 13038
2012-08-22 09:07:05 -06:00
Robby Findler
f95f2fac54 plug a leak in online compilation that could hold onto
definition text% objects (and thus tabs and frames)
2012-08-21 19:37:27 -05:00
Matthew Flatt
5c7ddb1775 fix doc bug 2012-08-21 18:23:50 -06:00
Sam Tobin-Hochstadt
e705d4d450 Parallelize running Typed Racket optimizer tests.
No speedup yet, though.
2012-08-21 17:47:30 -04:00
Sam Tobin-Hochstadt
b601f52d4f Add open-place. 2012-08-21 17:13:16 -04:00
Asumu Takikawa
46ece20b09 Fix typo introduced by 965a74453f
(Moral of story: be careful with regexps)
2012-08-21 16:35:37 -04:00
Asumu Takikawa
9a65f9aaf0 Delete trailing whitespace 2012-08-21 16:20:26 -04:00
Asumu Takikawa
965a74453f Add #:forall, #:∀ to contract-out 2012-08-21 16:20:26 -04:00
Asumu Takikawa
a5d1007696 racket/generic: allow impersonator contracts
This enables the use of polymorphic contracts with generic
interfaces and their instances.
2012-08-21 12:43:48 -04:00
Sam Tobin-Hochstadt
71e81f9fff Add some examples for cast. 2012-08-21 10:50:34 -04:00
Eric Dobson
1248b32e73 Adding documentation for cast and make-predicate.
Also converted tabs to spaces.
2012-08-21 10:50:34 -04:00
Matthew Flatt
3c744229e8 ffi/unsafe docs: improve `_cprocedure' docs
Among other improvements, add information about reachability of
callout arguments.
2012-08-21 08:42:33 -06:00
Robby Findler
33b89d6cb4 clarify control-based keybindings
closes PR 13043
2012-08-21 08:28:42 -05:00
Robby Findler
f1a4aeedba control-alt for menu selections probably shouldn't be
used under windows, so just give a menu shortcut under
macosx and under windows rely on the underscore thingy
2012-08-21 08:16:39 -05:00
Robby Findler
e14013670a disable standalone submod.rkt test. it is run by run-all.rkt and
running it in parallel with other planet tests is not safe
2012-08-20 20:30:52 -05:00
Robby Findler
e41aa93e6e fix a bug in the event handling that would cause updates
to the blue box to get missed when it was open via the mouse
(as opposed to be tacked open)
2012-08-20 20:30:52 -05:00
Matthew Flatt
5e5e503859 scribble/manual: add #:normalize?' option to deftech' et al. 2012-08-20 17:37:24 -06:00
Matthew Flatt
1ca5767684 fix docs for `deftech': mention case folding 2012-08-20 17:37:19 -06:00
Jon Rafkind
5bf68d32d5 [honu] remove context argument 2012-08-20 16:25:38 -06:00
Sam Tobin-Hochstadt
5fb4819703 Add type for processor-count. 2012-08-20 14:49:11 -04:00
Sam Tobin-Hochstadt
1c275ffcc7 Don't use places for running single tests. 2012-08-20 14:45:50 -04:00
Eric Dobson
6e2e84664d Move list-set and list-update to unstable/list. 2012-08-20 14:45:50 -04:00
Jon Rafkind
dc3d06c7ae [honu] change -> to = 2012-08-20 12:28:15 -06:00
Jon Rafkind
40ead42f0f [honu] add module for debugging honu programs. first feature passes the input through honu-read 2012-08-20 12:28:15 -06:00
Jon Rafkind
e4401fd450 [honu] need at least one iterator in a for loop 2012-08-20 12:28:15 -06:00
Jon Rafkind
62042beb50 [honu] wrap syntax with (semicolon ...) when a ; is present 2012-08-20 12:28:15 -06:00
Jon Rafkind
37dc999951 [honu] add primitive macro form 2012-08-20 12:28:15 -06:00
Jon Rafkind
60f1c85207 [honu] remove context argument from macro transformers 2012-08-20 12:28:14 -06:00
Sam Tobin-Hochstadt
4c0d605c43 Fix typo detected by optimizer. 2012-08-20 13:17:50 -04:00
Eric Dobson
b9408e545e Wrap generated code in #%expression.
This allows tc-toplevel to hand it off to tc-expr, and not reimplement
the details of annotations.
2012-08-20 12:39:41 -04:00
Eric Dobson
8545f421ab Add back ignore-some typechecking 2012-08-20 12:39:41 -04:00
Eric Dobson
533920480e Add tests for make-predicate and cast, also add support for the top-level.
Closes PR 12939.
Closes PR 12201.
2012-08-20 12:39:41 -04:00
Eric Dobson
553c3a4f80 Added cast operator to typed racket 2012-08-20 12:39:40 -04:00
Eric Dobson
cc52e56fe6 Add way for code to attach typechecks to itself, and implemented make-predicate. 2012-08-20 12:39:40 -04:00
Eric Dobson
115345300d Allow contract definitions created from expressions to be fixed up. 2012-08-20 12:39:40 -04:00
Eric Dobson
bb67e37c49 Make TR's ignore-some property work even if there isn't an internal form. 2012-08-20 12:39:40 -04:00
Sam Tobin-Hochstadt
9e5060ef5b Make Typed Racket integration tests run in parallel.
Parallel speedup of approximately 4x when using 8 workers on a 12-core machine.

Closes PR 12911.
2012-08-20 12:25:50 -04:00
Eric Dobson
09d32d35e0 Add promise support to type->contract.
Closes PR13024.
2012-08-20 10:10:17 -04:00
Eric Dobson
a408d6bfbf Cleanup builtin structs types. 2012-08-20 10:10:17 -04:00
Robby Findler
e38e959145 change the new 'find from selection' menu item so that it uses
cmd-alt-f on the mac (and control-alt-f on windows/unix, I believe)
2012-08-19 18:04:14 -05:00
Robby Findler
40121d2531 improve the menu redundancy test so it reports when there are
multiple menu items with the same shortcut
2012-08-19 17:09:16 -05:00
Robby Findler
1f090fa170 improve the distribution building portion of the docs to point
out that a 'raco planet link' helps with the docs building
2012-08-18 20:45:47 -05:00
Robby Findler
258f267508 remove 'planet' from plt/bin (raco planet does the same thing and
planet conflicted with another package in Debian)
2012-08-18 20:26:50 -05:00
Robby Findler
ec34fc6870 add a note about how to build documentation to the planet documentation building step 2012-08-18 09:04:06 -05:00
Asumu Takikawa
47cb06f842 Fix docs for reencode-input-port & reencode-output-port
Closes PR 10545
2012-08-18 00:34:54 -04:00
Asumu Takikawa
7d20e0cbe2 Fix docs for radio-box%
Closes PR 13005
2012-08-18 00:23:16 -04:00
Asumu Takikawa
6665053dad Fix contracts on several I/O functions
Closes PR 12599
2012-08-18 00:22:21 -04:00
Asumu Takikawa
c20f1ec573 Fix guide section 14.6.2
Closes PR 13039
2012-08-17 23:26:59 -04:00
Robby Findler
b128ce4719 fix bug in commit 52f18ee37 2012-08-17 17:54:26 -05:00
Robby Findler
52f18ee370 adjust the expansion of class so that it tracks identifiers
that it drops from the expansion (like define/public) by
adding them to the origin syntax property (and sometimes
to disappeared-use; see the add-decl-props function
for details on those that aren't in the origin property)

this means that check syntax will now pick them up
so they'll show up in the blue boxes in drracket

Thanks Matthew, for some helpful advice and
comments on an initial version of the commit.
2012-08-17 17:24:03 -05:00
Asumu Takikawa
5a2c235739 Forge non-existent generic functions like write-proc
Closes PR 13014
2012-08-17 12:27:01 -04:00
Asumu Takikawa
087a13c712 racket/draw contracts: racket -> racket/base 2012-08-17 12:27:01 -04:00
Asumu Takikawa
798344d2c6 Additional guide fix by Lee Duhem
Relevant to PR 13034
2012-08-17 01:45:07 -04:00
Robby Findler
01e7edeff1 some performance improvements for the new drracket blueboxes
specifically, it doesn't trigger redrawing of the screen
as aggressively, which seems to make a little difference
under mac os x.

I'd have liked to be more sophisticated in the way redraws
are triggered, but I don't see how (see long comment in this
commit for details)
2012-08-16 19:16:57 -05:00
Robby Findler
25e4115f32 give the f2 keybinding a more useful name
(since it shows up in the keybindigns dialog box)
2012-08-16 19:16:57 -05:00
Robby Findler
afc2faf651 redirect compile-time io during online check syntax into the warning log
closes PR 13036
2012-08-16 19:16:57 -05:00
Robby Findler
a8da7e452f increase the font size and increase the sampling
frequency in the profiler that drracket starts up
via the PLDRPROFILE environment variable
2012-08-16 19:16:57 -05:00
Robby Findler
49eb4ab11c adjust the windows menu so that it doesn't rely on
various callbacks to keep its menu items straight, but
instead uses the on-demand callback to just get them
all right.
2012-08-16 19:16:57 -05:00
Matthew Flatt
3150b31eb7 bytecode optimizer improvement
Generalize splitting of `(let-values ([(x ...) (values e ...)]) ....)'
to `(let ([x e] ...) ....)' for any `e', since it's always equivalent.
Right?

(The old requirements on the `e's seem to be needed only for
`letrec-values' splitting and maybe mutable variables.)
2012-08-16 16:39:21 -06:00
Jay McCarthy
a1e855a035 adding an optional argument to get-pure-port/headers 2012-08-16 14:47:09 -06:00
Asumu Takikawa
65611c0ebb Fix guide section 7.8.3
Closes PR 13035
2012-08-16 16:02:44 -04:00
Asumu Takikawa
99d63d1f08 Fix guide section 7.4
Closes PR 13034
2012-08-16 16:02:44 -04:00
Asumu Takikawa
02219bda91 Fix guide section 7.3.8
Closes PR 13033
2012-08-16 16:02:43 -04:00
Asumu Takikawa
b977ae339f racket/snip/private/contract: racket -> racket/base 2012-08-16 16:02:43 -04:00
Matthew Flatt
902016265b docs for `for/vector': warn about intreaction with continuations 2012-08-16 13:11:42 -06:00
Matthew Flatt
0452bd791d bytecode optimizer improvement
Treat unsafe functional operations (which never raise an
exception) as omitable, which means that simple `let-values'
combinations can be split into `let' bindings, etc.
2012-08-16 13:11:41 -06:00
Matthew Flatt
65588b156b fix `sqrt' on numbers with negative real and inexact-zero imag
Closes PR 13028
2012-08-16 04:46:01 -06:00
Robby Findler
5e839664c4 adjust the variables editor so that it does
not do word wrapping.

This avoids the performance problem mentioned
in PR 12633
2012-08-15 13:45:10 -05:00
Matthew Flatt
b95b1b9366 Revert "Fixing Rackunit tests after alignment"
This reverts commit 4497c8ce5e,
because the tests were correctly reporting a bug that I
introduced.
2012-08-15 09:34:17 -06:00
Matthew Flatt
6e2bb58cce add a #:fill' clause to for/vector' et al. 2012-08-15 09:32:55 -06:00
Matthew Flatt
8a26d83651 adjust `for/vector' et al. to avoid intermediate lists
When a length is not specified, build the result by growing
a temporary vector to hold the results, instead of accumulating
them into a list.
2012-08-15 09:32:55 -06:00
Robby Findler
62fecb1b0b fix mistakes in Guide 6.4
closes PR 13031
2012-08-15 09:24:32 -05:00
Robby Findler
85b326d1e7 guard path->relative-string/library call properly 2012-08-15 09:13:44 -05:00
Matthew Flatt
7b811bed1b for/vector' and for*/vector' repairs
Closes PR 13029, 13030
2012-08-15 07:41:50 -06:00
Matthew Flatt
02d2b4dd62 fix rackunit formatting
Repairs mistake in 36f519fe64.
2012-08-15 07:41:49 -06:00
Mike Sperber
ae4613271c Synch German string constants with latest. 2012-08-15 14:15:40 +02:00
Jay McCarthy
4497c8ce5e Fixing Rackunit tests after alignment 2012-08-14 22:21:44 -06:00
Jay McCarthy
3ddaf5e32b Fixing Racklog cut error found by Erik Dominikus
Basically, Racklog (and all versions of schelog) implement ! by
causing the failure continuation of the entire relation being
returned. They did not also cause the unification caused by the
relation to be un-done.

However, it is not easy to separate un-doing the local changes because
the unification just returns a failure continuation too. I had to call
that fail continuation but use state to communicate to its target that
the next clause should not be visited.

I don't know if this is correct. My test suite contains a lot of cut
tests that still pass. Erik's test passes too. But I'm not confident
that this really works.
2012-08-14 21:34:02 -06:00
Jay McCarthy
23226b41da Preserve scheme, user, host, and port if the redirection doesn't have them 2012-08-14 21:34:02 -06:00
Jay McCarthy
2741356913 More flavor text 2012-08-14 21:34:02 -06:00
Jay McCarthy
eb2dc6c979 Clarify green buttons 2012-08-14 21:34:02 -06:00
Jay McCarthy
56b2e0754f servlet errors should be code 500 2012-08-14 21:34:02 -06:00
Jay McCarthy
f2e0e0bfeb get-port-port/headers should not remove status line 2012-08-14 21:34:01 -06:00
Jay McCarthy
7b9da83084 diff link order 2012-08-14 21:34:01 -06:00
Jay McCarthy
27fb60b5a4 Rearranging buttons 2012-08-14 21:34:01 -06:00
Jay McCarthy
cd0e4b8f8a Adding next/prev change buttons 2012-08-14 21:34:01 -06:00
Jay McCarthy
d7fa57b8fb correct email address for irc email 2012-08-14 21:34:01 -06:00
Robby Findler
f03274c8b7 adjust 'authors' from scriblib/autobib so that it
has a contract (which I'm inferring from the way
it is implemented so I might be getting it wrong)

related to PR 12966
2012-08-14 21:34:09 -05:00
Robby Findler
19ff5722d5 improve the error message for cases where there is
a substruct of a struct that got a contract via
provide/contract, and the subconstructor gets a value
that wouldn't have satisfied the original struct's contract

related to PR 12966
2012-08-14 21:14:22 -05:00
Robby Findler
b22f88eee1 pass the currently specified directory to get-directory
in the multi-file search parameters dialog

related to PR 12978
2012-08-14 18:59:22 -05:00
Robby Findler
23aa31fc6f adjut check syntax so that it pays attention only
to syntax-original? identifiers

It used to pay attention to non-original identifiers if they
were in the disappeared-use or disappeared-binding
properties, but now that the 'syntax' macro is fixed
(commit f28e8a0) it can ignore all non-original identifiers
2012-08-14 17:49:52 -05:00
Robby Findler
d34490d990 show docs for syntax-quoted identifiers
(when there are docs to show)
2012-08-14 16:20:48 -05:00
Robby Findler
d96d920cf9 rename contract-blueboxes.rktd to blueboxes.rktd 2012-08-14 16:20:47 -05:00
Eric Dobson
df6562c1de Make promises like every other TR container. 2012-08-14 16:16:07 -04:00
Eric Dobson
ac493a6f44 Replaced infer-dummy with lazy-require. 2012-08-14 16:04:51 -04:00
Eric Dobson
9ef80edfef Fix internal error for untyped kw functions.
Closes PR12932.
Closes PR12922.
2012-08-14 16:04:51 -04:00
Eric Dobson
fdd2966cf4 Removed deprecated printf/log. 2012-08-14 16:04:48 -04:00
Sam Tobin-Hochstadt
ade36c36c6 Don't special-case applications with instantiations.
Closes PR 13006.
2012-08-14 15:45:47 -04:00
Eric Dobson
3b6168de7d Fix substitute and add test case. 2012-08-14 14:44:55 -04:00
Eric Dobson
2e3965e777 Make simple substitution happen all at once.
Closes pr12920.
2012-08-14 14:44:55 -04:00
Vincent St-Amour
f514550300 Fix type of expt.
Closes PR13026.
2012-08-14 14:37:18 -04:00
Vincent St-Amour
af8fc1f26a Fix types of magnitude and angle.
Closes PR13025.
2012-08-14 14:37:18 -04:00
Matthew Flatt
36f519fe64 remove rackunit' dependency on srfi/13'
Cuts the bytecode footprint of `rackunit' in half
(by more than 200 KB).
2012-08-14 09:48:56 -06:00
Matthew Flatt
cbd5fe910d include root "contract-blueboxes.rktd" in distributions 2012-08-14 09:48:56 -06:00
Matthew Flatt
e9f522ba94 add "rackunit" to "mz" distribution
The `rackunit' library can be used for tests in any code.

The GUI portion of `rackunit' remains in the "plt"
distribution, only.
2012-08-14 09:48:56 -06:00
Robby Findler
185de3b6eb remove unnecessary dependency from scribble on slideshow 2012-08-14 10:39:03 -05:00
Sam Tobin-Hochstadt
973da6a50c Move define-struct/printer to new file.
Avoids runtime dependency on `racket/generic`.
2012-08-14 10:31:22 -04:00
Sam Tobin-Hochstadt
fddd5c63ff Minor printer refactoring. 2012-08-14 09:58:01 -04:00
Eric Dobson
cac47c0427 Make TR debug printer work again. 2012-08-14 09:45:01 -04:00
Eric Dobson
5f0717d278 Make disabling the custom printer work. 2012-08-14 09:45:01 -04:00
Eric Dobson
124707921f Remove unused old printer. 2012-08-14 09:45:01 -04:00
Eric Dobson
c9afe15f56 Cleanup TR printer to use lazy-require. 2012-08-14 09:45:01 -04:00
Matthew Flatt
23bca99ba1 adjust `local-expand' to add 'submodule property 2012-08-13 17:11:20 -06:00
Matthew Flatt
b043da6ea6 SIGHUP and SIGTERM -> exn:break:hang-up' and exn:break:terminate'
The default uncaught-exception handler calls `exit' when it receives
one of the new exceptions.
2012-08-13 17:11:20 -06:00
Matthew Flatt
0648556bea racket/gui: internal cleanup
As suggested by Robby.
2012-08-13 17:11:20 -06:00
Ryan Culpepper
32ae484c72 syntax/parse: fix scoping of this-syntax (include formals) 2012-08-13 18:47:02 -04:00
Vincent St-Amour
0fb4ab947a Remove documentation for methods that don't exist. 2012-08-13 17:58:44 -04:00
Sam Tobin-Hochstadt
6ae2a9d884 Fix internal require of typed submodules. 2012-08-13 17:20:20 -04:00
Ray Racine
2ff1927f6c Add flvector-copy to TR base env. 2012-08-13 16:58:29 -04:00
Vincent St-Amour
11006d3b5e Remove OC toolbar when the definitions change. 2012-08-13 16:58:29 -04:00
Vincent St-Amour
958ab7b570 Move definitions copying to its own function. 2012-08-13 16:58:29 -04:00
Robby Findler
a077857474 clarify star-polygon docs
closes PR 13017
2012-08-13 13:01:17 -05:00
Robby Findler
1b18499c69 make the blue box be cleared out less eagerly 2012-08-13 10:31:55 -05:00
Robby Findler
e6fc56a8b8 adjust the leak test so that it first runs with online
compilation disabled and then runs with it enabled
2012-08-13 10:31:54 -05:00
Matthew Flatt
bb3545ddf7 ffi/unsafe/custodian: #:atexit?' -> #:at-exit?' 2012-08-12 20:25:47 -06:00
Matthew Flatt
1800680c6b racket/gui: fix access of scrollbar values for canvas without a scrollbar 2012-08-12 20:17:29 -06:00
Matthew Flatt
4e5b46405d ffi/com: release COM objects at exit
Uses the new `ffi/unsafe/custodian' library.
2012-08-12 20:17:29 -06:00
Matthew Flatt
42ef79c2ad add `ffi/unsafe/custodian' 2012-08-12 20:17:29 -06:00
Matthew Flatt
5116f51503 try to clarify gradient docs 2012-08-12 20:17:29 -06:00
Matthew Flatt
d38fa91792 doc fix
Closes PR 13007
2012-08-12 20:17:29 -06:00
Robby Findler
6588449aed enable online check syntax (change the default for
the preferences and use a new preferences symbol, so
everyone gets the new default)
2012-08-12 16:20:21 -05:00
Robby Findler
89b72f94b9 fix annotations-mixin for new syncheck interface 2012-08-12 15:50:56 -05:00
Robby Findler
9f1b54c6fa remove experimentation code (that I should have removed earlier) 2012-08-12 15:50:55 -05:00
Neil Toronto
ca99eb4a5e Altered a couple of tests to test list-of-lists histogram arguments 2012-08-12 08:58:51 -06:00
Ray Racine
b8c025da61 Histogram plots support lists as well as vectors of data. 2012-08-12 08:51:57 -06:00
Robby Findler
0c6734f782 Add the contents of the "blue boxes" in the docs to the upper-right
corner of the definitions window, based on the information that check
syntax computes

This commit contains two separate changes to make this work:

  - adding a new renderer, based on the text renderer, that
    pulls out the contents of the blue boxes and saves them
    in the doc/ directories (specifically in the files named
    contract-blueboxes.rktd)

  - extend check syntax to use and display the information
    build by the new renderer
2012-08-12 08:41:46 -05:00
Robby Findler
5d81b80736 correct spelling error 2012-08-11 22:50:49 -05:00
Robby Findler
8ee76c9547 Add index entries for @defconstructor (and friends). Also add
code that skips over them when building the search indices.
Overall, this means that the only change most people would see
is that multiple constructors in the same class will get a warning
(and there was one of those, so fixed that too).

Also, Rackety. Specifically, transformed this surprising combination
of constructs (where all caps are placeholders for something specific):

((if PRED
     (λ (c mk) BODY2)
     (λ (c mk) BODY1))
 content
 (lambda (tag) BODY3))

into this one:

(define (mk tag) BODY3)
(if PRED
    BODY1{c:=content}
    BODY2{c:=content})
2012-08-11 21:52:48 -05:00
Robby Findler
94eb2277b7 adjust 'raco planet structure's implementation so it matches
recent changes to the fold-plt-archive function
2012-08-11 09:55:15 -05:00
James Swaine
3cd4efe201 Fix process id sorting in future visualizer 2012-08-11 09:21:29 -05:00
Matthew Flatt
7aec4f6c7e doc corrections
Number-grammar problems reported by Milo Arvidsson.
2012-08-11 06:42:24 -06:00
James Swaine
6271556e1d Add GC display to future visualizer 2012-08-11 01:00:51 -05:00
Matthias Felleisen
0c37d094da added exn handling for inaccessible directories 2012-08-10 19:16:59 -04:00
Vincent St-Amour
7c6cf0fa8b Fix type of division. 2012-08-10 18:07:38 -04:00
Vincent St-Amour
8e7484c44c Add log parsing tests. 2012-08-10 17:09:30 -04:00
Vincent St-Amour
93e2a74f09 Correctly parse Windows paths in Optimization Coach.
Closes PR12966.
2012-08-10 17:09:30 -04:00
Vincent St-Amour
444bd434f9 Turn comments into tests in the profiler. 2012-08-10 17:09:30 -04:00
Matthew Flatt
b5f0c97762 fix arity error message for keyword-accepting methods
Internally, there's a `prop:method-arity-error' property that is
used for keyword-accepting methods. The same thing could be
accomplished with `procedure->method', but the new property avoids
a wrapper. It might be nice to expose the property from `racket/base',
but that creates trouble for generating arity errors for keyword-
requiring procedures (i.e., when such a procedure is wrapped), so
keep it provate for now.

Closes PR 12982
2012-08-10 12:59:36 -06:00
Robby Findler
48bed65e17 pulled rectangle-intersect? out into its
own file so it can be reused (in some code
that I've not yet pushed)
2012-08-10 13:46:53 -05:00
Robby Findler
a799985951 fix the gradient example code in the docs.
Things wrong:

 - indentation
 - the dc callback didn't reset the dc state
   (this is okay if you only use the pict
    in the interactions window in drracket,
    because drracket protects itself, but it
    is not okay if you use them in slideshow
    or something)
 - the dc callback didn't use the 'dx' and 'dy'
   arguments properly
   (you could see this going wrong if you put
    two of the picts together in an hc-append
    and looked at the compound pict in the
    interactions window)
2012-08-10 12:15:37 -05:00
Sam Tobin-Hochstadt
aa6ed4d736 Don't generate rest specification for ->* when not needed. 2012-08-10 11:00:02 -04:00
Sam Tobin-Hochstadt
77d5cacbff Add examples for collapse-module-path. 2012-08-10 10:39:44 -04:00
Eric Dobson
3876dfa841 Make generated flat contracts actually flat. 2012-08-10 10:39:44 -04:00
Matthew Flatt
4345045b52 fix parsing of complex numbers with special single flonums
Closes PR 12839
2012-08-10 07:49:17 -06:00
Matthew Flatt
9d6cb8e50e setup/pack: fix internal and contract errors
Part of the contract-error fix is an implementation change, and part
is a documentation change.

Closes PR 12904
2012-08-10 07:49:17 -06:00
Matthew Flatt
5f120373f1 atan: fix result for two inexact-zero arguments
Closes PR 12936
2012-08-10 07:49:16 -06:00
Robby Findler
40e5b63bbc allow identifiers as names, not just strings 2012-08-09 15:28:42 -05:00
Robby Findler
0bd661d620 fix up the bitmap tests for linux 2012-08-08 22:32:43 -05:00
Robby Findler
97e3f56bf2 adjust bitmap tests to test judgment form labels (and fix expected result under mac os x) 2012-08-08 22:05:43 -05:00
Robby Findler
0369342bfe added names to clauses in define-judgment-form and added
judgment-form-cases to use the names to control typesetting
2012-08-08 21:34:28 -05:00
Vincent St-Amour
a190ecfb7b Fic generics docs.
Closes PR 12988.
2012-08-08 17:26:55 -04:00
Vincent St-Amour
452d83069b Fix typo in the raco make docs.
Closes PR 12986.
2012-08-08 17:26:55 -04:00
Vincent St-Amour
9ea180e98c Profiler doc typo. 2012-08-08 17:26:54 -04:00
James Swaine
a3a55de00a Don't wait for future log messages if futures are disabled (future-visualizer) 2012-08-08 12:01:58 -05:00
Burke Fetscher
29661cc675 add #:lang keyword to term, which checks that underscored symbols agree with patterns in the provided language...changed most internal uses of term to use this form 2012-08-08 11:09:01 -05:00
Matthew Flatt
d5024f0f20 win64 racket/gui: another work around for Cairo clipping issues
Cairo doesn't seem to deal correctly with an HDC produced
by BeginPaint() that has a clipping region. The problem affects
only Win64. Work around the problem by drawing to a separate
HDC and copying to/from the screen. (To see the problem before
this patch, draw the DrRacket window to the edge of the screen
and back, and observe tha the toolbar doesn't update correctly.)

This change could affect performance, but it should mostly
be limited to refresh when a window moves.
2012-08-08 09:56:44 -06:00
Vincent St-Amour
75efede59b Refactoring. 2012-08-07 16:33:31 -04:00
Vincent St-Amour
674c71103b Add :query-type/args.
Shows return type for a given function with given argument types.
2012-08-07 16:33:31 -04:00
Vincent St-Amour
d87339d414 :query-result-type -> :query-type/result
Result type is given, not asked for.
2012-08-07 16:31:52 -04:00
Vincent St-Amour
28c85dfd25 Add a separate "Exploring Types" section to the TR reference. 2012-08-07 16:31:52 -04:00
Vincent St-Amour
e3ffd5f85c Document zsh completion along with bash completion. 2012-08-07 16:31:52 -04:00
Vincent St-Amour
4b30d052b0 Allow multi-line printing of case-> types.
Currently only used in :print-type. Everywhere else, types are pruned.
2012-08-07 16:31:52 -04:00
Vincent St-Amour
34ee1d2603 Use type aliases when printing full types.
Reduces the printout size significantly.
2012-08-07 16:31:51 -04:00
Sam Tobin-Hochstadt
7eaae20f41 Add back some special cases. 2012-08-07 15:51:02 -04:00
Eric Dobson
21598297a7 Removed *Un from abbrev.rkt, replaced it with Un from union.rkt. 2012-08-07 15:50:50 -04:00
Eric Dobson
9ed360bb5e Removed convenience.rkt from typed racket. 2012-08-07 15:50:50 -04:00
Eric Dobson
56fd9e6321 Rearange type code, so that abbrev.rkt can depend on union.rkt.
Split out base-abbrev.rkt so that subtype is not dependent on abbrev.rkt.
Remove unused code in numeric-tower.rkt so that it is now a dependent of
abbrev.rkt, which allows the body of convenience.rkt to be merged back in.
Remove special casing for union.rkt and extraneous subtyping checks.
Remove union-maker.
2012-08-07 15:50:50 -04:00
Eric Dobson
6dbc054e41 Replaced references to abbrev.rkt with convenience.rkt.
Skipped this for subtype.rkt, because of a require loop caused by
lazy-require.
2012-08-07 15:50:50 -04:00
Robby Findler
708228d959 fix double separator problem on windows 2012-08-07 14:20:54 -05:00
Robby Findler
e65cbdecf0 Rackety 2012-08-07 13:03:45 -05:00
Robby Findler
4a19ab40e8 add check for adjacent separators into tests 2012-08-07 12:51:52 -05:00
Robby Findler
2256ca39ea raise minimum memory limit in DrRacket to 8 megabytes 2012-08-07 12:12:56 -05:00
Robby Findler
94a448413e add some highlighting to the line numbers to show where
the insertion point currently is

closes PR 12976
2012-08-07 12:12:45 -05:00
Matthew Flatt
d194fa6245 fix `regexp-match' variants given a long string and an output port 2012-08-07 05:21:33 -06:00
Eli Barzilay
08b271d34c v5.3 stuff 2012-08-07 00:10:01 -04:00
Robby Findler
b5f9751369 add some highlighting to the line numbers to show where
the insertion point currently is

closes PR 12976
2012-08-06 22:24:59 -05:00
Robby Findler
b16843a908 add a find-from-selection menu item that grabs the selection and puts
it directly into the find window

related to PR 12978
2012-08-06 18:00:57 -05:00
Matthew Flatt
0bd53a3549 compiler/zo-marshal: repair mashaling of import info in syntax 2012-08-06 15:32:27 -06:00
Matthew Flatt
02318ebcb3 fix test to work with relative executable path 2012-08-06 14:27:29 -06:00
Matthew Flatt
13d7a37eb6 re-align expt' and flexpt' to match C99 pow() spec
Also, improve precision of some complex results to avoid
excessive `+nan.0's.

Closes PR 12935
2012-08-06 13:00:36 -06:00
Vincent St-Amour
7494fccc4c Control number of attempts for TR random testing from the command line. 2012-08-06 12:48:41 -04:00
Eric Dobson
b95dba9f19 Fix documentation on integer-sqrt/remainder. Closes PR 12971 2012-08-06 12:31:07 -04:00
Eric Dobson
e6d4fb2ee2 Fill hole in recursive type soundness. Fixes PR 11372. 2012-08-06 12:31:07 -04:00
Eric Dobson
9f453676d1 Add support for creating contracts of heterogenous vectors 2012-08-06 12:31:07 -04:00
Eric Dobson
f090698542 Fix type of integer-sqrt and add type for integer-sqrt/remainder. 2012-08-06 12:31:07 -04:00
Robby Findler
8a0b6549a5 adjust the contract error messages to follow the error message
conventions in 9.2.1 of the reference (altho the messages do
not yet do the extra level of indenting when a field is too
long, nor are there any field names ending in ...)

Also, fix the docs for the #:stronger argument to
make-contract, make-chaperone-contract, and make-flat-contract
2012-08-05 20:09:09 -05:00
Robby Findler
34618708a6 give up on a (small) part of the repl test.
Specifically, it seems like about 20% of the time (in drdr),
running the program

  (let l()(l))

in DrRacket and then clicking the break button results in a state
where DrRacket's focus is not in the definitions window. I can't seem
to make this happen on my own machine and I'm not sure if this a
race-condition in the test suite or a real bug in DrRacket but it
seems minor enough (given all of the other focus-based testing that is
happening in this (and related) test suites) that I'm just going to
give up on this particular test.
2012-08-05 08:14:58 -05:00
Neil Toronto
a70aca3176 Fixed off-by-epsilon error; addresses issue with plateaus in contour-intervals and contour-intervals3d reported by Doug Williams
Please merge into release
2012-08-04 11:25:33 -06:00
Matthew Flatt
7c9e6d7193 improve port progress-evt guarantees; fix for `read-bytes-evt' et al.
A progress evt from a close input port must be initially ready,
and the primitive `peek-bytes-avail!' checks a progress evt
before checking whether the port is closed.

These changes resolve a race in `read-bytes-evt' and related evt
constructors.
2012-08-04 10:19:55 -06:00
Matthew Flatt
f28e8a02d0 fix 'disappeared-use prperty added by `syntax'
Effectively preserve `syntax-original?' of added identifiers.
2012-08-04 10:19:55 -06:00
Matthew Flatt
f64408fe60 racket/draw: doc clarifications related to `color%'
Commit 18883681a2 reordered the methods. Although the convention in
the `racket/draw' manual is to order methods alphabetically,
alphabetical does look strange for `color%', and I've refined the
non-alphabetical order to one I like even more.
2012-08-04 10:19:55 -06:00
Vincent St-Amour
aba046a92d Swap unsafe and chaperone-unsafe vector ops in the TR optimizer.
Closes PR12969.
2012-08-04 10:32:21 -04:00
Robby Findler
3573d61636 fix test for when the "hide big labels" popup menu appears 2012-08-04 08:56:25 -05:00
Ryan Culpepper
1a77f4ee0e added recontract-out 2012-08-03 20:52:35 -04:00
Ryan Culpepper
0ea03360c3 template: improve syntax property support 2012-08-03 18:14:16 -04:00
Matthew Flatt
03605b697d adjust timeout for parallel-plot test 2012-08-03 13:57:00 -06:00
Matthew Flatt
f11450d601 scribble/base: generalize `itemlist' to splice/coerce some arguments
Also, add a `spliceof' contract constructor to `scribble/decode'.
2012-08-03 13:43:23 -06:00
Matthew Flatt
1d8791c7c4 ffi/unsafe: show errors from a finalizer
Previously, an error from a finalizer would disappear and kill
of the finalizer thread. Now the error is logged and the thread
continues.
2012-08-03 13:43:23 -06:00
Vincent St-Amour
ebd2e35600 Remove accidentally added file. 2012-08-03 14:41:21 -04:00
Vincent St-Amour
79c265ef89 Fix NaN handling of flexpt to be consistent with expt. 2012-08-03 14:21:44 -04:00
Vincent St-Amour
1215fb6cec Remove invalid singleton return types.
NaN doesn't inhabit these types, but can be produced there.
2012-08-03 14:21:44 -04:00
Vincent St-Amour
a6d5a98b61 Include NaN in all floating-point types.
Makes more closure properties hold, but weakens occurrence typing for
some comparisons involving flonums.
2012-08-03 14:21:44 -04:00
Vincent St-Amour
b1fbbafd91 Fix type of rational?. 2012-08-03 14:21:44 -04:00
Kevin Tew
38e90b52c4 Fixes parallel raco make of relative paths including subdirectories
closes PR 12953
2012-08-03 09:15:22 -06:00
Matthew Flatt
66eaa191e5 ffi/com: fix interaction with `racket/gui'
... and other things that use the Windows message
queue by not providing GCable arguments to
IDispatch::Invoke().

Merge to v5.3
2012-08-02 19:20:36 -06:00
Matthew Flatt
38ce4997a9 ffi/com: fix potential interaction of finalization and custodians
Includes new `#:manage?' optional argument to `make-com-object'
and better management of internally created objects.

Merge to v5.3
2012-08-02 16:29:03 -06:00
Matthew Flatt
572252daec ffi/com: thread safety
Protect internal data structures via atomic mode.

Merge to v5.3
2012-08-02 16:29:02 -06:00
Matthew Flatt
1f3f180805 ffi/unsafe/atomic: doc repair 2012-08-02 16:29:02 -06:00
Matthew Flatt
286efface0 ffi/com: adjust order in object release
Release type descriptors before type infos, and release type
infos before objects. (This reordering shouldn't matter if
referencing counting does its usual job, but maybe it's better
to use the obvious order.)

Merge to v5.3
2012-08-02 08:01:00 -06:00
Robby Findler
9b39fc37f8 adjust the filename filter for the insert-images menu item
closes PR 12963
2012-08-02 07:17:09 -05:00
Robby Findler
44161d73c8 adjust DMdA languages so they do the same error rewriting that the HtDP
languages are doing. This seems to make the error messages in DMdA
behave like they did in 5.2.1 (and so I'm pushing this to see how DrDr
reacts)
2012-08-01 18:20:06 -05:00
Matthew Flatt
dda1ee74de document racket/mpair' and racket/package' 2012-08-01 09:34:12 -06:00
Matthew Flatt
7df91a6148 racket/gui: clarify graphical min size in docs for `text-field%'
Closes PR 12959
2012-08-01 09:34:12 -06:00
Matthew Flatt
38167dd4fa ffi/com: remove stray quote
Merge to v5.3
2012-08-01 09:34:11 -06:00
Burke Fetscher
db437e0ba8 clarify define-extended-language example 2012-08-01 10:09:45 -05:00
Robby Findler
2032aaf341 add a test case for check-expect expressions where the first position has an error
test case for commit 87a8f70148

related to PR 12943
2012-07-31 22:25:34 -05:00
Ryan Culpepper
9e566a90ac find syntax properties to transfer at compile time 2012-07-31 19:15:21 -04:00
Ryan Culpepper
6eb8da1f40 removed (unused) reference to not-break-exn? 2012-07-31 19:15:21 -04:00
Vincent St-Amour
800a328fe6 Fix documentation for packages and mutable lists.
As suggested by Matthew.
2012-07-31 17:12:30 -04:00
Vincent St-Amour
cc8a9b5ed7 Fix type for dynamic-place. 2012-07-31 17:12:30 -04:00
Kevin Tew
04839b39f8 [Distributed Places] fix failing drdr tests 2012-07-31 13:56:38 -06:00
Kevin Tew
6b48d34867 [Distributed Places] added #:thunk and #:named keyword arguments to distributed place creation functions 2012-07-31 11:51:55 -06:00
Matthew Flatt
aa5b1e192c scribble/sigplan: add guidance for `category', etc.
Include the URL to ACM's explanation of how to use categories,
and add some other formatting guidance that is otherwise
difficult to track down.
2012-07-31 07:50:46 -06:00
Matthew Flatt
4a6bfacc27 scriblib/figure: support references to multiple figures at once 2012-07-31 07:50:46 -06:00
Robby Findler
1a619bd047 add tooltips at the start and end of arrows indicating how many references
there are and how many definition sites there are (in check syntax)

also: Rackety
2012-07-30 21:46:22 -05:00
Robby Findler
ec41d86fef clean up the way original objects are being handled in check syntax
Specifically, move the syntax-original? checks to the point
where objects are inserted into the tables (it seemed to mostly
be happening there already, but now remove the checks on the
references)
2012-07-30 21:46:22 -05:00
Robby Findler
b520696d6f typos 2012-07-30 21:46:22 -05:00
Matthew Flatt
b0f81b5365 racket/draw: use Cairo in a single-threaded way
This is a follow-up to commit ec6f3fd610. We're still
seeing crashes while rendering the "plot" documentation, and this
change seems to make things work on my machine.
2012-07-30 08:07:49 -06:00
Robby Findler
87a8f70148 adjust check-expect so it rewrites the error messages
like they are rewritten in the repl

closes PR 12943
2012-07-30 04:19:06 -05:00
Robby Findler
02dd0909cb adjust DrRacket's errortrace stack printer window so that it
removes adjacent entries that have the same stack location
and instead just says "skipped N duplicate frames" in the
window

closes PR 12682
2012-07-30 02:36:17 -05:00
Eli Barzilay
14f25418f3 Fix a retroactive typo. 2012-07-29 18:16:56 -04:00
Matthew Flatt
9b1db14328 ffi/com: fix clean-up of type descriptors
Merge to v5.3
2012-07-29 09:46:30 -06:00
Robby Findler
9815822255 adjust the big definitions / interactions labels so they
are sensitive to the #lang line and then enable them
for the teaching languages
2012-07-29 09:43:38 -05:00
Robby Findler
6e2fb2ac5e make the code that does the mixin checks work with define-local-member-name
closes PR 11279
closes PR 12397
2012-07-29 09:43:37 -05:00
Vincent St-Amour
dd02f5eeda Fix parametric require/typed in typed/racket/base.
Closes PR12951.

Please merge to release.
2012-07-29 09:02:58 -04:00
Eli Barzilay
a0e6892d3e Add "download-libs.rkt" to the core sources. 2012-07-29 08:27:28 -04:00
Ryan Culpepper
e10951024f syntax/parse: fix bug in specialized code for ellipsis patterns
The result of 'stx->list' is not always either a list or #f.

Merge to 5.3.
2012-07-28 17:37:06 -04:00
Ryan Culpepper
d19137c998 fix name of function in docs
Closes PR 12950
2012-07-28 16:41:08 -04:00
Matthew Flatt
d8d043d678 racket/draw: fix potential png bug 2012-07-28 11:23:22 -06:00
Eli Barzilay
1afc26c79b Fix test due to code refactoring, sort export lists in module descriptions. 2012-07-28 12:12:35 -04:00
Eli Barzilay
1eaecb8e39 An a warning newline, minor additional tweaks. 2012-07-28 12:11:43 -04:00
Eli Barzilay
963ecf0d6f Add responsible for "compatibility".
(Separate push to see that drdr barks with the previous prop fix.)
2012-07-28 07:36:22 -04:00
Eli Barzilay
b7c11dfaff Add "compatibility" to dist-specs. 2012-07-28 07:31:11 -04:00
Eli Barzilay
8cdf6be928 Fix how props checks itself. 2012-07-28 07:30:21 -04:00
Mike Sperber
095cf488a3 Synch German string constants with latest. 2012-07-28 11:22:20 +02:00
Eli Barzilay
c2bea19d1b Adjust for new error mesage style.
(This is in part a temporary solution since the ",bt" command is now used
to show a backtrace as well as any "foo...:" hidden fields.)
2012-07-28 05:05:06 -04:00
Eli Barzilay
5b501da131 Minor fix for the installer tests.
The last "xrepl" might be at the BOL, with no preceding space.
2012-07-28 05:05:05 -04:00
Robby Findler
63dc751450 add some simpler exercises to start
and link to existing introductory Racket
tutorials
2012-07-28 00:28:30 -05:00
Vincent St-Amour
140c8c7883 Translate new string constants to french. 2012-07-27 16:59:54 -04:00
Vincent St-Amour
4f06971470 Typo. 2012-07-27 16:55:32 -04:00
Vincent St-Amour
68260a6c86 Add deprecation notice to the scheme language. 2012-07-27 16:49:05 -04:00
Vincent St-Amour
52439d528b Move mutable list functions to the compatibility collect.
Mutable pair functions from racket/base are not moved.
2012-07-27 16:49:05 -04:00
Vincent St-Amour
ab2226a19e Add a `compatibility' collect for compatibility with other languages.
It includes `defmacro' and Chez-style modules (packages).
2012-07-27 16:49:05 -04:00
Eli Barzilay
c408dfb03b Put the main work in a `main' sub-module.
This should avoid re-checking the zo file at the end, leading to an
error when it's not there if it moved.
2012-07-27 10:35:00 -04:00
Eli Barzilay
7e4e373919 Update self-test checksup for revized "racket -h" text. 2012-07-27 10:31:46 -04:00
Eli Barzilay
29d6d377fc Modernize (& racketize) ffi/examples. 2012-07-27 10:31:26 -04:00
Robby Findler
9356e8e949 try out Asumu's suggestion, namely if there is a keyboard event,
then hide the definitions/interactions labels for a while (2
seconds currently). also, when the 2 seconds expires, fade back
in instead of just appearing immediately
2012-07-26 18:58:42 -05:00
Robby Findler
af3d52f9b5 fix bug in the computation to determine if the big interactions/definitions
label and the region to be refreshed have some overlap
2012-07-26 18:40:12 -05:00
Robby Findler
203fbf7950 fix coordinate computation for the new, big definitions/interactions labels
closes PR 12944
2012-07-26 18:37:34 -05:00
Matthew Flatt
9d6f0e96ba fix for bytecode validator
Fix tchecking for a rest argument to a function that
is lifted by closure conversion so that one of its
arguments is a mutable local variable's location.

Also reject bytecode that would pass too many arguments
to a lifted function, since that would trigger an arity
error that might try to use a location as a value.

Merge to v5.3
2012-07-26 16:32:59 -06:00
Matthew Flatt
b208a104ec COM test updates 2012-07-26 16:32:59 -06:00
Asumu Takikawa
2dcf060774 Move engines from mzlib/thread to racket/engine
(they were previously called "coroutines" but
 the term "engine" is less ambiguous)
2012-07-26 14:47:29 -04:00
Matthew Flatt
100212cd53 another repair to `subprocess' test
Merge to v5.3
2012-07-26 10:53:56 -06:00
Matthew Flatt
87d24ece78 more on `port-commit-peeked' and EOFs
Continues/fixes commit 4c3dd00d49.
2012-07-26 10:39:24 -06:00
Matthew Flatt
1efc894ada toward fixed interaction between positions and peek-commits
When a `port-commit-peeked' succeeds, position information should
(appear to) be updated. This patch synchronizes commits and
position information for primitive ports, but synchronizing
them for user ports remains a problem.
2012-07-26 10:39:17 -06:00
Matthew Flatt
8c10dc1579 fix a `subprocess' test
Merge to v5.3
2012-07-26 08:47:06 -06:00
Matthew Flatt
70ef4e6e57 racket/port: possible repair for `read-bytes-evt'
Also restore and add some tests.

Merge to v5.3
2012-07-26 08:39:58 -06:00
Matthew Flatt
4c3dd00d49 fix `port-commit-peeked' and mid-stream EOFs 2012-07-26 06:14:35 -06:00
Matthew Flatt
11be722a0f typo 2012-07-25 21:58:18 -06:00
Matthew Flatt
ca3272bd45 racket/port: fix `make-limited-input-port' handling of progress evts
Merge to v5.3
2012-07-25 21:37:58 -06:00
Matthew Flatt
d1048406b5 typo 2012-07-25 21:32:33 -06:00
Matthew Flatt
df4fed7011 windows: fix `subprocess' for an empty argument
An empty argument must be quoted at the CreateProcess() level.

Merge to v5.3
2012-07-25 20:37:20 -06:00
Matthew Flatt
71045e255c fix `for/vector' to really stop at size
Avoids an infinite loop for an infinite sequence, for example.
Also, expand via `for/fold/derived' to improve error reporting.
2012-07-25 20:07:23 -06:00
Matthew Flatt
7d894bfb63 Note require' of a main' submodule for -t', -l', and `-p'
In the output of `racket -h' and in the command-line docs.

Merge to v5.3
2012-07-25 20:07:23 -06:00
Vincent St-Amour
8bceeadaab Refactoring. 2012-07-25 16:32:52 -04:00
Vincent St-Amour
f50d64b3b2 Fix tab leak. 2012-07-25 16:32:52 -04:00
Vincent St-Amour
144fd5bf05 Refactoring. 2012-07-25 16:32:52 -04:00
Vincent St-Amour
406529c391 Close OC properly from the menu. 2012-07-25 16:32:52 -04:00
Vincent St-Amour
dc6a81ad02 Refactoring. 2012-07-25 16:32:52 -04:00
Vincent St-Amour
57568ae44c Cleanup. 2012-07-25 16:32:51 -04:00
Vincent St-Amour
0bb133ea51 Move panel to the frame mixin instead of the tab mixin. 2012-07-25 16:32:51 -04:00
Vincent St-Amour
b2ce93ca94 Fix Optimization Coach menu entry point. 2012-07-25 16:32:51 -04:00
Vincent St-Amour
d9f97d079f Refactoring. 2012-07-25 16:32:51 -04:00
Robby Findler
7b72ddb7bf add big "definitions" and "interactions" labels to the drracket
definitions and interactions windows
2012-07-25 08:58:43 -05:00
Robby Findler
cdee10e2c0 fix error message wording 2012-07-25 03:02:30 -05:00
Robby Findler
4e6b38b956 adjust bitmap test 2012-07-24 23:27:07 -05:00
Vincent St-Amour
4933913cd6 Remove documentation for non-existent methods. 2012-07-24 17:22:43 -04:00
Vincent St-Amour
74a6518920 Refactoring. 2012-07-24 17:02:46 -04:00
Vincent St-Amour
b3e619e5ee Have OC work on a copy of the definitions window. 2012-07-24 16:56:23 -04:00
Vincent St-Amour
b1577bd307 Fix type for add-between. 2012-07-24 16:41:52 -04:00
Vincent St-Amour
7ba7be1873 Show running man animation when OC is working. 2012-07-24 16:05:59 -04:00
Vincent St-Amour
f2ff88be4a Add Optimization Coach right-click menu entry to existing menu. 2012-07-24 13:48:05 -04:00
Vincent St-Amour
73942fcfa8 Wrap highlighting in an edit sequence.
Speeds up display.
2012-07-24 13:48:05 -04:00
Vincent St-Amour
70f8f4d743 Avoid recreating panel and check-boxes when optimization coach is shown. 2012-07-24 13:48:05 -04:00
Vincent St-Amour
cfc8fe5766 Fix spacing issue. 2012-07-24 13:48:05 -04:00
Matthew Flatt
289ae98c8e add missing `super-new' from class100 conversion
Also, move relevant tests to a better place.

Merge to v5.3
2012-07-24 11:16:43 -05:00
Eli Barzilay
d7f0314c74 tex2page is gone, update installer tests. 2012-07-24 11:47:47 -04:00
Eli Barzilay
bc0e46227f Update with new "scribble" flag. 2012-07-24 11:47:47 -04:00
Robby Findler
be2c7d7ada finish removing the check-expect dock/undock menu items 2012-07-24 10:18:28 -05:00
Matthew Flatt
5a1bc5ad40 normalize module rename info to vector in ".zo" format
This is related to the receent repairs for submodules and
`variable-reference->namespace'.

Merge to v5.3
2012-07-24 07:22:57 -05:00
John Clements
4e47c669ca repair hack for beginner-proc names 2012-07-24 06:42:19 -04:00
Robby Findler
fadd1d9714 fix debugger for the case when it decides not to annotate a file
related to PR 12937

This doesn't seem to fix the PR since the debugger is currently ignoring
the TR programs (not annotating them) but at least it does not crash now

Please merge to 5.3
2012-07-24 04:13:10 -05:00
Robby Findler
6e2fc2c138 remove a bunch of unnecessary fields (define => define/private
and lift out some pens and brushes to the module top-level)
2012-07-24 04:13:10 -05:00
Matthew Flatt
da66d4d559 adjust `case' expansion to work with Typed Racket
Relies on the new ad hoc optimization of `hash-ref' to preserve
performance.
2012-07-23 21:41:49 -05:00
Matthew Flatt
f7382b17c7 ad hoc optimization of `hash-ref'
Convert
 (hash-ref <hash> <key-expr> (lambda () <literal>))
to
 (hash-ref <hash> <key-expr> <literal>)
which is useful for making the `case' expansion fit
Typed Racket.
2012-07-23 21:41:49 -05:00
Matthew Flatt
22960b9c75 fix `subprocess' test
Merge to v5.3
2012-07-23 21:41:49 -05:00
Eli Barzilay
8e889cfdb1 Make some web server example code use a valid URL. 2012-07-23 20:54:41 -04:00
Matthew Flatt
5b6c65b6c9 tweaks to `case' implementation
Leave `eqv?' specialization to the compiler, generate
constants instead of vector and hash-table allocations,
and use a hash table for many values other than symbols,
keywords, and fixnums.
2012-07-23 18:56:33 -05:00
Matthew Flatt
eb6a6e7136 new test cases for `case'
Trigger binary-search and hash-table modes.
2012-07-23 18:56:33 -05:00
Jon Zeppieri
7ccf0efce9 new 'case' implementation
Based on Clinger's "Rapid Case Dispatch in Scheme"
2012-07-23 18:56:33 -05:00
Matthias Felleisen
f9724f389d addex index entry for add/plus, multiply, and friends
Closes PR12895 -- well, except that index points to htdp-langs for all five occurrences of each (to be fixed)

merge to v5.3
2012-07-23 16:57:38 -04:00
Asumu Takikawa
2b173612e6 Fix guide description of when
Closes PR 12445

Merge to v5.3
2012-07-23 16:00:29 -04:00
Matthew Flatt
cd90510f07 ffi/com: AddRef on IUnknown arguments to COM methods
Merge to v5.3
2012-07-23 14:35:27 -05:00
Asumu Takikawa
ea1636d4f1 Doc fixes reported by Gary Baumgartner
The typo on 'redex.racket-lang.org' still remains.

Relevant to PR 12680

Merge to v5.3
2012-07-23 13:10:05 -04:00
Asumu Takikawa
e0e5f7dd28 Fix GUI doc typo reported by Kieron Hardy
Closes PR 12830

Merge to v5.3
2012-07-23 12:53:33 -04:00
Matthias Felleisen
94d472340d add redundancy for scene? to universe docs; Closes PR12924
merge into v5.3
2012-07-23 11:36:00 -04:00
Matthias Felleisen
bf8c30727d fixed small mistake in defform/none from conversion to syntax/parse
merge into v5.3 but ask Matthew for second opinion
2012-07-23 11:35:59 -04:00
Matthew Flatt
05495764ea errortrace: fix profiling for phase >= 2 code
Closes PR 25050

Merge to v5.3
2012-07-23 07:05:40 -05:00
Matthew Flatt
a0ba30d8e7 fix `syntax-local-get-shadower' for submodules
Closes PR 12926, 12928

Merge to v5.3
2012-07-22 21:43:20 -05:00
James Swaine
ca360cdaed Add test to track performance of code inside a future over time 2012-07-22 20:08:51 -05:00
James Swaine
087ec3890c Fix block/sync counts in future visualizer and per-future block counts in creation graph mouseover 2012-07-22 20:04:34 -05:00
James Swaine
1355c711a8 Future visualizer - more performance improvement 2012-07-22 20:04:24 -05:00
James Swaine
0b5d574aae Future visualizer performance improvements 2012-07-22 20:04:04 -05:00
James Swaine
5042b73fc8 Fix future visualizer drawing outside visible area (in y dimension) 2012-07-22 20:03:54 -05:00
James Swaine
0b8bccc8d4 Future visualizer - only redraw overlay when moused-over event changes 2012-07-22 20:03:42 -05:00
James Swaine
ee426f7ecb Fix minor display issue in event details panel (future visualizer) 2012-07-22 20:03:41 -05:00
James Swaine
b6c4bece11 Improvements to mouseover performance in future visualizer 2012-07-22 20:03:41 -05:00
James Swaine
6eed135d02 Fix "dancing flags" issue with timeline ticks in future visualizer 2012-07-22 20:03:36 -05:00
James Swaine
06358fa19d Performance improvements in future visualizer GUI (dragging, scrolling, sizing) 2012-07-22 20:03:35 -05:00
James Swaine
f0aaca0dde Change future visualizer trace collection slightly to be more composable 2012-07-22 20:03:22 -05:00
James Swaine
e4f50997ad Minor changes to future-visualizer/trace tests 2012-07-22 20:03:22 -05:00
James Swaine
5214995967 Add unit tests for future-visualizer/trace 2012-07-22 20:03:22 -05:00
James Swaine
df54f8460b Fix future visualizer trace collection when running inside DrRacket 2012-07-22 20:03:21 -05:00
Robby Findler
d282843116 increase timeout for the sharing modules drracket test case 2012-07-22 19:51:19 -05:00
Robby Findler
519b69362f fix bug in inline code
merge to the release branch, please
2012-07-22 19:51:19 -05:00
Eli Barzilay
476c270a66 Use a new evaluaor in "for.scrbl", have it require `racket/base' for syntax.
Also explicitly close the evaluator used in "block.scrbl".

Closes PR 12931.
2012-07-22 13:38:38 -04:00
Eli Barzilay
18883681a2 Convert all uses of (integer-in 0 255) to `byte?'. 2012-07-22 13:00:05 -04:00
Eli Barzilay
a6b20f01da Use string-no-nuls?' and bytes-no-nuls?' in more docs & error messages.
Also use `byte?' instead of (integer-in 0 255).

(This commit will most likely require some proof-reading.)
2012-07-22 13:00:05 -04:00
Matthew Flatt
d95ec4d454 fixes for submodules and `variable-reference->namespace'
Closes PR 12925

Merge to 5.3
2012-07-22 11:54:46 -05:00
Mike Sperber
0dd571ef53 Synch German string constants with latest. 2012-07-22 16:37:44 +02:00
Eli Barzilay
c2fe7c4e35 Quick typo fix. 2012-07-22 10:11:37 -04:00
Asumu Takikawa
40ea2befce Missed one Rackety in commit 3582b57 2012-07-21 13:38:18 -04:00
Robby Findler
c4a768af00 add a Copy menu to the error message from the online expansion stuff
closes PR 12923
2012-07-21 12:23:08 -05:00
Robby Findler
df4508573a adjust the interface reference in drracket for the new view menu 2012-07-21 11:34:13 -05:00
Matthias Felleisen
30cb1ce4f3 fixed minor typo 2012-07-21 11:07:32 -04:00
Robby Findler
5b96803273 fix a bug introduced by commit 05b88930c0
the symptom of the bug is that the red
error highlighting never worked

Please merge to the release branch
2012-07-21 07:23:47 -05:00
Vincent St-Amour
848a28266c Replace fields with local-member-name accessors. 2012-07-20 18:05:34 -04:00
Vincent St-Amour
95e117b7f5 Typo. 2012-07-20 18:05:34 -04:00
Vincent St-Amour
c237cee025 Rename undo-thunks to clear-thunks.
They don't have anything to do with editors' undo.
2012-07-20 18:05:34 -04:00
Vincent St-Amour
eda3e70670 Use local member names for Optimization Coach public methods. 2012-07-20 18:05:34 -04:00
Vincent St-Amour
fceb3db69c Refactoring. 2012-07-20 18:05:33 -04:00
Vincent St-Amour
6af2e49db3 Delete trailing whitespace. 2012-07-20 18:05:33 -04:00
Vincent St-Amour
f6feff3c51 Optimization Coach should not catch break exceptions. 2012-07-20 18:05:33 -04:00
Vincent St-Amour
ea6ba36ccb Update Optimization Coach documentation.
Please merge to release.
2012-07-20 18:05:33 -04:00
Vincent St-Amour
031a2862d2 Typo. 2012-07-20 18:05:33 -04:00
Vincent St-Amour
def9649688 Rename Optimization Coach menu item. 2012-07-20 18:05:33 -04:00
Vincent St-Amour
7c0ef33bb7 Consistent capitalization with other menu items. 2012-07-20 18:05:33 -04:00
Vincent St-Amour
24b314a40a Only enable Optimization Coach button in Typed Racket.
Other languages can access it through the View menu.

Please merge to release.
2012-07-20 18:05:32 -04:00
Vincent St-Amour
d396b34b2d Disable loop detection heuristic with too many false positives. 2012-07-20 18:05:32 -04:00
Vincent St-Amour
2e594d3606 Change Optimization Coach message. 2012-07-20 18:05:32 -04:00
Asumu Takikawa
2f891c5d39 Missing file for commit 3582b57
(my apologies to any future git bisect-ers)
2012-07-20 17:58:31 -04:00
Asumu Takikawa
66e0564e25 Move mzlib/integet-set => data/integer-set 2012-07-20 16:00:47 -04:00
Asumu Takikawa
3582b57bcc Move mzlib/defmacro => racket/defmacro
With both @bold and @italics warning against its use.
No @blink though.
2012-07-20 16:00:47 -04:00
Sam Tobin-Hochstadt
4a90c6c1fe Ensure that structs don't overlap with simple values.
Reported by Ray Racine.

Please merge to release.
2012-07-20 13:01:32 -04:00
Eli Barzilay
4bd42606bc Some simplification of process error message contracts. 2012-07-20 12:57:28 -04:00
Eli Barzilay
2a075654d0 More ignore patterns for props verification. 2012-07-20 12:35:05 -04:00
Matthias Felleisen
6768136144 docs for revised system error message completed 2012-07-20 12:30:30 -04:00
Ryan Culpepper
510d3937a7 change id-tables so iterators not invalidated by mutation of existing keys
id-table fixes

test for id-table
2012-07-20 10:59:50 -04:00
Ryan Culpepper
abb616e6d6 don't run db web-test 2012-07-20 10:46:13 -04:00
Eli Barzilay
a2f94b49d3 Drop attempt to verify when running plainly.
Instead, require a "verify" verb, and adjust the props so drdr will use
it.

Also add some OS X & Windows patterns to be ignored.
2012-07-20 10:44:33 -04:00
Matthias Felleisen
f2b9cdaadd fixed a somewhat awkward error message that made 'system' look awkward 2012-07-20 10:38:05 -04:00
Robby Findler
8ca24e9206 give more time to some timing out tests 2012-07-20 07:46:49 -05:00
Asumu Takikawa
f4300df8eb Restore prop:force guard.
(this is desirable if this property is exposed, which
 could happen if/when we define gen:force)
2012-07-19 22:46:14 -04:00
Asumu Takikawa
e14c5d61e9 Allow guards for impersonatable struct type properties 2012-07-19 22:46:14 -04:00
Matthew Flatt
d3677524b8 macro expander fix
Relevant to PR 12863

Merge to v5.3
2012-07-19 20:42:36 -05:00
Matthew Flatt
94498465e6 ffi/com: fix another instance of the `cast' bug
Overlooked it during the previous repair; this repair merges
the two formerly broken sites.
2012-07-19 20:20:33 -05:00
Matthew Flatt
c86ee5b6e2 ffi/com: fix an internal cast
Merge to v5.3
2012-07-19 19:02:54 -06:00
Robby Findler
774e254f3c fixes the "not used in definition context" error in define/contract
related to PR 12863, but doesn't solve the infinite loop problem
2012-07-19 19:54:58 -05:00
Matthew Flatt
a45d13b52a another `namespace-attach-module' repair for submodules
Merge to v5.3
2012-07-19 16:50:25 -05:00
Matthew Flatt
99dbc321f5 fix *SL errortrace to support higher phases
The new *SL implementations that refer to Scribble
can lead to phase-2 code when running without ".zo"s.
2012-07-19 16:50:25 -05:00
Sam Tobin-Hochstadt
df8e109c6a Update to modern contract combinators. 2012-07-19 10:55:32 -04:00
Sam Tobin-Hochstadt
857a312e61 mzscheme -> racket/base in syntax/struct 2012-07-19 10:55:31 -04:00
Sam Tobin-Hochstadt
16923f4ad9 scheme/base -> racket/base 2012-07-19 10:55:31 -04:00
Sam Tobin-Hochstadt
a589d02751 Document Struct.
Merge to release.
2012-07-19 10:55:31 -04:00
Matthew Flatt
d44aa13c15 test case to finish repair for `racket/gui/init' load handler
Test case for b111241afe.
2012-07-19 07:46:50 -05:00
Robby Findler
b342009e71 bring back drscheme/private/number-snip.ss since it may
appear in saved wxme format files

also, improve the testing support for testing snip loading
(before this, the testing infrastructure could let one test
"leak" into another one in a way that could mask failures)

please include in release branch
2012-07-19 07:29:42 -05:00
Robby Findler
ef5c2b825f fixed repl-test-misc.rkt for the error message changes
please include on the release branch
2012-07-19 06:26:43 -05:00
Eli Barzilay
6565538b09 Disable the #:before-first' and #:after-last' functionality in `add-between'.
Leave it working in splicing mode.  I prefer doing that over always
splicing them, since that would make a less uniform interface, so I
rather keep all options open.  There is no longer a `#:nothing' keyword,
which is the main point of this downgrade.

(See mailing list discussion on "no-argument" for the reason.)
2012-07-18 22:28:41 -04:00
Eli Barzilay
0814fd5fb5 Make it possible to use "~" or "~user" in the installer.
I've looked for a while, and it seems that there is no easy way to do
this, not even in bash, and worse with /bin/sh.  So this is kind of
resorting to a simple parsing of the input, and using `eval' if it
starts with a tilde.  Note the hack of not doing that when there is a
space, otherwise the `eval' thing will silently ignore it.

This hack means that it's easy to get into a mess if quotes are used
after a tilde, but that was already the case with the use of `eval' to
handle environment variables.  It's not a real security issue, however,
since we're talking about a user who can just run any command anyway.

Also including a test file for the expansion functionality.  If anyone
wants to improve this code, making the tests pass would reveal the
tricky issues.

[FWIW, I've asked on the #bash channel, and the only serious suggestion
was getting the paths as command-line arguments.  This will, however,
defeat the point of being newbie friendly...]

Closes PR 12893.
2012-07-18 22:25:41 -04:00
Eli Barzilay
1635ac1bc5 Add missing meta information for the new "future-visualizer" collection. 2012-07-18 22:15:40 -04:00
Matthew Flatt
b111241afe racket/gui/init: fix load handler 2012-07-18 03:52:20 -06:00
Matthew Flatt
a3b316c02f typo 2012-07-18 03:52:20 -06:00
Robby Findler
17594ec804 module lang test now up to date with error message changes
please include in release branch
2012-07-17 22:33:56 -05:00
Robby Findler
d8204b1624 adjusted the repl test suite for the new error messages
and the change to the racket/gui load-handler

(unfortunately, there is still another problem that keeps
the test suite from passing)

please merge to the release branch
2012-07-17 21:59:05 -05:00
Robby Findler
8744cd7811 bring the language test up to date with the latest error messages
include in the release branch, please
2012-07-17 21:58:56 -05:00
Matthew Flatt
6b3e207ecd fix related to recent module-resolver change 2012-07-17 15:32:42 -06:00
Matthew Flatt
949d12e2c6 revert use of lazy-require' in racket/match' implementation
Using `lazy-require' under `begin-for-syntax' expands to a use of
`define-runtime-path' under `begin'for-syntax'. Unfortunately,
`define-runtime-path' doesn't yet work with `raco exe' when it
appears under `begin-for-syntax'. Although `define-runtime-path'
should be fixed, it may take a while. Meanwhile, reverting the
change allows programs that require `racket/gui/base' to work
with `raco exe'.

There's another `lazy-require' under `begin-for-syntax' that
doesn't seem to cause the same trouble, though.
2012-07-17 15:32:42 -06:00
Robby Findler
3b5eb1da41 add a View menu item for the optimization coach 2012-07-17 13:45:33 -05:00
Robby Findler
a66c735b82 removed the check syntax mode support 2012-07-17 13:07:41 -05:00
Robby Findler
3463f4233e adjust the contract obligation aspect of check syntax
so that it uses tooltips instead of the modes

(so hopefully now people will actually see it ...)
2012-07-17 13:07:41 -05:00
Robby Findler
160eef8366 added a tooltip for set!'d variables 2012-07-17 13:07:41 -05:00
Robby Findler
36aeda60a4 fix sizing bug in tooltip windows 2012-07-17 13:07:41 -05:00
Robby Findler
70fac182c6 Add support to the show menu item to make ordering the items
simpler.

Use that support to adjust the Show menu to have a better
ordering for the built-in DrRacket items.
2012-07-17 13:07:41 -05:00
Robby Findler
83bae29b21 remove the "dock/undock test report" menu items from the show menu
(there are buttons in the window and this isn't really a show menu
type of thing)
2012-07-17 13:07:41 -05:00
Robby Findler
488cfed53a typo 2012-07-17 13:07:40 -05:00
Matthew Flatt
3ded3934ee doc fixups for struct' variants in scheme/unit', etc. 2012-07-17 11:00:46 -06:00
Matthew Flatt
67936fcc52 fix prop 2012-07-17 10:20:07 -06:00
Matthew Flatt
5e4866e54c fill in one more corner of submodules and `namespace-attach-module'
When submodules are not independently loaded, then pull submodule
declarations along when attaching a module to a namespace.
2012-07-17 10:16:32 -06: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
Matthew Flatt
cc2c701a7d racket/gui/init: make load handler chain to original
For a non-WXME file, fall back to the original load handler,
instead of re-implementing it. This makes module caching work
the right way. Falling back to the original means closing
the port and then re-opening the file to load, but that seems
ok.
2012-07-17 06:19:15 -06:00
Matthew Flatt
5f1c8d3ec9 Revert "racket/gui/init: module caching in the load handler"
This reverts commit 5c02b1c95a.

The caching table doesn't hold entries weakly, which means that
it can be a space leak.
2012-07-17 06:11:35 -06:00
Sam Tobin-Hochstadt
22904ef43e Use lazy instead of delay, as recommended by Eli. 2012-07-17 07:11:23 -04:00
Matthew Flatt
8718a5dd62 doc and error-message fixes for module name resolver 2012-07-16 19:22:30 -06:00
Matthew Flatt
5c02b1c95a racket/gui/init: module caching in the load handler 2012-07-16 19:22:30 -06:00
Sam Tobin-Hochstadt
8358420fcc Use unstable/lazy-require to dynamically-load the compile-time of match. 2012-07-16 16:39:26 -04:00
James Swaine
b987be068e Move racket/future/visualizer, racket/future/trace --> future-visualizer, future-visualizer/trace 2012-07-16 12:23:46 -05:00
Matthew Flatt
a605183a0a more submodule repairs for `raco exe' 2012-07-16 10:02:13 -06: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
Matthew Flatt
55a8445b0b allow test to run if GL is unavailable 2012-07-15 10:36:36 -06:00
Matthew Flatt
73e901a262 fix optimizer bug
The lambda-lifting transformation needs to iterate to a fixpoint
where each lambda's added arguments and order are known. The
check for whether something changed was formerly just the number
of added arguments, but that's not good enough, because a binding
might get lifted away while another one acquires an extra argument.
The right test is to check the count and original bindings for the
added arguments.

Closes PR 12910
2012-07-15 10:32:45 -06:00
Matthew Flatt
c747af21e3 move commented-out tests to `test' submodule 2012-07-15 10:32:33 -06:00
Robby Findler
0ee8155527 use a more descriptive name in the identifier generated by define-on-demand
so when it shows up in an error message it doesn't take forever to figure
out which 'val' that is
2012-07-15 08:07:11 -05: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
Asumu Takikawa
b33509bc0d Remove old packages
The following packages were removed:
  - combinator-parser
    (see `asumu/combinator-parser` on PLaneT)
  - tex2page
    (see `asumu/tex2page` on PLaneT)
  - test-box-recovery
2012-07-13 15:43:59 -04:00
Robby Findler
05b88930c0 improve how an after-insert callback behaves (specifically,
avoid redundant work when there are multiple inserts during
an edit sequence)

closes PR 12897
2012-07-13 10:50:13 -05:00
Robby Findler
0ca54bfe56 fix queue/stack confusion in the Guide
closes PR 12896
2012-07-13 10:50:13 -05:00
Matthew Flatt
e430463ea4 another submodule expansion repair
Relevant to PR 12902
2012-07-13 09:38:44 -06:00
Matthew Flatt
f729c6441c racket/draw: fix gl-context<%> locking
The optional arguments for `call-as-current' for `gl-context<%>'
were not implemented, and the locking implementation didn't match
the documentation in other ways.
2012-07-13 07:45:21 -06:00
Jay McCarthy
e71cbbe7a9 new email setup 2012-07-12 19:32:17 -04:00
Jay McCarthy
0da1c82584 Changing contracts on gl-context<%> and applying it to the gl-context% object.
I updated and noticed that this was now failing because interface
contracts are not check structurally (any more?). Once I applied the
interface, the contract application failed because the documented two
additional arguments (alternative and enable-breaks?) are not actually
accepted. I look through all the implementations of gl-context% and
none of them accept these. Should I change the documentation or is
this a bad backwards incompatibility with the older versions?
2012-07-12 19:32:17 -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
f036b0bd12 Add scribble support for additional letters from the Czech alphabet. 2012-07-12 17:40:01 -04:00
Kevin Tew
d8861a6947 [Distributed Places] place functions now work with distributed places 2012-07-12 11:41:47 -06: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
James Swaine
fe26c07637 Fix future visualizer not showing requested size for allocation events 2012-07-12 10:05:22 -05:00
Eli Barzilay
5cbdf4dc76 Provide `main' too, since it's used by redex/tests/run-tests.
(Broken in 4c2940a6.)
2012-07-12 00:12:44 -04:00
Asumu Takikawa
68d550e2c3 Update props file for racket/private/shared-body.rkt 2012-07-11 21:46:30 -04:00
Asumu Takikawa
3158acd61d Fix unit test broken by mzlib movement 2012-07-11 21:38:42 -04:00
Asumu Takikawa
403aaac7d4 Moved some mzlib library implementations to racket
The libraries moved were:
  - mzlib/control      => racket/control
  - mzlib/date         => racket/date
  - mzlib/deflate      => file/gzip
  - mzlib/inflate      => file/gunzip
  - mzlib/port         => racket/port
  - mzlib/process      => racket/system
  - mzlib/runtime-path => racket/runtime-path
  - mzlib/shared       => racket/shared
  - mzlib/unit         => racket/unit
  - mzlib/unit-exptime => racket/unit-exptime
  - mzlib/zip          => file/zip

The old modules in mzlib are now pointers to the
new modules. These are all modules that were already
redirected in the documentation.
2012-07-11 18:26:10 -04:00
Asumu Takikawa
e414107748 Add deprecation notices to most mzlib libraries 2012-07-11 18:01:05 -04:00
Matthew Flatt
f747c086d8 fix checking for `syntax-local-lift-require'
Closes PR 12894
2012-07-11 14:03:31 -06: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
Vincent St-Amour
8eee1265b5 Refactoring / cleanup. 2012-07-11 10:59:35 -04:00
Vincent St-Amour
fb67e5dc4c Allow multiple PR instances for multiple tabs. 2012-07-11 10:59:35 -04:00
Vincent St-Amour
ec90ca5146 Fix comment. 2012-07-11 10:59:35 -04:00
Vincent St-Amour
1d084888fd Filter reports by provenance (TR / mzc).
Can't easily combine with filtering by opt / missed opt, so I dropped it.
2012-07-11 10:59:35 -04:00
Vincent St-Amour
590a93725f Refactoring. 2012-07-11 10:59:34 -04:00
Vincent St-Amour
d350c70c98 Add button to dismiss PR. 2012-07-11 10:59:34 -04:00
Vincent St-Amour
b4fb55dd2e Have PR display options on a separate toolbar. 2012-07-11 10:59:34 -04:00
Vincent St-Amour
e659e188ea Typo. 2012-07-11 10:59:34 -04:00
Vincent St-Amour
fe67b0f31d Count functions with self out-of-fuel, but no unrollings, as loops. 2012-07-11 10:59:34 -04:00
Vincent St-Amour
aaf7acb034 Performance Report is enabled for all languages, so don't enable it for TR.
Avoids duplicate buttons.
2012-07-11 10:59:34 -04:00
Vincent St-Amour
284d772a95 Don't assume self-inline when in doubt.
This avoids cases where a non-recursive function would be considered
to be unrolled, which makes no sense.
2012-07-11 10:59:34 -04:00
Vincent St-Amour
deaa8f61be Have recommendations for inlining. 2012-07-11 10:59:34 -04:00
Vincent St-Amour
69df0c4969 Display inlining analysis in a more user-friendly fashion. 2012-07-11 10:59:34 -04:00
Vincent St-Amour
3ce4e0d0e7 Fix plural in inliner message. 2012-07-11 10:59:34 -04:00
Vincent St-Amour
d3bad26766 Be more permissive wrt inliner output. 2012-07-11 10:59:34 -04:00
Vincent St-Amour
e87272adb9 Add check-boxes to toggle the filtering. 2012-07-11 10:59:34 -04:00
Vincent St-Amour
31e36f4c6e Allow filtering of reports. 2012-07-11 10:59:33 -04:00
Vincent St-Amour
286cb96569 Separate log generation from log collapsing, to allow filtering in between. 2012-07-11 10:59:33 -04:00
Vincent St-Amour
b4e4797e6a Unrollings are reported separately from successes. 2012-07-11 10:59:33 -04:00
Vincent St-Amour
742fb7844c Detect unrollings of functions in the body of other functions. 2012-07-11 10:59:33 -04:00
Vincent St-Amour
331d47eb09 Remove vestigial file. 2012-07-11 10:59:33 -04:00
Vincent St-Amour
5ad4bb6f15 Use group-by from unstable/list. 2012-07-11 10:59:33 -04:00
Vincent St-Amour
23646f86b9 Add a key argument to group-by. 2012-07-11 10:59:33 -04:00
Vincent St-Amour
42fa91f688 Refactor output formatting. 2012-07-11 10:59:33 -04:00
Vincent St-Amour
b5de31cc1b Move more analysis logic to the post-processing phase.
This makes the analysis much cleaner, since we can do everything when the
whole log is available.
2012-07-11 10:59:33 -04:00
Vincent St-Amour
570c5ef0f4 Log fuel and closure size.
That way, we can detect close calls post facto.
2012-07-11 10:59:32 -04:00
Vincent St-Amour
8e580b5c6f Ignore out-of-fuels with unknown provenance. 2012-07-11 10:59:32 -04:00
Vincent St-Amour
65dda11603 Report unrollings separately. 2012-07-11 10:59:32 -04:00
Vincent St-Amour
87f7a55101 Simplify inlining info printing. 2012-07-11 10:59:32 -04:00
Vincent St-Amour
38b91cf101 Restructure inlining log handling, to make further processing easier. 2012-07-11 10:59:32 -04:00
Vincent St-Amour
a71565e77a Parse inlining location information. 2012-07-11 10:59:32 -04:00
Vincent St-Amour
2b739bd0ff Make log parsing more robust. 2012-07-11 10:59:32 -04:00
Vincent St-Amour
727420ee17 Make sure badness is non-zero any time we report a missed opt.
Also, fix irritant handling.
2012-07-11 10:59:32 -04:00
Vincent St-Amour
24cb6fa0cd Handle cases where the inliner gives us the name, but nothing else.
There's not much we can do with these, but at least we don't error.
2012-07-11 10:59:32 -04:00
Vincent St-Amour
4538072df6 Add anchor to inliner messages. 2012-07-11 10:59:32 -04:00
Vincent St-Amour
84feb3882d Enable performance report no matter the language. 2012-07-11 10:59:32 -04:00
Vincent St-Amour
d9e0afab1c Handle out-of-fuel messages. 2012-07-11 10:59:31 -04:00
Vincent St-Amour
c0c2d11809 Move inliner log processing to its own file. 2012-07-11 10:59:31 -04:00
Vincent St-Amour
83bf7532ec Aggregate inliner log entries. 2012-07-11 10:59:31 -04:00
Vincent St-Amour
0e710c1618 Show inlining and failed inlinings in Performance Report. 2012-07-11 10:59:31 -04:00
James Swaine
91de1fae7c Remove unused test file 2012-07-11 09:17:49 -05:00
Robby Findler
dcdc2aea02 allow promises to be impersonated and thus allow impersonator contracts
related to PR 12861
2012-07-10 22:23:26 -05:00
Eli Barzilay
3028099eae Remove apparently redundant use of multiple values from `stream-map'. 2012-07-10 22:52:18 -04:00
Eli Barzilay
e262f66127 Fix typo in 404 page. 2012-07-10 22:12:43 -04:00
Matthew Flatt
daa98b4e33 syntax/location: repair after `variable-reference->module-source' fix 2012-07-10 18:35:03 -06:00
Matthew Flatt
506b70f71f fix `variable-reference->module-source' for submodules
Unlike the `variable-reference->resolved-module-path', the module
source one doesn't include a submodule path.
2012-07-10 18:35:03 -06:00
Jay McCarthy
a7ea79040d Fixing PR12881 2012-07-10 19:21:24 -04:00
Jay McCarthy
1685952b9b Making key-code-symbol consistent with docs 2012-07-10 19:21:24 -04:00
Matthew Flatt
3f479a0556 *SL: avoid run-time dependency on Scribble
Instead, move the Scribble dependencies into generated documentation
submodules.
2012-07-10 15:55:18 -06:00
Matthew Flatt
428711bf93 another submodule-expansion repair 2012-07-10 15:05:40 -06:00
Neil Toronto
392d7bfbad Added sequence typecheck tests
Added empty-sequence type (prints funny but works polymorphically; will submit bug report)
Loosened type of sequence-andmap (can't mimic andmap's predicate type)
2012-07-10 13:22:53 -07:00
Neil Toronto
3d1f2da3bc Added #:add-ticks? arguments to 2d histogram functions
Added #:add-x-ticks? and #:add-y-ticks? arguments to 3d histogram functions
2012-07-10 11:22:26 -07:00
Neil Toronto
ef2bd3fc0a Revert "Added #:add-ticks? argument to all 2d-renderer-producing functions"
I forgot that (plot-x-ticks no-ticks) does the same thing.

This reverts commit 8ae3ff48d8.
2012-07-10 11:22:26 -07:00
Matthew Flatt
ffe39c5974 fix support code for some tests 2012-07-10 11:42:42 -06:00
Matthew Flatt
603e920538 syntax/location: fix and change `quote-submodule-{name,path}'
Paths are left as paths, instead of trying to convert them to strings
or byte strings. Submodule path elements should be unquoted -- in the
same form as a `submod' form. All extra parts are submodule path elements,
never module paths or ".".
2012-07-10 11:42:42 -06:00
Neil Toronto
8ae3ff48d8 Added #:add-ticks? argument to all 2d-renderer-producing functions 2012-07-10 10:40:22 -07:00
Sam Tobin-Hochstadt
6bf141513f Revise type environment propagation to use submodules.
Each typed module now defines a submodule named `type-decl`.
This module performs the type environment initialization (along
with other environment updates) when invoked.  Additionall,
every typed module, when invoked, performs a for-syntax addition
to a list specifying the submodules that need invocation.
This invocation is then performed by the `#%module-begin` from
Typed Racket.

The `type-decl` module always goes at the beginning of the
expanded module, so that it's available at syntax-time for all
the other submodules.  This involved adding pre- and post-
syntaxes for the results of typechecking.

This allows significant runtime dependency reduction from the
main `typed/racket` and `typed/racket/base` languages (not yet
complete).
2012-07-10 12:49:27 -04:00
Sam Tobin-Hochstadt
88f5f4c836 Remove evcase. 2012-07-10 12:49:27 -04:00
James Swaine
55b11bf365 Fix arity mismatch error in timeline-events 2012-07-10 11:45:57 -05:00
James Swaine
dbec8765e3 Futures visualizer - reorganize modules, expose formerly private stuff as public (and docs) 2012-07-10 10:55:19 -05:00
James Swaine
2b2070f7b2 Clean up code in futures visualizer
Remove mouseover display for creation graph nodes (for now)
2012-07-10 10:54:43 -05:00
James Swaine
39f42b753d Futures visualizer - show name of jitted function for on_demand events 2012-07-10 10:54:43 -05:00
Burke Fetscher
7972adc97a Futures visualizer - Various bug fixes 2012-07-10 10:54:43 -05:00
James Swaine
919d359e9a Make sure future log buffers are cleared when starting to
trace for the futures visualizer
2012-07-10 10:54:42 -05:00
James Swaine
b6f71ec4be Add futures visualizer, improvements to futures logging 2012-07-10 10:54:42 -05:00
Matthew Flatt
48e154e3cb scriblib/autobib: first cut at configurable style
Adds `number-style' as an alternative to `author+date-style'.
2012-07-10 00:21:56 -06:00
Matthew Flatt
71fe28e5dc scriblib/autobib: fixes in docs and related to disambiguation
Fixed problems related to sorting, more than two references for
one citation, and "specific" additions like page numbers.

Also, removed a set of parentheses around disambiguated dates
in the bibliography, because I don't think they belong there.

The doc format was confused; for example, square brackets don't mean
optional in a syntactic form documentation, but instead mean square
brackets.
2012-07-10 00:21:56 -06:00
Neil Toronto
419b59e88e Added inline hint around `index?' definition; my own timing suggests 2x speedup 2012-07-09 19:15:35 -07:00
Neil Toronto
77655f9ade Added types for single-value sequences
Fixed some printing types
2012-07-09 19:15:35 -07:00
Asumu Takikawa
8a166407ed Remove old menu item from DrRacket docs
Closes github issue #101
2012-07-09 20:42:54 -04:00
Asumu Takikawa
9b46e7ab7d racket/draw: Use interface contracts
Also removed `defclass` based runtime checks where
appropriate.
2012-07-09 18:04:33 -04:00
Asumu Takikawa
80ca36e6ab racket/draw: clean up object name hacks
The only observable impact of this change is that
`the-color-database` will now print as
`(object:color-database% ...)` instead of
`(object:color-database<%> ...)`. The former makes more
sense anyway, given that you can't have an instance of
an interface. If we really want the latter though,
we can add `object-rename` for this purpose.
2012-07-09 17:15:33 -04:00
Asumu Takikawa
839f971912 Fix inconsistent docs 2012-07-09 15:19:16 -04:00
Asumu Takikawa
a1aedaff1e Fix doc typos 2012-07-06 18:59:10 -04:00
Matthew Flatt
f9b4c6b226 scribble: add --dest-base flag
Also add the option to `render' from `racket/render', and
document the existing `render%' initialization argument.
2012-07-06 16:48:36 -06:00
Matthew Flatt
1d378186f4 repair to exn doc repairs 2012-07-06 16:48:36 -06:00
Eli Barzilay
75f710dc62 Some styling. 2012-07-06 16:07:30 -04:00
Eli Barzilay
2ebab9b93f Redo text sculpturing. 2012-07-06 16:07:30 -04:00
Eli Barzilay
66ef365aa4 Add a "favicon.ico" copy, and a 404 page.
The 404 page doesn't work right yet -- it should always use absolute
links.
2012-07-06 16:07:30 -04:00
Matthew Flatt
4c469d5338 improve docs on gensym', generate-temporaries', and compiled code 2012-07-06 13:17:35 -06:00
Matthew Flatt
2b9f57b01d scribble/*-properties: allow literal bytes in *-additions
For example, a `tex-addition' structure can have literal bytes
to include in the generated Latex, instead of a path to a file that
holds the content.
2012-07-06 13:17:35 -06:00
Matthew Flatt
891b882ee6 doc clarification on exception handlers 2012-07-06 13:17:35 -06:00
Vincent St-Amour
dba49db078 Fix type of andmap and ormap on empty lists.
Closes PR 12882.
2012-07-06 12:28:37 -04:00
Danny Yoo
0a5e92c299 Correcting type error in latex-match: target-url-addr can be a path, which can't be consumed by regexp-replace 2012-07-06 12:03:47 -04:00
Matthew Flatt
f71037c775 also improve JIT support for unboxed flonums in non-tail-call
Applies to non-tail calls to immediate functions, which can be
generated by a `for' or `let loop' pattern in a non-tail
position.
2012-07-06 08:07:10 -06:00
Robby Findler
467bde3a25 fixed promise/c so it creates chaperone contracts when its
argument is a chaperone contract

closes PR 12861
2012-07-04 18:41:55 -05:00
Robby Findler
98c459c3d7 document the fact that resolve-planet-path is exported from
two different modules. Not sure who might be using this, so
it seems unwise to actually fix this problem.

Also document the fact that calling this function is unlikely
to be useful unless you know the package is already installed.

closes PR 12719
2012-07-04 17:40:16 -05:00
Robby Findler
d79db54a22 provide the color structs using (provide (struct-out ...))
closes PR 9867
2012-07-04 10:55:55 -05:00
Matthias Felleisen
983afd5355 added some more format examples; Closes PR 9879 2012-07-04 11:42:14 -04:00
Matthias Felleisen
89d6ebaab6 shifted eval code, probably not needed 2012-07-03 21:49:03 -04:00
Robby Findler
4cd26f828f typo in error docs 2012-07-03 19:55:08 -05:00
Asumu Takikawa
9f83ba1c6f Fix doc typos 2012-07-03 15:54:25 -04:00
Asumu Takikawa
414ed2597e Reference: fix doc typos 2012-07-03 03:10:04 -04:00
Asumu Takikawa
e8dfd1d8df Improve docs for exn:fail:contract:blame 2012-07-03 02:16:13 -04:00
Robby Findler
119d1ff9d3 fix the append-editor-font-menu-items and
append-editor-operation-menu-items docs

closes PR 12878
2012-07-02 18:59:38 -05:00
Matthew Flatt
e8d9d4e9ca improve error handling for `defproc'
Closes PR 12780
2012-07-02 10:07:52 -06:00
Matthew Flatt
aa68692b37 allow `begin' wrapper on a submodule to re-expand
Closes PR 12835
2012-07-02 10:02:41 -06:00
Matthew Flatt
50ab977c51 doc correction
Closes PR 12872
2012-07-02 09:19:40 -06:00
Matthew Flatt
4ed8a88969 doc correction
Closes PR 12844
2012-07-02 09:08:05 -06:00
Matthew Flatt
b5189c8232 scribble: adjust `subsubsub*section' font size
Closes PR 12868
2012-07-02 09:00:08 -06:00
Matthew Flatt
addc5d4be7 sgl: avoid crashes on Mac OS X when no GL context is current 2012-07-02 08:31:05 -06:00
Matthew Flatt
814c974d01 scribble Latex: add \SNumberOfAuthors{} in output 2012-07-01 10:00:58 -06:00
Matthew Flatt
3662aee60b *SL: fix `check-expect' syntax checking
Bug introduced during error-message conversion.
2012-07-01 09:25:12 -06:00
Matthew Flatt
c69ea5569f `raco decompile' fix 2012-07-01 09:25:12 -06:00
Matthew Flatt
9eb4f0e278 typo 2012-07-01 09:25:12 -06:00
Asumu Takikawa
07d279e3ee racket/class: doc fixes and improvements
- actually fixed the grammar this time
 - examples for most class/object utils
 - consistency with naming conventions
 - interface ctc example
2012-06-30 15:13:53 -04:00
Vincent St-Amour
1d43b5a0db Fix Performance Report on unsaved editors.
Closes PR12808.
2012-06-29 16:27:37 -04:00
Asumu Takikawa
9e97ea4cae Fix class init grammar in docs 2012-06-29 14:40:27 -04:00
Asumu Takikawa
ad8b43e21f Add examples for most class clauses. 2012-06-29 14:40:27 -04:00
Matthias Felleisen
a6e3c01f53 this is not the final word, see todo in provide-and-scribble; Closes PR 10498 2012-06-28 20:57:30 -04:00
Matthias Felleisen
15651fca6c removed debug print; fixed ordering of section display; improved docs in advanced 2012-06-28 20:55:13 -04:00
Matthias Felleisen
f56d6447da typos 2012-06-28 18:22:49 -04:00
Matthias Felleisen
004127bbc7 hashes scribblized, preliminary; SK may wish to add more examples 2012-06-28 18:22:49 -04:00
Matthew Flatt
eeb5f2778a fix for/lists' to use the Racket-implemented reverse' 2012-06-28 14:32:01 -06:00
Matthew Flatt
67cbd52e24 fix benchmark driver for running an old version 2012-06-28 14:32:01 -06:00
Sam Tobin-Hochstadt
20e95f8d8e More refactoring and reduction of runtime dependencies. 2012-06-28 14:34:07 -04:00
Sam Tobin-Hochstadt
f075ecd36e File splitting, dependency reduction. 2012-06-28 14:34:07 -04:00
Matthew Flatt
d181b32192 Guide: recycle sandbox for most regexp examples 2012-06-28 10:05:43 -06:00
Matthew Flatt
20aa70a6ef doc fixups 2012-06-28 09:54:18 -06:00
Matthew Flatt
612c4ff524 scribble HTML render: avoid intermediate XML structure
As pointed out by Danny Yoo to save time during the rendering phase
2012-06-28 09:15:57 -06:00
Matthew Flatt
130618e946 tweaks to Danny's Scribble changes 2012-06-28 08:57:58 -06:00
Danny Yoo
d926f89cbe Correcting content->string so that it does not concatenate strings in quadratic time 2012-06-28 08:39:14 -06:00
Danny Yoo
2f4671235c Changing decode-string so it avoids allocation and interns the individual string components. 2012-06-28 08:39:03 -06:00
Robby Findler
5526efd744 Rackety (Matthew already broke the dependency that this commit was going to do) 2012-06-28 09:02:35 -05:00
Matthew Flatt
6379849755 remove dependency of *SL image functions on `racket/gui/base' 2012-06-28 07:18:17 -06:00
Stevie Strickland
d16c3f68fa Add empty case for with-contract's clause for free variable contracts.
Also reorder the single and multiple cases to match result-spec's ordering.
2012-06-28 03:28:04 -04:00
Matthias Felleisen
379974fc6e fixed some interactions, added up through hashes 2012-06-27 22:55:07 -04:00
Matthias Felleisen
22f3c6b509 added interactive examples up to I/O 2012-06-27 19:03:42 -04:00
Matthias Felleisen
397cd540ab added interactions to all but one beginner functions to illustrate what they do 2012-06-27 19:03:41 -04:00
Matthew Flatt
f05e6fa9c0 fix and improve some syntax-error messages for `struct' 2012-06-27 13:38:36 -06:00
Matthew Flatt
1d25f698da doc clarifications 2012-06-27 13:20:18 -06:00
Matthew Flatt
ec6f3fd610 racket/draw: avoid callback-based PNG writing
Doc rendering has been occasionally crashing in Pixman/Cairo. It might
have something to do with a non-atomic callback, so let's try avoiding
that, first. (If that doesn't work, the next step is to avoid using
Cairo in a multi-threaded way, for which this is a first step, too.)
2012-06-27 12:29:52 -06:00
Matthew Flatt
5f3f3e8c54 scribble/eval: remove bogus top-level `namespace-require' 2012-06-27 12:28:17 -06:00
Matthew Flatt
0d1056dbed fix potential bad interaction of module caching and JIT assumption
The JIT wants to detect calls to functions bound to module-level
variables that are always instantiated to a procedure of a particular
arity, in which case it can avoid some checks.  The problem is that
bytecode and JITted code can be shared via the module cache across
namespaces that use different modules to implement a particular module
path or that enable the JIT differently.  In particular, starting with
one that has a procedure binding and then using one (in a different
namespace) that has a non-procedure binding could lead to a crash.

Defend against this possibility by never treating imported variables
as constant in that sense. The JIT detects imported variables through
a new import map in the prefix.

This change may slow code. My guess is that it will have no
performance impact in practice, due to cross-module inlining,
although I can construct a microbenchmark that slows by 20%.
2012-06-27 09:57:50 -06:00
Matthew Flatt
e0bf863b21 BSL and BSL+: fix an error message 2012-06-27 09:57:50 -06:00
Matthew Flatt
8655a6856e errortrace: hack to recover `with-continuation-mark' optimization 2012-06-27 09:57:50 -06:00
Matthew Flatt
577cf4592e fix problems with references to bindings at higher phases 2012-06-27 09:57:50 -06:00
Matthew Flatt
edce1b0406 fix optimizer for impersonated continuation mark keys
The optimizer can no longer reduce
  (with-continuation-mark _id _v-expr _expr)
to just
  _expr
when _v-expr and _expr are simple enough, because _id
might be bound to a continuation mark key with an
impersonator that checks the result of _v-expr.

The loss of an optimization can have a significant affect on
errortrace of microbenchmarks, such as

 (for ([i (in-range 10000000)])
   i)
2012-06-27 09:57:50 -06:00
Vincent St-Amour
db6c2e7737 Update types of string-join and add-between. 2012-06-27 11:39:15 -04:00
Eli Barzilay
fb2b5418df More files for all sites.
Two verification files for google/bing website tools, and also add a
no-op robots.txt file to avoid error-log lines.
2012-06-27 09:26:29 -04:00
Eli Barzilay
06f67b30f3 Improve resource-files code.
Makes it easy to add more files without more bindings.
2012-06-27 09:26:28 -04:00
Eli Barzilay
9d8b0b3051 Add rel="nofollow" to short example links.
The examples make up the majority of the front page, and it turns out
that google used some of these links in "sitelinks" in search result.
These links should be the main entry points, and we ended up having such
gems as "Printf" be there.  They provide a way to "demote" URLS so they
won't show there, but doing that for one link means that another will
pop in (and there's a limit of a 100 such demotions).  So add this in an
attempt to make it not consider them as things that can be used in the
sitelinks.  This might be reverted if it doesn't help.

(Note that this is discouraged as a way to "sculpt pagerank", but the
purpose here is not to affect how they crawl the web pages and make page
reputation flow, but only to cover up for a missing feature that ends up
with horrible sitelinks.  The pages are scanned anyway from the doc
pages.)
2012-06-27 09:26:28 -04:00
Eli Barzilay
1e79d368ce Some usual code shuffling for internal definitions. 2012-06-27 09:26:28 -04:00
Eli Barzilay
b1c666c212 Some web page tweaks.
* The main page's title appears in search results, so use "The Racket
  Language" instead of "Racket".  Additional minor tweaks to a few more
  titles to make them presentable as search results.

* Add a `#:description' keyword to make it easy to add it to pages.  Add
  such texts to the main page, downloads, community, learning, people,
  and mailing list pages.

* Add a <meta name="robots" content="NOODP" /> to the front page, to
  avoid getting the ODP (dmoz) blurb, hopefully the new and improved
  description(s) will be used instead.  (If not, this should be
  reverted.)
2012-06-27 09:26:28 -04:00
Eli Barzilay
81e0bd2382 Use `secref' instead of a direct link to docs.racket-lang.org. 2012-06-27 09:26:28 -04:00
Asumu Takikawa
095d47fc3d racket/contract: rename prompt/c & continuation-mark/c
The new names are `prompt-tag/c` and `continuation-mark-key/c`
to keep the names consistent with the values that are being
contracted. Also updated the HISTORY file.
2012-06-26 21:11:58 -04:00
Asumu Takikawa
fcab398081 racket/class: add send+ for functional style OO 2012-06-26 21:11:58 -04:00
Neil Toronto
db57b78e18 Added lock-icon
Changed most *-icon and *-logo function arguments to keyword arguments

text-icon no longer uses font size

Small doc changes
2012-06-26 15:00:05 -06:00
Eli Barzilay
0c78194267 Adjust the keyword names for string-join' following the change to add-between'. 2012-06-26 13:45:16 -04:00
Eli Barzilay
826a5f360f Doc and code style improvements in the profiler. 2012-06-26 13:45:16 -04:00
Asumu Takikawa
ddf91c201a Documentation for mark key proxies and contracts 2012-06-26 13:39:36 -04:00
Asumu Takikawa
de5c756d2e Added continuation-mark/c 2012-06-26 13:39:36 -04:00
Asumu Takikawa
db6c37df92 Add proxy-able continuation mark keys and proxies
(with much help from Matthew on the JIT side)
2012-06-26 13:39:36 -04:00
Matthew Flatt
1e115e2963 ffi/com: repairs for '(box any) 2012-06-26 11:00:11 -06:00
Matthew Flatt
a6e263741a racket/list: adjust `add-between' keyword handling
Add a `#:nothing' argument so the no-value value can be
made explicit --- based on discussion with Eli, but pending
further review.

Also, renamed `#:first' to `#:before-first' and `#:last' to
`#:after-last' to be more clear, more parallel ro `#:before-last',
and avoid a collision with prominent function names.
2012-06-26 11:00:11 -06:00
Matthew Flatt
eb4e040981 fix doc typo 2012-06-25 23:34:21 -06:00
Matthew Flatt
a8a0835fc1 fix doc typo 2012-06-25 23:29:25 -06:00
Matthew Flatt
b38bf09e4e HtDP language docs: fix context of defined bindings
Uses the new `#:id' option in `defproc'.
2012-06-25 23:25:58 -06:00
Matthew Flatt
6028a60f65 scribble/manual: add #:id' option to defproc'
Also, convert the implementation of `defproc', `defform', etc. to
use `syntax-parse'.
2012-06-25 23:16:33 -06:00
Asumu Takikawa
46e66978ee racket/generic: fix generated contract name 2012-06-25 21:41:50 -04:00
Asumu Takikawa
552d6de953 racket/generics: add contract combinator
The generics library now generates a `name/c` macro
for a generic interface `name`. The combinator can be
used to contract instances (or constructors) of a
generic interface across standard contract boundaries.
2012-06-25 20:33:48 -04:00
Matthias Felleisen
d04b8b0b8d accidentally placed 'null' in wrong file 2012-06-25 19:59:42 -04:00
Stephen Chang
91ea9ab309 add examples to read-language docs 2012-06-25 19:46:20 -04:00
Matthew Flatt
cb88590dfb fix interaction of `procedure-arity-includes?' and other things
A arity-reduced procedure-valued `prop:procedure' was not handled
correctly, for example.

A good candidate for random testing? I had the right kind of test in
place, but only for an arity of 1. It turns out that testing any other
arity would have exposed the problem, so now there are tests with
arity 0. If I had randomly generated procedures instead of manually
constructing `f0' through `f1:+' in "procs.rktl", then maybe I would
have more naturally generalized the arity testing, too. Then again,
I did already have relevant inputs, and it was the testing of inputs
that was too specific.

Closes PR 12870
2012-06-25 17:30:03 -06:00
Matthew Flatt
90b5aad56b ffi/com: fixes for IUnknown and enumeration values 2012-06-25 17:30:03 -06:00
Sam Tobin-Hochstadt
d346415903 Fix type of dynamic-place. 2012-06-25 19:20:12 -04:00
Sam Tobin-Hochstadt
5e26c329d6 Remove no-longer needed require for residual code. 2012-06-25 19:20:12 -04:00
Matthias Felleisen
4aefb18cab fixed bug in provide and scribble (end of stage 1) 2012-06-25 19:15:09 -04:00
Matthias Felleisen
5ea11fc0b4 fixed up docs to use new system; retested 2012-06-25 19:15:09 -04:00
Matthias Felleisen
b5b918ca4a restored object-name tests for the new doc system 2012-06-25 19:15:09 -04:00
Matthias Felleisen
5437708a90 switched documentation style to mine (stage 1) 2012-06-25 19:15:09 -04:00
Matthias Felleisen
68f16f705b fixed bug in render-sections 2012-06-25 19:15:09 -04:00
Matthias Felleisen
ee82103283 first stage in documentation reorg (final step) 2012-06-25 19:15:09 -04:00
Matthias Felleisen
8d02bc8844 first stage in documentation reorg (step 2) 2012-06-25 19:15:08 -04:00
Matthias Felleisen
5fbb660a56 first stage in documentation reorg 2012-06-25 19:15:08 -04:00
Matthias Felleisen
92c62d7417 disabled name tests for htdp languages during documentation reorg 2012-06-25 19:15:08 -04:00
Matthias Felleisen
2981cbfd68 added string-contains? at request from Ostermann 2012-06-25 19:15:08 -04:00
Matthias Felleisen
48e07fb2ab send world's name to universe properly, Closes PR 12857 2012-06-25 19:15:08 -04:00
Matthias Felleisen
4306cc2798 small fixes to Robby's marginal note on indy 2012-06-25 19:15:07 -04:00
Sam Tobin-Hochstadt
94f1cb2127 Avoid requiring the printer unneccesarily. 2012-06-25 18:07:45 -04:00
Sam Tobin-Hochstadt
c61ed30d0b Depend only on the lowest-level place primitives. 2012-06-25 18:07:45 -04:00
Sam Tobin-Hochstadt
08c3f78476 Disable unused code. 2012-06-25 18:07:45 -04:00
Sam Tobin-Hochstadt
794bfa50ec Load environments dynamically in residual code. 2012-06-25 18:07:45 -04:00
Sam Tobin-Hochstadt
88ff5fee69 Minor refactorings.
- Remove tracing requires.
 - Use lists instead of sets in a few environments.
 - Small cleanups.
2012-06-25 18:07:45 -04:00
Jay McCarthy
bc72ddd88a New error message 2012-06-25 15:59:17 -06:00
Jay McCarthy
7f1d0a9e3b Fix now broken usage of regexp-replaces in ffi 2012-06-25 15:59:17 -06:00
Jay McCarthy
e2a4302124 metacity 2012-06-25 15:59:17 -06:00
Jay McCarthy
93f85eac2a Switching window manager to something more stable 2012-06-25 15:59:17 -06:00
Jay McCarthy
8ed1dbbc1a Adding better version info to DrDr help 2012-06-25 15:59:17 -06:00
Kevin Tew
89c7ba6493 Fix *channel-get's use of continuations
Cleanup map-reduce.rkt
Cleanup rmpi.rkt
Added create-place-node and distributed-place-wait
2012-06-25 14:03:05 -06:00
Kevin Tew
1d480a63a2 Fix rmpi argument names, simple map-reduce impl 2012-06-25 14:03:05 -06:00
Robby Findler
3afba2d833 adjust defproc* so that it only shows the white background label once, instead
of once per different identifier that it is documenting
2012-06-25 13:42:09 -05:00
Sam Tobin-Hochstadt
a05acfee4c Split out some small utilities to prepare to reduce dependencies. 2012-06-25 14:10:18 -04:00
Sam Tobin-Hochstadt
ccb724155a scheme -> racket 2012-06-25 13:39:07 -04:00
Vincent St-Amour
972df7c89e Add #:unless to the for: macros. 2012-06-25 13:38:51 -04:00
Vincent St-Amour
b1ad108759 Update type of string-join for its new keyword arguments.
Closes PR12866.
2012-06-25 13:05:46 -04:00
Matthew Flatt
c2924ef926 CSS tweak for whute label on blue boxes
This tweak avoids adding extra space when the white-label font is
taller than the line it's attached to. It also makes the label
disappear in IE 6, but I think we can live with that.
2012-06-25 09:02:51 -06:00
Matthew Flatt
2c1e02d148 fix `help' docs
Use one `defform*' instead of `deftogether' and many `defform/none's.
2012-06-25 08:21:55 -06:00
Matthew Flatt
0532baa228 doc correction and improvement 2012-06-25 08:17:17 -06:00
Matthew Flatt
c11527494e racket/port: fix problems with `read-bytes!-evt'
See PR 12860; some of problem related to the PR were "fixed" by
adjusting the guarantees that are specified in the documentation.

Another problem was that non-consecutive bytes could be returned.
2012-06-24 07:38:09 -06:00
Matthew Flatt
6173b7eb05 fix zo-parse, zo-struct, etc. for context in whole-module import 2012-06-23 05:21:53 -07:00
Matthew Flatt
5433d2302a fix some error-message tests 2012-06-23 05:21:52 -07:00
Matthew Flatt
c7d181c2a9 racket/gui, win32: fix problem with mimize for fixed-size window 2012-06-23 04:15:28 -06:00
Matthew Flatt
91791983aa fix indentation of some error messages
`raise-syntax-error' and `raise-arguments-error' do not
try to adjust indentation, anymore, because it's too confusing
2012-06-23 02:20:59 -07:00
Matthew Flatt
4323096a46 change contract on second' of date' to allow only 1 leap second 2012-06-23 02:04:55 -07:00
Matthew Flatt
22e067c7a9 inside: add new error functions to docs 2012-06-23 02:04:55 -07:00
Matthew Flatt
ff8a062bfe guarantee `current-seconds', etc. from 1/1/1970 UTC
For all currently supported platforms, the result was already
portable, despite the documentation's hedging.

Also fixed up the documentation in other ways, such as the fact
that `seconds->date' returns a `date*'.
2012-06-23 02:04:55 -07:00
Matthew Flatt
b951978a77 fix `impersonate-struct' docs
Move some constraints from `chaperone-struct' docs to `impersonate-struct'
docs.

(Problem reported by Eric Dobson.)
2012-06-23 02:04:54 -07:00
Matthew Flatt
7126295905 teaching languages: fix copying of `test~object' binding to REPL
As Mike noticed, commit d836cba7c9 triggered a different binding
of `test~object' due to the enclosing module context of the `eval'ed
syntax object.
2012-06-23 02:04:54 -07:00
Eli Barzilay
f0d856ab7a Extend string-join' in a similar way to add-between'.
(This is actually the extension that made me do the other too.)
2012-06-23 04:44:20 -04:00
Eli Barzilay
728687d9dc Extend `add-between'.
New keywords: `#:first', `#:before-last', `#:last', and `#:splice?'.
2012-06-23 04:44:20 -04:00
Robby Findler
f7185bec91 strengthen contract on blockss field of table struct in scribble 2012-06-22 22:12:54 -05:00
Robby Findler
6588493810 adjust a bunch of error printfs in raco setup so they include the
stacktrace (by calling error-display-handler). Not sure if this is
always safe, so including it in a separate commit for easy reversion.
2012-06-22 21:38:09 -05:00
Robby Findler
40ec33c12b improve blue box spacing in Redex reference 2012-06-22 19:47:52 -05:00
Asumu Takikawa
e4f216244a Fix typos and wording in chaperone docs 2012-06-22 17:57:58 -04:00
Vincent St-Amour
a0d55d4ab8 Reconstruct let bindings in the right order when unboxing let. 2012-06-22 17:53:43 -04:00
Vincent St-Amour
ee142047f8 Add type for range, and extend in-range's. 2012-06-22 17:53:43 -04:00
Eli Barzilay
7ec9975736 Move regexp-replaces' from ffi/unsafe' to `racket/private/string'.
* The old function was removed completely, people will get it from
  `racket/base' anyway.

* I also removed its documentation.  I thought about leaving a note in,
  but if `define-ffi-definer' is the preferred style, then this should
  be done when there's a way to make `define-ffi-definer' use it.  (Eg,
  some new #:keyword that adds a way to change the defined name.)

* Note that the function is added to `racket/private/string' and not to
  `racket/string' because the latter deals only with strings, and the
  new function accepts byte strings too.  It might be better to start a
  new `racket/regexp' module for these functions.
2012-06-22 14:27:14 -04:00
Eli Barzilay
7b4772e120 Extend `regexp-replace*' to accept a start/end-position.
Note that this pushes the `ipre' argument to the end.
2012-06-22 12:00:48 -04:00
Eli Barzilay
7d6e79023c Random pickiness.
Spaces at EOFs, indentation, etc.
2012-06-22 12:00:48 -04:00
Robby Findler
3250d97f71 log errors that read-language produces when DrRacket calls it 2012-06-22 10:31:00 -05:00
Asumu Takikawa
af73e6f274 Typo in impersonate-hash docs 2012-06-22 00:12:24 -04:00
Asumu Takikawa
1dced5f560 racket/unit: fix literals in docs 2012-06-21 23:37:11 -04:00
Matthew Flatt
d253b89ba8 racket/port: fix read-bytes-evt' and read-string-evt'
As the documentation says, it's supposed to be ok to use the
same evt multiple times or in multiple threads, but an internal
buffer was allocated incorrectly, so that multiple/concurrent
uses could go wrong.

Closes PR 12860
2012-06-22 09:48:00 +08:00
Matthew Flatt
a04ba8aef3 ffi/com: allow a `com-object' as an 'iunknown argument 2012-06-22 09:47:59 +08:00
Matthew Flatt
1dc0072d03 further error message convention refinements
Add extra intitial-message lines, use "..." on a field name
to indicate that it could reasonably be hidden by default,
and refine some existing messages.
2012-06-22 09:47:59 +08:00
Asumu Takikawa
ed9c612cae racket/control: Racketize & remove trailing whitespace 2012-06-21 16:08:33 -04:00
Asumu Takikawa
893ebc6ee6 mzlib/class100: deprecation notice 2012-06-21 16:08:33 -04:00
Neil Toronto
25c5e87929 Added docs for pi.f, corrected pi's contract, added examples 2012-06-21 13:53:09 -06:00
John Clements
3ef7aa2a45 rackety 2012-06-20 23:38:51 -07:00
Eli Barzilay
6918bb55cb Dump attempt to be cute with stderr.
Also add robby & mflatt as responsible to the algol60 tests and to
algol60 itself.
2012-06-20 22:52:40 -04:00
Eli Barzilay
2c058f5f03 Racketize the `version' collection.
Also some other style things, and get rid of the redundant "doc.txt".
2012-06-20 21:37:50 -04:00
Matthew Flatt
303aaec2b4 update docs related to definition-box labels 2012-06-21 07:15:09 +08:00
Matthew Flatt
40c892ff80 futures: future-local handling of stack overflow
Includes the addition of 'overflow and 'start-overflow-work
events, whcih are effectively specializations of 'sync and
'start-work to expose overflow handling.

Also, fix a bug related to a potential GC during mark-stack
restore from a lightweight continuation.
2012-06-21 07:14:50 +08:00
Matthew Flatt
9af2a331ca another ASL error-message repair 2012-06-21 07:14:49 +08:00
Robby Findler
f38024d4ed fix struct/c for the case that the selectors are not available at the use site.
closes PR 12854
2012-06-20 11:23:20 -05:00
John Clements
da652c4774 oops add one more reference to new file 2012-06-20 09:08:22 -07:00
Eli Barzilay
b5cc811daf Conditional use of `module+'.
This fixes drdr, which is using a pre-submodules version of racket.
There was also a use of one-argument `string-join' that is fixed that
has been there for a while but drdr uses the api directly.
2012-06-20 11:51:12 -04:00
Eli Barzilay
34c6c9966e No need to run this wrapper in drdr. 2012-06-20 11:51:12 -04:00
Robby Findler
c0b928c758 Added @literal-algol{} and started an algol60 test suite (apologies
if there already was one that I didn't find). Also fixed syntax
error raising procedure.

closes PR 12859
2012-06-20 10:28:53 -05:00
Robby Findler
8f892a2d3a when moving the focus to the replace window, also select the text
closes PR 12855
2012-06-20 09:27:16 -05:00
Robby Findler
411aeb99b8 a bunch of fixes to the diagram:
- added some color (mostly to try to disambiguate the lines)

- several of the things named '*-element' actually belong under content, not element.

- element has 'content', not the substructs.

- convertible?s are content's.

- the 'content' field in an element is not a list, but simply a content.

- there are a bunch of things under target-element.

- image-element was missing fields

- collect-element was missing the collect field
2012-06-20 08:22:58 -05:00
Robby Findler
c13a88915a remove uppercasing of the tag names 2012-06-20 08:22:58 -05:00
Robby Findler
4d7f6d7935 make scribble's part/document/element/etc structs all be #:transparent 2012-06-20 08:22:58 -05:00
John Clements
63cc342cdb fixes to dialog for too-many-step resolution 2012-06-19 23:51:59 -07:00
John Clements
c01e8c1564 refactored to reduce stepper dependencies 2012-06-19 23:51:59 -07:00
John Clements
66321c8f84 adding halt dialog for runaway process 2012-06-19 23:51:59 -07:00
John Clements
a11fd04b01 working on adding stopping dialog 2012-06-19 23:51:59 -07:00
John Clements
615f687d7c reformatting only 2012-06-19 23:51:59 -07:00
Eli Barzilay
19de3f9aa4 Collapse some properties where possible.
(Notified the responsible, so some of these might be undone later.
Pushing now to see how the self-testing works for meta/props.)
2012-06-19 14:20:06 -04:00
Eli Barzilay
b43affa171 More props code improvements.
Simplified code, and additional testing for redundant properties, and
for properties that can be collapsed into a parent directory (this might
be dropped or used only for notification on differences, see
commentage).

Also, make drdr test itself reflectively.
2012-06-19 14:20:06 -04:00
Eli Barzilay
555aa0d8b6 Remove redundant `drdr:command-line' values.
Drop ones with the default for the suffix, and drop a few unnecessary
"-q" flags too.
2012-06-19 12:55:11 -04:00
Eli Barzilay
d2cee683e4 Improve drdr suffix-decision code, and the help text for prop setting.
The code is improved, and also the default changes for *.rkt files:
there is no need for any flags -- "-q" is redundant, and with no flags
it's doing "-u" which is the same as "-t" (with an added "-N").
2012-06-19 12:52:22 -04:00
Eli Barzilay
125fbaa3ce `collects/teachpack/deinprogramm' belongs to Mike Sperber. 2012-06-19 12:52:22 -04:00
Eli Barzilay
4c2940a6d9 Simplify away uses of "-t" in `drdr:command-line'.
In some cases use `module+' to make the code run nicely without a "-m".

(And some other minor tweaks.)
2012-06-19 12:52:22 -04:00
Asumu Takikawa
0e4f9fcd97 racket/gui: fixed by-position widget initialization
This was broken in the class100 port. The init arguments
previously handled by the class100*/kw macro need to be
explicitly passed down.

Also, an (init-rest) is needed at the leaves of the class
hierarchy to ensure that internal super init args don't
leak via error messages. (the class100 macro always
inserts these)

Added a test file so similar breakage is detectable in the
future.
2012-06-19 12:37:35 -04:00
Eli Barzilay
2c19677358 Make some .rktl tests run with "racket".
With this commit, all of the leftover mentions of gracket in
`drdr:command-line' are things that pop up windows.
2012-06-19 03:18:23 -04:00
Eli Barzilay
52d4777bac Fix two mis-fixes in the previous props scan. 2012-06-19 01:53:51 -04:00
Eli Barzilay
b8034828d0 Sort the mess with aligned-pasteboard tests.
1. Lots of #lang-ization, other racketizations, code improvements, etc.

2. Some files that were not working now do.

3. "collects/tests/aligned-pasteboard" had some files that were near
   duplicates of "collects/mrlib/private/aligned-pasteboard/tests".
   I've removed the former since in a few places it looked like an older
   version (eg, there were bogus references to a non-existent
   "utils.rkt").  The former has more files that are in runnable
   condition now.

4. There are plenty of tests that look like they're failing, but it
   wasn't shown since they just return #f, and when they were running
   with a "-f" these results weren't displayed.

5. I have no idea about the code, this is all just reshuffling and minor
   editing.
2012-06-19 01:42:20 -04:00
Eli Barzilay
10c06d25a7 Drop many uses of "gracket" and "gracket-text" in drdr command-lines.
There were many such properties that were leftover from before the big
GUI rewrite where the gracket executable was needed, and now there is no
longer any need for these things.  There are two exceptions:

* There is a drdr feature that forces all tests that use gracket to run
  sequentially, which is used for tests that rely on some actual state
  of shown windows.  I ran all of the files and monitored for windows
  popping up, and left the test to use gracket in these cases.

* There are a few cases where running "racket -f <file>" resulted in an
  unbound identifier, whereas "gracket -f <file>" does not.  These are
  because of the different global namespace, and I will fix them (props
  and the files) in a different commit.

One of the expected results of this is that a drdr might run faster,
because the serial-running hack above should now be applied only where
relevant.  (And some of the drracket tests are very long.)

This commit is pushed by itself to identify possible problems with a
drdr run that tests only this change.
2012-06-18 21:51:56 -04:00
Eli Barzilay
104d7a6904 Add a bunch of missing `responsible' properties. 2012-06-18 19:23:21 -04:00
Eli Barzilay
043e0b299f More improvements, more checks.
Check that the entries are sorted, and check that there's a
`responsible' for all files on disk, except for known exceptions.  It
might be better to use "git ls-tree HEAD <path>" instead of looking at
the filesystem, but then it won't work on drdr.
2012-06-18 19:23:21 -04:00
Eli Barzilay
c622c8328f Lots of fixes for broken paths in props.
Found with the new verify functionality.
2012-06-18 19:23:21 -04:00
Eli Barzilay
749259d8e1 Fix lots of prop paths. 2012-06-18 19:23:21 -04:00
Eli Barzilay
7d40901381 Improve some code, add a "verify" verb to verify paths in props info. 2012-06-18 19:23:21 -04:00
Eli Barzilay
fac76a56f8 Some style things. 2012-06-18 19:23:21 -04:00
Sam Tobin-Hochstadt
2d902e8bf1 Fix command-line arguments to test in drdr. 2012-06-18 16:24:20 -04:00
Robby Findler
a5d9520274 Revert "a start on getting text rendering running automatically via 'raco setup'"
This reverts commit 6b5cd10670.
2012-06-18 11:27:42 -05:00
Robby Findler
6b5cd10670 a start on getting text rendering running automatically via 'raco setup' 2012-06-18 11:26:27 -05:00
Robby Findler
2d8f41bfb9 clarify has-contract? and prop:contracted relationship 2012-06-18 11:26:27 -05:00
Robby Findler
ac8a4f23e5 Fixed up and added in the struct hierarchy diagram from the Scribble paper 2012-06-18 11:26:27 -05:00
Robby Findler
88f4ddabcc Rackety 2012-06-18 11:26:27 -05:00
Vincent St-Amour
4d5bc17f85 Recover from any failure when attempting to prune types. 2012-06-17 23:28:50 -04:00
Vincent St-Amour
24b6ecf2a6 Extend time-apply to work with procedures with more than 2 arguments. 2012-06-17 23:04:47 -04:00
Vincent St-Amour
a5f2ca8fb0 Fix possible-domains on functions with multiple return values. 2012-06-17 23:04:47 -04:00
Mike Sperber
35f141b7bc Add some missing `delay's in DeinProgramm signatures.
Spotted by: Stephen Chang
2012-06-17 09:21:58 +02:00
Matthew Flatt
5ff3087677 scribble: adjust `def...' box to show a background label in HTML
For example, a syntactic form box is labeled with "SYNTAX". Forms
such as `defform' and `defthing' now support a `#:kind' option
for setting the label.
2012-06-17 09:19:58 +08:00
Vincent St-Amour
da897a2f85 Disable debugging printing. 2012-06-16 18:28:01 -04:00
Sam Tobin-Hochstadt
39e014bc55 Handle submodules in Typed Racket. 2012-06-16 22:08:06 +08:00
Sam Tobin-Hochstadt
a929bb21fc Don't export internal names for define & lambda. 2012-06-16 22:08:05 +08:00
Robby Findler
e94c72da78 add a possible explanation for indy 2012-06-16 06:36:06 -05:00
Matthew Flatt
4eb0d3dcac minor guide corrections
on parts that Eli asked me to check
2012-06-16 04:54:45 +08:00
Asumu Takikawa
ab0d3d6492 Fix TR optimizer test
(round to avoid FPU sensitivity)
2012-06-14 18:22:42 -04:00
Asumu Takikawa
5d232f3748 racket/control: add aliases and update %/fcontrol
Added alises for call-with-continuation-prompt,
abort-current-continuation, and call-with-composable-continuation.
Also allow % and fcontrol to take an optional prompt tag argument.
2012-06-14 17:33:43 -04:00
Eli Barzilay
a7064d5f6a A bunch of typo fixes from Richard Cleis. 2012-06-14 17:20:05 -04:00
Vincent St-Amour
c4613cf9ab Unbox exp on complex numbers. 2012-06-14 17:17:03 -04:00
Robby Findler
c68b464fcd clean up example code 2012-06-14 15:57:43 -05:00
Eli Barzilay
5e902b2191 Minor typo. 2012-06-14 15:46:53 -04:00
Eli Barzilay
6b2b784e79 Further improvements to the documentation search.
Revise the subword matching to have three different levels for full
match (= a permutation of the input), a generic match for all parts, and
everything else.
2012-06-14 15:46:53 -04:00
Eli Barzilay
ecc43ff104 Improve the documentation search code.
Instead of just one array for exact results and one for all the rest,
use one array for each possible comparison result, and concatenate them
all for the final list.
2012-06-14 15:46:53 -04:00
Eli Barzilay
41745e4f38 Show the host we're copying content to. 2012-06-14 15:46:53 -04:00
Matthias Felleisen
f82f528a8c added 'boolean' to the grammars for the *SLs, fixing an emailed bug report from Klause Ostermann. -- To avoid the 'true, '(true) etc issue I ommitted boolean from the [quasi]quoted grammar, which makes the current behavior kind of correct. 2012-06-14 14:20:46 -04:00
Robby Findler
cd923bb8f8 disable the preferences menu in paint-by-numbers (since it does nothing)
so that other games can call preferences:set-default.

closes PR 12851
2012-06-14 04:24:22 -05:00
Robby Findler
21c60bfa8b fix bug in find-scroll-step in the implementation of Parcheesi's
rules overview window
2012-06-14 04:24:22 -05:00
Matthew Flatt
16d877d45e improve `for' body syntax-error reporting
Closes PR 12850
2012-06-14 15:11:19 +08:00
Asumu Takikawa
6c569415cc Update list of redirected procedures in docs 2012-06-13 14:28:01 -04:00
Matthew Flatt
a871574318 make #%plain-module-begin' transformer detect module*' in stop list 2012-06-13 17:07:06 +08:00
Matthew Flatt
af9d11bfce fix `raco setup' "nothing to do" check w.r.t. Planet paths 2012-06-13 07:44:57 +08:00
Neil Toronto
7fb38aff44 Fixed type errors uncovered by correction to type of exact->inexact (i.e. change to real->double-flonum) 2012-06-12 13:26:06 -06:00
Asumu Takikawa
4ce4d7531b Improve docs & errors for control proxies
In particular, use consistent terminology for errors
and provide usage examples
2012-06-12 12:16:56 -04:00
Vincent St-Amour
cff1cd3c63 Fix type of exact->inexact.
Closes PR 12803.
2012-06-12 11:09:20 -04:00
Asumu Takikawa
a181011b55 Check for proxied prompt tags when needed
Fixes a bug where some control operators would
not recognize proxied prompt tags (non-proxied were fine)
2012-06-11 21:04:45 -04:00
Asumu Takikawa
87ecb55d40 Documentation for control proxies & prompt/c 2012-06-11 18:18:37 -04:00
Asumu Takikawa
5aa76c27a9 Support multiple values for control proxy functions 2012-06-11 18:18:37 -04:00
Asumu Takikawa
1cce922d97 Add prompt tag contracts using control proxies 2012-06-11 18:18:37 -04:00
Asumu Takikawa
d527426cac Prototype implementation of control proxies 2012-06-11 18:18:37 -04:00
Matthew Flatt
82943df351 another *SL error-message repair 2012-06-12 06:02:57 +08:00
Asumu Takikawa
c108fe5c6a Fix typo in TR special form docs 2012-06-11 17:29:02 -04:00
Asumu Takikawa
c9fd4ef538 Fix docs for impersonate/chaperone-box 2012-06-11 17:28:38 -04:00
Jon Rafkind
806b3072e3 [honu] add simple syntax-parse form. add syntax-class for delaying parsing 2012-06-11 13:07:54 -06:00
Jon Rafkind
6457e69b48 [honu] support for-syntax in require 2012-06-11 13:07:53 -06:00
Jon Rafkind
fc96cb258c [honu] assignment operators cooperate with the dot operator 2012-06-11 13:07:52 -06:00
Robby Findler
c9693ab910 adjust the drracket language test suite for the new error messages 2012-06-11 14:04:05 -05:00
Robby Findler
c1aa8cb0eb clarified docs for force-package-building? 2012-06-11 01:40:37 -05:00
Robby Findler
b0607f04a9 shrink the dependencies from racket/runtime-path (remove mzscheme
and pull out the one things from mzlib/etc that it uses into a separate,
private file)
2012-06-10 13:52:00 -05:00
Robby Findler
e9ddc54b18 added the #:draw-border? argument to disk and filled-ellipse 2012-06-10 11:53:54 -05:00
Robby Findler
397f10842a export signatures from module-browser.rkt; also Rackety 2012-06-10 11:53:54 -05:00
Robby Findler
d4ab45f6c5 guard the repositories warning
closes PR 12842
2012-06-10 11:53:53 -05:00
Vincent St-Amour
948a4d6184 Missed some cases in sqrt. 2012-06-09 22:11:42 -04:00
Vincent St-Amour
c4743724cd Restore testing of sqrt and log. 2012-06-09 22:07:43 -04:00
Vincent St-Amour
53746ca0a5 Fix type of fl/ to reflect changes to /. 2012-06-09 22:07:03 -04:00
Vincent St-Amour
5d26fd10e6 Subtraction is not commutative. 2012-06-09 22:04:43 -04:00
Vincent St-Amour
442def0b0f Fix typechecking of Single-Flonum-Complex literals.
Closes PR12840.
2012-06-09 22:00:27 -04:00
Vincent St-Amour
7191ef5c74 Be more conservative about returning Float-Complex and others. 2012-06-09 21:57:01 -04:00
Vincent St-Amour
f3f5abd1f7 Improve handling of NaN in division.
Closes PR12838.
2012-06-09 21:32:37 -04:00
Neil Toronto
8f840bd07b Fixed erroneously imprecise type for +nan.f literal (now Single-Flonum-Nan)
Types for nan?, infinite?, pi.f, exact-round, exact-floor, exact-ceiling,
exact-truncate, degrees->radians, radians->degrees

Extended tc-random-testing: generates exact integers and rationals now

Fixed types of sinh, cosh and tanh to account for underflow and NaNs
2012-06-09 17:46:04 -06:00
Neil Toronto
ddeda70b20 Added to HISTORY.txt
Added (report-errs) to tests/racket/math.rktl
2012-06-09 17:46:04 -06:00
Vincent St-Amour
a89bd99e2a Fix printing of single-precision floats.
If there's already an exponent separator, replace it with f.

Closes PR12836.
2012-06-09 19:35:37 -04:00
Matthew Flatt
5caa114564 fix `print-syntax-width' for +inf.0
Closes PR 12837
2012-06-10 06:58:06 +08:00
Matthias Felleisen
6b2419f100 fixed error messages for create-world 2012-06-09 13:00:09 -04:00
Vincent St-Amour
ede83be3fb Fix docs for unsafe-flmin and unsafe-flmax.
Closes PR12826.
2012-06-09 09:20:55 -04:00
Rodolfo Henrique Carvalho
1b5069f47a Fix minor typo 2012-06-09 09:20:55 -04:00
Robby Findler
81cbb10213 fix docs for render-term
closes PR 12834
2012-06-09 07:12:15 -05:00
Stephen Bloch
c7666c5e4f In addition to providing "provide", I also provide several of its
sub-forms, most usefully "all-defined-out".
2012-06-08 19:44:48 -04:00
Matthew Flatt
815fd1b49c misc changes to speed up doc search generation
Cuts about 30% of the time on my machine.
2012-06-08 16:08:55 +08:00
Matthew Flatt
00e1ed9369 scribble: fix duplicate call to `render-element' callback
This change should cut the time to generate the search index
roughly in half.
2012-06-08 16:08:55 +08:00
Matthew Flatt
fbb6a294f3 local-expand' allows a stop list to have only module*'
That is, when the sto plist contains only `module*', core
forms are not implicitly added to the stop list.
2012-06-08 16:08:55 +08:00
Jay McCarthy
6db5672ac5 Fixes PR12767 2012-06-07 13:44:08 -06:00
Robby Findler
41a890df03 fix bug in the ->i parser (picked up the wrong identifier; wrote #'id when
id wasn't really around anywhere)

closes PR 12829
2012-06-07 10:45:18 -05:00
Vincent St-Amour
0f346601f4 Fix type of n-ary * to handle NaN properly. 2012-06-06 18:26:51 -04:00
Vincent St-Amour
48f47f3384 Fix flonum and single-flonum operation types.
Most issues were found with random testing.
2012-06-06 18:26:51 -04:00
Vincent St-Amour
0b7eaf56ca Fix generation of random floats in TR random testing. 2012-06-06 18:26:51 -04:00
Vincent St-Amour
3e9b527bd0 Fix comment. 2012-06-06 18:26:51 -04:00
Neil Toronto
b7fea6be5a Fixed contracts on exact-round, etc. 2012-06-06 16:16:52 -06:00
Asumu Takikawa
f9ec37bbdd Minor fix in mrlib/hierlist docs 2012-06-06 17:20:15 -04:00
Neil Toronto
e644e6afb1 Documented new additions to racket/math 2012-06-06 11:31:49 -06:00
Neil Toronto
b7ff3eb1fb Made sinh return zero inputs unchanged (fixes failing test case) 2012-06-06 10:52:29 -06:00
Matthew Flatt
d80a49f853 turn on DrDr testing for racket/math 2012-06-06 15:16:52 +08:00
Matthew Flatt
255e3cbe2e another *SL error-rewriting fix
Arity errors no include supplied arguments, but strip them
away for *SL messages.
2012-06-06 13:25:14 +08:00
Matthew Flatt
7a9c8e5d40 racket/gui win32: fix East Asian font problem
When the theme-specified default font has a localized name,
using it as a Pango faily name doesn't work, with the result that
text on controls could be truncated. Get a Pango-friendly
name by converting a LOGFONT to a Pango font description and
getting the name from the font description.
2012-06-06 13:25:14 +08:00
Neil Toronto
a713ca8a8b Added nan?, infinite?, degrees->radians, radians->degrees, exact-round, exact-floor, exact-ceiling, exact-truncate to racket/math
Altered TR's random arithmetic testing to generate single-flonums and very small flonums; fails now because of erroneous types

Fixes to sgn, sinh, cosh, and tanh:
 * preserve single-flonum-ness
 * correct zero sign (-0.0) for negative return values that are smaller than epsilon
 * correct behavior with NaN and infinite inputs
2012-06-05 22:40:44 -06:00
Neil Toronto
c089b2fa50 Use `collection-file-path' to load example image 2012-06-05 11:15:25 -06:00
Matthew Flatt
e44c0809e8 rewrite contract error messages for *SL
The rewrite involves parsing contract expressions and constructing
replacement prose.
2012-06-05 17:53:27 +08:00
Matthew Flatt
3742a9da8f adjust font-substitution hack for Mac OS X 2012-06-05 17:53:26 +08:00
Matthew Flatt
42db3a7516 raco setup: print "nothing to do" to stdout instead of sdterr
Printing to stderr shows through in various ways, such as
when installing a Planet package (where stdout is redirected
and stderr isn't).
2012-06-05 17:53:26 +08:00
Neil Toronto
18fa552723 Finalized and documented flomap transforms and effects 2012-06-04 15:32:17 -06:00
Sam Tobin-Hochstadt
2b9912ea9f Repair failing test case (wrong expected value). 2012-06-04 17:02:19 -04:00
Sam Tobin-Hochstadt
42a2ac6026 Document new TR aliased definitions. 2012-06-04 17:02:18 -04:00
Robby Findler
b5258e0e2b In the multi-file search window, only re-load the file
in the bottom window when it really is a different file
(ie, using a same-file predicate that involves opening
the files and comparing the ports)

closes PR 12635 (hopefully -- if not, then we can reopen)
2012-06-03 17:07:12 -05:00
Sam Tobin-Hochstadt
1801efe66a Whitespace fixes. 2012-06-03 10:50:18 -04:00
Sam Tobin-Hochstadt
cbbd889621 = can equate values with different types.
Closes PR 12804.
2012-06-03 10:50:18 -04:00
Matthew Flatt
cc0b887106 adjust *SL error-message rewriting 2012-06-03 11:09:32 +08:00
Sam Tobin-Hochstadt
8459c22c01 Improve type of identity.
Closes PR 12813.
2012-06-02 18:52:18 -04:00
Sam Tobin-Hochstadt
865a2cdcbd Support definitions of keyword functions in Typed Racket.
Caveats:
 - keyword function definitions do not define static
   bindings, thus limiting optimization opportunities
 - can't use `define:`, `lambda:`, etc with keywords
 - error messages sometimes expose the implementation
 - the optimizer skips most of the generated code for
   keyword functions definitions (user-level code is
   optimized)
2012-06-02 18:22:07 -04:00
Jon Rafkind
244f1cccb7 [honu] fix the pattern form and use quote-syntax to prevent syntaxes from being interpolated too early 2012-06-02 15:33:55 -06:00
Jon Rafkind
2b5e5c5b57 [honu] combine string-append and the evaluator 2012-06-02 15:33:54 -06:00
Jon Rafkind
7dde37bee1 [honu] cleanup - move code to submodules 2012-06-02 15:33:54 -06:00
Jon Rafkind
52047a0474 [honu] pass the original name being defined to get the proper lexical context 2012-06-02 15:33:54 -06:00
Jon Rafkind
241f8e67b4 [honu] analyze macro parameters at phase 2. temporarily break patterns 2012-06-02 15:33:54 -06:00
Jon Rafkind
d688621a18 [honu] use sandbox evaluator to test honu code 2012-06-02 15:33:54 -06:00
Matthew Flatt
c5f821b641 clarifications and additions to style guide 2012-06-03 04:50:06 +08:00
Matthew Flatt
900b66332c adjust `racket/generic' documentation style 2012-06-03 04:50:06 +08:00
Robby Findler
232188e736 adjust the check for multiple-file debugging so that it happens
earlier and thus actually catches multiple files.

Also, Rackety and change a let/cc into a let/ec.
2012-06-02 13:44:27 -05:00
Robby Findler
752f240c6a Revert "Test results from DrDr"
This reverts commit fc8cb6e37d.

Jay changed the set of installed font packages on DrDr to match the
ones on my linux VM which brought the test results back in sync again,
so we don't need these revised bitmaps anymore.

Thanks, Jay!
2012-06-02 10:12:11 -05:00
Robby Findler
058504afbd adjust datalog so that syntax objects are not used as source location
information representation.

This should make datalog work better with compiled files and it
should also avoid an O(n^2) problem in the way it expands
2012-06-02 08:04:45 -05:00
Matthew Flatt
85a2267e6c ffi/unsafe: new error message convention at primitives
Also, fix FFI procedures to preserve names: change `ptr-ref' with
`_fpointer' on an `ffi-obj' value to return the `ffi-obj'
value, so that the name in the `ffi-obj' value can be used
by `_cprocedure'.

Closes PR 12645
2012-06-01 19:03:43 -07:00
Sam Tobin-Hochstadt
c8380b94e5 Remove testing code, and failed experiment. 2012-06-01 20:08:37 -04:00
Jay McCarthy
3348ea1ae2 Fixing racklog tests broken by bf95ee105 2012-06-01 17:33:13 -06:00
Jay McCarthy
7d506713dd Fixing datalog tests broken by bf95ee105 2012-06-01 17:33:13 -06:00
Jay McCarthy
fc8cb6e37d Test results from DrDr 2012-06-01 17:33:13 -06:00
Sam Tobin-Hochstadt
a377c42357 Use the new syntax properties for checking keyword functions.
Previously, some hacks were used to obtain the internal
identifiers that implemented keyword functions directly, and
give them types at startup.  Now, the primary "function"
(eg, `sort`) is given a type, and when used, the residual
syntax properties are used to find `sort` from the real
functions, and then the type of the real function is computed
from the type of `sort`.

Some creativity was required in the types of functions which
take optional arguments that when present, alter the return type,
such as `regexp-match*` and `file->list`.
2012-06-01 18:37:02 -04:00
Sam Tobin-Hochstadt
725854f66c Flag booleans *follow* the arguments for optional keywords. 2012-06-01 14:50:39 -04:00
Eric Dobson
262ecc3da9 Redefine Boolean as (U #t #f).
Closes PR 12815.
2012-06-01 10:26:10 -04:00
Robby Findler
64e4a43c9c fix easter egg test suite for the new error messages 2012-06-01 07:16:14 -05:00
Robby Findler
bf95ee1052 Adjust datalog to cooperate with check syntax a little bit more.
Specifically:
 - make predicate symbols and variables be original (and,
   in the former case, have srclocs)
 - remove the originality in the quoted syntax constants
   that the expansion introduces

I think there is probably something better that should be done
with those introduced syntax constants, possibly relacing
them with #f, or possibly replacing them with source location
lists, but I'm not sure how they are used, so I've just left
them in there.

(Also, very minor Rackety in check syntax)
2012-06-01 04:55:04 -05:00
Robby Findler
7118547c58 adjusted the module-language, pretty-big and r5rs parts of
the drracket language test for the new error messages
2012-06-01 02:36:54 -05:00
Robby Findler
d17f93db30 add PLTJUSTSAVEFAILURES support; makes it easier to build a good
set of bitmaps on others' machines (no clicking required)
2012-05-31 23:27:02 -05:00
Eric Dobson
c2d9f7ed9a Attach struct info to constructor for polymorphic TR structs.
Closes PR 12806
2012-05-31 13:09:26 -04:00
Robby Findler
b7b566aefc adjust redex error message tests to match singular/plural fixes in
the error raising code, except in one place where I think the
error raising code was correct to have the plural form, so I changed
it back instead of changing the Redex test suite to match
2012-05-31 10:56:14 -05:00
Robby Findler
f721c0427d adjust the timeouts to two drracket tests and add a little syncronization help in a third 2012-05-31 10:56:13 -05:00
Matthew Flatt
f10a258dcb ffi/unsafe: fix arithmetic overflow and representation
Thanks to Tobias Hammer for the report and initial repairs.
2012-05-31 09:21:25 -06:00
Matthew Flatt
a7206b1a9f further correction to tests/gracket/blits prop
The test isn't automatic, so don't run it in DrDr.
2012-05-31 09:21:24 -06:00
Eric Dobson
735b84b083 Add support for multiple provides of the same identifier in TR.
Closes PR 12807.
2012-05-31 10:02:03 -04:00
Matthew Flatt
16f0b0c3f0 racket/gui: fix canvas%' implementation on-paint'
Broken in the conversion from `class100'.
2012-05-31 05:56:35 -06:00
Robby Findler
77811e0e95 Adjust how the drracket repl iterates over expressions to make it more
like textual-read-eval-print-loop

There is still a difference, however, because drracket's REPL has a
notion of multiple expressions that are submitted simultaneously that
textual-read-eval-print-loop doesn't. For example, if you type this at
the prompt:

  (car) (+ 1 2)

then textual-read-eval-print-loop will print out the error and then 3,
but drracket will print only the error (ditto if (car) were replaced
by a continuation abort).

This difference is, IMO, a good thing, since it lets you use a single
interaction to do multiple things, but stops as soon as there is an
error. (It is also how drracket has behaved for a long time.)

closes PR 12790
2012-05-30 22:31:55 -05:00
Robby Findler
daa048719a fixed a bug in the ordering of how printing parameters are set up
There was an exception raised and then handled internally when the
slideshow/pict-convert library was loaded; DrRacket loaded this
library during the dynamic-extent of a handler it installed into
the global-port-print-handler, which causes a (non-tail) infinite
loop.
2012-05-30 22:31:55 -05:00
Robby Findler
37ebbfa635 adjust global-port-print-handler's documented contract to match
what it does (and what the text says)
2012-05-30 22:31:55 -05:00
Robby Findler
efd6772e9a adjust repl-test and the module language test for the new error message format 2012-05-30 22:31:54 -05:00
Neil Toronto
331b3b8351 Fixed some transforms, stubbed out docs and examples for the same 2012-05-30 17:31:57 -06:00
Matthew Flatt
e8645598d7 futures: fix bug related to tail calls 2012-05-30 16:20:36 -06:00
Neil Toronto
91579f2a6e Now make-flomap* and effects functions accept (U (Vectorof Real) FlVector) for color instead of just FlVector
New vector-of-component functions: unsafe-flomap-ref*, flomap-ref*, flomap-bilinear-ref*, build-flomap*, inline-build-flomap*;
REPL interaction with -ref* is a bit weird - still need to make flvectors print nicely

Bilinear ref and scaling fix on top and left borders (bad/missing special cases);
Clarified flomap-bilinear-ref docs on extent of interpolated nonzero rectangle

Various doc fixes
2012-05-30 15:05:00 -06:00
Vincent St-Amour
4ad700021b Improve some Performance Report messages. 2012-05-30 16:25:33 -04:00
Vincent St-Amour
84c6fe1522 Don't index some subsubsections of the text editor docs.
Closes PR 12801.
2012-05-30 16:25:33 -04:00
Neil Toronto
c05c45e0e9 Fixed whirl morph test 2012-05-29 18:08:48 -06:00
Neil Toronto
c7bea1dfcd images/flomap: public interface to floating-point bitmaps used by ray tracer 2012-05-29 17:51:19 -06:00
Justin Slepak
2f23f1b6b3 Allow vector-append to take zero arguments
Makes vector-append behave more like append, sequence-append, etc.
2012-05-29 16:56:38 -04:00
Matthew Flatt
74844152bc fix load handlers to match docs on parameters
Problems exposed by setting `read-accept-lang' to #f.
2012-05-29 13:57:32 -06:00
Matthew Flatt
a95739821b fix props for one test 2012-05-29 13:57:32 -06:00
Matthew Flatt
e9070f89c7 terminology correction 2012-05-29 13:57:32 -06:00
Jay McCarthy
50ca12201d Fixing 482214e 2012-05-29 13:39:37 -06:00
Jay McCarthy
4f8e1df169 Fixing error introduced by 9e7548de 2012-05-29 13:39:37 -06:00
Jay McCarthy
38ae869d66 Fixing error introduced by 9e7548de 2012-05-29 13:39:37 -06:00
Jay McCarthy
4d829b8322 Fixes PR12799, but it would be cool to support syntax/parse directly 2012-05-29 13:39:37 -06:00
Matthew Flatt
248301c9ed disable nested `#lang'
A `syntax/module-reader' reader disables `#lang' when looping to
read a module body. The HtDP languages require a little additional
treatment.
2012-05-29 11:01:52 -06:00
Matthew Flatt
def4da4f9a doc fix
Closes PR 12796
2012-05-29 11:01:52 -06:00
Matthew Flatt
26269c329e racket/base: add some missing predicates
The new predicates are `progress-evt?' `thread-cell-values?',
`prefab-key?', `semaphore-peek-evt?', and `channel-put-evt?'.
These were used internally, and now they appear in contract
error messages.
2012-05-29 11:01:52 -06:00
Matthew Flatt
b098ca7aa6 slideshow: run a slideshow' or main' submodule, if any
A common Slideshow pattern is to put a subset of slides in its
own module with a `run-slides' function, and then you'd
(un)comment a `(run-slides)' call at the end of the module to
work on the subset by itself. Now, you can write
`(module+ main (run-slides))' atthe end of the module and not
have to comment it out. Adding `main' support to the `slideshow'
executable makes it more consistent with using `racket' directly.
Checking first for a `slideshow' submodule makes it possible
for `slideshow' and `racket' to do different things, in case
that's useful.
2012-05-29 11:00:43 -06:00
Matthew Flatt
0c303ca9cd racket/cmdline add `#:ps' clause 2012-05-29 11:00:43 -06:00
Matthias Felleisen
f1c1376d87 added 'range' to *sl per jpr's request and #lang-ified a couple of files 2012-05-29 12:00:27 -04:00
Matthew Flatt
2fcb635790 raco exe: checks on source and destination paths
Disallow creating a launcher whose source is the launcher itself,
for example.
2012-05-28 20:30:58 -06:00
Matthew Flatt
6fded4bac1 syntax/free-vars: fix quadratic behavior
(Forgot to fix the "FIXME" before committing last time.)
2012-05-28 20:22:31 -06:00
Matthew Flatt
ee93e35260 syntax/free-vars: deterministic result order
Closes PR 12798
2012-05-28 20:15:43 -06:00
Jay McCarthy
211e869fe1 Supporting methods in web-server/dispatch 2012-05-28 14:13:19 -06:00
Jay McCarthy
8b035f3c73 Fixing PR12779 2012-05-28 11:52:56 -06:00
Jay McCarthy
391754a337 Fixing commit message display re newlines re Robby 2012-05-28 11:52:56 -06:00
Jay McCarthy
c75360957c Attempt to clarify docs for PR12793 2012-05-28 11:52:56 -06:00
Robby Findler
e08c1f3ad1 adjust and add "docs" to img-eval.rkt for Matthias's consumption 2012-05-28 10:58:40 -05:00
Matthew Flatt
99635ab091 change `impersonate-struct' to require evidence that a field is mutable
When supplying an accessor to redirect, either the corresponding field
must be accessible through the current inspector, or a mutator for
the same field must be redirected, too.

Stevie realized that we need this constraint; otherwise, impersonators
can implement mutator-like behavior even when the mutator is otherwise
secret.
2012-05-27 15:37:45 -06:00
Matthew Flatt
73ce5a4767 racket/serialize: fix for submodules
Closes PR 12795
2012-05-27 14:39:51 -06:00
Matthew Flatt
a137459b65 more error-message conversions and repairs 2012-05-27 11:29:21 -06:00
Matthew Flatt
6eeb8fccbd more error-message conversion 2012-05-27 09:03:19 -06:00
Matthew Flatt
00ef7da640 racket/draw: background and text colors in `record-dc%'
Also, improve docs to clarify how the recorded settings interact with
the target DC's settings.
2012-05-27 06:38:30 -06:00
Matthew Flatt
8ab87a9fcc racket/class: new error message convention 2012-05-26 21:08:21 -06:00
Robby Findler
0456d5e4e5 exploit record-dc% to keep picts from drawing outside
of their bounding boxes
2012-05-26 21:39:11 -05:00
Matthew Flatt
a55a20f9d9 sgl/gl: NURBS additions
From Antonio Menezes Leitao based on Ben Goetter's implementation
2012-05-26 19:55:21 -06:00
Matthew Flatt
58db5f8b46 racket/gui: implement set-clipboard-bitmap' in clipboard<%>'
Closes PR 12689

Cocoa implementation provided by Jens Axel Søgaard
2012-05-26 19:42:48 -06:00
Asumu Takikawa
8a52613463 racket/gui: remove empty modules 2012-05-26 16:45:00 -04:00
Asumu Takikawa
a38e6a19ab racket/gui: fix a mzscheme->racket/base issue 2012-05-26 16:23:30 -04:00
Asumu Takikawa
81d13ee7ed racket/generic: doc improvements 2012-05-26 13:53:43 -04:00
Asumu Takikawa
05394aff7e Remove mred/private/kw.rkt
This handled init argument inheritance for class100, but
all uses of it have now been removed.
2012-05-26 11:12:56 -04:00
Asumu Takikawa
cfe1711494 Convert all uses of mzlib/class100 to racket/class 2012-05-26 11:12:55 -04:00
Asumu Takikawa
6341fe7e01 Remove gracket test that does not run.
The file is written in mzscheme or pre-mzscheme and
tries to load files that no longer exist.
2012-05-26 11:12:55 -04:00
Vincent St-Amour
3062efe47f Reduce random testing attemps to avoid DrDr timeouts. 2012-05-26 11:06:29 -04:00
Matthew Flatt
b5ab6cec7e fix misc tests for error-message change 2012-05-26 08:18:19 -06:00
Matthew Flatt
413c940fe6 update HtDP *SL tests for revised error-message convention
This change does not yet update the *SL error-message rewriter
to recognize the new error-message formats; the tests do not
currently use the rewriter. A next step is to decide on the
rewritings, implement them, change the test suite to use the
rewriter, and test the rewritings.
2012-05-26 08:05:12 -06:00
Matthew Flatt
5b80fd37c7 racket/gui win32: fix screen info to not assume main is first
Thanks to Kieron Hardy for tracking down the problem.
2012-05-26 07:38:24 -06:00
Matthew Flatt
09cb2a348f ffi/com: add 'variant type description
Used to prevent extra array dimensions and instead construct nested
arrays.
2012-05-26 06:38:02 -06:00
Matthew Flatt
b7a8c0185b correct a `raise-argument-error' conversion mistake 2012-05-25 18:37:29 -06:00
Matthew Flatt
f00c1150fe adjust `raco setup' replay of exception messages to handle multiple lines 2012-05-25 18:37:29 -06:00
Matthew Flatt
d6774d5d54 racket/sandbox: add sandbox-propagate-exceptions 2012-05-25 18:37:29 -06:00
Vincent St-Amour
263016f6f3 Fix types in the images collection to work with TR's handling of NaN. 2012-05-25 17:15:22 -04:00
Vincent St-Amour
142158c0cb Add random testing script for float types. 2012-05-25 17:15:22 -04:00
Vincent St-Amour
186b463217 Fix NaN and inf handling in flonum specific op types. 2012-05-25 17:15:22 -04:00
Vincent St-Amour
ebcc6d211a Fix handling of NaN and infinities.
Most of these were found through random testing.
2012-05-25 17:15:22 -04:00
Vincent St-Amour
b6a7a0c505 Add reminder that unsafe-flexpt is currently the same as flexpt. 2012-05-25 17:15:22 -04:00
Matthew Flatt
9e7548de61 new error message convention
Add `raise-argument-error', `raise-result-error', `raise-arguments-error',
and `raise-range-error'.

The old convention was designed for reporting on a single (sometimes very
long line). The new convention is

 <name>: <short message>
   <field>: <detail>
   ...

If <detail> is long or itself spans multiple lines, then it may
also use the form

   <field>:
    <detail>

where each line of <detail> is indented by 3 spaces.

Backtrace information is shown as a multi-line "context" field.
2012-05-25 15:08:05 -06:00
Matthew Flatt
9b7ef7bf69 scribble/eval: fix error line wrapping
The `wrap-line' function from `scribble/text/wrap' wants a
string that's a single line, so break the initial string
based on explicit lines, first.
2012-05-25 12:47:39 -06:00
Matthew Flatt
e334632ffc slideshow/pict: fix clipping problem with `standard-fish' 2012-05-25 12:47:39 -06:00
Robby Findler
7156b0391b fix the contract context messages for the case of ->*'s #:rest arguments 2012-05-25 09:14:09 -05:00
Neil Toronto
eeb3da0c23 Changed macros into functions + begin-encourage-inline; drops a few seconds from `images' compile, no measured performance penalty 2012-05-25 14:16:19 +09:00
Neil Toronto
50ad8dac1f When plot-new-window?' is #t, plot' and `plot3d' now create a frame in a new eventspace. This allows plot frames to be displayed programmatically. (Without this change, the frames are unresponsive until the REPL regains control.) 2012-05-25 13:11:46 +09:00
Neil Toronto
ee95182386 Made (require plot) more obvious in the plot introduction (suggested by Jens Axel Søgaard)
Mentioned (plot-new-window? #t) early in the introduction

Increased drdr:timeout for plot.scrbl
2012-05-25 11:33:50 +09:00
Neil Toronto
365ee2c70d 1d, 2d and 3d function renderers no longer sample outside the function's bounds
This makes it more efficient to plot piecewise functions by drawing each piece with one renderer, and possible to plot functions with discontinuities by using a renderer to draw each continuous piece.
2012-05-25 10:40:05 +09:00
Vincent St-Amour
cee88f05dd Docs for gen:custom-write. 2012-05-24 16:51:14 -04:00
Vincent St-Amour
13b82e9a59 Reorder docs. 2012-05-24 16:51:14 -04:00
Asumu Takikawa
a22633e348 Rename generics => generic. 2012-05-24 16:51:14 -04:00
Vincent St-Amour
11dc825126 Forge gen:equal+hash and gen:custom-write to provide them from racket/base. 2012-05-24 16:51:13 -04:00
Vincent St-Amour
c21813cebf Add gen:custom-write.
No docs yet.
2012-05-24 16:51:13 -04:00
Vincent St-Amour
3210cd1d12 Remove vestigial set of parens and fix docs for new syntax. 2012-05-24 16:51:12 -04:00
Vincent St-Amour
94bd484a66 Resolve collision between class generics and struct generics. 2012-05-24 16:51:12 -04:00
Vincent St-Amour
02055aa1b3 Add remark about auxiliary definitions in method blocks. 2012-05-24 16:51:12 -04:00
Vincent St-Amour
dd05d6e6bc Make original generics tests quiet. 2012-05-24 16:51:11 -04:00
Vincent St-Amour
f42ae56893 Trailing whitespace. 2012-05-24 16:51:11 -04:00
Vincent St-Amour
390cd02b52 Have a generic interface for equal+hash.
Currently provided by racket/struct, for lack of a better place.
2012-05-24 16:51:11 -04:00
Vincent St-Amour
cc7ae795ea Remove the coercion function code.
Didn't turn out to be useful.
2012-05-24 16:51:10 -04:00
Asumu Takikawa
44783b9f8e Add tests from unstable/generics. 2012-05-24 16:51:10 -04:00
Asumu Takikawa
8ac82eaf58 Use simplified interface for define-generics
Also removed `generics`
2012-05-24 16:51:09 -04:00
Vincent St-Amour
f11861f60a Have method definitions be its own keyword in the struct form.
Struct properties are hidden from users.
2012-05-24 16:51:08 -04:00
Vincent St-Amour
3bfaa2b00b New naming convention for generics names. 2012-05-24 16:51:07 -04:00
Asumu Takikawa
f866e34b26 Expand documentation on sequence/stream extension 2012-05-24 16:51:06 -04:00
Vincent St-Amour
08cd358300 Add iterators as tests for generics.
Equivalent to streams, so not useful to provide.
2012-05-24 16:50:46 -04:00
Asumu Takikawa
ec2563fdd3 Add comment about coerce-method-table 2012-05-24 16:50:45 -04:00
Vincent St-Amour
1a42772c02 props 2012-05-24 16:50:45 -04:00
Asumu Takikawa
3a93df5566 Use racket/generics for extensions to racket/stream 2012-05-24 16:50:44 -04:00
Vincent St-Amour
0b0473d228 Allow generics to be attached to existing struct properties. 2012-05-24 16:50:44 -04:00
Vincent St-Amour
991cb5f371 Hide #:coerce-method-table from the public generics API. 2012-05-24 16:50:43 -04:00
Vincent St-Amour
8997379f35 Split interface and implementation of the generics library. 2012-05-24 16:50:43 -04:00
Vincent St-Amour
d5de436b9c Add a pointer to generics in the struct property docs. 2012-05-24 16:50:42 -04:00
Vincent St-Amour
448ad27a37 Move generics to racket/generics.
After discussion with Eli.
2012-05-24 16:50:42 -04:00
Vincent St-Amour
1180a95c60 props 2012-05-24 16:31:32 -04:00
Vincent St-Amour
e7e66ce41c Implement coercion for method tables.
For backwards compatiblity, method tables can be generated from old APIs.
2012-05-24 16:31:32 -04:00
Vincent St-Amour
a68242e4eb Implement ordered dicts in terms of generics. 2012-05-24 16:31:32 -04:00
Vincent St-Amour
17bb9073b9 Document new dict extensibility API. 2012-05-24 16:31:32 -04:00
Vincent St-Amour
ff416ca2ac Remove dead code in racket/private/dict. 2012-05-24 16:31:32 -04:00
Vincent St-Amour
1ec2bc0ea4 Add tests for generics. 2012-05-24 16:31:31 -04:00
Vincent St-Amour
c29a65485e Update generic docs to explain the optional defined-table argument. 2012-05-24 16:31:31 -04:00
Vincent St-Amour
36980c262f unstable/generics: define-methods' -> methods'
`define-methods' is a bad name for an expression form.
2012-05-24 16:31:31 -04:00
Asumu Takikawa
e4a3001af6 Reimplement racket/dict using generics. 2012-05-24 16:31:31 -04:00
Asumu Takikawa
e3b7640528 Let provider of generics check if a method exists
This change adds an additional argument to define-generics
that binds a procedure to check if a given method is defined
for an instance of the generic.
2012-05-24 16:25:09 -04:00
Asumu Takikawa
518bf0fd30 Move unstable/generics to generics. 2012-05-24 16:25:09 -04:00
Eli Barzilay
a3ad719b52 Leftover file that wasn't added with the `tests/profile' refactoring. 2012-05-24 11:53:03 -04:00
Eli Barzilay
8fc49d41cf Improved bash completion script.
Warning: I tried a bunch of things and it looks like it works, but I'm
not using bash regularly so there might be some problems in this.
Committing by request of the bashers.

It would still need some work to make it work as (I think) was intended.
For example _find_exe() should be used to find the current executable
when completing, but it's used at the toplevel.
2012-05-24 11:48:35 -04:00
Eli Barzilay
6260b4c239 Streamline more test suits. 2012-05-24 11:27:13 -04:00
Eli Barzilay
482214e053 Skip some "tests/*/main.rkt" in drdr.
These files are invoking tests that are implemented in other files.
2012-05-24 10:52:00 -04:00
Eli Barzilay
f55eba70c0 Just have string-replace' now, with an #:all?' keyword (defaulting to #t). 2012-05-24 10:40:20 -04:00
Eli Barzilay
37a1c0af91 Add string-replace' and string-replace*'.
Committed as a checkpoint, since I convinced myself that a single
function with a keyword is better, given that the rest of the simplified
functions operate on the whole string.
2012-05-24 10:40:20 -04:00
Eli Barzilay
784857e9fa Add `string-split'. 2012-05-24 10:40:20 -04:00
Eli Barzilay
dcf2754a57 Clarify `regexp-split' on an empty input.
The text that says that (regexp-split #rx"whatever" "") returns '("")
rather than '() is

  If `input' contains no matches [...] the result is a list containing
  input’s content [...] as a single element.

This is a little implicit, if you consider such an input as having
nothing left to match over so it's as if there is no input (with a port
this confusion is a little clearer).

Clarify with an example in the docs, and also add tests.
2012-05-24 10:40:20 -04:00
Eli Barzilay
6318df82e5 Drop the now-redundant " " argument from existing uses of `string-join'. 2012-05-24 10:40:20 -04:00
Eli Barzilay
29beae55c1 Redo string-trim' and string-normalize-spaces'.
This is following the mailing list discussion.  In addition get
`string-join' more in-line with these by making its `sep' argument
default to a space.
2012-05-24 10:40:20 -04:00
Asumu Takikawa
abf9223203 TR: Fix type-checking of hash literals. 2012-05-23 15:49:38 -04:00
Asumu Takikawa
94545a7cd7 Fix doc breakage.
`abstract` from racket/class conflicted with `abstract`
in scribble paper modules.
2012-05-22 19:55:44 -04:00
Asumu Takikawa
9400432903 Fix class construction bug introduced by abstracts
Merging changes with interface contracts introduced
a bug due to a missing argument to class-make.
2012-05-22 18:34:45 -04:00
Asumu Takikawa
150548dc78 Better error message for abstract classes. 2012-05-22 16:00:54 -04:00
Asumu Takikawa
f4f6f8c52c For abstracts, the super method just calls void.
Since mixins rely on super calls to possibly abstract
methods, we want to ensure that the super call will not
error when it gets to an abstract method. However,
external method calls should still raise an error for
abstract methods.
2012-05-22 16:00:42 -04:00
Asumu Takikawa
11c589af31 Put dummy method for abstracts in the right place.
Also, the dummy method should be variadic.
2012-05-22 16:00:41 -04:00
Asumu Takikawa
6059c51b56 Don't allow internal names for abstract methods. 2012-05-22 15:59:17 -04:00
Asumu Takikawa
b50a2c7518 Add documentation for abstract clause. 2012-05-22 15:59:16 -04:00
Asumu Takikawa
ef3abb3a72 Add tests for abstract methods. 2012-05-22 15:59:16 -04:00
Asumu Takikawa
06091079b1 Add abstract methods to the class system. 2012-05-22 15:58:26 -04:00
Asumu Takikawa
be9faeac65 Minor fix in Guide section on contracts
Reported by Shambles
2012-05-22 10:50:46 -04:00
Matthew Flatt
9bdb47bba0 racket/draw: fix bad interaction of path drawing and gradient brushes 2012-05-22 06:20:54 -04:00