Commit Graph

30195 Commits

Author SHA1 Message Date
Jay McCarthy
857cdfce64 Fixing PR13748 2013-05-20 15:47:14 -06:00
Matthew Flatt
a48154a665 fix problem in `free-identifier=?'
Renamings created by a rename-transformer binding were not treated
correctly by `free-identifier=?'.

Closes PR 12623
2013-05-20 14:36:54 -06:00
Matthew Flatt
f225eedc24 minor doc fixes 2013-05-20 14:36:54 -06:00
Matthew Flatt
d45009bc90 fixups for pict' and slideshow' docs 2013-05-20 14:36:54 -06:00
Asumu Takikawa
1f5b262f6d Add a #:verbose option to :type.
This prints the old way, expanding all aliases inside the type.
2013-05-20 16:14:23 -04:00
Asumu Takikawa
fd33584b6f Cut off type printing with :type at one level
Makes types print nicer with :type in most cases.
Previously, the printer expanded type aliases as much
as possible. Now, it defaults to a single level of expansion.
A later commit adds a #:verbose option to show the entire
type.
2013-05-20 16:14:14 -04:00
Jay McCarthy
bd2d17e653 Fixing error in GC1 found by Mark Engelberg, but fixed in GC2 2013-05-20 12:47:12 -06:00
Robby Findler
d381eb5051 dont draw the lime green bubbles for imported identifiers
One problem with commit 299063d7c1
is that the new method for computing the lime green arrows no
longer has the information necessary to distinguish different
identifiers that come from the same require.

This means that, before this commit, mousing over an imported
identifier can be a real interactivity killer. So, instead of
adding more information to distinguish those ids, lets just
try not draw the lime green bubbles for imported identifiers
and see how that feels
2013-05-20 10:47:34 -05:00
Robby Findler
0ca35b1f6a automate some overlapping identifier tests 2013-05-20 10:47:02 -05:00
Robby Findler
3faf75bd72 should have been part of 299063d 2013-05-19 21:21:41 -05:00
Robby Findler
299063d7c1 Adjusted check syntax to properly deal with different identifiers
that have overlapping ranges in the editor; also got rid of the
id-set stuff

Getting rid of the id-set information that was computed means that now
the mouse-over green bubbles, the "jump to next binding occurrence"/
"jump to bound occurrence" keybindings/menu items, and the renaming
are all being computed from the arrows information as needed, instead
of building up sets as check syntax collects information. This may
change the way Check Syntax behaves in some cases; so far the only
example I've found has been strange and are arguably for the
better. Specifically, this program

  (define-syntax-rule (m x) (λ (x) x)) (m z)

no longer draws a green bubble when you mouse over the "z", since
there are no arrows (the only arrow that might have been drawn is
discarded since its start and end points are the same place).

This speeds up the "analyze the expanded code" phase of check syntax,
making it approximately 1.6x faster than before (going from about 31
seconds to about 19 seconds for this phase for the
drracket/private/unit.rkt file (on my machine)). Also, the replay
phase is probably a bit faster now, tho, too: there were 1.07x fewer
elements to process in the trace that comes back from online check
syntax now for that same file (33063 to 30842)

