Commit Graph

29066 Commits

Author SHA1 Message Date
Robby Findler
c98f757d15 correct augment/override confusion in docs 2013-05-22 21:31:24 -05:00
Robby Findler
6596df6e97 add boolean to the set of things that redex's random generator
will generate for the any pattern
2013-05-22 21:31:23 -05:00
Eli Barzilay
9c4a009b1a Typo in error.
Fixes PR13769.
2013-05-22 14:10:05 -04:00
Eli Barzilay
a97181f024 Protect strings from regexps.
Fixes PR13768.
2013-05-22 13:19:13 -04:00
Eli Barzilay
c2280ed8dc Misc improvements to `net/uri-codec'.
Fix a bug in encoding strings with characters between 128 and 256, avoid
extra bindings for conversion vectors; remove calling `noels-tests' from
`main' since it's already called from `tests', etc.
2013-05-22 13:19:12 -04:00
Eli Barzilay
f16184d69f Update the instructions on configuring git's push.default. 2013-05-22 13:19:12 -04:00
Asumu Takikawa
a40a1341f6 Document :type better 2013-05-22 09:31:37 -04:00
Jay McCarthy
20a9660f11 Don't check name if not given 2013-05-22 07:20:20 -06:00
Jay McCarthy
a3d791495c Use random for changes 2013-05-22 07:20:19 -06:00
Jay McCarthy
7cc4488c56 indent 2013-05-22 07:20:19 -06:00
Robby Findler
f79c93f74a Re-enable redex's overlapping arrows src loc information
This reverts commit e5a84eff8d.
and also uses the property 'original-for-check-syntax
2013-05-21 18:45:25 -05:00
Robby Findler
d51f6982e2 remove now-redundant tests 2013-05-21 18:45:25 -05:00
Asumu Takikawa
3f0704dcac Fix alarm-evt doc typo 2013-05-21 18:34:05 -04:00
Asumu Takikawa
34aeaee672 Expend printing fuel in all branches
This makes (:type (Number -> Integer)) produce
(Number -> Integer) instead of expanding at the first name.
Combined with expansion cues, this makes it easier for users
to expand the relevant parts of types.
2013-05-21 11:19:49 -04:00
Asumu Takikawa
19c5d3eaad Cue user about unexpanded type aliases
This tells the user that more type aliases are
available for expansion. For example, (Listof Number)
has the alias Number still unexpanded into the union
that it represents.
2013-05-21 11:19:02 -04:00
Jay McCarthy
518c09d52b Fixes PR13750 2013-05-21 06:21:15 -06:00
Robby Findler
d1fb3e2c17 fix object/c's blame context manipulations
Specifically,
- add field and method contexts, and
- declare methods in object/c contracts to be #:important

closes PR 13765
2013-05-20 22:16:54 -05:00
Max New
797f7f7bd2 Redex generator supports mismatched names.
Also added mismatched name tests.
2013-05-20 19:25:08 -05:00
Max New
f67b1ca06c Added holes to redex enumerator. 2013-05-20 19:25:07 -05:00
Max New
843edcc78d Redex enum maintains bijection internally
Also simplified other redex enumeration internals.
2013-05-20 19:24:13 -05:00
Max New
c0f45d7d99 Redex enum supports var-except.
Also reduces code duplication in Redex enum.
2013-05-20 19:23:42 -05:00
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