Note that this is only that one phase: this doesn't count the time to
actually expand the program (the dark blue bubble phase) nor the time
to send the results between places, nor the time to replay the
collected information (the light purple bubble phase).
2013-05-19 20:30:37 -05:00
Asumu Takikawa
3eb4a75613 Fix parsing of (Struct ...) types.
This was a regression that appeared in 5.3.1
2013-05-19 20:32:32 -04:00
Asumu Takikawa
d9102ac7e7 Fix racket/draw doc typo 2013-05-19 19:40:41 -04:00
Mike Sperber
dcaf652cdd Synch German string constants with latest. 2013-05-18 20:06:12 +02:00
Ryan Culpepper
fe4e94184e fix call-with-transaction error (disconnected rollback)
Also, clarify in docs that break causes disconnect.
2013-05-18 11:25:10 -04:00
Robby Findler
7eaa072524 fix srcloc-missing-from-exn bug in struct/dc 2013-05-18 10:12:38 -05:00
Asumu Takikawa
c2672dd6c9 Clean up unit tests
Remove #; comments because they break paredit. Enable some
commented tests that should pass.
2013-05-18 10:17:50 -04:00
Carl Eastlund
11c4c72c52 Fixed problems with collects/meta/props.
- combined drdr:random properties for collects/tests/racket/stress
- removed properties for src/build/{make,make-install,configure}
2013-05-18 04:17:55 -04:00
Carl Eastlund
29e7be5dd9 Set drdr:random property for files with nondeterministic output.
- src/build/make-install: nondeterministic job order
- src/build/make: nondeterministic job order
- src/build/configure: "checking for x86 cpuid 1 output... " line varies
- collects/tests/zo-size.rkt: file sizes
- collects/tests/unstable/temp-c/ttt-players.rkt: random
- collects/tests/unstable/temp-c/ttt-bench.rkt: timing
- collects/tests/unstable/temp-c/id-bench.rkt: timing
- collects/tests/unstable/temp-c/bench.rkt: timing
- collects/tests/unstable/temp-c/bench-affine.rkt: timing
- collects/tests/typed-racket/tr-random-testing.rkt: random
- collects/tests/racket/will.rktl: current-memory-use
- collects/tests/racket/threadlib.rktl: nondeterministic threads
- collects/tests/racket/syntax-tests.rktl: file-or-directory-modify-seconds
- collects/tests/racket/subprocess.rktl: process ids
- collects/tests/racket/submodule.rktl: temporary file names
- collects/tests/racket/stx.rktl: temporary file names
- collects/tests/racket/structlib.rktl: current-seconds
- collects/tests/racket/stress/vector.rkt: timing
- collects/tests/racket/stress/sequence.rkt: timing
- collects/tests/racket/stress/mpfr-ffi-call-vs-racket.rkt: timing
- collects/tests/racket/stress/module-stack.rkt: vector-set-performance-stats!
- collects/tests/racket/stress/hash.rkt: timing
- collects/tests/racket/stress/fuzz.rkt: random
- collects/tests/racket/stress/dict.rkt: timing
- collects/tests/racket/stress/apply.rkt: timing
- collects/tests/racket/sp.rktl: process ids
- collects/tests/racket/setup.rktl: temporary file names
- collects/tests/racket/serialize.rktl: current-seconds and temporary file names
- collects/tests/racket/sequence.rktl: random
- collects/tests/racket/runaway-place.rkt: nondeterministic output interleaving
- collects/tests/racket/resource.rktl: temporary file names
- collects/tests/racket/prompt-sfs.rkt: current-memory-use and dump-memory-stats
- collects/tests/racket/place-channel.rkt: nondeterministic places
- collects/tests/racket/place-channel-socket.rkt: unpredictable port number
- collects/tests/racket/place-channel-fd.rkt: unpredictable port number
- collects/tests/racket/parallel-build.rkt: temporary file names
- collects/tests/racket/package-gen.rktl: random
- collects/tests/racket/pack.rktl: temporary file names
- collects/tests/racket/module.rktl: temporary file names
- collects/tests/racket/iostream.rktl: timing
- collects/tests/racket/format.rkt: random
- collects/tests/racket/foreign-test.rktl: pointer addresses
- collects/tests/racket/fixnum.rktl: random
- collects/tests/racket/date.rktl: current-seconds
- collects/tests/racket/cm.rktl: file-or-directory-modify-seconds
- collects/tests/racket/benchmarks/shootout/chameneos.rkt: nondeterministic threads
- collects/tests/racket/benchmarks/shootout/auto.rkt: timing
- collects/tests/racket/benchmarks/rx/auto.rkt: timing
- collects/tests/racket/benchmarks/common/auto.rkt: timing
- collects/tests/racket/basic.rktl: random
- collects/tests/planet/run-all.rkt: nondeterministic job order
- collects/tests/openssl/basic.rkt: nondeterministic threads
- collects/tests/net/stress/websocket.rkt: timing
- collects/tests/gracket/draw-mem.rkt: current-memory-use
- collects/tests/future/timing-test.rkt: timing
- collects/tests/future/random-future.rkt: random
- collects/tests/frtime/time.rkt: seconds
- collects/tests/drracket/example-tool.rkt: temporary file names
- collects/redex/tests/ryr-test.rkt: temporary file names
- collects/redex/examples/delim-cont/randomized-tests.rkt: random
- collects/math/tests/bigfloat-custodian.rkt: random
- collects/2htdp/tests/struct-universe.rkt: nondeterministic parallel worlds
2013-05-18 00:04:44 -04:00
Carl Eastlund
9ad73bc1e7 Gave collects/meta/check-dists more time when run by DrDr. 2013-05-18 00:04:44 -04:00
Burke Fetscher
4d9cce823b fix docs for redex-generator 2013-05-17 15:26:38 -05:00
Carl Eastlund
4aed0897a2 Fixed collects/meta/props so that `props verify' runs without error. 2013-05-17 11:15:21 -04:00
Carl Eastlund
e707d6e7b3 Fixed in-generator's handling of arity zero.
Also combined expansion of in-generator for both expression and sequence
contexts, and made a number of places that were handling arity dynamically
to handle it statically instead.
2013-05-17 07:59:09 -04:00
Asumu Takikawa
23d39a9968 Fix regression for (begin) and simplify 2013-05-17 00:33:10 -04:00
Asumu Takikawa
4a3b8cdfc4 Add examples for for/lists 2013-05-17 00:21:54 -04:00
Asumu Takikawa
d7f29d3636 Avoid doing the 2nd pass twice at the top-level
Thanks to Eric for pointing this out.
2013-05-17 00:02:06 -04:00
Burke Fetscher
d001abc5dd Redex: fix a small bug in the list-machine example 2013-05-16 17:39:25 -05:00
James Swaine
a8d981230c Make sure the Redex pattern language's 'boolean' is rendered as a nonterminal 2013-05-16 16:17:04 -05:00
Matthew Flatt
198a65a5fc raco pkg create: support "source" and "binary" bundling
Adds `--from-dir' and `--from-install' flags to select the interpretation
of the argument as a directory or as the name of an installed package.
Relevant to PR 13669

Adds `--as-is' (the default), `--source', and `--binary' flags to
select a pruning mode.

The `raco setup' tool recognizes a `rendered-scribblings' specification
in "info.rkt" to trigger moving rendered documentation into place,
registering its tags in the cross-reference database, and fixing up
references to "local-redirect.js"; the presence of a "synced.rktd"
indicates when those fixups have been performed (since, if the package
is installed in a user-specific scope, the documentation doesn't actually
move anywhere). Finally, "out<n>.sxref" needs to report paths relative to
the documentation's directory, and then the relative-directory references
need to be suitably resolved at derserialization; some support for such
relative paths was in place, but it wasn't quite general enough before.
2013-05-16 11:50:04 -06:00
Matthew Flatt
7c0ab55cbc scribble HTML rendering: unreserved-encode "on this page" links
In other words, replace "(...)" with "%28...%29" in links.
2013-05-16 11:04:23 -06:00
Matthew Flatt
967021ca63 scribble/base: handle special characters in URLs
For characters in the URL that give LaTeX trouble, convert
them to % encoding.
2013-05-16 11:04:23 -06:00
Matthew Flatt
f97a7cf177 libpng adjustment
Keep error if no "libpng" is found.
2013-05-16 11:04:23 -06:00
Matthew Flatt
332c863e78 raco pkg: don't treat "info.rkt" as a conflict
Even though "info.rkt" files are in collections, `raco setup'
treats them in a directory-specific way --- and that's necessary
for specifying things like `compile-omit-files' in a collection
splice.
2013-05-16 11:04:23 -06:00
Robby Findler
f364871e7c Redex docs edits to be more precise about picts (versus just slideshow) 2013-05-16 07:21:11 -05:00
Robby Findler
e768461b72 adjust generate-term docs a little
move the examples into the itemized list and include judgment-form
and enumeration examples
2013-05-16 07:18:24 -05:00
Eric Dobson
f332affa5a Massive cleanup of requriements in TR. 2013-05-15 23:18:29 -07:00
Eric Dobson
4fcda73adf Clean up lam-result.
Make drest a list instead of a pair, replace an int-err with a match error
which has source location, and remove static name for rest argument in error
case.
2013-05-15 21:12:54 -07:00
Matthew Flatt
5629a6156a support libpng16 2013-05-15 20:30:46 -06:00
Asumu Takikawa
a3d4305dda Fix framework doc typo 2013-05-15 21:03:42 -04:00
Matthew Flatt
d350869d10 fix thread-creation problem
When starting a thread, the thread was created and partially
initialized before trying to get a name for the thread from the given
thunk, but getting a name for the thunk could trigger scheduler
descisions, which could get confused by the partially initialized
thread.
2013-05-15 09:18:46 -06:00
Robby Findler
a0c9dfd54e make contract-out signal more errors in terms of itself
instead of provide/contract

closes PR 13752
2013-05-15 09:43:04 -05:00
Robby Findler
c981c55768 adjust contract test suite to do more provide/contract => contract-out
rewriting in order to test contract-out more
2013-05-15 09:43:03 -05:00
Asumu Takikawa
09cf079453 Whitespace and comment fixes 2013-05-14 15:25:44 -04:00
Asumu Takikawa
e0cff038c8 Refactor to reduce right-ward drift 2013-05-14 15:25:44 -04:00
Asumu Takikawa
67beb11cf6 Make require/typed work at top-level
Closes PR 13747
2013-05-14 15:25:43 -04:00
Asumu Takikawa
2c042998b9 Fix tc-toplevel-form for ignored syntax 2013-05-14 15:25:43 -04:00
Asumu Takikawa
3651974c6e Add more syntax examples to the reference 2013-05-14 15:25:43 -04:00
Vincent St-Amour
ab5075bc76 Fix test for TR's for source locations. 2013-05-14 12:04:15 -04:00
Vincent St-Amour
ce59724778 Log sequence specialization failures in `for' loops.
Using this logging, Optimization Coach can recommend adding `in-list'
and co. to `for' loops in hot code.
2013-05-14 11:47:34 -04:00
Vincent St-Amour
8638a661cc Fix source locations for TR for. 2013-05-14 10:35:19 -04:00