Jay McCarthy
359ac41a45
Updating textarea-input re Shogo
2011-06-27 12:08:20 -06:00
Eric Dobson
a14723f27a
Make vector-immutable work like vector. Closes PR 11535.
2011-06-27 11:35:48 -04:00
Sam Tobin-Hochstadt
f6be5447dd
Rename to follow TR naming conventions.
2011-06-24 20:20:53 -04:00
Eric Dobson
0f0b9ebc7a
TR: Added tests for new identifiers and export type names.
2011-06-24 20:10:37 -04:00
Sam Tobin-Hochstadt
19a7a37033
Fix rackunit types to be Any', not
Void'.
2011-06-24 18:10:25 -04:00
Eric Dobson
ce0f542028
Correctly recreate Scopes. Closes PR 10552. Closes PR 11532.
2011-06-24 16:46:43 -04:00
Jay McCarthy
6abeab42d5
Updating require paths, making tests succeed, and fixing docs
2011-06-24 13:48:41 -06:00
Jay McCarthy
375d6b8497
Initial adding of temporal contract library
2011-06-24 13:48:40 -06:00
Kevin Tew
508388ed61
Remove define-place from racket/place
2011-06-24 11:12:37 -06:00
Eric Dobson
d0d748c55a
Corrects types for typed/rackunit. Closes PR 11912.
...
Signed-off-by: Sam Tobin-Hochstadt <samth@racket-lang.org>
2011-06-23 12:19:56 -04:00
Eric Dobson
4241557543
Change Module-Path to be union type instead of a Base type. Closes PR 11963.
2011-06-23 10:05:36 -04:00
Sam Tobin-Hochstadt
0df00e31d5
Add test for PR 10794.
2011-06-22 17:36:31 -04:00
Asumu Takikawa
122aed8970
Add negate (racket/function) to TR
2011-06-22 16:04:19 -04:00
Asumu Takikawa
cee2509476
TR test for racket/function
2011-06-22 16:04:19 -04:00
Eric Dobson
16ee3376f7
TR: Added more tests for recently typed identifiers.
2011-06-22 15:17:58 -04:00
Eric Dobson
c2a473cba2
Added tests for parameterizations and thread cells.
2011-06-22 15:17:57 -04:00
Eric Dobson
f5a7e73be8
TR: Added some syntax and set tests.
2011-06-22 15:17:57 -04:00
Eric Dobson
f5517367e5
Added tests for filesystem operations, and added public type names.
2011-06-22 15:17:57 -04:00
Sam Tobin-Hochstadt
f195b3c689
Remove `SomeSystemPath'.
2011-06-22 14:28:51 -04:00
Sam Tobin-Hochstadt
9be4b16703
Rename SomeSystemPath to `Path-For-Some-System'
2011-06-21 15:34:50 -04:00
Eric Dobson
0f6fde5003
Fixes TR regexp regression. Closes PR11991.
2011-06-21 15:34:50 -04:00
Matthew Flatt
f3da5f7fd8
adjust and document net/url HTTPS support
2011-06-20 08:00:43 -06:00
Eli Barzilay
debd1f9f1e
Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
...
(Some other minor things here and there.)
2011-06-20 04:27:14 -04:00
Robby Findler
62a337231a
added more options into the place-chan-rand test; seems to still (rarely) cause a crash
2011-06-20 05:35:25 +08:00
Matthew Flatt
5a5800d513
place-specific low-level "sleep" function
...
to make racket/gui work right with places (running
in just one of them) on Mac OS X
2011-06-17 17:03:21 -06:00
Vincent St-Amour
88dafca69f
Update test format.
2011-06-17 18:18:04 -04:00
Vincent St-Amour
26b909744c
Display irritants nicely.
2011-06-17 18:18:04 -04:00
Vincent St-Amour
e8dcee732e
Don't merge missed optimizations repeatedly, which artificially increases badness.
2011-06-17 18:18:04 -04:00
Vincent St-Amour
fc08b4d401
Display badness of missed optimizations.
2011-06-17 18:18:04 -04:00
Vincent St-Amour
9dbca39cfe
Use write instead of display for syntax in logs.
2011-06-17 18:18:04 -04:00
Vincent St-Amour
dda1b1c880
Don't keep useless return values around.
2011-06-17 18:18:04 -04:00
Vincent St-Amour
847e4b2e23
Do duplicate detection at the expanded syntax level, instead of the source level.
2011-06-17 18:18:04 -04:00
Vincent St-Amour
866225b659
Adapt the log update script to work on specific files.
2011-06-17 18:18:04 -04:00
Vincent St-Amour
fddf189530
Report opts and missed opts in terms of the original programs, not in terms of expanded code.
2011-06-17 18:18:04 -04:00
Vincent St-Amour
fc25b43293
Add script to update test files to new log formats.
2011-06-17 18:18:03 -04:00
Vincent St-Amour
86efbc8396
Specify opt or missed opt in the TR log format.
2011-06-17 18:18:03 -04:00
Vincent St-Amour
9f78a92613
Fix test log to use new format.
2011-06-17 18:18:03 -04:00
Vincent St-Amour
1a2080fc97
Handle the case where we would need to merge with multiple children at once.
2011-06-17 18:18:02 -04:00
Vincent St-Amour
8d2f66faa6
First attempt at handling missed optimization cascades.
...
Currently, if missed optimizations a and b are of the same kind, a is caused
by b, and b is caused by c, we merge them into a single miss with cause c.
This works in some cases, but fails in others.
2011-06-17 18:18:02 -04:00
Vincent St-Amour
4c31b08554
Put logging code in its own file.
2011-06-17 18:18:02 -04:00
Vincent St-Amour
6b5095df2d
Have multiple irritants for missed optimizations.
2011-06-17 18:18:02 -04:00
Vincent St-Amour
cb706aab9c
Change log message to reflect new behavior.
2011-06-17 18:18:02 -04:00
Vincent St-Amour
f547b99ed5
Remove useless irritant.
2011-06-17 18:18:02 -04:00
Vincent St-Amour
9528f63cf0
Swap miss region and irritant.
2011-06-17 18:18:02 -04:00
Vincent St-Amour
647ae4fe9a
Report missed optimizations for unary float operations.
2011-06-17 18:18:01 -04:00
Vincent St-Amour
484fb029f1
Rephrase a missed optimization message.
2011-06-17 18:18:01 -04:00
Vincent St-Amour
a319ba1058
Fix missed-optimization tests to also look for optimization messages.
2011-06-17 18:18:01 -04:00
Vincent St-Amour
e8621f58ea
Fix optimization tests to also look for missed-optimization messages.
2011-06-17 18:18:01 -04:00
Vincent St-Amour
28692786b3
Have optimizer test harness look only at log messages that came from the optimizer.
2011-06-17 18:18:01 -04:00
Vincent St-Amour
641dd731ab
Fix optimizer test harness to use the new syntax of with-logging-to-port.
2011-06-17 18:18:01 -04:00
Vincent St-Amour
09015722e3
Use with-logging-to-port from unstable.
2011-06-17 18:18:01 -04:00
Vincent St-Amour
47f48c08ad
Revise with-logging-to-port to avoid the extra dummy log entry.
2011-06-17 18:18:01 -04:00
Vincent St-Amour
a2afe2c285
Adapt the optimizer's test harness for the new logging strategy.
2011-06-17 18:18:01 -04:00
Vincent St-Amour
28cbad21b9
Add a directory for optimizer tests that we know fail.
2011-06-17 18:18:00 -04:00
Vincent St-Amour
9ae4f82c0a
Sort optimizer logs by source location, to prepare for eventual user consumption.
2011-06-17 18:18:00 -04:00
Vincent St-Amour
5a151420e4
Keep source location around for derived pair optimizations.
2011-06-17 18:18:00 -04:00
Vincent St-Amour
b8b061fb39
Don't print duplicate log entries.
2011-06-17 18:18:00 -04:00
Vincent St-Amour
147032e428
Extra test for precision loss.
2011-06-17 18:18:00 -04:00
Vincent St-Amour
0432ea16cb
Add an extra test that checks for non-reporting of false positives.
2011-06-17 18:18:00 -04:00
Vincent St-Amour
b598c4a1eb
close-call -> missed-optimization
2011-06-17 18:18:00 -04:00
Vincent St-Amour
c73bc6c918
Report unexpected complex types in arithmetic expressions.
2011-06-17 18:18:00 -04:00
Vincent St-Amour
2a4a4e8184
Generalize reporting of wasted precision to arbitrary exact arithmetic expressions.
2011-06-17 18:18:00 -04:00
Vincent St-Amour
cd027109c9
Report when exact arithmetic is used inside float expressions, which may make the extra precision useless.
2011-06-17 18:17:59 -04:00
Vincent St-Amour
fb36786c4d
Add failing test for nicer reporting of cascades of missed optimizations.
2011-06-17 18:17:59 -04:00
Vincent St-Amour
5d4ef5c624
Add a test case for close-calls on all-real arithmetic expressions.
2011-06-17 18:17:59 -04:00
Vincent St-Amour
89ca99210e
Report close calls for pair/mpair optimizations.
2011-06-17 18:17:59 -04:00
Vincent St-Amour
526a84f10b
Add extra checks to avoid spurious close call reporting involving integer operations.
2011-06-17 18:17:59 -04:00
Vincent St-Amour
95bf94577c
Show irritant for the currently detected close calls.
2011-06-17 18:17:59 -04:00
Vincent St-Amour
0fab9e11ad
Revert "Fix optimizer expected log format."
...
This reverts commit bdf1073f17
.
Return that test to the new format, which it was originally written in.
2011-06-17 18:17:59 -04:00
Vincent St-Amour
33962befd4
Made logging format more compact and less ambiguous.
2011-06-17 18:17:59 -04:00
Vincent St-Amour
7b2c6f5765
First attempt at logging unexpected Real types popping up.
2011-06-17 18:17:58 -04:00
Vincent St-Amour
2e0dd6467a
Add support for close-call tests to the TR test harness.
2011-06-17 18:17:58 -04:00
Robby Findler
f8f289adc0
fix random place tests
2011-06-18 05:15:36 +08:00
Sam Tobin-Hochstadt
55a25a825a
Disable this test.
2011-06-17 15:17:20 -04:00
Eric Dobson
0671945a8d
Moved tests for equality to unit tests
2011-06-17 15:17:20 -04:00
Eric Dobson
b326269133
Moved new TR symbol testing into unit tests.
2011-06-17 15:17:20 -04:00
Eric Dobson
3a13cf0e78
Moved TR string testing to unit tests.
2011-06-17 15:17:20 -04:00
Eric Dobson
54a12afb49
Added types and some tests for port operations
2011-06-17 15:17:19 -04:00
Eric Dobson
c77e906c7a
Added types and tests for equality operations.
2011-06-17 15:17:19 -04:00
Eric Dobson
2d152bac79
Added types and tests for raising and handling exceptions
2011-06-17 15:17:19 -04:00
Eric Dobson
4ba12dd20e
Added types and tests for symbol operations
2011-06-17 15:17:19 -04:00
Eric Dobson
ab23db7b5b
Added types and tests for string operations
2011-06-17 15:17:19 -04:00
Eli Barzilay
f6620d5754
Close the input port so that the file can be deleted on windows.
2011-06-17 13:19:24 -04:00
Matthew Flatt
7089a17ba2
fix `make-limited-input-port' limit tracking for committed peeks
...
and make the port thread-safe
2011-06-17 11:14:50 -06:00
Matthew Flatt
b1e47eba45
add `place-message-allowed?' and fix related problems
...
Closes PR 11983
2011-06-17 10:33:27 -06:00
Robby Findler
8e80af6f42
random testing for messages sent over place channels
...
related to PR 11983
2011-06-17 18:46:59 +08:00
Danny Yoo
d78fccb75b
Fixing the comment-at-end-of-file bug (PR#11982)
2011-06-16 21:37:48 -04:00
Matthew Flatt
523cec90c6
fix JITted multi-valued `begin0' in a single-value context
...
and generate simpler code for constrained cases, including
single-value contexts and ignored results
Closes PR 11979
2011-06-16 18:16:02 -06:00
Vincent St-Amour
26541ffbbd
Unify types and filter behavior of not and false?.
2011-06-16 18:08:44 -04:00
Stevie Strickland
477c5acb2a
Fix names in test to make them test-specific.
2011-06-16 16:51:38 -04:00
Matthew Flatt
56423f330e
`procedure-arity-includes?' reports #f for keyword-requiring procs
...
by default; a new optional argument restores the old behavior
(but the default behavior is consistent with the old docs and with
the vast majority of existing uses)
The implementation is ugly for performance reasons. A new primitive
`prop:arity-incomplete' property determines when to return #f for
`procedure-arity-includes?' in default mode. A nicer implementation
would be to redefine `procedure-arity-includes?' at the kw-proc level,
but the bytecode optimizer's and JIT's treatment of the built-in
`procedure-arity-includes?' is important. The implementation choice
could be revisited after cross-module inlining is implemented.
Closes PR 11978
2011-06-16 12:36:16 -06:00
Stevie Strickland
649fe2f276
Fix #%app bindings for `with-contract'-based contract forms.
...
Closes PR11975.
2011-06-16 14:25:01 -04:00
Matthew Flatt
a919062143
support progress evts in result of `make-limited-input-port'
...
and also adjust initial position in various port constructions
to use `file-position' instead of `port-next-location'
2011-06-16 09:18:47 -06:00
Matthew Flatt
83d002a9aa
fix interaction of `port-commit-peeked' and port positions
...
--- includes a small hack to the `make-input-port' protocol
to specially handle a byte-string result as "true"
from the `commit' proc
2011-06-16 08:17:14 -06:00
Sam Tobin-Hochstadt
eaa156554a
Add contracts for `Sequenceof' values.
2011-06-15 17:02:09 -04:00
Kevin Tew
4176f093b8
place -> dynamic-place and place-wait return value fixes
2011-06-15 11:09:02 -06:00
Vincent St-Amour
e057e6a857
Optimize in typed regions.
2011-06-15 11:20:51 -04:00
Sam Tobin-Hochstadt
b76819a66e
Wrap expected type. Closes PR 11980.
2011-06-14 19:05:16 -04:00
Eli Barzilay
be84425bd0
Rewrite compose' and add
compose1'.
...
The new version fixes some problems with the previous one, most notably
it can create a keyworded function when the last input is is keyworded.
`compose1' is a restricted variant that requires single values in the
composed pipeline -- besides being potentially faster (probably more
if/when there is cross module inlining), it has a semantical
justification, similar to the restricting function call arguments to
return single values, with similar robustness benefits. The
implementation of both is done in a generalized way, and the results can
be faster for both `compose' and `compose1'. (Not by much -- 20% and
30% resp.)
One thing that it could do is to reduce the resulting arity to match the
last given function. I didn't do this since it adds a significant
overhead to the result. (No strong opinion on doing that...)
2011-06-14 19:02:30 -04:00
Eli Barzilay
e80308aa15
Make `test' messages show keyword arguments too.
2011-06-14 19:02:30 -04:00
Vincent St-Amour
2922821f3c
Synthesize annotations for for/lists: if possible.
2011-06-14 17:53:27 -04:00
Vincent St-Amour
a5bccaffe1
Allow omitting type annotation in most of the for: forms.
2011-06-14 17:53:27 -04:00
Kevin Tew
939f0b1c0b
rename place-dynamic to dynamic-place
2011-06-11 15:36:16 -06:00
Matthew Flatt
80c4396dc1
JIT-inline struct type property predicates and accessors
2011-06-11 08:35:34 -07:00
Eric Dobson
c7f9a80de8
TR: Changed type of port->list
2011-06-10 17:22:14 -04:00
Ryan Culpepper
c8a691490a
syntax/parse: added literal-set->predicate
...
closes PR 11968
2011-06-10 13:22:26 -06:00
Kevin Tew
1473b7775f
Places: rename place and place/anon
2011-06-10 11:07:01 -06:00
Matthew Flatt
8f6a4c5549
fix file suffix: ".rkt" for module files
2011-06-10 09:36:10 -07:00
Matthew Flatt
460504c852
add #:unless' to
for'
2011-06-10 06:21:35 -07:00
Kevin Tew
21f7109204
Places: rename send receive to put get
2011-06-09 23:48:55 -06:00
Kevin Tew
dd4ee47ecd
Cleanup place-channel benchmark use read-bytes
2011-06-09 23:48:25 -06:00
Kevin Tew
524b5ca50a
Channels compared to dd
2011-06-07 13:53:37 -06:00
Eli Barzilay
17b6ffa731
Move thunk' from
unstable/function' into `racket/function'.
...
Actually, the new `thunk' is a nullary function, which I think is very
popular expectation for the name. Since there are possible uses for the
any-arity version, it's added too, as `thunk*'.
2011-06-07 03:38:06 -04:00
Eli Barzilay
a70ef57f02
Move identity' from
unstable/function' into `racket/function'.
2011-06-07 03:38:06 -04:00
Eli Barzilay
2eb0a94677
Removed a bogus provide and two bogus tests.
...
(Which worked because the same functionality is part of `racket'.)
2011-06-07 03:38:06 -04:00
Vincent St-Amour
801354fa4a
Add syntax-within? to unstable/syntax.
2011-06-02 18:37:42 -04:00
Matthew Flatt
bbfeb85440
mak argument to `make-immutable-hash' optional
2011-05-30 07:38:57 -06:00
Mike Sperber
c3d4e39630
Add DMdA teachpacks to documentation check.
...
Also, exclude obsolete DMdA exports from check.
2011-05-28 12:31:20 +02:00
Asumu Takikawa
f4aab53efa
Added option/c for possibly #f values in unstable.
2011-05-26 00:37:06 -04:00
Asumu Takikawa
7f143f03ed
Add impersonator-contract? along with docs/tests.
...
The impersonator-contract? function checks if its argument is
a contract that is neither flat nor a chaperone contract.
2011-05-26 00:37:05 -04:00
Tony Garnock-Jones
c888222fb6
Property accessors are now able to accept 1 or 2 arguments
2011-05-25 10:47:59 -04:00
Tony Garnock-Jones
7615c2a512
Implementation, documentation and tests for adding a failure-result to property accessor procedures.
2011-05-24 16:53:52 -04:00
John Clements
dcb5e896dd
added raise-type-error to date->string, also test case
2011-05-24 10:24:31 -07:00
Vincent St-Amour
7b0f64de72
Don't run TR integration tests during nightly builds.
2011-05-23 13:58:28 -04:00
Stephen Chang
b4ab1bb093
fix bug in lazy stepper handling of cyclic lists
2011-05-22 01:54:46 -04:00
Jay McCarthy
291ee08736
Adding scriblib/bibtex.
2011-05-21 10:10:05 -06:00
Robby Findler
ce3e46b71a
fix a bug in the planet packaging code that could result in the documentation not being included
2011-05-20 10:13:45 -05:00
Matthew Flatt
4b9d88cc1d
fix `sequence->stream'
...
Closes PR 11932
2011-05-19 15:59:08 -07:00
Matthew Flatt
7060fa5b75
fix problems with `letrec' splitting and constant procedures
2011-05-19 15:15:01 -07:00
Kevin Tew
518f20142c
11930 bug fix: added missing scheme_seal_parameters call
2011-05-19 11:48:23 -06:00
Matthew Flatt
b6445880e2
add pre-multiplied mode for `{get,set}-argb-pixels'
2011-05-18 16:01:33 -07:00
Robby Findler
91f5fbcd88
added a test case for PR 11930
2011-05-18 10:05:39 -05:00
Matthew Flatt
905eb11651
fix alpha-only mode of `get-argb-pixels'
...
Closes PR 11927
2011-05-17 16:00:36 -07:00
Vincent St-Amour
bc4a7df94d
Better solution to the toplevel printing bug.
2011-05-17 18:30:53 -04:00
Eric Dobson
9a65545814
Path manipulation now works with SomeSystemPath correctly.
2011-05-17 18:03:48 -04:00
Eric Dobson
05af2b9e17
Split Path type into Path and OtherSystemPath.
2011-05-17 18:03:48 -04:00
Vincent St-Amour
8f6d3c7920
Avoid printing results of tests when eliminating if branches at the toplevel.
...
Closes PR 11928.
2011-05-17 17:47:21 -04:00
Vincent St-Amour
1ed0e84791
Move base environment files to their own subdirectory.
2011-05-17 15:16:18 -04:00
Sam Tobin-Hochstadt
c2291e049d
Add types for some of `syntax/stx'
...
Add hacked types for `with-syntax' internals.
2011-05-16 14:55:17 -04:00
Vincent St-Amour
bdf1073f17
Fix optimizer expected log format.
...
Optimizer log format was changed on a different branch, and this test
was written using that new format, which is not recognized on current
master.
2011-05-16 14:23:24 -04:00
Vincent St-Amour
4cd0ad4b1a
Coerce reals in float expressions when valid.
2011-05-16 11:44:35 -04:00
Vincent St-Amour
e64ba228e8
Have the TR test harness skip emacs unsaved file backups.
2011-05-16 11:44:35 -04:00
Sam Tobin-Hochstadt
e92af62ca0
Add contract generation for Set type.
2011-05-15 22:53:20 -04:00
Kevin Tew
c9c02f3fb0
duplicate and cycle detection for places_deserialize_worker
2011-05-12 08:28:47 -06:00
Matthew Flatt
8492f7c90b
fix symbol handling in long-message transfer
...
as well as stack-overflow handling
2011-05-11 15:04:59 -06:00
Robby Findler
c5f8add9ea
avoid eval-compile-time-part-of-top-level when in the module language
...
Thanks to Ryan for spotting this call!
Closes PR 11908
2011-05-10 14:10:28 -05:00
Kevin Tew
94d92092a5
deep copy stack overflow check
2011-05-10 06:37:39 -06:00
Robby Findler
0e58a37105
fixed up a test (that I hadn't meant to push the last time, sigh)
2011-05-09 15:34:01 -05:00
Robby Findler
553d9ff4c6
made set/c preserve flat-contract'ness of its argument
2011-05-09 08:49:12 -05:00
Robby Findler
f60f23496d
added a drracket test
2011-05-08 22:30:24 -05:00
Sam Tobin-Hochstadt
2f3e9fc655
Add types for `in-hash' etc.
2011-05-08 15:36:48 -04:00
Matthew Flatt
153d23ecf0
adjust sandbox memory-limit test timeout
2011-05-08 06:26:04 -06:00
Eric Dobson
e9683e1dd2
Changed early failure in subtyping to all non-struct values, not just null. Closes PR 11887.
2011-05-06 11:39:01 -04:00
Sam Tobin-Hochstadt
af56616fc8
Require numeric-predicates at the correct phase.
...
Closes PR 11897.
2011-05-05 19:04:38 -04:00
Vincent St-Amour
4b03ecde2a
Integrate the TR and TR optimizer test suites.
2011-05-05 18:54:12 -04:00
Vincent St-Amour
4ea9b29d12
Remove redundant checks from TR's optimizer tests.
...
Checking that the optimized and non-optimized versions return the same
results is unnecessary. Optimization logs, which are checked against
an expected log, already contain the results.
2011-05-05 18:54:12 -04:00
Vincent St-Amour
7b6edb452f
Rewrite the optimizer test suite to use rackunit.
2011-05-05 18:54:12 -04:00
Vincent St-Amour
fa016ea576
Keep running TR tests even if optimizer tests fail.
2011-05-05 18:54:12 -04:00
Vincent St-Amour
850d4d325d
Don't display name of non-test files.
2011-05-05 18:54:12 -04:00
Robby Findler
507b1cd8fd
moved the docs-complete library into rackunit
...
to avoid having a separate, new manual for the
one library
2011-05-05 16:10:42 -05:00
Robby Findler
d40b43c0a9
make the deinprogramm documentation drdr messages be accurate
...
(that is, I think that the complaints coming from the
tests\deinprogramm\test-docs-complete.rkt message are
now pointing out things for which there is actually no
documentation, instead of pointing out the need for
different declare-exporting declarations)
2011-05-04 18:54:28 -05:00
Robby Findler
d3c04ae701
Adjusted docs-complete to print a different message when there are no docs at all
...
and ... ummm... documented docs-complete
2011-05-04 18:54:25 -05:00
Matthew Flatt
34b8dc249e
fix documented contracts for path functions
...
and make `cleanse-path' work for any platform's paths
while fixing `resolve-path' checking to disallow paths
for other platforms
Closes PR 11891
2011-05-04 11:40:01 -06:00
Eric Dobson
f3c73a197e
Changed Paths to PathStrings in types where appropriate
2011-05-03 18:20:31 -04:00
Eric Dobson
44f377bcd4
Correctly instantiate poly-dotted functions with zero arguments.
...
Closes PR 11776. Closes PR 11545.
2011-05-03 18:20:31 -04:00
Matthew Flatt
87a4132b40
fix zo-marshal' for #f toplevel-map in
lam'
2011-05-03 14:43:27 -06:00
Kevin Tew
811154cb08
Indent fix
2011-05-03 14:40:02 -06:00
Kevin Tew
46dc051931
Turn places build back on, provide place-break.
2011-05-03 14:01:30 -06:00
Matthew Flatt
1b14c6a38e
fix mistakes uncovered by optimizer warnings
2011-05-03 06:57:48 -06:00
Eric Dobson
613e121783
Struct types now generate flat contracts when appropriate.
...
Closes PR 11686.
2011-05-03 08:15:37 -04:00
Ryan Culpepper
1bf95392d2
syntax/parse: added litset extension
2011-05-03 01:25:41 -06:00
Ryan Culpepper
e5e12ab01a
syntax/parse: added define-syntax-class/specialize
2011-05-02 21:02:11 -06:00
Robby Findler
d6ef130fd2
cleaned up framework docs
2011-05-01 14:16:04 -05:00
Mike Sperber
d582dd55dd
Fix bug in vector signatures.
2011-05-01 11:18:10 +02:00
Robby Findler
c8d476c76e
adjust scribble's racketblock renderer so that #true and #false
...
don't turn into #t and #f.
2011-04-30 20:35:16 -05:00
Jay McCarthy
8708268992
Fixing problems with %is discovered by Casey
2011-04-30 12:02:41 -06:00
Asumu Takikawa
7eb26c5d26
Added test for get-pos/text method result.
2011-04-29 18:56:36 -04:00
Vincent St-Amour
4d24cbee60
Promote more literals at compile-time.
2011-04-29 17:16:39 -04:00
Vincent St-Amour
d9451ef4ab
Run optimizer tests in a throw-away namespace to reduce memory usage.
2011-04-29 15:28:30 -04:00
Sam Tobin-Hochstadt
0d246de293
Remove obselete shell script
2011-04-28 18:23:53 -04:00
Vincent St-Amour
632e36f751
Add set types to TR.
...
Original patch by Eric Dobson.
2011-04-28 18:22:39 -04:00
Vincent St-Amour
fc531c4dbf
Fix chicken output processing.
2011-04-28 16:19:59 -04:00
Vincent St-Amour
7cf64050f8
Make tabulation script more resilient to incorrect input.
2011-04-28 16:19:59 -04:00
Vincent St-Amour
e11582a522
Chicken can do scheme2 now.
2011-04-28 16:19:58 -04:00
Kevin Tew
64ba1f2fa4
[Places] rename place-channel.rktl -> place-channel.rkt
2011-04-27 22:35:05 -06:00
Matthew Flatt
0e229529c0
JIT-inline `procedure-arity-includes?'
2011-04-27 14:10:21 -06:00
Vincent St-Amour
99f4ae14ee
Bigloo does not report time in centiseconds anymore (as of 3.6a).
2011-04-27 14:14:26 -04:00
Vincent St-Amour
31df4384e1
Chicken doesn't print GC time if the GC doesn't fire.
2011-04-27 14:14:26 -04:00
Kevin Tew
028421432d
[Places] place-channel tests for large messages
2011-04-27 11:50:45 -06:00
Vincent St-Amour
6d56ddcc10
Chicken changed its timing output format.
2011-04-27 11:03:06 -04:00
Vincent St-Amour
d52c7f2d78
Typo.
2011-04-27 11:03:06 -04:00
Vincent St-Amour
33348795c9
cpstack -> cpstak
2011-04-27 11:03:06 -04:00
Vincent St-Amour
fd2d9ba0be
Bigloo can't compile nucleic2.
2011-04-27 11:03:05 -04:00
Vincent St-Amour
9c9c87aa09
Remove file that was accidentally committed.
2011-04-27 11:03:05 -04:00
Robby Findler
06ed2045ae
adjust check-docs so that the skipped exports are a parameter
2011-04-26 23:27:48 -05:00
Matthew Flatt
d28d42a46f
fix validator bug (to allow flonum-consuming proc to be cleared)
...
Closes PR 11879
2011-04-26 19:21:14 -06:00
Stephen Chang
5d47e58de3
add Lazy Racket tests from Premiers cours de programmation avec Scheme (Roy)
2011-04-26 19:13:41 -04:00
Jay McCarthy
5f1b390f64
moving
2011-04-26 16:46:55 -06:00
Jay McCarthy
c9286ce725
Moving...
2011-04-26 16:33:01 -06:00
Eric Dobson
c221c07076
made ephemeron test correct
2011-04-26 15:35:22 -04:00
Eric Dobson
80fa8d3c97
Beginning of ephemeron patch
2011-04-26 15:35:22 -04:00
Vincent St-Amour
7800e417d2
Fix benchmarking for bigloo to work with its default options.
2011-04-26 15:35:22 -04:00
Robby Findler
626bef922e
dont insist that names beginning with #% are documented
2011-04-26 11:30:12 -05:00
Ryan Culpepper
585dc9c0a3
sort names to avoid spurious changes
2011-04-25 22:51:51 -06:00
Ryan Culpepper
ee6fa14ec4
automatically filter out names from serializable structs
2011-04-25 20:24:36 -06:00
Ryan Culpepper
bf5248e3b5
syntax/parse: changed #:declare back to "magical" scoping
2011-04-25 20:24:35 -06:00
Robby Findler
7701f75fb0
adjusted test-docs-complete.rkt tests
2011-04-25 19:00:01 -05:00
Robby Findler
e7d0029aea
added lots of new tests that our documentation is complete
2011-04-25 13:24:43 -05:00
Robby Findler
a373eac5d8
added docs-complete.rkt
2011-04-25 13:18:51 -05:00
Vincent St-Amour
7e491392e1
Remove file that was accidentally committed.
2011-04-25 09:30:23 -04:00
Matthew Flatt
2f8006aa6b
add an optional argument to `assoc'
...
and implement `assoc', `assq', and `assv' in Racket
2011-04-24 07:55:33 -06:00
Matthew Flatt
f4303cbef8
faster JITted path to `equal?'
2011-04-24 07:55:33 -06:00
Matthew Flatt
f54d977de1
JIT-inline `eqv?'
2011-04-24 07:55:32 -06:00
Robby Findler
41497cec6a
avoid printing stacktrace information when the exception is a exn:fail:user?.
...
closes PR 11874
2011-04-24 07:45:07 -05:00
John Clements
b228316a8a
updates to history
...
merge to 5.1.1 release
2011-04-22 14:28:18 -07:00
Robby Findler
e8ce23cc9a
adjust the test-engine test suite so it prints errors to stderr
...
and thus drdr will send email when test cases fail
2011-04-22 06:16:43 -05:00
Kevin Tew
34fd6c35dd
Typo fix
2011-04-21 20:55:34 -06:00
Kevin Tew
b1cd60213f
Test all allowed types in place messages
2011-04-21 06:14:27 -06:00
Matthew Flatt
e47c9a2f9d
allow cyclic values over place channels
2011-04-20 07:21:10 -06:00
Kevin Tew
3358ec8d10
Place-channel path test cases
2011-04-20 00:01:28 -06:00
Matthew Flatt
1932a453a8
enable inlining of calls to `case-lambda' procedures
...
which includes calls to procedures with optional (but no keyword)
arguments
2011-04-19 21:28:14 -06:00
Stephen Chang
718b9709bc
fix struct constructor application in lazy racket
2011-04-19 01:21:19 -04:00
Matthew Flatt
e0d26d88b6
support exact nonnegative integers as sequences
2011-04-18 14:55:02 -06:00
Ryan Culpepper
fdede6f063
syntax/parse: added docs for litset #:at kw, relaxed restriction on arg
2011-04-15 14:47:29 -06:00
Matthew Flatt
5386206667
fix 'solid vs. 'opaque for mono on mono Closes PR 11839
2011-04-14 15:38:38 -06:00
Matthew Flatt
e734cd6127
fix `vector-map' error message
...
Closes PR 11828
2011-04-14 11:36:08 -06:00
Jay McCarthy
91d98aa0fa
Fixing drdr discovered problem
2011-04-13 07:31:29 -06:00
Jay McCarthy
9c19571ecd
Responding to Norman's request
2011-04-12 13:59:27 -06:00
Matthew Flatt
00ca86ffc6
`xref-binding->definition-tag': fix two-argument-list mode
...
Closes PR 11847
2011-04-12 15:55:22 -04:00
Ryan Culpepper
c0bd4e8dbc
removed unused code from unstable/hash
2011-04-12 09:35:26 -06:00
Ryan Culpepper
033e060bf3
removed unstable/sexp-diff
2011-04-12 09:35:26 -06:00
Ryan Culpepper
459cce23be
moved contents of unstable/set to racket/set
2011-04-12 09:35:26 -06:00
Ryan Culpepper
ccc70fca73
removed unused modules and code from unstable
2011-04-12 09:35:26 -06:00
Matthew Flatt
717a61840f
racket/trace: fix for expr-style printing (i.e., default `print' mode)
2011-04-11 10:01:25 -06:00
Matthew Flatt
857003378a
futures: more bug fixes, make `touch' safe
...
- bug fixes are related to allocation and runstack space
- a `touch' within a future can complete before the `touch'ing
future is itself `touch'ed
- also make `length' safe (and JIT-inlined)
2011-04-09 17:12:24 -06:00
Stephen Chang
d8517af898
fix stepper rendering of non constructor-style lists
...
in stepper/private/reconstruct.rkt
- in recon-value, list case, add quasiquote rendering when constructor-style
printing = #f
2011-04-08 20:41:36 -04:00
Stephen Chang
4ef7e1fae3
improve lazy stepper recon of unannotated fn apps
...
remove stepper/private/lazy-highlighting.rkt
in stepper/private/macro-unwind.rkt:
- in fall-through, add lazy-proc to lazy #%app special case
in stepper/private/model.rkt
- in send-step, dont use highlight-table, just match top called fn in mark-list
instead
in tests/stepper/
- add lazy stepper tests for filter and fold
2011-04-08 20:41:35 -04:00
Ryan Culpepper
e0db3ed2e3
fixed tests for moved unstable libs
2011-04-08 10:30:32 -06:00
Matthew Flatt
2dcd76f609
fix arity reporting for chaperoned procedures and some primitives
...
such as `for-each'
2011-04-08 07:54:41 -06:00
Robby Findler
bb792c977d
the tabber incorrectly counted tab chars as spaces when doing indentation;
...
this meant that if some line were supposed to be indented in the third
column and you had two tabs and a space on that line, the indenter
would leave it alone. Now, if it sees tabs in the line anywhere, it just
decides that the line is not properly indented and re-indents it
(always using spaces)
Also: started a tabber test suite
2011-04-08 07:48:17 -05:00
Stephen Chang
5238c338b6
fix stepper tests broken by lazy stepper
2011-04-07 15:11:40 -04:00
Ryan Culpepper
3e5a54c9e4
unstable/syntax: removed unused code and exports
2011-04-07 09:47:20 -06:00
Ryan Culpepper
73ab167522
created racket/syntax from parts of unstable/syntax
2011-04-07 09:47:20 -06:00
Stephen Chang
c8dd95b3cf
fix user-position stepper-property bug in lazy cond stepper unwinding
...
in stepper/private/macro-unwind.rkt
- in fall-through, add special #%app case for force
in stepper/private/reconstruct.rkt
- in recon-inner, in called app case, combine force case with other lazy fns
in tests/stepper/
- add test for lazy cond unwinding problem
2011-04-06 22:29:48 -04:00
Matthew Flatt
3bf0f800a7
futures: make `future' work in a future, overhaul logging, fix bugs
2011-04-06 17:40:44 -06:00
Matthew Flatt
91cdfe9a7a
fix `in-vector' range checking
2011-04-06 17:40:44 -06:00
Matthew Flatt
584f74a22b
remove printf
2011-04-06 17:40:43 -06:00
Stephen Chang
5d47c0b49b
in stepper/private/reconstruct.rkt
...
- in recon-inner, in called app case
- add other force fns to force case (!!, !list, !!list)
- add other list fns
(list?, length, list-ref, etc)
in stepper/private/lazy-highlighting.rkt
- add various list fns (list?, length, list-ref, etc)
in stepper/private/macro-unwind.rkt
- in unwind-cond, disable check of user-source and user-position
in tests/stepper/
- add test for various list fns
2011-04-06 18:44:36 -04:00
Stephen Chang
e41ba9c77b
in lazy/lazy.rkt
...
- modify cond for stepper
- add support for multiple values in stepper
- add inspector to multiple-values struct
- hide split-values call in ~define-values
in tests/stepper/
- add tests for cond
in stepper/private/annotate.rkt
- in annotate/top-level, allow arbitrary top-level terms
(no error in else case), otherwise exprs like let throws error
in stepper/private/
reconstruct.rkt
lazy-highlighting.rkt
- add support for eq? eqv? equal? lazy fns
2011-04-06 18:44:35 -04:00
Stephen Chang
c0f8f1cdb2
lazy stepper working with infinite lists
...
in stepper/private/marks.rkt
- in mark-binding-value, add exception handler to catch undefined vars, so
display-mark in break works with recursive fns
in /tests/stepper/automatic-tests.rkt
through-tests.rkt
- add inf list example from icfp paper
in stepper/private/model.rkt
- refactor send-step to use cond instead of unless
- in send-step, when highlight-stack = null and last-rhs != null (and lhs !=
last-rhs), send a step with lhs = last-rhs (previously skipped whenever
highlight-stack = null)
- basic filter example wasnt showing result without this
- in icfp inf list example, this shows some intermediate forcing states
- all other existing tests passed
2011-04-06 18:42:57 -04:00
Stephen Chang
348a20c0e5
in stepper/private/reconstruct.rkt
...
- in recon-inner, called app case, add first fn to list of special lazy fns
- in recon-value, add handling of running promises not found by
recon-inner search
- add optional so-far param to recon-value
- add unknown-promises-table and add case in recon-value to handle
in stepper/private/lazy-highlighting.rkt
- add (first,0) pair
in stepper/private/model.rkt
- modify lazy fn "skipping" (from lazy-highlighting.rkt) to use the skips
only when last-rhs-exp = null; o.w. skipping is handled solely by
examining last-rhs-exp
in tests/stepper/
- add take example from icfp paper
- add tests for unknown promises
2011-04-06 18:42:56 -04:00
Stephen Chang
d04d3fadc3
- add if tests for lazy stepper
...
in stepper/private/reconstruct.rkt
- in recon-inner, in called app case, add "take" to lazy fn case and fix to
handle more than unary fns
2011-04-06 18:42:55 -04:00
Stephen Chang
49fd1fb0e0
in stepper/private/reconstruct.rkt
...
- in recon-value, add cases to handle list and cons
- in recon-inner, in app called case, add case to handle lazy list fns
that contain unannotated !'s (ie cadr, cdddr, second, third, etc)
in stepper/private/model.rkt
- add highlight-stack
- in send-step, add various skip conditions when lhs = ellipses
add file stepper/private/lazy-highlighting.rkt
in tests/stepper/through-tests.rkt
tests/stepper/automatic-tests.rkt
- add tests for list and cons fns
2011-04-06 18:42:54 -04:00
Stephen Chang
c41123ce6c
existing lazy stepper tests passing
...
in tests/stepper/
test-engine.rkt
- add racket/private/promise to test-namespace using namespace-attach-module
automatic-tests.rkt
- add lazy tests
through-tests.rkt
- fix existing lazy tests lazy1, lazy2, lazy3
language-level-model.rkt
- fix lazy ll-model
in stepper/private/model-settings.rkt
- edit settings for lazy racket
2011-04-06 18:42:53 -04:00
Jay McCarthy
2ebcb2afd1
Fix drdr discovered problem
2011-04-06 16:00:54 -06:00
Jay McCarthy
af57e0419c
Fixes PR11793.
...
It was very hard to figure out why � is invalid. Both the XML 1.0 and 1.1 specs say that a CharRef can be '&#' [0-9]+ ';' (sec 4.1), but there is a note on the side that it must also be a valid Char. The Char definition (sec 2.2) then lays out which characters are valid. (The 1.0 and 1.1 specs disagree though.) I've gone with the 1.1 definition.
I did not update the rest of the reader to disallow those characters in pcdata segments. If this hurts you or you morally disagree, submit another PR, please.
2011-04-06 11:14:25 -06:00
Stevie Strickland
6494bf863e
Changing absent so that fields may be specified as well as methods.
2011-04-05 15:03:46 -04:00
Matthew Flatt
d359daa5f5
fix problem with chaperones and keywrd procedures
...
Closes PR 11833
2011-04-04 21:15:44 -06:00
Stevie Strickland
eafacc78a0
Adding `absent' to class contracts.
...
The `absent' clause lists public methods which must _not_ exist in the
contracted class.
2011-04-04 19:38:27 -04:00
Matthew Flatt
df2a875ff4
Scribble: simplify content that is conditioned on the render mode
...
including a new `scriblib/render-cond' library
2011-04-04 10:45:02 -06:00
Vincent St-Amour
9c3bee03e7
Fix bounded-fixnum opts to only fire with the right number of arguments.
2011-04-01 14:56:17 -04:00
Robby Findler
b926b17d7e
fix the obvious bug wrt to procedures returned from make-keyword-procedure, but something is still wrong
...
related to PR 11833
2011-04-01 09:12:05 -05:00
Ryan Culpepper
896cb86dc4
syntax/parse: added phase options to define-literal-set
2011-04-01 00:57:04 -06:00
Ryan Culpepper
2e2bc02303
syntax/parse: fixed obsolete test cases
2011-04-01 00:54:29 -06:00
Robby Findler
d4e6f99b74
fix the algorithm for determining if a > that is typed in an
...
XML box ends an opening tag or not
closes PR 11792
2011-03-31 17:26:03 -05:00
Kevin Tew
26d7768d3d
Rename place-channel-recv place-channel-receive
2011-03-31 13:36:40 -06:00
Matthew Flatt
d00c8a6c71
Scribble: fixes for text output, especially inset nested flows
2011-03-30 19:53:32 -06:00
Robby Findler
5b879d0680
add missing require, fix opt/c test suite
2011-03-29 22:43:18 -05:00
Jay McCarthy
113e0aa184
Fix issue found by Eric Tanter
2011-03-29 09:24:36 -06:00
Matthew Flatt
0fda70b7ca
fix region% problems
...
- fail gracefully with pre 1.4 Cairo
- clip all drawing for an empty clipping region
- disallow `is-empty?' on a region without a DC
(since the test depends on the DC dimensions)
2011-03-28 15:15:57 -06:00
Matthew Flatt
6e1f35a319
fix WXME stream write-bytes' and
write' method results
2011-03-27 16:30:44 -06:00
Robby Findler
4021f55c61
fixed up broken tests
2011-03-27 16:13:44 -05:00
Matthew Flatt
84d8bb3726
racket/sequence repairs
...
including addition of `sequence-generate*'
2011-03-27 10:02:11 -06:00
Robby Findler
f3b0a7454a
improved the error messages for #:pre and #:post violations in ->i by including the bindings for the variables
2011-03-26 08:12:30 -05:00
Kevin Tew
00696cbfac
variable-reference->module-source test
2011-03-25 15:04:02 -06:00
Robby Findler
288caacdfd
added get-extend-start-position and get-extend-end-position
...
added the extend-position method
adjusted the wxme.rkt test suite so that it only prints when tests fail
2011-03-25 15:10:49 -05:00
Robby Findler
614ec41ab7
extended struct-copy so that you copy adjust fields from super structs
2011-03-25 08:47:27 -06:00
Matthew Flatt
60c4acb094
Scribble: clean up text-mode output
...
- line-flow paragraphs to fit in 72 columns
- better indentation for itemizations
- format tables with paragraphs and nested tables
2011-03-20 17:19:03 -06:00
Matthew Flatt
b2e338cc43
add missing autobib test
2011-03-20 15:38:51 -06:00
Matthew Flatt
ed96b89c45
JIT-inline `list?'
2011-03-20 09:51:32 -06:00
Matthew Flatt
e652546bf5
add streams to `racket'
...
- rename old `racket/stream' to `racket/sequence', and adjust
to avoid stateful iterations
- add a new `racket/stream' library with a `strean-cons' that is based
on SRFI 41
- adjust `for' and some sequence constructors like `in-range' to
work more directly with streams
2011-03-18 19:05:23 -06:00
Kevin Tew
ae8b326522
[Places] added place-kill
2011-03-18 15:06:11 -06:00
Vincent St-Amour
3ebe9e78f9
Optimize add1 and sub1 on floats and fixnums.
2011-03-18 13:25:05 -04:00
Vincent St-Amour
1f0386b46c
Improve TR's fixnum optimizations, using the new sub-fixnum types.
2011-03-18 10:25:22 -04:00
Vincent St-Amour
ee29d371c9
Updated TR's base type environment to use the new numeric types.
...
This ended up being an almost complete rewrite of the base environment.
Note: While the commit is dated Jan 27, the work was finished on Mar 2.
2011-03-18 10:25:21 -04:00
Vincent St-Amour
88fac43d55
Add an Exact-Number type.
2011-03-18 10:25:20 -04:00
Vincent St-Amour
80a9027f1e
Take the meet of constraints earlier in the inference process.
...
This avoids constraint explosions in some cases, notably when working
with polydots and plain variable arity functions at the same time.
However, this also weakens inference a bit (breaks it for
unholy-terror and related tests), but not in a way that affects any
practical use cases that I know of.
2011-03-18 10:25:19 -04:00
Vincent St-Amour
f8528ac892
Change type of make-sequence to reflect changes to its implementation.
2011-03-17 18:43:57 -04:00
Vincent St-Amour
35161a0ba6
Fix expected optimization logs to reflect changes to for.
2011-03-17 13:10:19 -04:00
Vincent St-Amour
498ee4bea1
Fix TR's GUI test harness.
2011-03-17 13:10:19 -04:00
Vincent St-Amour
e9789c6697
Fix the 2-argument case of atan to conform to the documentation and
...
fix the documentation.
2011-03-17 13:10:19 -04:00
Matthew Flatt
ad8e959a98
tweak performance of `for' with non-inlined sequences
2011-03-16 17:02:53 -06:00
Matthew Flatt
c51daeb392
clean up sequence & generator tests
2011-03-16 16:21:26 -06:00
Matthew Flatt
4b39efdee4
fix `syntax-local-bind-syntaxes' argument checking
...
Closes PR 11808
2011-03-16 06:36:48 -06:00
Matthew Flatt
0efcf22ed4
racket/generator: clean-ups, including planned generalization
...
- syntax is now (generator formals body ...+)
- add `generator?'
- remove common run-time code from the `generator' macro expansion
- doc fixes
- start test suite
2011-03-15 20:14:01 -06:00
Matthew Flatt
b9c4bbae67
futures: limit parallelism via custodians
...
Closes PR 11682
2011-03-15 14:43:18 -06:00
Matthew Flatt
6a79ebdc97
adjust racket/gui test to cover no-border tab-panel%
2011-03-15 12:44:11 -06:00
Matthew Flatt
a2d968a5d2
fix `init-manual-scrollbars'
...
Closes PR 11781
2011-03-15 12:41:59 -06:00
Matthew Flatt
343b6fb008
Scribble: fix caching of hyperlinked identifiers
2011-03-15 11:09:10 -06:00
Eli Barzilay
09698c800c
Improve the error message from scribble text rendering tests.
2011-03-15 11:45:40 -04:00
Matthew Flatt
449a634b2f
add missing test for commit ae8705611b
2011-03-11 13:19:52 -06:00
Matthew Flatt
5afacbbb1c
fix `pretty-print' confusion about quasiquote
...
Closes PR 11796
2011-03-11 08:02:30 -06:00
Matthew Flatt
a5a7076fe0
`file-or-directory-permissions': expose more info, add write mode
...
and add `user-read-bit', etc., to `racket/file'
2011-03-11 02:50:06 -06:00
Matthew Flatt
2b3827504b
make test suite hit tab panels more
2011-03-11 02:50:05 -06:00
John Clements
ca88fdd7e5
oops rename in tests subdir too
2011-03-08 17:37:38 -08:00
Jay McCarthy
6b907d6b61
Fixing problem from Alok Thapa
2011-03-07 10:54:06 -07:00
Eli Barzilay
adf18c7dc0
Use runtime paths to make this work from a different directory
2011-03-03 12:25:19 -05:00
Eli Barzilay
22afec432c
Use "127.0.0.1" instead of "localhost" which can be more fragile.
...
(It's possible to have issues with "localhost", for example when there's
something in a $LOCALDOMAIN environment variable, which made this test
fail on certain machines.)
2011-03-03 11:10:12 -05:00
Matthew Flatt
8ea32d675c
add tests from Curtis Dutton
2011-03-03 07:24:15 -07:00
Matthew Flatt
fdef90e482
fix get-column-width' method of
list-box%'
...
by changing the name to match the docs, plus some other
bug fixes triggered by better testing
Closes PR 11780
2011-02-28 19:12:34 -07:00
Matthew Flatt
733eab5805
fix 0-field prefab immutability flag
...
Closes PR 11777
2011-02-28 15:24:11 -07:00
Robby Findler
6f48aaeaa7
added a test case for this commit:
...
http://git.racket-lang.org/plt/commit/2482816d3d
2011-02-27 19:05:06 -06:00
Robby Findler
07a2ace943
added the #:pre/name and #:post/name keywords to ->i
2011-02-25 13:42:09 -06:00
Robby Findler
4b68377af1
Revert "started adding comments to the #:pre and #:post parts of ->i"
...
This reverts commit a27b7d5c61
.
ack, sorry.
2011-02-25 09:44:34 -06:00
Robby Findler
a27b7d5c61
started adding comments to the #:pre and #:post parts of ->i
2011-02-25 09:42:23 -06:00
Robby Findler
2187773474
adjusted to change in the module language dialog
2011-02-25 09:42:16 -06:00
Matthew Flatt
93e1467b8b
racket/gui: scrollbar support panels
2011-02-24 13:23:51 -07:00
Matthew Flatt
137d96c089
multi-column support in list-box%
2011-02-21 13:58:57 -07:00
Matthew Flatt
a01b7434b1
remove file that was added accidentally
2011-02-21 08:14:14 -07:00
Matthew Flatt
33d01a681e
racket/system: fix problems with checking and empty-string arguments
2011-02-20 11:25:25 -07:00
Matthew Flatt
c8acebce8b
fix race in subprocess test
2011-02-19 08:51:10 -07:00
Matthew Flatt
b4056373be
generalizations to `subprocess' & company
...
- allow byte strings in more places
- allow stderr spec to be 'stdout to redirect stderr to stdout
Closes PR 11711
2011-02-19 08:30:34 -07:00
Robby Findler
783945f96b
adjust the test coverage test suite to the changes in test coverage
2011-02-18 13:20:37 -06:00
Matthew Flatt
6041833ac5
fsemaphore cleanup
...
- abstract over JIT inlining of fsemaphore operations
- fix problems with non-parallel fsemaphores
- adjust tests so they don't assume too much concurrency
- clarify fsemaphore vs. semaphore in the docs
2011-02-18 09:55:01 -07:00
James Swaine
ca5c061a71
Fix fsemaphore-try-wait? so the sema's count is decremented. Make fsemaphore-wait and other futures-related functions cooperate with the GC better.
2011-02-16 21:14:14 -06:00
Eli Barzilay
0801525931
Merge in the docs test into the rest of the scribble tests.
...
Also fixed it to scan all scrbl files in the docs directory, use
runtime-path, and change the rest to racket to get the quoted printout
right.
2011-02-16 15:26:15 -05:00
James Swaine
c6642de116
Added future semaphores (fsemaphores)
2011-02-15 23:27:03 -06:00
James Swaine
a98553f99b
Merge branch 'master' of pltgit:plt
2011-02-15 22:58:08 -06:00
Robby Findler
8e94ce49e4
lift the restriction that the text:ports mixin
...
cannot do io from the eventspace handler thread
and add a test suite for text:ports
2011-02-15 18:10:02 -06:00
Robby Findler
62c961410c
adjust the framework test suite so that queue-sexp-to-mred catches and propogates exceptions
2011-02-15 18:10:00 -06:00
Robby Findler
d5c753be88
adjusted printfs to make them a little narrower
2011-02-15 18:09:59 -06:00
John Clements
c1f76d418f
bug fixed
2011-02-15 14:10:57 -08:00
Kevin Tew
156153f692
calling sync on a place-channel now returns the channel message just like standard racket channels
2011-02-15 13:53:01 -07:00
James Swaine
f9c12f9e58
Merge branch 'master' of pltgit:plt
2011-02-14 14:02:47 -06:00
Eli Barzilay
b090dde2fb
Add a "BOOM" string to the timeout message, otherwise the failure is
...
hard to find.
2011-02-14 13:35:04 -05:00
Matthew Flatt
1a5f41fd71
Scribble: fix multi-line print output
...
Closes PR 11735
2011-02-14 07:32:21 -07:00
Robby Findler
ae67464670
adjust test suite to work on windows and to the new agreement about reproviding
2011-02-12 11:15:01 -06:00
Robby Findler
731a754e2b
added tests that check on provide/contract when there are multiple files containing modules
...
related to PR 11724
related to PR 11084
2011-02-11 19:49:50 -06:00
Matthew Flatt
0840430b21
clean up `define-syntax-rules'
...
by removing a redundant expression in an error message, adding
tests, and documenting the fact that a syntax-error message can
expose the pattern source to users
2011-02-11 09:59:42 -07:00
James Swaine
22d6ad7d03
Merge branch 'master' of pltgit:plt
2011-02-10 14:38:50 -06:00
Robby Findler
5cef41e08e
adjust and/c so that it mentions the particular predicate (flat contract) that failed in the case that all its arguments are flat contracts
2011-02-10 11:32:40 -06:00
James Swaine
19dbee0405
Added semaphores for futures
2011-02-08 17:58:02 -06:00
James Swaine
0a73a9d5a1
Added semaphores for futures
2011-02-08 17:55:12 -06:00
Matthew Flatt
3c4807f032
fix coverage of `file/resource' tests
2011-02-05 08:33:27 -07:00
Matthew Flatt
18eb7c86b5
get-resource' and
write-resource': support .ini files
2011-02-05 07:39:29 -07:00
Matthew Flatt
da6d4f3fba
futures: fix `future' when given a non-JITted procedure
...
Merge to 5.1
2011-02-05 06:43:09 -07:00
David Van Horn
760a58b65d
Fixes more spelling errors.
2011-02-04 19:44:13 -07:00
Matthew Flatt
337500552c
`file/resource': improve compatibility
...
by generating "failure" results instead of exn:fail:unsupported
2011-02-04 14:25:09 -07:00
Matthew Flatt
b4ce4bbd2c
add `file/resource'
2011-02-04 13:39:49 -07:00
David Van Horn
c9519fd113
Fixed various spelling errors.
2011-02-03 17:42:33 -05:00
Sam Tobin-Hochstadt
6099806a72
codeblock:
...
fix language regexp to accept numbers in #lang
2011-02-03 17:42:33 -05:00
John Clements
e4c4170d31
updated props in test dir
2011-02-03 14:17:18 -08:00
Eli Barzilay
2fe690b29e
Try to kill the test thread after a minute, and exit after another minute.
2011-02-03 15:55:57 -05:00
John Clements
d2771cfb53
added big-bang-test.rkt
2011-02-03 10:27:47 -08:00
Robby Findler
0fce29f552
adjust the wxme reader so that it now creates image-snip%s when it finds image-snips in file
...
it used to create image% objects that were simple containers for the
data in the file; the change _should_ be backwards compatibile;
the only know incompatibility is that the get-filename method
now returns a path instead of bytes (this is to match the
image-snip% class)
closes PR 1168
please merge to the 5.1 release branch
2011-02-02 20:26:52 -06:00
Matthew Flatt
c2c6c79a15
fix `image-snip%' unmarshaling with filename
...
Merge to 5.1
2011-02-02 19:03:20 -07:00
Kevin Tew
2b045b991e
bytes-join
2011-02-02 10:37:57 -07:00
Matthew Flatt
dfa36afa89
change `floating-point-bytes->real' to always produce a flonum
2011-01-31 19:52:50 -07:00
Matthew Flatt
3ef32d915b
make inexacts `eqv?' only when precision is the same
...
plus some other small fixes
2011-01-31 19:16:33 -07:00
Matthew Flatt
1e09a544a6
adjust _float' and
_double' FFI types to accept any inexact real
...
whether single-precision or double-precision
2011-01-31 18:04:05 -07:00
Vincent St-Amour
1b3052748e
Add a case-> type-constructor as a synonym for case-lambda.
2011-01-31 16:39:20 -05:00
Vincent St-Amour
d65438c9ea
Remove some legacy bindings.
2011-01-31 16:39:19 -05:00
Vincent St-Amour
e65b206e6e
Add functions to convert back and forth between floating-point representations.
2011-01-31 16:39:17 -05:00
Vincent St-Amour
03ec1ec501
Add a single-flonum? predicate to test for single-precision floats.
2011-01-31 16:39:17 -05:00
Vincent St-Amour
c997ae139b
Single-precision floats now print differently from their double-precision
...
counterparts.
2011-01-31 16:39:16 -05:00
Vincent St-Amour
d220e0a10b
Add read syntax for single-precision float specials.
2011-01-31 16:39:16 -05:00
Vincent St-Amour
768bb63361
Fix optimizer to work with new types.
2011-01-31 16:39:14 -05:00
Vincent St-Amour
a0a54b231d
Fix TR tests.
2011-01-31 16:39:14 -05:00
Vincent St-Amour
e56663c943
Add a predicate field to base types, which makes checking for
...
subtyping of value types easier.
However, this means that base types can't be marshaled as before,
since these predicates can't be marshaled. Instead, we now marshal
base types as identifiers that refer to their base type object.
2011-01-31 16:39:13 -05:00
Vincent St-Amour
d4c93cc12e
TR's numeric tower is now built from unions of non-overlapping base types.
...
A lot of the work that was done by special-casing number types can now be
done by TR's handling of unions. This makes it easier to add more numeric
types to the tower and should make writing down types for numeric
primitives much less error-prone.
In addition, this commit adds several numeric types that will help get
tighter bounds on integer arithmetic, such as Index types. They will have
to be integrated to the base environment before they can be useful.
2011-01-31 16:39:13 -05:00
Matthew Flatt
dd5f0dfc80
fix `read-language' exn construction in an EOF case
...
Closes PR 11683
Merge to 5.1
2011-01-31 06:49:13 -07:00
Eli Barzilay
6b5e09073a
Reorganize, improve, and extend lazy tests.
2011-01-30 13:52:04 -05:00
Stephen Chang
08d99f4858
add test for lazy take bug fix -- invariant being incorrectly tested on unforced arg
2011-01-30 12:12:55 -05:00
Matthew Flatt
bc5ab1e031
fix problems with `read-language' error reporting
2011-01-30 07:47:46 -06:00
Stephen Chang
9924ac8060
add tests for lazy take
2011-01-27 17:04:58 -05:00
Vincent St-Amour
36ae5a9d50
Fix nightly running of TR tests.
2011-01-27 16:49:45 -05:00
Jay McCarthy
0714c7222c
Fixing PR11661
2011-01-27 13:38:16 -07:00
Robby Findler
419ca0a36d
adjust the test-engine test suite to use the new preferences location
2011-01-27 11:00:49 -06:00
Matthew Flatt
3448767f97
fix SRFI-14 test
2011-01-27 08:04:39 -07:00
Stephen Chang
f60957282f
fix (take 0 nonemptylist) test in tests/lazy/langimpl.rkt
2011-01-26 18:14:34 -05:00
Stephen Chang
1ab22f7c2b
add tests for push#22080
2011-01-26 17:26:44 -05:00
Vincent St-Amour
2bd0145603
Generalize hash table literals and subtypes of symbol.
...
Closes PR 11670.
2011-01-26 14:23:19 -05:00
Robby Findler
85c955fad6
tweak to move interactions fetch to the eventspace handler thread
2011-01-25 20:58:39 -06:00
Matthew Flatt
60335d9b23
fix `vector-copy' range checking for starting position
2011-01-25 15:46:52 -07:00
Stevie Strickland
a04b8d9899
Change instanceof/c to allow more contracts.
...
Now instanceof/c no longer checks explicitly for a class/c contract, so
or/c or and/c of class/c contracts succeed.
2011-01-25 14:07:30 -05:00
Robby Findler
45a635339e
refactored to make testing check syntax renaming possible
...
made sure to remove duplicates from the list before doing renaming
closes PR 11659
2011-01-21 22:27:18 -06:00
Matthew Flatt
b112fd76df
add reparent' to
subwindow<%>'
2011-01-21 20:21:21 -07:00
Jay McCarthy
aadb1b60bb
Repenting of misunderstanding docs
2011-01-20 20:53:11 -07:00
Robby Findler
8c513f2b32
drracket tests: dont' insist on a stacktrace for break exceptions
2011-01-20 19:05:43 -06:00
Matthew Flatt
0c193a599a
fix uncaught-exception-handler handling of non-escaping escape handler
...
and change the emergency error display handler to log and error
Closes PR 11630
2011-01-20 14:01:33 -07:00
Kevin Tew
bc580ac125
call-with-file-lock/timeout
2011-01-20 13:33:02 -07:00
Jay McCarthy
87865cb1bd
Fixing PR11649
2011-01-20 12:13:13 -07:00
John Clements
d675c7b12a
updated PLAI (and test cases) to use racket language rather than scheme
2011-01-20 10:21:22 -08:00
Matthew Flatt
d5fdee7e06
add argument to `regexp-try-match' to match docs
...
Closes PR 6579 --- which was actually about the
now next-to-last argument, but close enough
2011-01-17 15:18:05 -07:00
Robby Findler
70e3074baf
found another place in the framework test suite where operations weren't happening on the eventspace handler thread
2011-01-17 15:35:35 -06:00
Robby Findler
ff800c997e
make the example-test private file's work be behind a thunk (so more drdr friendly)
2011-01-17 15:04:00 -06:00
Matthew Flatt
21eee45a48
fix `read-language' when input has only comments
2011-01-16 19:01:45 -07:00
Matthew Flatt
113e49aa5b
extend date->seconds' and
find-seconds' to work with UTC
...
Closes PR 6137
2011-01-16 17:53:30 -07:00
Robby Findler
6c974f6c5f
add missing require
2011-01-15 15:14:57 -06:00
Matthew Flatt
c2afc03b3b
fix interaction of `continuation-mark-set-first' and prompts
...
including a documentation fix
2011-01-15 08:05:55 -07:00
Robby Findler
90b8400d50
make up a new temp dir instead of using C:\tmp
2011-01-15 06:44:42 -06:00
Mike Sperber
d2aa1c1138
Make test-engine tests work with new gracket.
2011-01-15 12:25:39 +01:00
Robby Findler
255cb84b87
add an example tool (that actually does something) to the docs and make a test suite that sets that tool up and runs it
2011-01-13 20:11:55 -06:00
Matthew Flatt
2097e944b7
fix `regexp-replace*' with procedure and #f matches
2011-01-13 11:01:46 -07:00
Robby Findler
b8459737f0
disable the trace of all of the messages in the framework tests
2011-01-12 17:32:26 -06:00
Carl Eastlund
803ac4a412
Added a sample package to test Planet scribblings. No automated tests yet.
...
Currently one just has to build the package and "eyeball" its documentation.
2011-01-11 18:00:40 -05:00
Matthew Flatt
6afffb329c
add `svg-dc%'
2011-01-10 16:41:16 -07:00
Robby Findler
0411cddba5
added set/c and made sets print as set, seteq, or seteqv
...
closes PR 11454
2011-01-08 13:49:01 -06:00
Stevie Strickland
9ffb204682
Rename instanceof' to
instanceof/c'.
2011-01-08 11:24:25 -05:00
Jay McCarthy
f2a9aebba5
Fixing contract formatting change
2011-01-07 19:53:00 -07:00
Stevie Strickland
92775c5e4e
Add instanceof.
...
The instanceof contract combinator takes a class contract. The resulting
contract protects objects using the external field and method contracts
in the class contract.
2011-01-07 18:22:24 -05:00
Robby Findler
bf031be73e
what happened here?
2011-01-07 09:23:51 -06:00
Robby Findler
a32adbe7db
make the framework test suite only modify gui objects on the eventspace handler thread
2011-01-07 06:39:27 -06:00
Robby Findler
31a629ff9c
make provide/contract work properly when it is the only thing in a module body
...
closes PR 11596
2011-01-07 05:19:16 -06:00
Matthew Flatt
655f6045a2
fix shared' for
#:auto' fields and constructors without `make-'
...
Closes PR 11588
Closes PR 11591
2011-01-05 13:52:11 -07:00
Vincent St-Amour
b32287fa2d
Fixed a bug with complex numbers made from floats of differing precision.
...
It used to be that constructing complex numbers from a float and a
double sometimes caused incorrect coercions.
2011-01-05 14:42:31 -05:00
Vincent St-Amour
cb723092e2
Fix portable fixnum size.
2011-01-05 14:42:31 -05:00
Robby Findler
51ad306af2
changed real-in to be an alias for between/c
2011-01-04 15:40:32 -06:00
Matthew Flatt
553723627c
gradients: refine checking and docs to fit various conventions
2011-01-04 12:44:36 -07:00
Matthew Flatt
cd676fe81c
another context-cache repair
2011-01-03 18:04:11 -07:00
Robby Findler
d1e0e7e254
fixed a few places in the repl-test where it was accessing gui stuff on a non-GUI thread
2011-01-03 17:41:08 -06:00
Robby Findler
fbe6e06957
give up on predicting the stack trace contents when yield is used
2011-01-03 07:15:03 -06:00
Robby Findler
6fb6fca73b
make the test suite less picky about the contents of the stack (but not if it has content or not)
2011-01-02 19:53:39 -06:00
Matthew Flatt
241bb79cb0
allow a button% to have both a string and a bitmap for its label
2011-01-01 13:54:45 -07:00
Matthew Flatt
55693e090f
add port-try-file-lock?' and
port-file-unlock'
2010-12-31 14:40:27 -07:00
Robby Findler
699058d3a4
do a little bit better job keeping the manipulation of the gui state on the eventspace handler thread (in the syncheck test)
2010-12-31 15:29:23 -06:00
Eli Barzilay
3fb871586f
Removed some exe bits that look redundant.
2010-12-31 15:59:39 -05:00
Robby Findler
e75d6b3fae
replace one inherently racecondition-prone test with two others that approximate it
2010-12-31 10:50:27 -06:00
Robby Findler
6f9bcf0001
Rackety
2010-12-31 09:58:54 -06:00
Robby Findler
3dc5bbd0eb
moved interactive panel test into its own file
2010-12-31 09:58:53 -06:00
Robby Findler
900d74714e
fixed up panel:dragable so that it actually does the right thing now
...
adjusted the framework test suite so that it runs under windows
closes PR 10880
2010-12-31 09:58:51 -06:00
Matthew Flatt
a974dad8bf
add alpha value to `color%'
2010-12-30 07:05:25 -07:00
Robby Findler
fb25dc9a42
adjusted drracket test suites so that it is (more) careful to keep all manipulation of GUI objects (text% objects seem to have been the important one) on the drracket eventspace main thread in an effort to make the test suites more stable.
2010-12-29 20:31:40 -06:00
Matthew Flatt
d3fd1ba013
add `set-padding' to text%
2010-12-29 13:42:58 -07:00
Sam Tobin-Hochstadt
2431f8f706
Fix TR tests for new contract error messages.
2010-12-29 13:46:57 -05:00
Matthew Flatt
3b032893c1
don't JIT-inline `values' in a single-value position
2010-12-28 17:47:03 -07:00
Matthew Flatt
5339be7594
make language test work with cgc
2010-12-28 10:52:17 -07:00
Matthew Flatt
0b1f1a4f4e
add missing test case for premultiply-alpha fix
2010-12-27 19:34:59 -07:00
Matthew Flatt
705b11f2b8
a prompt-test fix like the previous one, but for post thunks
2010-12-27 15:24:33 -07:00
Robby Findler
6fe8643194
adjust teaching languages so that print works properly
2010-12-27 09:16:09 -06:00
Matthew Flatt
0d3fbb11fa
supress a prompt test that doesn't apply to composable continuations
2010-12-26 16:21:28 -06:00
Matthew Flatt
e77917db8c
fix another continuation bug discovered by Casey's random testing
2010-12-25 17:12:33 -06:00
Robby Findler
dd531dde9e
check syntax does not call eval-compile-time-part-of-top-level when
...
checking programs in the module language.
closes PR 10908
2010-12-25 15:38:08 -06:00
Matthew Flatt
e7b52bf10f
fix ffi handling of non-GCable pointers with offsets
...
Closes PR 11567
2010-12-25 09:34:07 -06:00
Robby Findler
bb9bd1b07a
new attempt at contract violation error messages
2010-12-22 10:39:59 -06:00
Robby Findler
53509bef5f
made module lang tests Windows friendly & Rackety
2010-12-20 08:43:28 -06:00
Sam Tobin-Hochstadt
491eeaa759
Move mred/private/wxme/style to racket/snip/private/style.
...
`racket/snip' now exports the style classes and the add,mult-color interfaces.
2010-12-19 22:56:15 -05:00
Mike Sperber
79600e15a6
Merge remote branch 'origin'
2010-12-19 11:21:41 +01:00
Mike Sperber
fa854f62fc
Add vector signatures, and `vector-of' to the HtDP signature syntax.
2010-12-19 11:20:51 +01:00
Sam Tobin-Hochstadt
e9e45fdc2c
Fix test require.
2010-12-18 00:10:25 -05:00
Matthew Flatt
4195cf3297
more fixes for weird draw-bitmap mask and mode combinations
2010-12-17 05:51:23 -07:00
Matthew Flatt
98f6415c59
another fix to drawing a color bitmap to a monochrome target
2010-12-17 05:29:50 -07:00
Matthew Flatt
8a10c3d3db
fix use of color bitmap as mask when drawing after previous use
2010-12-16 21:02:11 -07:00
Matthew Flatt
f8ec47cdeb
test for draw-bitmap repairs
2010-12-16 19:36:13 -07:00
Noel Welsh
8040100eff
Merge branch 'master' of pltgit:plt into in-vector
2010-12-13 13:43:05 +00:00
Noel Welsh
cfa7b727f4
Fix some errors with in-vector and derived forms:
...
- Range checking was inconsistent between the sequence and macro forms
- The macro form could crash due to unsafe vector refs
Fixes involved refactoring the range checks so they are shared between both versions, and changing the contract slightly so start and stop are checked before the sequence runs. This allows unsafe vector refs and earlier error notifications at the cost making some valid programs (e.g. those using some condition to stop a comprehension hitting an invalid index) now be invalid. Only crazy people would rely on the old behaviour, so it isn't a problem in practice.
2010-12-13 13:38:35 +00:00
Matthew Flatt
965e8f96d1
fix get-char-height' and
get-char-width' in dc<%>
...
Closes PR 11526
2010-12-10 20:37:51 -07:00
Matthew Flatt
2ae9f14f9e
fix exn raised in refab-struct read errors
...
Closes PR 11530
2010-12-10 18:33:44 -07:00
Matthew Flatt
2b4f1a6908
extend `sync/timeout' to allow a tail-position fail thunk for polling
2010-12-10 18:06:21 -07:00
Carl Eastlund
5b18305e11
New test case for formatting bug in TR error messages.
2010-12-10 17:26:17 -05:00
Vincent St-Amour
09ffb70492
Update TR tests to reflect new contract error messages.
2010-12-10 16:59:13 -05:00
Vincent St-Amour
b9d67eea2f
Allow running individual TR tests.
2010-12-10 16:59:12 -05:00
Vincent St-Amour
407d9b5f07
Error when running TR's test harness with no tests.
2010-12-10 13:44:47 -05:00
Stevie Strickland
7ab53d8ddb
Fix unit contract tests due to new contract error format.
2010-12-10 13:06:56 -05:00
Robby Findler
94ebb1f317
update the mzlib contract test suite to the new error messages
2010-12-10 06:57:27 -06:00
Eli Barzilay
de4daa8d81
Add a hack to get the environment variables from the visual studio batch
...
file.
Also change the version number in the foreign tests to make them work.
Also fix getting the `test_gui' configuration.
2010-12-10 05:15:14 -05:00
Robby Findler
18dacad6c8
a first attempt at a rewording of the blame error messages to admit the possibility that the contract was wrong and also to claim that fixing the blamed module or the contract is all that is required
...
note that two test cases are failing, but only because they depend on the wording of the error messages; once that is set, I'll fix them.
2010-12-09 15:50:15 -06:00
Vincent St-Amour
365d272666
Test for errors in rhs.
2010-12-08 20:32:20 -05:00
Vincent St-Amour
81ef5f9418
Typecheck body of letrec using original types instead of potentially undefined type.
2010-12-08 20:32:20 -05:00
Vincent St-Amour
b045153177
letrec: consider outside bindings safe.
2010-12-08 20:32:19 -05:00
John Clements
368f345901
more stepper cleanup
2010-12-08 16:37:15 -08:00
John Clements
ff973b628b
stepper refactoring and cleanup
2010-12-08 16:37:15 -08:00
Sam Tobin-Hochstadt
87eab889d6
Allow arbitrary filter specification in function types.
...
Allow (A -> B -> C) for curried function types.
2010-12-08 18:22:29 -05:00
Sam Tobin-Hochstadt
cb6d78698b
Count pairs as having size 1, not 0, in minimizing edit distance.
2010-12-08 18:22:29 -05:00
Sam Tobin-Hochstadt
73dbf42e0e
Better handling of `hash-*' functions, and hashes as sequences.
2010-12-08 18:22:29 -05:00
Vincent St-Amour
dc2df4882b
Take into account potentially undefined values in letrec.
...
Closes PR11511.
2010-12-08 18:17:06 -05:00
Jay McCarthy
7ac2b8e316
Fixing tests
2010-12-08 14:08:54 -07:00
Jay McCarthy
5285dc6a16
Fixing tests
2010-12-08 14:08:54 -07:00
John Clements
5456e83ce4
massively faster due to reuse of namespace
2010-12-07 20:44:35 -08:00
John Clements
0d2a4b98db
moving to another machine
2010-12-07 20:44:34 -08:00
John Clements
6f84a1c143
checkpointing progress toward applicable structs instead of hash table
2010-12-07 20:44:34 -08:00
Stevie Strickland
37349ca053
Allow uses of recursive-contract to specify the type of contract to create.
2010-12-07 18:30:20 -05:00
Jay McCarthy
d28dc2ae41
Revert "Adding dynamic/c and coerce/c"
...
This reverts commit cec308cc363a69d561097e978352488c996385ed.
2010-12-07 14:14:55 -07:00
Jay McCarthy
58494c125b
Big bang coercion
2010-12-07 14:14:55 -07:00
Jay McCarthy
d7bd9ddc5f
Adding compat0 test cases
2010-12-07 14:14:54 -07:00
Jay McCarthy
78a65f0662
More exhaustive test
2010-12-07 14:14:54 -07:00
Jay McCarthy
b5a39d03e4
Discussing compatibility
2010-12-07 14:14:54 -07:00
Jay McCarthy
d6d9f3ef8c
Adding dynamic/c and coerce/c
2010-12-07 14:14:53 -07:00
Jay McCarthy
f5e9e0dad1
Fixing example
2010-12-07 14:14:52 -07:00
Jay McCarthy
4ca1dac51c
write-xexpr test cases
2010-12-07 14:14:51 -07:00
Jay McCarthy
ca6c37bccf
Adding header
2010-12-07 14:14:50 -07:00
Jay McCarthy
16f8b3a2a6
Adding test case and fixing un-terminated requests
2010-12-07 14:14:50 -07:00
Jay McCarthy
9b066d0f04
Correcting tests and examples
2010-12-07 14:14:49 -07:00
Jay McCarthy
419c184c94
Using response/xexpr
2010-12-07 14:14:49 -07:00
Jay McCarthy
05c9fcd412
First pass at Xexpr removal
2010-12-07 14:14:49 -07:00
Jay McCarthy
dc01f00afc
New benchmarks
2010-12-07 14:14:49 -07:00
Stevie Strickland
5b8e5d6380
Extend struct/c to allow impersonator contracts for mutable fields.
...
Also, flat contracts for immutable fields are only evaluated at contract
wrapping time.
2010-12-07 14:29:07 -05:00
Stevie Strickland
10eb818f95
Conversion of struct/c to chaperones when appropriate.
2010-12-07 04:11:26 -05:00
Stevie Strickland
ebf01cc664
Converting case-> to chaperones and impersonators.
2010-12-06 16:12:49 -05:00
Matthew Flatt
fda0228631
fix broken inexact-reader configuration
...
Closes PR 11496
2010-12-04 16:22:17 -07:00
Matthew Flatt
116d88577e
restore old behavior of _fixint' and
_ufixint'
...
Closes PR 11492
2010-12-03 14:20:38 -07:00
Matthew Flatt
7ec0731cda
don't use unsafe-string-ref' in
for'
...
because `unsafe-string-ref' is for ASCII results, only
2010-12-03 11:10:11 -07:00
Noel Welsh
3b234010a0
Merge branch 'master' of pltgit:plt into in-vector
2010-12-03 14:36:48 +00:00
Noel Welsh
899e31e2ce
Add tests for extended in-flvector and in-fxvector forms, refactoring common code to for-util.rkt
2010-12-03 14:33:38 +00:00
Noel Welsh
6e2d67e58a
Fix typo
2010-12-03 12:18:04 +00:00
Noel Welsh
6761ae8618
Merge branch 'master' of pltgit:plt into in-vector
2010-12-03 10:27:34 +00:00
Stevie Strickland
778f0c9fc4
Actually turn on old object-info hack mentioned in 4e451a1
.
2010-12-02 13:02:59 -05:00
Robby Findler
60d986b6df
added a not-quite-right test case (drracket's test suites don't run well in gr2 yet)
2010-12-02 10:40:43 -06:00
Robby Findler
9501a9d7f8
adjustments to match gr2
2010-12-02 10:40:43 -06:00
Stevie Strickland
30afcd3bf5
Fix object=?.
...
Also commented out some tests of reflective operations on contracted objects.
I've added a note that describes how we might be able to fix this, if
we decide it's worth doing.
2010-12-01 15:11:25 -05:00
Stevie Strickland
2bd7760412
Conversion of object/c and object-contract to use impersonators.
2010-12-01 15:11:20 -05:00
Matthew Flatt
082515d6db
fix namespace-anchor on non-module namespaces
2010-12-01 06:52:11 -07:00
Jon Rafkind
cf3b9680ba
remove 0 arg set-union. add workaround to docs
2010-11-29 00:34:57 -07:00
Jon Rafkind
46244f81fc
make set-union with 0 args return an empty set
2010-11-28 23:08:28 -07:00
Robby Findler
eabbb7dff2
improve the leak test a little by looking to see tabs get gc'd and so do the user's namespaces.
2010-11-28 19:26:38 -06:00
Matthew Flatt
0b19c6e798
fix bug in composable continuations
...
--- as deiscovered by Casey's random tester
2010-11-27 09:52:11 -07:00
Matthew Flatt
abcaa1775c
add width' and
height' arguments to post-script-dc% and pdf-dc%
...
and document the change that the PS bounding box is no longer
inferred from drawing operations
2010-11-26 20:40:43 -07:00
Jay McCarthy
ee2b11630f
Adding containers
2010-11-26 19:59:32 -05:00
Jay McCarthy
eee5c6b14a
Adding response/port
2010-11-26 19:59:32 -05:00
Jay McCarthy
8320517192
Adding page
2010-11-26 19:59:32 -05:00
Matthew Flatt
2edadd6113
add pdf-dc%; make slideshow/pict depend on racket/draw, not racket/gui
2010-11-26 10:35:05 -07:00
Matthew Flatt
7da127227a
gtk & cocoa: frame iconize repairs
...
In the "windowing.rktl" tests, for Gtk there are still race conditions
between the program and the window manager. But for the first
time ever, all platforms can pass the "windowing.rktl" test.
2010-11-26 08:33:59 -07:00
Matthew Flatt
1f61bbdc51
win32: frame size and iconize fixes
2010-11-26 08:10:58 -07:00
Robby Findler
4c9794acc6
drracket frames leak; add a test case
2010-11-26 08:51:37 -06:00
Matthew Flatt
8e8844641c
fix `draw-bitmap-section-smooth' method of bitmap-dc<%>
2010-11-25 11:00:32 -07:00
Jay McCarthy
bd7ffb282f
This code appears to have been copied from the other
2010-11-25 12:03:10 -05:00
Jay McCarthy
6474b519bb
Fixes usage of argb-pixels
2010-11-25 12:01:44 -05:00
Jay McCarthy
e081af2aef
This test relied on the old source location losing behavior of Rackunit
2010-11-25 11:38:43 -05:00
Matthew Flatt
347869fc9e
fix some racket/gui tests and fix cocoa frame centering
2010-11-25 08:03:33 -07:00
Jay McCarthy
eecbc539c1
Fixing problem with previous "fix" to mutator-begin
2010-11-24 23:33:42 -05:00
Jay McCarthy
c9dcbb9edb
Failing test
2010-11-24 23:33:42 -05:00
Jay McCarthy
b686cc84a9
Removing test because we reintroduced gensym
2010-11-24 23:33:42 -05:00
Matthew Flatt
1034c9be4e
fix hashing on C pointers and missing tests
2010-11-24 15:44:18 -07:00
Jay McCarthy
e3153e6d21
Adding normalization display
2010-11-23 15:42:39 -07:00
Vincent St-Amour
102419f009
Fixed command-line options for gambit in benchmarks.
2010-11-19 12:10:42 -05:00
Jay McCarthy
24dbffaf3b
Fixing problem found at Brown
2010-11-17 04:58:09 -07:00
Jon Rafkind
5f2d18c1f9
add in-queue
2010-11-16 23:09:19 -07:00
Jon Rafkind
27b32464c5
add test for sequence used as an expression
2010-11-16 23:09:19 -07:00
Matthew Flatt
1762a9a872
fix set!' of
define-for-syntax'ed varable in `let-syntax' RHS
2010-11-16 20:18:11 -07:00
Jon Rafkind
7b24eaf58e
rename queue-count to queue-length
2010-11-16 14:36:49 -07:00
Jon Rafkind
73be67942d
add queue->list
2010-11-16 14:36:49 -07:00
Jon Rafkind
58188ad0c6
add queue-count
2010-11-15 22:32:08 -07:00
Matthew Flatt
c3e0a7af13
manual tests for refresh behavior
2010-11-12 20:47:07 -07:00
Matthew Flatt
42a4465fb0
fix bytecode compiler bugs in tracking known-flonum arguments
2010-11-12 15:28:57 -07:00
Eli Barzilay
5c1bd77b9e
Add shuffle' to
racket/list'.
2010-11-12 17:21:11 -05:00
Noel Welsh
2b799e2714
Merge branch 'master' of pltgit:plt
2010-11-12 10:30:08 +00:00
Robby Findler
5a9c469b0f
added forall to go along with exists contracts
2010-11-11 14:39:43 -06:00
Matthew Flatt
27752c4695
plot bug fixes, including new images and a more forgiving image-equality test
2010-11-10 09:18:50 -07:00
Matthew Flatt
8d1827222c
improve docs in 'interior allocation mode and improve 'interior-atomic
2010-11-10 09:18:31 -07:00
Matthew Flatt
a0a414465d
fix problem with multiple captures of the same continuation
...
--- a bug introduced when enabling full continuations
to escape past continuation barriers in v5.0.1
Closes PR 11409
2010-11-09 16:48:23 -07:00
Matthew Flatt
0a179481a5
fix continuation capture in continuation transferred to a thread
...
where the prompt is the implicit one at the thread's creation
Closes PR 11382
2010-11-08 18:06:07 -07:00
Matthew Flatt
90ac279096
add 'can-impersonate option to `make-struct-type-property'
2010-11-08 14:00:59 -07:00
Eli Barzilay
f5f1243b33
Move "fuzz.rkt" test to "tests/racket/stress".
2010-11-08 09:48:00 -05:00
Matthew Flatt
7f67b6569c
v5.0.99.2: proxy' ->
impersonator'
2010-11-08 06:23:16 -07:00
Matthew Flatt
bc2c95f564
fix cm test that used gl-info_rkt.zo (which is now gone)
2010-11-07 19:21:03 -07:00
Matthew Flatt
39596efef5
cocoa and gtk: fix combo% `on-popup' method
2010-11-05 15:54:56 -06:00
Matthew Flatt
e033d9edf1
cocoa & gtk: fix some test failures
2010-11-05 15:54:54 -06:00
Matthew Flatt
4f2e59e7a6
some fixes prompted by the test suite
2010-11-05 15:54:48 -06:00
Matthew Flatt
d2275f4179
level-2 finalization from ffi/unsafe and late-weak references
2010-11-05 15:54:47 -06:00
Matthew Flatt
73dd8cc697
fix gc handling of ephemeron chains
2010-11-05 15:54:47 -06:00
Matthew Flatt
ca64c25cf9
cocoa: control fonts
2010-11-05 15:54:43 -06:00
Matthew Flatt
16b34c236a
gtk: misc fixes
2010-11-05 15:54:41 -06:00
Matthew Flatt
b4fafc1888
cocoa: printer-dc%
2010-11-05 15:54:38 -06:00
Matthew Flatt
70b26a5885
win32: more menus and widgets
2010-11-05 15:54:32 -06:00
Matthew Flatt
604afc1803
win32 widgets, mouse events, and cursors
2010-11-05 15:54:32 -06:00
Matthew Flatt
5809bc7790
fix slider value display and 'plain option
2010-11-05 15:54:27 -06:00
Matthew Flatt
c3fa1f01e8
cocoa mouse event and cursor fixes
2010-11-05 15:54:22 -06:00
Matthew Flatt
a747047145
special-option-key for cocoa
2010-11-05 15:54:19 -06:00
Matthew Flatt
a7a629e45b
showkey as module
2010-11-05 15:54:18 -06:00
Matthew Flatt
40c1c2ffef
cocoa cursors
2010-11-05 15:54:16 -06:00
Matthew Flatt
b020c2f858
fix gtk widget size info for sizing and positioning
2010-11-05 15:54:12 -06:00
Matthew Flatt
cc55bd7e93
restore auto-scroll canvases; fix text-rotation bug
2010-11-05 15:54:12 -06:00
Matthew Flatt
b69d4322af
fix canvas dc size reporting
2010-11-05 15:54:10 -06:00
Matthew Flatt
c42d95216e
auto-scroll canvases and frame status lines
2010-11-05 15:54:10 -06:00
Matthew Flatt
626ceef11b
misc repairs
2010-11-05 15:54:06 -06:00
Matthew Flatt
d7289c253f
support general transformation matrix
2010-11-05 15:54:04 -06:00
Matthew Flatt
049e4dbdcb
fix clipping
2010-11-05 15:54:00 -06:00
Matthew Flatt
dc00e22b85
fix drawing bugs and improve backward compatibility
2010-11-05 15:53:58 -06:00
Matthew Flatt
88606ae251
drawing repairs
2010-11-05 15:53:58 -06:00
Vincent St-Amour
4c081c127a
Fixed a fixnum typechecking issue.
2010-11-04 17:27:34 -04:00
Casey Klein
bd0ebc7511
Adds auto-completion to LaTeX and TeX inspired keybindings
2010-11-02 22:34:05 -05:00
Jay McCarthy
6d2042fbd9
The stacks appear to be different, so maybe the JIT is different on Linux and disabling it will get stable output?
2010-11-02 15:44:35 -06:00
Jay McCarthy
7c452ad7ea
Maybe the DrDr error is related to flushing?
2010-11-01 10:20:31 -06:00
Eli Barzilay
a7220062de
old typo
2010-11-01 08:25:35 -04:00
Jay McCarthy
690ed259ad
Wrapping standalone tests so that no stderr is produced
2010-10-29 22:35:20 -06:00
Jay McCarthy
ec7157744f
Repairing tests
2010-10-29 21:32:31 -06:00
Blake Johnson
783418ce37
only creating zo file
2010-10-29 19:50:12 -06:00
Blake Johnson
b2b5875e3e
replacing self modidx refs and tests
2010-10-29 19:50:12 -06:00
Blake Johnson
0688c18593
fixing logging and running code in zo-exs
2010-10-29 19:50:11 -06:00
Blake Johnson
77c46d07ee
debugging
2010-10-29 19:50:11 -06:00
Jay McCarthy
ac4fb05f0c
Correct error in mutator quote
2010-10-28 11:18:28 -06:00
Jay McCarthy
05832af083
Correct handling of procedure env roots in mutator
2010-10-28 11:18:27 -06:00
Sam Tobin-Hochstadt
561fdc8db5
Avoid dumb parsing bugs in require/typed.
2010-10-26 18:09:45 -04:00
Matthew Flatt
5d8e000d6d
swap vector*-ref' and
vector-ref', etc.
...
Merge to 5.0.2
2010-10-25 11:22:35 -06:00
Matthew Flatt
c512dbd6d3
fix bogus reordering of floating-point args in unboxing mode
...
Merge to 5.0.2
Closes PR 11272
2010-10-22 21:19:18 -06:00
Stevie Strickland
2847ac86bd
Rearrange ->d appropriately to use proxies/chaperones.
...
Also remove the old tests for tail-call behavior with ->d.
I think it was a faulty way of doing the optimization, and we can't even
do it in the same way now, since we can't get the original "raw" arguments
to the right place via continuation marks.
->i has a much better chance of having this optimization where possible,
and when I start converting ->i, I'll make sure to add appropriate tests.
2010-10-22 16:06:56 -07:00
Robby Findler
31f4a120f1
added two stress tests for ->i performance
2010-10-22 14:07:30 -05:00
Jon Rafkind
4ee161b296
dont require core files
2010-10-22 10:48:09 -06:00
Jon Rafkind
a3fefc1c35
add struct example
2010-10-22 10:48:07 -06:00
Jon Rafkind
a998a57000
add function tests
2010-10-22 10:48:06 -06:00
Sam Tobin-Hochstadt
dcd3f9a9aa
Flush output in fuzz testing.
2010-10-21 23:40:12 -07:00
Jay McCarthy
c2f8e4c0fe
Adding attributes to select-input
2010-10-21 22:29:28 -07:00
Eli Barzilay
aebf9e77ef
Fix require in test suite
2010-10-21 20:25:37 -04:00
Eli Barzilay
2f5265854a
Rename seqn-*' to
stream-*'.
...
Later this will grow, to include a few kinds of streams in a unified
way, and possibly change the sequence protocol to a point where these
functions are not causing such big runtime penalties.
2010-10-21 19:49:39 -04:00
Stevie Strickland
b272c02548
Have unconstrained-domain-> do tail checks as well.
2010-10-21 16:22:51 -07:00
Stevie Strickland
84f3cb115b
Add proxies for -> and ->*.
...
Attempt to do a recently intelligent job by using more specific lambdas
when possible (i.e., when the arity of the function matches the arity
specified by the contract).
Also, change testcases that test creation of proxy contracts to stop
depending on the proxy-ness of -> contracts. This also uncovered a bug
in the testcase that checks that proxy contracts aren't allowed for
the domain in hash/c.
2010-10-21 15:03:42 -07:00
John Clements
b37187da59
added universe-test
2010-10-21 07:19:10 -07:00
John Clements
d18f43a488
cosmetic changes only
2010-10-20 12:05:06 -07:00
Vincent St-Amour
a15236ea4f
Fix opt-lambda:. Merge to 5.0.2.
2010-10-20 14:32:37 -04:00
Robby Findler
b91a0da469
fixed and ->i bug that could cause expressions to be evaluated twice
2010-10-20 08:37:26 -05:00
John Clements
70898379c5
copied 'mzlib/convert-prop attachment from outer layer to inner layer.
2010-10-19 23:28:45 -07:00
Sam Tobin-Hochstadt
9cc35d59fe
Fix fuzz tester prop.
2010-10-19 17:58:29 -07:00
John Clements
0536d52efd
looks like a fix for cond
2010-10-19 17:50:35 -07:00
Robby Findler
ea985a81d6
added some more information to the error messages when a syncheck test case fails
2010-10-19 18:41:20 -05:00
Sam Tobin-Hochstadt
50bf3dc1be
Add zo-read/parse/run fuzz tester.
2010-10-19 14:51:13 -07:00
John Clements
2083181d2e
got testing harness working again.
2010-10-19 14:37:44 -07:00
Jay McCarthy
afd3a90607
Adding preamble to make-xexpr-response
2010-10-19 11:29:49 -07:00
Matthew Flatt
ddca8cd29b
fix non-inlined `in-vector' sequence on proxied vectors
...
Merge to 5.0.2
Closes PR 11225
2010-10-18 13:48:22 -07:00
Mike Sperber
32455894bc
Unbreak the test-engine-test.rkt test suite.
...
- signatures are only in ASL now
- the error messages for the DMdA languages are different
2010-10-18 09:37:48 +02:00
Matthew Flatt
caa747e5c6
fix an interaction of `dynamic-wind' pre thunks and composable continuations
...
Merge to 5.0.2
2010-10-16 19:44:33 -06:00
Jay McCarthy
e6b2965d39
Re-enabling tests
2010-10-15 13:08:39 -06:00
Jay McCarthy
f6fbc85d1b
Adding test printing tests
2010-10-15 13:08:38 -06:00
Jay McCarthy
e8ceade2a5
Little stress tests
2010-10-15 13:08:38 -06:00
Vincent St-Amour
12a5454b14
Removed logging when no optimization actually happens.
2010-10-14 14:13:06 -04:00
Robby Findler
dac011bc9f
move the signature coverage test to ASL since signatures are now only in ASL
2010-10-14 11:45:04 -05:00
Robby Findler
61188f3e44
adjusted to new error messages
2010-10-14 10:06:26 -05:00
Vincent St-Amour
3f5ea8a5be
Fixed a test to reflect implicit let in cond instead of implicit begin.
2010-10-14 10:53:43 -04:00
Robby Findler
3e9858b001
added an argument to open-input-text-editor so that it can lock (and unlock) the editor when editing would not be allowed.
2010-10-13 15:55:17 -05:00
Robby Findler
798e35bb4c
fixed a bug in the test suite so that test errors are now (all) reported to stderr instead of stdout
...
also added a test suite for teh 'language in the source' language
2010-10-13 15:55:17 -05:00
Matthew Flatt
6e23fcda5f
fix _short' and other non-
_int' integer types, and add `_intptr' test
2010-10-13 08:50:47 -06:00
Matthias Felleisen
df62ca47e9
added 'function', Closes PR 11283
2010-10-13 10:31:00 -04:00
Mike Sperber
bb098fc77c
Added rudimentary test suite for test engine.
2010-10-13 14:01:07 +02:00
Vincent St-Amour
27e722f27b
Inexact-Complex -> Float-Complex
2010-10-12 16:47:46 -04:00
Vincent St-Amour
a59a99c42d
Changed the TR numeric tower to use the new flonums.
2010-10-12 16:47:45 -04:00
Vincent St-Amour
f3ae9c73b0
Changed the interface for running single optimizer tests.
2010-10-12 16:47:45 -04:00
Matthew Flatt
bf4fc2574c
fix syntax colorer for #true and #false
2010-10-12 08:22:12 -06:00
Matthew Flatt
99df8e1267
allow internal definitions in when',
unless', cond,
case', `match'
2010-10-12 06:41:49 -06:00
Eli Barzilay
6295824851
Some additional tests, and use () instead of {} for racket sexprs
2010-10-11 15:07:28 -04:00
Matthew Flatt
fe301b1ff4
print-boolean-long-form, #true, #false, read-accept-lang, flonum?
2010-10-08 15:13:04 -06:00
Mike Sperber
219c91d8e7
Check parametric struct/record signatures eagerly.
2010-10-08 17:01:47 +02:00
Mike Sperber
87da2f35b9
Provide English and German versions of deinprogramm/signature/signature.
2010-10-08 11:19:38 +02:00
Vincent St-Amour
db0046101c
Improved TR's error messages when all domains but one have been eliminated.
2010-10-07 18:30:35 -04:00
Matthew Flatt
65ad6aee20
fix `touch' to run a suspended future in the runtime thread
...
if no future thread is running the future; also adjust the
policy for suspending a future so that even synchronized
operations can suspend if there's other work to be done;
also also fix `current-future' for nested `touch'es and when
parallel futures are disabled
2010-10-07 14:58:53 -06:00
Matthew Flatt
15302dc844
adjust futures to decouple blocked futures from worker threads
...
which required adding a notion of "lightweight continuation" to
the runtime system, where a lightweight continuation involves
only frames from JIT0generated code (so that details of the stack
layout are known, for example)
2010-10-07 07:39:16 -06:00
Vincent St-Amour
3ec9503da9
Changed the typed benchmark harness to reflect optimization on by default.
2010-10-06 17:32:31 -04:00
Vincent St-Amour
abcbce129b
Changed the optimizer's test harness for optimization on by default.
2010-10-06 17:32:30 -04:00
Jon Rafkind
2f730f479c
add keyword argument to eli-tester that allows for silent successes
2010-10-06 11:10:43 -06:00
Jay McCarthy
57d27373ac
Fixing struct pattern optimization
2010-10-05 09:55:16 -06:00
Matthew Flatt
5a7ef5ee3f
some unsafe-...* fixes on chaperones
2010-10-05 06:29:47 -06:00
Matthew Flatt
649242ac86
fix JIT-inlined vector-set!' and
set-box!' to not mutate immutable
2010-10-05 06:29:47 -06:00
Eli Barzilay
8709715bf4
Add a test file to check the hack that errortrace uses.
...
(Makes it easy to know when it breaks, and hopefully to fix it when that
happens)
2010-10-04 22:22:24 -04:00
Jay McCarthy
0c47e572c0
Using unsafe operations in racket/match
2010-10-04 15:54:59 -06:00
Ryan Culpepper
ad76c9ea7b
fixed splay-tree bug
2010-10-04 11:54:03 -06:00
Ryan Culpepper
4aef03795d
added ordered-dict test
2010-10-04 11:54:03 -06:00
Vincent St-Amour
5a67535a95
Got rid of a broken subtyping rule.
2010-10-01 17:48:47 -04:00
Vincent St-Amour
f7436b59fb
Delete compiled benchmarks when testing.
2010-10-01 17:48:46 -04:00
Matthew Flatt
d6684dad8c
fix cstruct alignment handling
2010-10-01 10:49:40 -06:00
Matthew Flatt
4b120e5d86
add `proxy-prop:application-mark'
2010-09-29 12:26:46 -04:00
Robby Findler
2649e21e4b
fixed race-condition in hangman test case
2010-09-24 20:33:58 -05:00
Matthew Flatt
c1aa594657
add fvectors and unsafe-{s,u}16-{ref,set!}
2010-09-24 16:32:07 -06:00
Stevie Strickland
d2a3cbf6d0
Add better first-order checking for ->d and ->i.
...
Closes PR 11247.
2010-09-23 14:35:45 -04:00
Matthew Flatt
3d16dd698a
fix JIT-generated code for `vector-length' on a fixnum
...
and also code for operations like `fl<' on fixnums in
certain build modes (CGC, PPC)
2010-09-23 06:46:10 -06:00
Mike Sperber
593f8588fe
Implement lazy signature checking for ordinary pairs.
2010-09-22 11:03:01 +02:00
Robby Findler
8499a4e65d
added a test suite for the hangman teachpack
2010-09-21 15:27:49 -05:00
Eli Barzilay
ee138cf2cb
Some repeated "and and"s and "the the"s, and two more typos.
...
Closes PR 11229.
2010-09-20 15:38:18 -04:00
Kevin Tew
faa0c86f50
Places: fix asynchronous receive
2010-09-20 08:42:55 -06:00
Matthew Flatt
fa7dd9b522
rename file to avoid :, which is not allowed under Windows
2010-09-20 03:31:18 -06:00
Stevie Strickland
3325350026
At Robby's request, remove the check for proxy-of?.
...
Due to the bad interaction between procedure-rename and getting the
contract info from the proxy/chaperone, this will cause a failure in
the contract test cases. I'm submitting a bug report for that issue.
2010-09-18 13:55:09 -04:00
Matthew Flatt
d92c4e44e2
fix make-reader-graph on proxied vectors
2010-09-17 18:42:29 -06:00
Ryan Culpepper
0d76f8ecbf
added data/order, docs
...
changed splay-tree, skip-list constructors to take orders
2010-09-17 16:54:54 -06:00
Ryan Culpepper
b74f3461e1
added general order functions
2010-09-17 16:54:54 -06:00
Matthew Flatt
f663307252
fix problem with procedure-chaperone, keywords, and proxy properties
2010-09-17 16:29:15 -06:00
Matthew Flatt
3866c3e450
generalize `flvector-copy' to support start and end indices
2010-09-17 13:35:01 -06:00
Will M. Farr
beb2175456
Added flvector-copy (with tests and docs).
2010-09-17 13:35:01 -06:00
Robby Findler
c6fc7137ee
Adjusts the contract system so that it preserves the names of functions.
...
closes PR 11220
Altho, this does not fix the case where a function is being passed thru
another contracted function. Eg, when you give the identity function
this contract: (-> (-> integer? integer?) (-> integer? integer?))
if you pass some function with a name in there, it won't come
back with a name anymore (indeed, it won't even have the name
anymore in the body of the function).
For that, the fix would have to be put into each of the function
contract combinators.
2010-09-17 11:30:04 -05:00
Matthew Flatt
232a580e53
add prop:proxy-of'; Fix
chaperone-of' on keyword-accepting procedures
2010-09-17 08:55:46 -06:00
Jay McCarthy
2447d8d07c
Adding test case to clarify student's error
2010-09-16 21:00:05 -06:00
Jay McCarthy
01a41a812e
Closing pr11216. Adding one armed check-error to teaching languages.
...
[It will not bother me if we revert this commit. I liked SK's idea and found it easy to implement. I wonder if others will be worried that it is easy to unintentionally leave off the second argument to check-error. I also wonder if it is problematic to add new string constants, like I've done.]
Here is an example:
(check-error (/ 1 0) "/: division by zero")
(check-error (/ 1 0) "divide by zero")
(check-error (/ 1 0))
(check-error 1)
Here is the output:
Ran 4 tests.
2 of the 4 tests failed.
No signature violations.
Check failures:
check-error encountered the following error instead of the expected divide by zero
:: /: division by zero
in ex.rkt, line 2, column 0
check-error expected an error, but instead received the value 1.
in ex.rkt, line 4, column 0
2010-09-16 21:00:05 -06:00
Stevie Strickland
a930719a87
Add the contract information to chaperoned boxes, hashes, and vectors.
2010-09-16 20:49:04 -04:00
Jay McCarthy
afcc7c818d
Fixing redirectget test
2010-09-16 13:42:47 -06:00
Ryan Culpepper
1a03a47842
updated splay-tree & skip-list interfaces, docs, tests, performance tests
2010-09-16 13:20:07 -06:00
Ryan Culpepper
19be445d89
contracts for gvector, skip-list
...
reorganized tests
2010-09-16 13:20:06 -06:00
Stevie Strickland
2677cbf1a4
Cleanups to first-order checking for box/vector/hash contracts.
...
* We no longer capture a contination when we have blame information.
* We perform first-order checks more eagerly in the mutable case.
2010-09-16 15:04:41 -04:00
Stevie Strickland
b416b7e5bb
Now migrate vector/c and vector-immutable/c.
...
Also add old-style vector/c to mzlib/contract.
2010-09-16 15:04:41 -04:00
Stevie Strickland
3028f2d142
Convert vectorof/vector-immutableof to the new regime.
...
Also add old-style vectorof to mzlib/contract.
2010-09-16 15:04:41 -04:00
Blake Johnson
c88eb704c7
removing indirects from zo handling
2010-09-16 12:45:37 -06:00
Jay McCarthy
4f49658835
Fixing problem reported by Robby.
...
Contracts intefere with safety marks.
2010-09-16 12:45:37 -06:00
Jay McCarthy
ab5a9ff1e8
Removing extra run-tests
2010-09-16 12:45:37 -06:00
Jay McCarthy
1f4c525245
Fixing pr11214
2010-09-16 12:45:37 -06:00
Jay McCarthy
4a89ccea5d
Fixing an annoyance with eli-tester when the error string contains ~
2010-09-16 12:45:36 -06:00
Vincent St-Amour
7e2094f2d7
Added a test for optional let annotations.
2010-09-16 13:24:10 -04:00
Vincent St-Amour
e03e53b1cb
Fix some optimizer test logs to reflect racket changes.
2010-09-16 10:48:28 -04:00
Vincent St-Amour
9f87b5a7e6
Made some type annotations optional in the for: macros.
2010-09-15 20:21:51 -04:00
Vincent St-Amour
8b60085a17
Removed useless requires.
2010-09-15 20:21:51 -04:00
Vincent St-Amour
a10d145f25
Added annotated versions of the for macros that generate vectors.
...
They are purposedly left out of the documentation since the typchecker
can't currently handle their expansion.
2010-09-15 20:21:50 -04:00
Vincent St-Amour
65c502f9d7
Added a test to make sure derived lists accessors don't get optimized then they shouldn't.
2010-09-15 20:21:50 -04:00
Stevie Strickland
e3678a937e
Change box-immutable/c to use box/c with #:immutable #t.
2010-09-15 17:05:34 -04:00
Stevie Strickland
99e5d6fd6c
Add appropriate syntax properties to uses of box/c.
2010-09-15 16:57:17 -04:00
Stevie Strickland
994ad6d10f
Now change box/c to use proxies or chaperones appropriately.
...
Create a mzlib/contract compatible version of the old box/c and use that
for mzlib/contract. Change the docs so that the docs for mzlib/contract
contain the right information.
Fix the typed-scheme implementation to only force flat box (or hash)
contracts when it already is required to be flat. Otherwise, allow
non-flat contracts for the element contract (or domain/range contracts).
2010-09-15 16:57:17 -04:00
Stevie Strickland
4a48da022b
Adding syntax properties for contract obligations to uses of hash/c.
2010-09-15 15:01:27 -04:00
Stevie Strickland
56b83e4a96
Add chaperone-based hash/c contracts.
...
* Domain contracts must be either flat or chaperone contracts.
* When the domain is a chaperone contract, hash/c must check
that the hash is equal?-based.
2010-09-15 13:57:50 -04:00
Stevie Strickland
d2b3ee8892
Code and test fixes for new chaperone-based hash/c contracts.
2010-09-15 13:37:37 -04:00
Robby Findler
3121ab0fce
I agree with Stevie that 1 is the right answer here.
2010-09-15 08:23:34 -05:00
Stevie Strickland
ec0711bf49
Add chaperone contract-related properties.
...
* Flat contracts are chaperone contracts, and chaperone contracts
are (proxy) contracts.
* Check in chaperone contracts that a chaperone (or chaperone-friendly
value) is indeed returned.
2010-09-14 18:29:39 -04:00
Stevie Strickland
56a5a2627e
Enforce that flat contracts return the original value.
...
Also fix up tail call contract handling, which was affected by this change.
2010-09-14 18:28:46 -04:00
Ryan Culpepper
ae645a18c1
added dict-*-contract to racket/dict
...
added experimental ordered-dict generics (not public yet, no docs)
2010-09-14 12:31:26 -06:00
Ryan Culpepper
58aa6873fe
added data/heap tests
...
doc fixes
2010-09-14 12:31:26 -06:00
Matthew Flatt
b601aa1ca3
fix pretty-print graph bug
2010-09-14 08:05:35 -06:00
Ryan Culpepper
999c33827c
tests for splay-tree and skip-list
2010-09-13 13:21:04 -06:00
Jay McCarthy
43d527818e
Fixing pr11196 and fixing bug in hash-eqv serialization
2010-09-13 10:44:21 -06:00
Robby Findler
1dc555e0af
fixes _ in contract-names for ->i
...
closes PR 11185
2010-09-11 07:48:50 -05:00
Robby Findler
93ecaa0535
fixed object-contract name tests
2010-09-11 07:36:21 -05:00
Robby Findler
d8a495de94
fixed first half of PR 11185
2010-09-11 07:12:17 -05:00
Sam Tobin-Hochstadt
979561354d
Fix internal error when single value expected.
2010-09-10 18:29:34 -04:00
Blake Johnson
1cb11ce6cc
re-enabling tests
2010-09-10 14:46:04 -06:00
Blake Johnson
407a36c9d2
Changing memory limit
2010-09-10 14:46:04 -06:00
Blake Johnson
e94823b82c
Removing pieces of zo-test-worker we dont care about
2010-09-10 14:46:03 -06:00
Blake Johnson
0d136ba4c7
never sharing hashes and trace debugging
2010-09-10 14:46:03 -06:00
Blake Johnson
32a9e60abe
traversing inside closures and using a seen set for lists
2010-09-10 14:46:03 -06:00
Blake Johnson
2dfaab00f4
fixing closure problem
2010-09-10 14:46:03 -06:00
Blake Johnson
ecc9ceb842
zo-marshal fixes and switching back to prefabs
2010-09-10 14:46:03 -06:00
Blake Johnson
54f2d34a2e
encoding wraps and fixes for zo-marshal sharing
2010-09-10 14:46:02 -06:00
Blake Johnson
9599304ca9
zo-marshal fixes and read.c fix for hash tables in symbol table
2010-09-10 14:46:02 -06:00
Blake Johnson
f27fe3d5c9
zo-parse debugging and read in zo-exs
2010-09-10 14:46:01 -06:00
Matthew Flatt
ff9b535dc6
fix hash proxying in the case that proxied key has no value
2010-09-10 12:46:58 -06:00
Robby Findler
44fe632da5
fixed two bugs in ->i:
...
- when optional arguments didn't also have rest args,
it generated the wrong wrapper function
- the object-contract interaction was broken;
it was not adding the this argument in
Also removed the hack added earlier this eve.
closes PR 11180
2010-09-09 21:42:41 -05:00
Vincent St-Amour
0166ece180
Extended pair optimization to the rest of the standard derived pair accessors.
2010-09-09 18:54:34 -04:00
Vincent St-Amour
7450821068
Refactoring.
2010-09-09 18:54:34 -04:00
Vincent St-Amour
024f873947
Extended pair optimizations to some derived pair accessors.
2010-09-09 18:54:33 -04:00
Vincent St-Amour
7f546434ed
Included expected optimization logs in the test files.
2010-09-09 18:54:33 -04:00
Will M. Farr
81b1ed6e8b
New updates to for/vector, for*/vector, for/flvector and for*/flvector.
...
Now use for/fold to thread the index through the iteration form, so
that all variants can take advantage of the optional #:length
argument. Previously, only the for/vector and for/flvector used the
The behavior when #:length does not match the number of iterations has
changed: iteration stops when either the vector is full, or the
requested number of iterations has been achieved, whichever comes
first. If #:length is larger than the number of iterations performed,
then the remaining slots in the vector are filled with the default
argument of (make-vector ...), which is currently 0.
2010-09-09 16:23:04 -04:00
Will M. Farr
3d016150a3
Updates to for/vector, for/flvector forms and documentation.
...
- Now the faster forms take a #:length keyword to designate the length
of the vector to pre-allocate.
- The for/[fl]vector forms take multiple body expressions and set the
vector component to the value of the last one.
- When given a #:length argument, the for/vector and for/flvector
forms check that the iteration is not exceeding the given length,
raising exn:fail if it does.
- Test cases for the multiple body expressions and the exception for
excessive iterations have been added.
- Doc modifications to bring the docs in line with the new forms.
- Doc modifications to note that the #:length versions of the form
*may* all the computation to be performed more efficiently, and
stating that it "is an error" if the given length-expr does not
produce a valid length for a vector that matches the number of
iterations for the loop.
- Note that no test is made for a number of loop iterations that is
smaller than the given vector length. Also, the for*/[fl]vector
forms do not optimize when given a #:length argument. These are
areas for future improvement.
2010-09-09 16:22:53 -04:00
Sam Tobin-Hochstadt
00a8a85f9d
Fix typechecker tests for new environment setup.
2010-09-09 16:08:04 -04:00
Sam Tobin-Hochstadt
b6b840076b
Lots more laziness, and useless require removal.
2010-09-09 16:08:03 -04:00
Casey Klein
a773471b7e
Strengthens the definition-finder tests
2010-09-09 13:42:15 -05:00
Robby Findler
72afa3d7b3
fixed the teachpack test suite for the new teachpack dialog
2010-09-09 13:17:27 -05:00
Casey Klein
f1be76f2e2
Special-cases DrRacket's definition-finder to find Redex metafunction definitions
2010-09-09 12:07:24 -05:00
Kevin Tew
324a0ce815
Places: check arguments
2010-09-09 10:28:34 -06:00
Kevin Tew
732c62b2a5
Places: benchmarks
2010-09-09 10:28:34 -06:00
Eli Barzilay
ee587ce327
Move the contract stress tests into their proper place.
2010-09-09 12:22:03 -04:00
Robby Findler
ba78b8389b
added a test to show a performance problem in the contract library
2010-09-09 09:29:42 -05:00
Mike Sperber
9d35548997
Unbreak `list-of'.
2010-09-09 13:17:22 +02:00
Sam Tobin-Hochstadt
a0e77705e5
Propogate #:mutable for polymorphic structs.
...
Closes PR 11127
2010-09-08 10:47:51 -04:00
Sam Tobin-Hochstadt
91fefa055e
Make syntax of #{} less accepting of errors.
2010-09-08 10:24:58 -04:00
Vincent St-Amour
14097dd90e
Fix broken tests that depended on an unsafe optimization.
2010-09-07 20:11:44 -04:00
Stevie Strickland
6d7be2bab3
Fix expected result from contract test that fails due to sorting.
2010-09-07 11:47:14 -04:00
Ryan Culpepper
cf47297a07
gvector tests, fixed bugs, added for/gvector docs
2010-09-06 22:15:29 -06:00
Jay McCarthy
f440332768
Fixing confusing printing from Arjun
2010-09-06 17:03:16 -06:00
Jay McCarthy
f2b5a454bd
Fixing problem reported by Nadeem Abdul Hamid
2010-09-06 10:35:03 -06:00
Robby Findler
a2b11a0329
unbroke the test suite ...
2010-09-04 11:18:39 -05:00
Robby Findler
994c28d8b0
started a test suite for the check syntax coloring annotations that the contract system leaves behind
2010-09-04 11:18:38 -05:00
Matthew Flatt
26e0ad955a
fix `unsafe-set-box*!'
2010-09-03 15:44:34 -06:00
Robby Findler
ad9548db7d
added a README
2010-09-02 15:41:02 -05:00
Robby Findler
a12f47f506
moved the teaching language test suites to their own directory
2010-09-02 15:41:02 -05:00
Jay McCarthy
f272acec5f
Correcting bug discovered by Arjun
2010-09-02 07:04:22 -06:00
Matthew Flatt
962ceb6b63
fix interaction between copy prop and once-used binding elimination
...
in the bytecode compiler, which could cause an expression to be
duplicated
2010-09-01 15:22:32 -06:00
Matthew Flatt
69658697b1
add proxies and rename chaperone properties to proxy properties
...
where a proxy is less constrained in its conversions but more
constrained in where it can be used
2010-08-31 19:15:20 -06:00
Ryan Culpepper
bfb1eed2e9
updated test
2010-08-31 17:15:36 -06:00
Ryan Culpepper
712a8f60e9
updated syntax/parse/exp./splicing, updated honu use
...
fixed stress.rkt
2010-08-31 16:21:44 -06:00
Ryan Culpepper
d7a87c79e0
Merged changes to syntax/parse
...
Changed backtracking algorithm, runtime representations
- syntax classes, ~describe no longer implicitly commit
- ~describe no longer delimits effect of cut
Added keyword & optional args for stxclasses
Added ~do and #:do, ~post, ~commit and #:commit,
~delimit-cut and #:no-delimit-cut
Added syntax/parse/debug, syntax/parse/experimental/*
- expr/c for contracting macro sub-expressions
moved from syntax/parse to syntax/parse/experimental/contract
- syntax class reflection (~reflect, ~splicing-reflect)
- eh-alternative-sets (~eh-var)
- provide-syntax-class/contract
(only for params, not attrs so far)
Changed ~fail to not include POST progress (#:fail still does)
old (~fail _) is now (~post (~fail _))
Made msg argument of ~fail optional
Removed generic "repetition constraint violated" msg
Removed atom-in-list stxclass
Removed unnecessary datum->syntax on cdr of pair pattern
massive improvements to long-list microbenchmarks
Optimization: integrable syntax classes (id, expr, keyword)
need better measurements
Optimization: ad hoc elimination of head/tail choice point
for (EH ... . ()) patterns
Added unstable/wrapc (proc version of expr/c)
2010-08-31 10:55:58 -06:00
Matthew Flatt
76c3c76214
fix yet more ss<->rkt problems that interfered with *SL executables
...
Closes PR 11106
2010-08-30 14:35:18 -06:00
Kevin Tew
bc5d1c2011
Places: added shared-flvector and shared-byte string
2010-08-30 08:50:07 -06:00
Robby Findler
cfa1c9bf43
fixed a bug in the test suite (so that now the language is only changed when needed)
2010-08-30 09:23:34 -05:00
Robby Findler
35de0b22d0
added a test coverage test suite
2010-08-30 09:23:34 -05:00
Robby Findler
ab839f9efd
minor rackety
2010-08-30 09:23:34 -05:00
Robby Findler
eb75edfaa1
renamed drracket test suite
2010-08-30 09:23:33 -05:00
Jay McCarthy
f899e03b59
Moving stress tests
2010-08-30 06:39:12 -06:00
Jay McCarthy
6a43e379e1
Correct test usage of port
2010-08-30 06:39:11 -06:00
John Clements
4d1d1e5b0e
removed new stepper test from automatic testing (until fixed).
2010-08-29 10:38:27 -07:00
Vincent St-Amour
e1fd445fa4
Ignored a rounding error between PPC and x86.
2010-08-29 10:17:56 -04:00
Robby Findler
23739a21d8
fixed indentation
2010-08-29 05:17:41 -05:00
Robby Findler
454f8772ab
unbroke Eli's change
2010-08-29 05:17:41 -05:00
Jay McCarthy
bc15f398f2
Increasing FTP test stability
2010-08-28 18:52:39 -06:00
Jay McCarthy
c24d6f94e7
Supporting empty programs in datalog languages, fixes pr11140
2010-08-28 15:54:38 -06:00
Robby Findler
36c2eea571
an attempt to be more windows friendly
2010-08-28 14:06:01 -05:00
Jay McCarthy
33d7eb40e3
Fixing pr11136 and adding tests and fixing old tests re extension change
2010-08-28 08:30:14 -06:00
John Clements
3b94602e2e
added test case for PR 11120
2010-08-27 16:42:32 -07:00
Vincent St-Amour
b386f01ee4
Improved sandboxing with code from Eli.
2010-08-27 18:18:51 -04:00
Vincent St-Amour
f06c2d4926
Removed obsolete comment.
2010-08-27 18:18:51 -04:00
Vincent St-Amour
9f540bce01
Better way to setup the sandbox input.
2010-08-27 14:43:22 -04:00
Vincent St-Amour
1c9e8e05b0
Cleanup of the test harness.
2010-08-27 13:29:43 -04:00
Vincent St-Amour
7cfba9f02d
Renamed tests directory to make more sense with the new structure.
2010-08-27 13:29:43 -04:00
Vincent St-Amour
ca16ac4db5
Improved logging since it's now used for testing.
2010-08-27 13:29:42 -04:00
Vincent St-Amour
18af26ec9b
Test expected optimizations by comparing optimizer logs instead of expanded code.
2010-08-27 13:29:42 -04:00
Robby Findler
c8e68e5e31
updated the docs to reflect that the various checks return void. Also added in some tests to that effect.
2010-08-27 11:27:29 -05:00
Jay McCarthy
7190d423f7
Fixing pr11125
2010-08-26 17:14:09 -06:00
Jay McCarthy
d4e3946ba2
Adding apply stress test from Will M. Farr
2010-08-26 17:14:09 -06:00
Sam Tobin-Hochstadt
0635fc6d75
Create data/ collection.
...
- Initially populated with queues, skip-lists, and interval-maps from unstable/
- Tests in tests/data, docs in data/scribblings
2010-08-26 18:22:28 -04:00
Vincent St-Amour
46b2a2113a
Use sandboxes instead of duplicate files to test results when optimizing.
2010-08-26 18:08:41 -04:00
Vincent St-Amour
eadc2a7e4c
Exclude directories when testing TR's optimizer.
2010-08-26 17:46:59 -04:00
Vincent St-Amour
ea472a9d57
Added with-asserts, from code from Neil Toronto.
2010-08-26 17:46:58 -04:00
Sam Tobin-Hochstadt
7fc38693ec
Fix tests for new output.
2010-08-26 16:59:12 -04:00
Sam Tobin-Hochstadt
3e4ddde808
Tests for new optimizer additions.
2010-08-26 16:59:12 -04:00
Sam Tobin-Hochstadt
fd2d37a710
Add optimization for `magnitude', fix handling of functions that return floats, not complexes.
2010-08-26 16:59:12 -04:00
Eli Barzilay
8e0f8dd39c
More "~n" -> "\n" changes
2010-08-26 12:11:00 -04:00
Eli Barzilay
7dc4d2e5a6
Change a bunch of "~%" and "~n" in format strings to "\n".
2010-08-25 17:17:01 -04:00
Eli Barzilay
606b7f60dc
Lots of "~e" to "~.s" changes.
2010-08-25 17:17:01 -04:00
Eli Barzilay
e179449d0e
Switch to `racket/base', change some "~e"s to "~.s"s, also reformat and
...
a few minor improvements.
2010-08-25 17:17:01 -04:00
Eli Barzilay
da083f05e8
avoid relying on bash
2010-08-25 17:17:01 -04:00
Kevin Tew
19a00d887e
Places: allow channels in compound data communications
2010-08-25 15:10:15 -06:00
Jay McCarthy
45a8854398
Adding immutable hash operations to ASL
2010-08-25 10:36:36 -06:00
Jay McCarthy
368d711ae2
Optional arguments to hash table constructors in ASL
2010-08-25 10:36:34 -06:00
Sam Tobin-Hochstadt
b08de170bc
Add Futureof' type, types for
future' and `touch'
2010-08-25 10:27:07 -04:00
Matthew Flatt
cf300b91b9
JIT-inline even?' and
odd?' on fixnums
2010-08-24 19:29:20 -06:00
Robby Findler
5de6ff2ada
Adjusts the prompt handling so that it submits expressions that signal
...
arbitrary read errors, but does not submit those that raise eof errors.
closes PR 11126
2010-08-24 20:06:45 -05:00
Kevin Tew
b86e48a567
Places: benchmark tests
2010-08-24 10:39:07 -06:00
Jon Rafkind
e077b87d50
fix PR 11123: 0-ary generator yield
2010-08-24 00:11:22 -06:00
Jon Rafkind
4bca9842f5
Make in-generator work when yield returns multiple values
2010-08-23 12:50:08 -06:00
Mike Sperber
a4e7ef3594
Push mixed' contracts down into lazy
struct' contracts.
2010-08-23 14:40:21 +02:00
Sam Tobin-Hochstadt
72f31ffec0
Use current-readtable as the base for the TR readtable.
...
Closes PR 1115.
2010-08-21 14:05:46 -04:00
Robby Findler
32f1f1d8f1
the error window for check syntax now goes away when you Run or edit the definitions window
...
closes PR 11101
2010-08-20 17:39:45 -05:00
Robby Findler
d93fc805f3
maybe this will help with some of the race conditions showing up in drdr
2010-08-20 17:39:45 -05:00
Jay McCarthy
54e16b18ff
Fixing error message on different root installations
2010-08-20 10:35:36 -06:00
Jay McCarthy
9e2ee8ecc6
Fixing another print related test
2010-08-20 10:35:36 -06:00
Jay McCarthy
a8b0a7dce6
Adding zo size reporter test
2010-08-20 10:35:36 -06:00
Robby Findler
22f2e18a99
Fixed a bug in provide/contract that caused it to lose the source location of the original contract, when .zo files were compiled
2010-08-19 23:12:33 -05:00
Will M. Farr
82096abb1b
Added interation forms for/vector, for*/vector, for/flvector, and for*/flvector and for-clause in-flvector.
2010-08-19 18:45:13 -04:00
Jay McCarthy
44b34c37a8
Small adjustment to Matthews change
2010-08-19 16:39:54 -06:00
Jay McCarthy
5eb8f181f6
Adding WebSocket stress test and improving fit output
2010-08-19 16:34:16 -06:00
Jay McCarthy
1f61e7eb7f
Adding WebSocket example
2010-08-19 16:34:15 -06:00
Jay McCarthy
347e946548
Adding WebSocket support
2010-08-19 16:34:15 -06:00
Jay McCarthy
6f272d2e6a
Improving PLAI testing
2010-08-19 10:00:36 -06:00
James Swaine
1a2c0546a6
current-future now returns #f if not inside a future, instead of null. Added documentation for current-future.
2010-08-19 09:36:25 -05:00
Matthew Flatt
50d5dc352e
add missing test for *SL define-struct
2010-08-19 07:58:43 -06:00
James Swaine
a41c9b882a
Added (current-future) to the futures module (as an inlined, nonblocking primitive).
2010-08-18 23:33:22 -05:00
Robby Findler
3885223cee
fixed an ->i bug
2010-08-18 19:30:36 -05:00
Matthew Flatt
e99c53eee8
change `define-type' to use #:reflection-name instead of prop:custom-write
2010-08-18 16:13:58 -06:00
Matthew Flatt
4299b12d5b
fix pretty-print problems, especially related to the custom-write property
2010-08-18 16:13:57 -06:00
Sam Tobin-Hochstadt
90eeef60d7
Provide -> in typed-scheme/no-check.
...
- Closes PR 10882
2010-08-18 16:37:32 -04:00
Kevin Tew
57bda136ea
Places: prevent mastergc gen0.big_pages from leaking onto a places gen0.big_pages list
2010-08-18 13:53:08 -06:00
Jay McCarthy
9a31ac5363
Fixing formlet additions
2010-08-18 13:17:11 -06:00
Jay McCarthy
e6219740b8
Correcting problems in Horace's path
2010-08-18 13:17:11 -06:00
Jay McCarthy
3d43c7e7ac
Initial versions from Horace Dynamite
2010-08-18 13:17:11 -06:00
Jay McCarthy
04d3a23e1c
Removing unnecessary newlines and making tests newline accurate
2010-08-18 13:17:11 -06:00
Jay McCarthy
3be8e3ba86
A little documentation
2010-08-18 13:17:10 -06:00
Jay McCarthy
1aac3c8e53
Expanding stress library
2010-08-18 13:17:10 -06:00
Matthew Flatt
0d9f5016ba
fix bytecode-writing inconsistencies related to syntax objects and paths
...
and improve organization of the docs
2010-08-17 17:18:24 -06:00
Jay McCarthy
fe91e997ee
Adding stress testing library
2010-08-13 15:06:14 -06:00
Jay McCarthy
58b9c7a6e4
Fixing seqn-count
2010-08-13 15:06:14 -06:00
Jay McCarthy
339681018a
Fixing pr11100
2010-08-13 15:06:13 -06:00
Noel Welsh
5a71a20af9
Merge branch 'master' of pltgit:plt
2010-08-13 17:54:20 +01:00
Sam Tobin-Hochstadt
3359032ad5
Handle structs with special constructors and mutability.
...
Closes PR 11089.
2010-08-13 11:06:56 -04:00
Sam Tobin-Hochstadt
0c1dfd3c5e
Require flat contracts in box/c, hash/c, and vector/c.
...
Closes PR 11085.
2010-08-13 11:06:56 -04:00
John Clements
215c8dc960
best guess on what keystrokes will trigger insert-()-pair under windows & unix.
2010-08-13 11:01:05 -04:00
John Clements
cfe503f1ce
updated framework test framework:
...
- can now test multi-key sequences
- can now use tests with 'escape
- README changed .ss to .rkt
- added test cases for c:c;c:[
2010-08-13 11:01:04 -04:00
Robby Findler
bdd37c58f0
made the optional arguments clause itself optional for ->*
2010-08-13 08:14:13 -05:00
Robby Findler
120e6a25ee
added #:pre and #:post to ->*
2010-08-13 07:05:27 -05:00
Stevie Strickland
a9f6ea69bf
Fix creation of a reversed List type from ListDots substitution.
2010-08-12 17:46:39 -04:00
Jay McCarthy
8c32de33c6
Adding sequence support for mlists and more sequence xrefs
2010-08-12 14:10:20 -06:00
Jay McCarthy
2751ace762
Adding more sequence operators
2010-08-12 14:10:19 -06:00
Jay McCarthy
3fe91f0fdd
Adding vector-set* and dict-set* exn tests
2010-08-12 14:10:19 -06:00
Jay McCarthy
d047557dc6
Adding dict-has-key? and updating unstable
2010-08-12 14:10:18 -06:00
Jay McCarthy
958c771ec8
Removing dict functions from unstable
2010-08-12 14:10:18 -06:00
Jay McCarthy
bdc26b53bb
Adding dict-ref bang
2010-08-12 14:10:18 -06:00
Jay McCarthy
2d1787a309
Add dict-set*
2010-08-12 14:10:18 -06:00
Jay McCarthy
a8fc09b49a
Adding dict-keys,values,->list
2010-08-12 14:10:18 -06:00
Jay McCarthy
f23daa3aea
Rename hash-range and domain to keys and values
2010-08-12 14:10:17 -06:00
Jay McCarthy
e06f0e78b2
Adding hash-set* and hash-set*bang
2010-08-11 17:39:48 -06:00
Jay McCarthy
58ad011ce9
Adding hash->list
2010-08-11 16:42:46 -06:00
Jay McCarthy
db87add6b7
Adding hash-domain and hash-range to racket/base
2010-08-11 16:37:46 -06:00
Jay McCarthy
928dfd6fa2
FTP tests without a network connection
2010-08-11 13:49:10 -06:00
Robby Findler
367779fd27
added contract-struct (like define-contract-struct, but with a
...
maker whose name does not begin with 'make-')
2010-08-10 22:20:33 -05:00
Robby Findler
26187fed8f
fixed a bug in the mzlib contracts test suite
2010-08-10 19:27:17 -05:00
Robby Findler
d15fc5c102
added naming to ->i contracts
2010-08-10 16:52:26 -05:00
Robby Findler
d7503195df
fixed a bug where and/c (when given ho contracts) would check them in the wrong order
2010-08-10 16:52:26 -05:00
Robby Findler
561d33fddd
improved the name printing for between contracts
2010-08-07 14:35:08 -05:00
Robby Findler
98fb0e5b3a
moved a bunch of tests into the official test suite.
2010-08-07 14:35:08 -05:00
Robby Findler
9d98533e23
cleaned up a few little things here and there to pass the last of the existing tests
2010-08-07 14:35:08 -05:00
Robby Findler
da9f5bd61a
fixed a few bugs in the ->i implementation and the test suite.
2010-08-07 14:35:07 -05:00
Robby Findler
5922ceda74
improved parsing of #:pre and #:post for ->i (fixed bugs and added more checks to the syntax)
2010-08-07 14:35:06 -05:00
Robby Findler
c1b558e1a3
adjusted the syntax of ->i so that #:post and #:pre get a list of variables now
2010-08-07 14:35:06 -05:00
Robby Findler
8f6080733f
fixed some bad ->i test cases
2010-08-07 14:35:05 -05:00
Robby Findler
64a1ddcda9
adjusted the syntax for ->i so that #:rest is not ambiguous anymore (added extra parens, deviating from ->d a little bit) and updated the test suite
2010-08-07 14:35:05 -05:00
Robby Findler
18e9d886e2
added an ->i test suite, based on the ->d one (doesn't test for indy-ness tho)
2010-08-07 14:35:04 -05:00
Jay McCarthy
8a67fceb4a
Added attributes to textarea-input based on patch from Horace Dynamite
2010-08-06 20:08:21 -06:00
Vincent St-Amour
4d43c21565
Added a test for unboxed nested loops.
2010-08-05 17:21:54 -04:00
Vincent St-Amour
c653a8e655
Changed optimization order for reals in complex operations.
...
Made generated names more informative and updated tests accordingly.
2010-08-05 16:43:36 -04:00
Kevin Tew
35a65f90c2
Places: refactor place-channel use
2010-08-05 11:05:54 -06:00
Vincent St-Amour
b18f2353ca
Generalize naturals to integers to minimize annotations on mutated variables.
2010-08-05 09:04:25 -04:00
Vincent St-Amour
b1e744b1e1
Fixed tests that used complex literals.
2010-08-05 09:04:24 -04:00
Vincent St-Amour
bdf84f371d
Optimize coercion of integer literals.
2010-08-05 09:04:23 -04:00
Vincent St-Amour
1fb68707fc
Fixed a test.
2010-08-05 09:04:23 -04:00
Vincent St-Amour
fb31a6556e
Added optimization for make-polar
2010-08-05 09:04:22 -04:00
Kevin Tew
3744e224b7
Places: fix sending place channels over place channels
2010-08-04 13:23:00 -06:00
Vincent St-Amour
b47a77dd57
Eliminate user-introduced boxing.
2010-08-02 21:33:30 -04:00
Sam Tobin-Hochstadt
431ff8d794
Don't treat Error types as potentially non-regular. (Reported by SK)
2010-08-02 15:41:42 -04:00
Robby Findler
5e8e4c6ffc
a change to hopefully improve the error message this file (sometimes) get in drdr
2010-07-31 10:29:07 -05:00
Matthew Flatt
0e8af6bc5d
fix acc/mut error msgs from `define-struct' in teaching languages
...
Merge to 5.0.1
Closes PR 11062
2010-07-30 11:16:32 -06:00
Vincent St-Amour
27f8279711
Extended use-site analysis to look through trivial rebindings, to support for loops.
2010-07-29 18:29:59 -04:00
Vincent St-Amour
260de85a6e
Make sure that let-bound functions don't escape through a rhs before we change their interface.
2010-07-29 18:29:58 -04:00
Vincent St-Amour
f08456cf07
Extended unboxing of let-bound functions to support let loops.
2010-07-29 18:29:57 -04:00
Vincent St-Amour
3e9e5560bf
Be more aggressive when unboxing let bindings.
2010-07-29 18:29:54 -04:00
Vincent St-Amour
bb14424918
More tests for unboxed args of let-bound functions.
2010-07-29 18:29:54 -04:00
Vincent St-Amour
9d471df8b9
Added unboxed arguments to let-bound functions.
2010-07-29 18:29:53 -04:00
Vincent St-Amour
b0d299d1b8
Added unboxed letrec-syntaxes+values bindings.
2010-07-29 18:29:52 -04:00
Vincent St-Amour
8dc23d43eb
Added unboxed letrec bindings.
2010-07-29 18:29:52 -04:00
Blake Johnson
8b195d1c3c
closing stderr in zo-test
2010-07-28 14:42:48 -06:00
Jay McCarthy
8d36dfad81
Fixing parts of zo-marshal re protect-quote; parallelizing zo-test; there is no the path error again in zo-marshal though
2010-07-27 11:10:54 -06:00
Jay McCarthy
28432037af
Fixing up a few things in zo-parse/etc
2010-07-26 12:18:01 -06:00
Blake Johnson
8eeed89982
zo-marshal wrap fixes, optional port for zo-parse
2010-07-26 12:06:02 -06:00
Vincent St-Amour
4803eafa67
Fixed a bug with exact complexes.
2010-07-25 22:15:18 -04:00
Vincent St-Amour
ec39ea5f33
Added one more test for unboxed let bindings.
2010-07-24 17:01:23 -04:00
Vincent St-Amour
5d86813267
Fixed a test that could not work because of shadowing in hand-optimized code.
2010-07-23 18:52:46 -04:00
Vincent St-Amour
ea580e6ff8
Added a test to the optimizer.
2010-07-23 18:52:43 -04:00
Vincent St-Amour
83987fffac
let bindings of inexact-complex numbers can be replaced by bindings
...
for each of their components.
This allows unboxing of intermediate results that are bound and only
ever used in positions where they would be unboxed.
2010-07-23 18:52:42 -04:00
Vincent St-Amour
063b87697a
Optimized extracting parts of inexact complexes.
2010-07-23 18:52:42 -04:00
Vincent St-Amour
0493e6f762
Refactoring of the optimizer.
2010-07-23 18:52:41 -04:00
Sam Tobin-Hochstadt
5bb730f72c
Optimize (apply + (map f l)) to avoid the intermediate list.
2010-07-23 14:11:40 -04:00
Jay McCarthy
407dcee206
Adding match to ASL
2010-07-22 15:39:53 -06:00
Jay McCarthy
9eb053d4db
Adding define-datatype to ASL
2010-07-22 11:36:04 -06:00
Noel Welsh
74dd59e963
Add missing SRFI-41 and SRFI-98 to tests
2010-07-22 04:45:49 +01:00
Vincent St-Amour
ca106a4134
Replaced the safe specialized nbody benchmark by the unsafe version.
2010-07-21 21:09:43 -04:00
Vincent St-Amour
0ee0886cab
Optimizations on one-argument cases of arithmetic operations.
2010-07-21 21:09:43 -04:00
Vincent St-Amour
4e944f73ab
Added optimization for string-length and bytes-length.
2010-07-21 21:09:42 -04:00
Vincent St-Amour
d6ce6e664f
Added box optimizations.
2010-07-21 21:09:42 -04:00
Vincent St-Amour
b13075a1c0
Changed the interface to typed racket's test harness.
2010-07-21 21:09:40 -04:00
Vincent St-Amour
47195410cb
Added optimization for zero?.
2010-07-21 21:09:40 -04:00
Matthew Flatt
ce03a34318
another ss->rkt repair to exe creator
...
Merge to 5.0.1
2010-07-20 06:37:02 -06:00
Matthew Flatt
f602d11a7f
raco exe: fix missing ss->rkt conversion and remove debugging printf
...
Merge to 5.0.1
2010-07-19 14:00:23 -06:00
Jay McCarthy
5417d7a5b7
Fixing path-only documentation and adding new test case
2010-07-19 13:56:01 -06:00
Matthew Flatt
1ea0880f65
add missing test for continuation change
2010-07-16 20:55:07 -06:00
Vincent St-Amour
8aa4fae613
Added whitespace to the typed racket test harness.
2010-07-16 19:08:21 -04:00
Vincent St-Amour
8563f02ba8
Don't abort typed racket's tests if the main tests fail.
2010-07-16 19:08:21 -04:00
Vincent St-Amour
60bfce14bc
Fixed unsafe optimization that considered floats as complexes.
2010-07-16 19:08:20 -04:00
Vincent St-Amour
01c170c52f
Fixed a segfault in the nbody benchmark.
2010-07-16 19:08:20 -04:00
Vincent St-Amour
b8b852dbc1
Added a test for inexact imaginaries.
2010-07-16 19:08:20 -04:00
Vincent St-Amour
3dab2fbbfc
Fixed benchmarks to typecheck even when not-really-dead code is typechecked.
2010-07-16 19:08:19 -04:00
Vincent St-Amour
4d5b50dee9
Further fixes in overlap checking.
...
Rhss of code dispatching on overlapping structs are no longer
considered dead, and as such, are now typechecked.
Had to fix a test that passed only because some not-really-dead code
was not being typechecked.
2010-07-16 19:08:19 -04:00
Vincent St-Amour
fc29e7e856
Added mutable pair optimizations.
2010-07-16 12:22:16 -04:00
Vincent St-Amour
f21454e711
Fixed an infinite loop.
2010-07-16 12:22:16 -04:00
Vincent St-Amour
c587038b33
The imaginary parts of reals are ignored when doing complex division.
2010-07-16 12:22:15 -04:00
Vincent St-Amour
443d8b9f91
Fixnums and integers can now be coerced for complex operations.
2010-07-16 12:22:15 -04:00
Vincent St-Amour
c645aa7ebc
The imaginary parts of inexact reals are ignored when doing complex multiplication.
2010-07-16 12:22:15 -04:00
Vincent St-Amour
b0788372ea
Fixed bugs in the tests.
2010-07-16 12:22:14 -04:00
Vincent St-Amour
566aeedb59
Better error reporting by the optimizer's test harness.
2010-07-16 12:22:14 -04:00
Vincent St-Amour
7fb1b41a28
The optimizer's test harness now makes sure that optimized and
...
non-optimized versions of the same code evaluate to the same thing.
Unfortunately, this leads to a lot of code duplication. We can't
abstract over optimization like we do for the benchmarks since the
wrapper module would interfere with testing expanded code for
equality.
2010-07-16 12:22:14 -04:00
Vincent St-Amour
748e9e47ad
The imaginary parts of inexact reals are ignored when doing complex
...
addition or subtraction.
2010-07-16 12:22:13 -04:00
Vincent St-Amour
025af5b815
Added coercions for floats with unboxed complex operations.
...
However, this generates superfluous operations involving their
imaginary part of 0.
2010-07-16 12:22:13 -04:00
Vincent St-Amour
fff71e6a1d
Enabled optimization of complex conjugate at the top level of complex operations.
2010-07-16 12:22:12 -04:00
Vincent St-Amour
063211d922
Added unboxed complex conjugate.
2010-07-16 12:22:12 -04:00
Vincent St-Amour
0b0da84eba
Added optimizations for iterating over vectors and strings.
2010-07-16 12:22:12 -04:00
Vincent St-Amour
1e550139aa
Added dead code elimination.
2010-07-16 12:22:11 -04:00
Vincent St-Amour
4e6fc3154b
Added a test for cross-module struct optimization.
2010-07-16 12:22:10 -04:00
Jay McCarthy
c9ccf6d48b
Adding all hash prims per SK
2010-07-16 09:43:03 -06:00
Jay McCarthy
d17deb5fef
Adding hash table functions to ASL
2010-07-15 15:45:54 -06:00
Mike Sperber
de94854243
Unbreak stepper tests.
...
... via a spectacularly ugly hack.
2010-07-14 14:07:13 +02:00
Matthew Flatt
90b586365f
upgrade to latest libffi from git repo (between v3.0.9 and v3.0.10)
2010-07-13 21:12:59 -06:00
Ryan Culpepper
4693abf074
macro-stepper: re-enabled block test
2010-07-13 09:38:52 -06:00
Ryan Culpepper
e36c964a9a
macro-stepper: updated tests
2010-07-13 09:22:52 -06:00
Ryan Culpepper
b8bf5c571a
macro-stepper: add support for #%stratified-body
2010-07-13 09:22:51 -06:00
Mike Sperber
5f25c239f2
Merge remote branch 'local-plt/master'
...
Conflicts:
collects/deinprogramm/define-record-procedures.scm
collects/test-engine/scheme-tests.rkt
collects/test-engine/test-display.scm
2010-07-13 17:13:30 +02:00
Matthew Flatt
818ac8f712
fix bug in new int-def parsing
2010-07-12 18:58:38 -06:00
Matthew Flatt
49ad309630
allow full continuations to escape past a continuation barrier
2010-07-10 07:31:58 -06:00
Matthew Flatt
52d04449a1
improve racket/serialize to handle cycles with mutable prefabs
2010-07-09 14:19:59 -06:00
Matthew Flatt
195b37831b
fix `planet'-path bug in module-name resolver for generated eecutables
2010-07-09 09:48:41 -06:00
Matthew Flatt
0eeb18f4d8
Improve the bytecode optimizer's ability to simplify `letrec's
...
to smaller `letrec' groups or even `let*'.
The goal of the change is to avoid performance surprises
when using internal definitions, especially when mixing
experessions with definitions.
It's a somewhat scary change. Besides the new transformation,
the optimizer pass's coordinate system for `letrec' (and sometimes
`let*') bindings changed.
No standard benchmarks were harmed during the making of this
optimization. (None were improved, either.)
2010-07-08 13:43:40 -06:00
Vincent St-Amour
12a427f5ea
Changed the size of the maze2 benchmark.
2010-07-07 20:46:06 -04:00
Vincent St-Amour
3334d71491
Fixed the fft benchmark.
2010-07-07 19:42:56 -04:00
Vincent St-Amour
7853d33349
Improved unboxed complex operations.
...
Intermediate results are kept as unboxed floats as long as we stay
within complex arithmetic code.
2010-07-07 19:42:56 -04:00
Vincent St-Amour
7921074eef
Avoid boxing intermediate results when doing multiple complex
...
operations in a row.
However, because of values and let-values, we lose float unboxing.
If we have a single complex operation, this is much slower than my
previous implementation (though still faster than generic
operations). With 2 complex operations, the new implementation becomes
faster.
2010-07-07 19:42:55 -04:00
Vincent St-Amour
de52d2ce9f
Avoided duplicate computation in inexact complex division.
2010-07-07 19:42:55 -04:00
Vincent St-Amour
3fb69bc764
Generic inexact complex arithmetic operations are now replaced with
...
the right combinations of unsafe float operations.
2010-07-07 19:42:54 -04:00
Vincent St-Amour
e52d63ee68
Added an optimization for vector-length of known-length vectors.
2010-07-07 19:42:54 -04:00
Matthew Flatt
54216b5ced
internal-definition contexts allow expressions mixed with definitions
...
while the new `#%stratified-body' form provides access to the old
convention
2010-07-07 13:56:16 -06:00
Matthew Flatt
63ec520885
fix problem with Windows pipe writing
2010-07-06 10:59:16 -06:00
Matthew Flatt
96a6f56572
fix problem sharing Windows file handles to subprocess
2010-07-06 06:49:59 -06:00
Matthew Flatt
04fa6c6acd
add `subprocess-group-enabled' for process-group support
...
and fix problems with places and subprocesses
and fix some mzrt thread setup and teardown issues
2010-07-05 17:51:26 -06:00
Matthew Flatt
5c2ae50e45
add current-subprocess-custodian-mode
2010-07-04 12:42:25 -06:00
Matthew Flatt
fb730cb1c2
custodian box as synchronizable event
2010-07-04 10:42:38 -06:00
Robby Findler
f83784452e
made ->d's optional argument spec itself optional
2010-07-02 20:52:48 -05:00
Vincent St-Amour
389a20795a
Added support for make-flrectangular, flreal-part, flimag-part and
...
their unsafe counterparts to Typed Scheme and its optimizer.
2010-07-02 20:58:30 -04:00
Vincent St-Amour
556734a223
Added coercion of fixnums to floats to the optimizer.
2010-07-02 20:58:29 -04:00
Vincent St-Amour
e8a0a26c2f
Changed the optimizer's test harness to ignore type tables.
2010-07-02 20:58:29 -04:00
Vincent St-Amour
cb0e058cff
Removed spectralnorm-unsafe from the shootout harness.
2010-07-02 20:58:29 -04:00
Vincent St-Amour
a6d11a1df0
Added struct optimizations.
2010-07-02 20:58:28 -04:00
Vincent St-Amour
5d61c7fab8
Ported the maze2 benchmark to typed Scheme.
2010-07-02 20:58:28 -04:00
Sam Tobin-Hochstadt
e989631d56
Add flags for running the optimizer tests and compiling the benchmarks
2010-07-02 19:00:57 -04:00
Matthew Flatt
439bc0a293
add flreal-part',
flimag-part', `make-flrectangular', and unsafe variants
2010-07-02 16:08:15 -06:00
Matthew Flatt
eef7a8ba9d
JIT inline real-part, imag-part, make-rectangular
2010-07-02 16:08:14 -06:00
Matthew Flatt
491ab3c12b
expose internal display/write/print-limiting functionality via `printf'
...
addition of ~.
2010-07-02 16:08:14 -06:00
Sam Tobin-Hochstadt
0e400291e7
Fix inference for heterogenous vectors.
2010-07-02 17:25:07 -04:00
Sam Tobin-Hochstadt
570df7d665
Generalize fixed-length lists to listofs.
...
Closes PR10057.
2010-07-02 17:25:07 -04:00
Vincent St-Amour
458b6b65c9
Added optimization when iterating over lists.
2010-07-02 15:48:06 -04:00
Vincent St-Amour
1886572906
Added support for the 2 versions of optimizer tests to be written in
...
different languages.
2010-07-02 15:48:05 -04:00
Vincent St-Amour
f6077b02f1
Fixed some tests that used to test for an invalid optimization that is
...
now valid.
2010-07-02 15:48:04 -04:00
Vincent St-Amour
f79f617ee8
Calls to vector now return heterogenous vectors, to preserve length
...
information.
2010-07-02 15:48:03 -04:00
Vincent St-Amour
f469e0d8bf
Changed some benchmarks to use known-length vectors.
2010-07-02 15:48:02 -04:00
Vincent St-Amour
8c25e46141
Literal vectors are now given HeterogenousVector types to preserve
...
length information.
2010-07-02 15:48:00 -04:00
Vincent St-Amour
25cb5ef568
Fixed some tests to reflect changes to the optimizer.
2010-07-02 15:47:59 -04:00
Vincent St-Amour
351de3f767
Fixed the behavior of the optimizer on sqrt.
2010-07-02 15:47:58 -04:00
Vincent St-Amour
816cc75654
Fixed tests for invalid optimizations to actually test something.
2010-07-02 15:47:57 -04:00
Vincent St-Amour
ae242e2f88
Propagated Sam's changes to spectralnorm to the generic and unsafe versions.
2010-07-02 15:47:56 -04:00
Vincent St-Amour
cdfbbc5476
Fixed the type of real->decimal-string.
2010-07-02 15:47:56 -04:00
Vincent St-Amour
636fca1a83
Generalization is now done on vector types.
2010-07-02 15:16:11 -04:00
Vincent St-Amour
06279de2ca
Nonnegative-Floats are now generalized to Floats.
2010-07-02 15:16:10 -04:00
Ryan Culpepper
a543c2137e
unstable: removed byte-counting-port.rkt (use open-output-nowhere instead)
...
updated test to verify that open-output-nowhere has same behavior
2010-07-01 17:05:06 -06:00
Sam Tobin-Hochstadt
71bb63c128
Better typing for `make-sequence'.
2010-07-01 17:12:59 -04:00
Matthew Flatt
3de7dbd2fd
add chaperone-evt
2010-07-01 14:59:01 -06:00
Sam Tobin-Hochstadt
3d347f117b
Add --just flag for running tests.
2010-07-01 13:47:02 -04:00
Sam Tobin-Hochstadt
4f3e3625b3
Fix error spec for this test.
2010-07-01 13:45:52 -04:00
Sam Tobin-Hochstadt
c0a9704ebc
Rewrote spectral-norm benchmark based on Lua version.
2010-07-01 11:35:21 -04:00
Sam Tobin-Hochstadt
75bd26d326
Better error message for multiple ->
...
Closes PR 10493.
2010-07-01 11:35:21 -04:00
Robby Findler
8a6058fa0f
added some printouts to say what this file is doing.
2010-07-01 06:03:08 -05:00
Robby Findler
896bbfaabb
Adding support to do memory profiling of drr startup that drdr can track.
2010-07-01 06:03:07 -05:00
Robby Findler
b4d176466a
Added a logger to drdr for tracking drracket's memory use on startup
2010-07-01 06:03:07 -05:00
Vincent St-Amour
e4cd5329fb
Fixed benchmarks to work with Nonnegative-Floats.
2010-06-30 19:27:18 -04:00
Vincent St-Amour
62a15df3eb
Added the Nonnegative-Float type.
2010-06-30 14:53:22 -04:00
Vincent St-Amour
dcfb2d8a94
Added the Inexact-Complex type.
2010-06-30 14:53:21 -04:00
Vincent St-Amour
ef576e27c5
Fixed the type of min and max to only operate on reals.
2010-06-30 14:53:20 -04:00
Vincent St-Amour
dfafc0b295
Added fixnum optimizations.
2010-06-30 14:53:18 -04:00
Jay McCarthy
06844073c7
Switch to using substitutions in returns and remove old parts of the interface
2010-06-30 10:54:13 -06:00
Sam Tobin-Hochstadt
c01b239779
Refactor struct type representation.
...
- fields now represented by fld struct.
- mutability on per-field basis
- accessors are per field
This fixes lots of existing bugs, allows future #:mutable on fields.
2010-06-29 17:33:36 -04:00
Jay McCarthy
e46dbe3db5
Fixing bug in formlet macro
2010-06-29 15:17:13 -06:00
Jay McCarthy
fc91321f21
Close connection sooner
2010-06-29 13:49:01 -06:00
Jay McCarthy
df30cda523
Port registry and changing benchmarks to not conflict on ports
2010-06-29 13:38:36 -06:00
Jay McCarthy
2e5c04f083
Nail down port and dont conflict
2010-06-29 13:23:23 -06:00
Jay McCarthy
0062a4eb23
Fixing tests, adding provide, clarifying names
2010-06-29 13:18:04 -06:00
Jay McCarthy
a6852d8f61
Adding FFI to Datalog
2010-06-29 11:09:07 -06:00
Jay McCarthy
b4cc683f08
Fixing output port
2010-06-28 19:58:18 -06:00
Matthew Flatt
47c7c1a27b
JIT support for inexact->exact', add
unsafe-fl->fx', etc.
2010-06-28 15:57:49 -06:00
Jay McCarthy
da7d4d4042
Adding datalog macro
2010-06-28 13:22:53 -06:00
Jay McCarthy
12797fef41
Using the datalog reader for racklog
2010-06-28 11:24:01 -06:00
Sam Tobin-Hochstadt
23553392df
Rewrite typed common benchmark wrapper.
2010-06-28 12:12:32 -04:00
Sam Tobin-Hochstadt
e7c33c2244
Rewrite shootout benchmark wrapper.
...
- Now only needs one wrapper, conditions on module name
- use with #lang s-exp
- uses typed reader
2010-06-28 11:09:59 -04:00
Mike Sperber
faf8ec358f
Rename DMdA/HtDP "contract" to "signature".
2010-06-28 14:58:16 +02:00
Matthew Flatt
dc99e1992c
restore support for sub-matches in `regexp-replace*'
2010-06-26 18:23:54 -06:00
Jay McCarthy
c48d1b58b4
Uses a more traditional read/expand/eval pipeline
2010-06-26 15:25:22 -06:00
Jay McCarthy
07142e2305
Use capitalized letters for variables in paren version
2010-06-26 13:17:10 -06:00
Jay McCarthy
0bda9efa96
Removing old sexp library and correct docs for warning
2010-06-25 22:36:13 -06:00
Jay McCarthy
e90de7196d
Moving tests
2010-06-25 22:36:12 -06:00
Eli Barzilay
f5a0e6e0b8
Undo the racket/init symbolic form thing.
...
It needs to be (lib "racket/init") because that's the way that racket
uses the -I flag. I think that I ran into this in the past, so drop in
a comment explaining this.
This reverts commit f58b58383f
.
2010-06-25 16:05:58 -04:00
Vincent St-Amour
28acece484
Fixed Typed Scheme's optimizer's test harness to work with drdr.
2010-06-25 13:25:42 -04:00
Eli Barzilay
f58b58383f
Adjust tests to requiring racket/init in symbolic form.
2010-06-25 11:01:05 -04:00
Vincent St-Amour
17f0d146f1
Adjusted benchmark sizes.
2010-06-25 11:00:25 -04:00
Vincent St-Amour
bc0d0a6e18
Unified the nbody-vec benchmarks so that they only differ by their use
...
of flonum or unsafe operations.
2010-06-25 11:00:25 -04:00
Vincent St-Amour
369ce44416
Made the default nbody benchmark unsafe.
2010-06-25 11:00:24 -04:00
Vincent St-Amour
a14c31a1de
Changed dderiv to be closer to the untyped version.
2010-06-25 11:00:24 -04:00
Vincent St-Amour
b345d5f0f0
Typed Scheme now optimizes (fl)vector-length for all vectors and
...
vector-(ref,set!) for vectors of known length.
2010-06-25 11:00:24 -04:00
Vincent St-Amour
fd987546b3
Wrote a test harness and a couple of tests for Typed Scheme's optimizer.
2010-06-25 11:00:23 -04:00
Vincent St-Amour
8c8dbf0895
Fixes to some benchmarks due to the new fixnum types.
2010-06-25 11:00:23 -04:00
Vincent St-Amour
cea65c195b
Fixed typed wrappers for the typed versions of mandelbrot.
2010-06-25 11:00:22 -04:00
Vincent St-Amour
a4236b0b3b
Propagated Eli's bugfix to the typed version of binarytrees.
2010-06-25 11:00:22 -04:00
Sam Tobin-Hochstadt
4b1c62c978
Add Fixnum type.
2010-06-24 18:05:55 -04:00
Eli Barzilay
b46cb492bb
Reorganize as function calls, to make it easier to customize.
2010-06-24 17:17:10 -04:00
Sam Tobin-Hochstadt
5b1118d514
More options for test runner.
2010-06-24 16:46:31 -04:00
Sam Tobin-Hochstadt
3c8952d63d
Use the correct field numbers in substructs.
...
Maintain table of struct accessors/mutators.
2010-06-24 14:53:38 -04:00
Jay McCarthy
428412036f
Fixing PR 10970
2010-06-23 16:29:23 -06:00
Eli Barzilay
3f36d054f6
Turn contracts on enqueue!' and
dequeue!' into the usual error checks.
...
On a simple benchmark of:
(let ([N 100000]
[M 20]
[q (make-queue)])
(time (for ([i (in-range M)])
(for ([i (in-range (* i N))]) (enqueue! q i))
(unless (for/and ([i (in-range (* i N))]) (list i (dequeue! q)))
(error "poof")))))
I get these timings:
original version: cpu time: 24438 real time: 24439 gc time: 8164
single-links: cpu time: 17848 real time: 17849 gc time: 4859
this version: cpu time: 6519 real time: 6519 gc time: 3032
In addition, cleaned up the documentation a little, and mention the fact
that it is not thread safe.
2010-06-23 16:13:54 -04:00
Eli Barzilay
d986fed725
Uses a simpler single-linked list, about half of the meat code, and much
...
faster due to the removed overhead of dealing with the redundant
pointers.
2010-06-23 16:13:53 -04:00
Matthew Flatt
42c7b2b9d3
fix missed parts of the hash-table hahing bug
2010-06-23 07:09:59 -10:00
Matthew Flatt
bfd769a29c
fix hashing of hash-table values
...
the order of keys+values in the table could affect the
hash code, due to an interation with the depth-limiting
counter
Closes PR 10985
2010-06-23 07:00:29 -10:00
Eli Barzilay
0ffe4c1efb
Revert "Adding XPM parser"
...
Not needed, since an XPM parser was already implemented.
This reverts commit 4d58a10ff4
.
2010-06-23 07:34:40 -04:00
Eli Barzilay
e0c18c3a4b
Remove the temporary file when done with it.
2010-06-23 07:34:39 -04:00
Eli Barzilay
acace4bc18
Fixes two bugs that I somehow missed completely.
...
(Also removed leftover `time'.)
2010-06-23 07:34:17 -04:00
Vincent St-Amour
ef1da61fd0
Added S-Expression diff to unstable.
2010-06-22 18:42:28 -04:00
Vincent St-Amour
d3c5ca7537
Propagated Eli's changes to the binarytrees benchmark to the typed
...
version.
2010-06-22 18:42:27 -04:00
Vincent St-Amour
7d1040283e
Added support for unsafe struct operations to Typed Scheme.
2010-06-22 18:42:25 -04:00
Vincent St-Amour
c9383cffc2
Propagated Eli's changes to reversecomplement and fasta to the typed
...
versions.
2010-06-22 18:42:08 -04:00
Vincent St-Amour
4f501726fb
Fixed a bug in the shootout harness.
2010-06-22 18:29:58 -04:00
Vincent St-Amour
bc794b443c
Propagated Eli's changes to the mandelbrot benchmark to the generic
...
and typed versions.
2010-06-22 18:29:57 -04:00
Vincent St-Amour
5234809baf
The moments benchmark now gets floats as input.
2010-06-22 18:29:56 -04:00
Vincent St-Amour
61545c4e75
Made make-vector's type more convenient.
2010-06-22 18:29:56 -04:00
Vincent St-Amour
dd858bc11f
Got rid the the mandelbrot-unsafe benchmark, to reflect Eli's
...
changes.
2010-06-22 18:29:55 -04:00
Sam Tobin-Hochstadt
6e1954d79b
Add `struct:'
2010-06-22 16:29:35 -04:00
Jay McCarthy
4d58a10ff4
Adding XPM parser
2010-06-22 11:33:06 -06:00
Sam Tobin-Hochstadt
bce2cedf38
Typecheck `map' expression, not just #'map.
2010-06-22 10:12:54 -04:00
Sam Tobin-Hochstadt
95c5f942e6
Initialize `infer' for tests
2010-06-22 10:11:14 -04:00
Sam Tobin-Hochstadt
0c7c722e16
support `map' over multiple ListDots with the same bound
...
- also support ListDots + Listof (map errors when not same length)
2010-06-21 18:30:30 -04:00
Sam Tobin-Hochstadt
44d46e4cd7
Refactor substitution.
...
- new file types/substitute
- use structs for substitutions
2010-06-21 18:30:28 -04:00
Sam Tobin-Hochstadt
dcc8beb5cd
This test case now passes.
2010-06-21 18:30:28 -04:00
Sam Tobin-Hochstadt
e235c837b0
The inference engine doesn't need this annotation anymore.
2010-06-21 18:30:25 -04:00
Sam Tobin-Hochstadt
7b2de53733
Re-enable the printer here.
2010-06-21 18:30:24 -04:00
Sam Tobin-Hochstadt
12384c6c3f
Change type variable environments from hash tables to sets.
2010-06-21 18:29:59 -04:00
Sam Tobin-Hochstadt
e9f8cc9aca
Refactor test harness.
2010-06-21 18:29:59 -04:00
Sam Tobin-Hochstadt
f7b59f78e9
Generalize ListDots to Listof in inference of loop var types.
2010-06-21 18:29:58 -04:00
Sam Tobin-Hochstadt
a2af89bafd
Inference for passing ListDots as Listof.
2010-06-21 18:29:57 -04:00
Sam Tobin-Hochstadt
fd5a662ccc
Subtyping between (List T ... a) and (Listof T[Any/a])
2010-06-21 18:29:57 -04:00
Sam Tobin-Hochstadt
4cbeb0b2f0
Change type of ... rest args to have (List T ...) types.
2010-06-21 18:29:56 -04:00
Sam Tobin-Hochstadt
e40d1824b0
Initial ListDots test.
2010-06-21 18:29:56 -04:00
Sam Tobin-Hochstadt
50f93b9ed7
More environment refactoring.
...
- rationalize naming of files
- split files by env constructed
2010-06-21 18:29:55 -04:00
Jay McCarthy
a13edb18b6
Transparent XML structs
2010-06-21 12:48:26 -06:00
Jay McCarthy
801419693a
Default args to eliminate-whitespace
2010-06-21 12:48:26 -06:00
Eli Barzilay
554f026c71
"The Great Computer Language Shootout" -> "The Computer Language Benchmarks Game"
...
As requested by Isaac Gouy.
2010-06-20 22:19:43 -04:00
Eli Barzilay
ee57029a92
One more optimization, getting it to 60x.
2010-06-20 18:37:07 -04:00
Eli Barzilay
eec0f4bf66
Yet another 2x factor.
...
(Total ~22x.)
2010-06-20 18:37:06 -04:00
Eli Barzilay
c78f367d9f
Another simple improvement, making things about twice faster.
...
Total speedup is now ~14x.
2010-06-20 18:37:06 -04:00
Eli Barzilay
26c89b2ac6
And one more optimization gets this to a total of 6x improvement.
2010-06-20 18:37:06 -04:00
Eli Barzilay
e975e8e0c8
Another optimization, makes the `fl->fx' issue from the last one
...
irrelevant since it's not using it in the tight loop, but buys a bigger
improvement anyway.
2010-06-20 18:37:06 -04:00
Eli Barzilay
96006264ad
Some improved shootout benchmarks.
...
* An improved version of the `fasta' benchmark: ~2.5 times faster, and
if an inlined `unsafe-fl->fx' is added it is probably going to be
about ~3.5 times faster.
* `reversecomplement' -- revised code that is ~2.5 times faster, further
tweaks and unsafe ops gets it to ~4.5 times.
* Doing the structs differently in `binarytrees' and a few minor tweaks
get it to be ~1.5 times faster. This is probably because a leaf has
now only one field.
* `mandelbrot' improved a little (~1.2x), but the code is pretty much a
rewrite. (Given some more flonum inlining it can probably do much
better.)
* Added a comment to `pidigits-gmp' saying that it was used without
attribution.
These versions use unsafe operations, but I'm not putting them in
separate files since it's easy to turn them off. I've also removed
"mandelbrot-unsafe.rkt", since it was identical to the safe version.
2010-06-20 18:36:25 -04:00
Sam Tobin-Hochstadt
1e15ce1f32
Fix error message for 1-arg apply
2010-06-19 14:58:52 -04:00
Vincent St-Amour
f16732adbe
Fixed a typo in the shootout harness.
2010-06-18 20:30:15 -04:00
Robby Findler
4cd7152b62
made the drracket test suite match the new labels in the language dialog.
2010-06-18 17:38:54 -05:00
Vincent St-Amour
416f4fd3c3
Added input generation for the regexmatch benchmark.
2010-06-18 17:43:06 -04:00
Vincent St-Amour
894d159123
Disabled thread-ring in the harness, since it calls exit and doesn't
...
display its running time.
2010-06-18 17:43:05 -04:00
Vincent St-Amour
1dc963684b
Rewrote the typed partialsums benchmark to be closer to the untyped
...
version.
2010-06-18 17:43:04 -04:00
Vincent St-Amour
31f285d23c
Adjusted benchmark sizes.
2010-06-18 17:43:04 -04:00
Vincent St-Amour
343e9d23b4
Ported some new benchmarks and variants to Typed Scheme.
2010-06-18 17:43:04 -04:00
Vincent St-Amour
ffad1edd7a
Added the fannkuch-redux benchmark, which replaced fannkuch on the
...
shootout roster.
2010-06-18 17:43:03 -04:00
Vincent St-Amour
7ccae0fb1d
Got rid of assertions in the benchmarks caused by naturals as indices.
2010-06-18 17:43:02 -04:00
Vincent St-Amour
54eefc52ed
Relaxed some type constraints on the ray tracer benchmark.
2010-06-18 17:43:01 -04:00
Vincent St-Amour
e0b880d1ea
Fixed the sumcol benchmark to obey the new type for read-line.
2010-06-18 17:43:01 -04:00
Vincent St-Amour
72ec18cc68
Rewrote the moments benchmark to potentially benefit from unboxing of
...
loop accumulators.
2010-06-18 17:43:01 -04:00
Vincent St-Amour
06eb544fd6
Fixes to the shootout benchmarks to reflect the new weaker promotion
...
rules.
2010-06-18 17:43:00 -04:00
Vincent St-Amour
ff1c3874cc
Added a coercion to inexact to avoid the case: (* <float> 0) -> exact 0
...
which causes a segfault when the result is used with an unsafe-fl
operation.
2010-06-18 17:43:00 -04:00
Vincent St-Amour
cff4eef7b2
Adjusted input size for the shootout benchmarks.
2010-06-18 17:43:00 -04:00
Vincent St-Amour
31d4da6f39
Added an empty benchmark to measure Typed Scheme's startup time.
2010-06-18 17:42:59 -04:00
Vincent St-Amour
7bb8405871
Fixed a bug in the shootout harness, which threw away generated input.
2010-06-18 17:42:59 -04:00
Vincent St-Amour
3e0446d774
Modified some of the untyped shootout benchmarks to be closer to the
...
typed versions.
2010-06-18 17:42:58 -04:00
Vincent St-Amour
7f3db138e7
Integrated the typed shootout benchmarks to the untyped harness.
2010-06-18 17:42:58 -04:00
Vincent St-Amour
d48f1bb6aa
Racketified the untyped shootout benchmarks.
2010-06-18 17:42:58 -04:00
Vincent St-Amour
4fde1e8ccb
Ported most of the shootout benchmarks to Typed Scheme.
2010-06-18 17:42:57 -04:00
Sam Tobin-Hochstadt
77e4bbb5eb
base-types-new -> base-types
2010-06-17 11:47:16 -04:00
Sam Tobin-Hochstadt
bdbb6d48e6
Try harder to find types for loop variables.
...
- use `find-annotation' more
- recognize (let ([x y]) ...)
2010-06-17 11:26:33 -04:00
Vincent St-Amour
93e5d0e9dc
Added an option to subtract the running time of the empty benchmark to
...
the tabulator.
2010-06-15 16:39:32 -04:00
Vincent St-Amour
a33372eb78
Added an option to display the coefficient of variation to the
...
tabulator.
2010-06-15 16:21:51 -04:00
Sam Tobin-Hochstadt
4cc86cc8c8
set-mc[ad]r!, inference, printing, tests for mpairs
2010-06-15 16:10:16 -04:00
Sam Tobin-Hochstadt
f73d63e1af
eq? is a predicate for eof
2010-06-15 14:59:08 -04:00
Sam Tobin-Hochstadt
cf5c74a2ca
Generate -> instead of ->* when required by case->.
...
Closes PR 10977.
2010-06-13 15:01:57 -04:00
Sam Tobin-Hochstadt
d4d286d31d
Allow (All (A) A -> A), dropping pair of parens.
2010-06-13 14:38:03 -04:00
Vincent St-Amour
fe09ce3dee
Added Jeff Siskind's ray tracer to the racket-specific benchmarks.
2010-06-11 19:48:23 -04:00
Vincent St-Amour
727000fbfb
Fixed the common benchmark harness to compile the typed benchmarks
...
before running them.
2010-06-11 19:48:22 -04:00
Sam Tobin-Hochstadt
1cff0a1f85
Actually typecheck actuals even when there's a type annotation.
2010-06-11 19:35:56 -04:00
Sam Tobin-Hochstadt
7ece2a4872
Fix type of `zero?' to properly handle 0.0.
2010-06-11 18:54:05 -04:00
Matthew Flatt
d6d5c914f7
cases when number functions produce 0: clarify docs and fix (atan 0 x)
...
for positive exact x;
also clarify docs on some cases when divide-by-zero exception is raised
2010-06-11 15:04:24 -06:00
Sam Tobin-Hochstadt
fd1b20c93d
Fix optimizer for refactoring.
2010-06-11 14:21:42 -04:00
Sam Tobin-Hochstadt
b649575afc
new bug with mutation
2010-06-11 11:55:22 -04:00
Sam Tobin-Hochstadt
0379e534e3
New interface for unstable/mutated-vars
...
- functional hash tables
- fix clients
2010-06-10 13:28:29 -04:00
Stevie Strickland
7b38cef4e8
Fix first-order cons/c check in mzlib contract tests.
2010-06-09 15:52:29 -04:00
Vincent St-Amour
6b4ca4d7b0
Added tests and documentation for Thread and Channel types.
2010-06-09 14:54:37 -04:00
Vincent St-Amour
0741b48c99
Modified the for: macros to use sequence types.
2010-06-09 14:54:34 -04:00
Vincent St-Amour
f42880c320
Moved the typed common benchmarks to a separate subdirectory.
2010-06-09 14:54:33 -04:00
Vincent St-Amour
077e1d9bca
Increased the size of the pseudoknot benchmark and ported it to
...
idiomatic racket, then to Typed Scheme.
2010-06-09 14:51:52 -04:00
Stevie Strickland
99bb46d225
Fix flat immutable container ctcs so that errors pinpoint specific elements.
...
* Fixes immutable container contract combinators so that, if given flat
contracts, they report blame errors in terms of the specific element
that failed, instead of reporting the entire container as failing.
This fixes issues seen with contracts such as (listof string?), where
the contract is applied to a list with far too many elements to print
all at once and the failing element is never printed.
* Fixes vector-immutable/c so that if all the element contracts are flat,
we create a flat contract, like the other immutable container contract
combinators.
* Also have more appropriate first-order checks for each combinator
than just "Is it the right type of container?".
These changes affect:
listof
non-empty-listof
vector-immutableof
cons/c
box-immutable/c
vector-immutable/c
2010-06-09 13:29:04 -04:00
Matthew Flatt
d6ddbe15d5
support kw/opt args in define-syntax' and
define-for-syntax'
2010-06-09 13:05:43 -04:00
Sam Tobin-Hochstadt
78023d08f9
Sequenceof type.
...
- inferencing and subtyping relation with vectors, lists, etc
- use in `make-sequence'
- add tests
2010-06-09 11:03:12 -04:00
Sam Tobin-Hochstadt
78832fe332
Support case-lambda with multiple branches with keyword arguments.
2010-06-08 17:50:48 -04:00
Sam Tobin-Hochstadt
6d2b5569f4
Remove bogus #lang line
2010-06-08 13:08:13 -04:00
Sam Tobin-Hochstadt
9fc7a1eca4
Use `assert' for casts in typed benchmarks.
2010-06-08 12:05:58 -04:00
Sam Tobin-Hochstadt
5f5dca4c69
Undo changes to benchmarks to use `sub1'.
2010-06-08 12:05:57 -04:00
Sam Tobin-Hochstadt
7f300a2c4f
Special-case (- x 1) for use in loops.
2010-06-08 12:05:56 -04:00
Mike Sperber
30f9cd0dab
Merge remote branch 'local-plt/master'
2010-06-08 14:22:51 +02:00
Mike Sperber
f54dc18326
Fix file names for loading.
2010-06-08 11:19:28 +02:00
Sam Tobin-Hochstadt
7df8e32793
Properly handling immutable invariant structs.
2010-06-07 14:03:06 -04:00
Mike Sperber
93d7ec9446
Don't recheck DMdA lazy contracts we've already checked.
...
We avoided re-applying contracts that haven't been checked, but not
those that have. Do so now.
2010-06-07 17:06:07 +02:00
Carl Eastlund
a915d7c053
Changed unstable/debug to use error printing instead of logger output.
2010-06-06 20:31:36 -04:00
Carl Eastlund
ddc889532e
Replaced unstable/debug with unstable/cce/debug.
2010-06-06 20:31:36 -04:00
Carl Eastlund
5faced0c23
Moved unstable/cce/set to unstable/set.
2010-06-06 20:31:35 -04:00
Carl Eastlund
7131198974
Moved unstable/cce/define to unstable/define.
2010-06-06 20:31:33 -04:00
Carl Eastlund
ce85a96978
Moved the contents of unstable/cce/syntax to multiple other modules:
...
unstable/syntax, unstable/contract, and unstable/planet-syntax.
2010-06-06 20:31:32 -04:00
Carl Eastlund
fb53d5d191
Moved unstable/cce/dict to unstable/dict.
2010-06-06 20:31:31 -04:00
Carl Eastlund
86a3c3ed18
Moved unstable/cce/class to unstable/class.
2010-06-06 20:31:31 -04:00
Carl Eastlund
1360d02728
Added unstable/cce/exn to unstable/exn.
2010-06-06 20:31:30 -04:00
Carl Eastlund
402232237c
Moved unstable/cce/port to unstable/port.
2010-06-06 20:31:21 -04:00
Carl Eastlund
2db3a9d38a
Moved unstable/cce/regexp to unstable/regexp.
2010-06-06 20:30:48 -04:00
Carl Eastlund
3a525b9a12
Replaced unstable/hash with unstable/cce/hash.
2010-06-06 20:30:48 -04:00
Carl Eastlund
286319d723
Added unstable/cce/contract contents to unstable/contract.
2010-06-06 20:30:47 -04:00
Carl Eastlund
70858e93e5
Moved unstable/cce/queue to unstable/queue.
2010-06-06 20:30:40 -04:00
Carl Eastlund
1d0c069a6c
Moved unstable/cce/web to unstable/web.
2010-06-06 20:29:59 -04:00
Carl Eastlund
14b2daab66
Moved unstable/cce/values to unstable/values.
2010-06-06 20:29:56 -04:00
Carl Eastlund
a22a1a4c15
Added unstable/cce/match macros to unstable/match.
2010-06-06 20:29:55 -04:00
Carl Eastlund
6bcf77fe65
Moved unstable/cce/text to unstable/text.
2010-06-06 20:29:54 -04:00
Carl Eastlund
8d10a6343b
Adapted unstable/cce/function to unstable/function.
2010-06-06 20:29:54 -04:00
Jay McCarthy
add2cbbbda
Correcting test
2010-06-02 12:12:44 -06:00
Jay McCarthy
2985001a79
Fixing PR10950
2010-06-02 10:20:20 -06:00
Jay McCarthy
3ff7b0461c
Debugging
2010-06-02 10:20:19 -06:00
Matthew Flatt
61d39f2568
bytecode compiler convert (apply f .... (list arg ...))
2010-06-01 19:22:39 -06:00
Sam Tobin-Hochstadt
0e3c2b71cc
Test for PR 10946.
2010-06-01 13:38:45 -04:00
Eli Barzilay
d0ecc73df5
More plt-scheme -> racket-lang, specifically for planet and bugs urls.
2010-05-31 15:11:27 -04:00
Vincent St-Amour
64ff5555fb
Corrected some of the typed benchmarks to typecheck with Naturals as indices.
2010-05-29 14:23:11 -04:00
Vincent St-Amour
2229173b82
Changed the types of some numerical operations to be closed on naturals.
2010-05-29 11:31:47 -04:00
Sam Tobin-Hochstadt
d323a794e8
Change `typed-scheme' numerics.
...
- `number?' no longer `real?'
- Number no longer Real
- remove obsolete environments
- Fix tests to use Real where necessary.
- Fix typed/mred and typed/framework
- Fix insert-large-letters to use `sub1' for type-safe loop
Merge to 5.0.
2010-05-28 19:24:46 -04:00
Vincent St-Amour
311be27422
Changed the common benchmark harness to compile benchmarks before
...
running them.
2010-05-28 19:05:45 -04:00
Vincent St-Amour
e9a0014630
Disabled multi-valued seq-exprs in the for: macros because using them
...
triggers an internal error in the typechecker.
2010-05-28 19:05:44 -04:00
Vincent St-Amour
c92ae73859
Wrote tests for the for: macros.
2010-05-28 19:05:44 -04:00
John Clements
2b7797ad17
comments added, & 1 test
2010-05-28 14:57:18 -07:00
Matthew Flatt
9f7a08663d
fix bug in JIT handling of with-continuation-mark
...
The bug was specific to the case of a wcm in tail position
of another wcm, where its mark should replace the outer one,
and where the outer one is not in tail position with respect
to the enclosing function
Merge to v5.0
2010-05-28 14:28:06 -06:00
Jay McCarthy
0a9e3da26e
Renaming formlet* source
2010-05-28 14:09:07 -06:00
Jay McCarthy
c907fae871
Adding formlet*
2010-05-28 14:09:07 -06:00
Matthew Flatt
d923ef135f
add examples from J-P Roy's textbook to check before a release
2010-05-27 15:30:00 -06:00
Matthew Flatt
6006a4c84d
fix helper file for raco ctool test
2010-05-27 13:33:51 -06:00
Jay McCarthy
612bd22bfe
Cyclic zo tests
2010-05-27 12:33:25 -06:00
Jay McCarthy
08a48a67a0
Making string->xexpr more permissive
2010-05-27 10:48:42 -06:00
Sam Tobin-Hochstadt
34fef6e538
Re-enable test.
2010-05-27 12:46:29 -04:00
Sam Tobin-Hochstadt
9701ae0065
Avoid requiring old base-types.
2010-05-27 10:56:18 -04:00
Sam Tobin-Hochstadt
63dbde1e9e
Fix test for new `do:' behavior.
2010-05-27 10:10:26 -04:00
Vincent St-Amour
44a7a71923
Corrected the typed versions of some benchmarks to be closer to the
...
untyped versions.
2010-05-27 09:30:49 -04:00
Vincent St-Amour
ca9e35b9be
Changed some of the benchmarks to run for more iterations.
2010-05-26 19:48:32 -04:00
Vincent St-Amour
61f6a2579b
Documented the typed benchmarks.
2010-05-26 19:48:31 -04:00
Matthew Flatt
7442f14305
fix problems with raco exe
...
Merge to v5.0
2010-05-26 17:07:09 -06:00
Jay McCarthy
47f6b264a0
Specifying when R5RS is required for a benchmark and enabling running from other directories
...
Enabling running all benchmarks in DrDr
2010-05-26 14:53:15 -06:00
Jay McCarthy
225c08312a
Commenting out time display I don't understand
2010-05-26 14:53:15 -06:00
Eli Barzilay
5c702976c2
A few more stray "racunit"s.
2010-05-26 15:21:55 -04:00
dvanhorn
c9d0bd10a1
Added remf to unstable/list.
...
Signed-off-by: Jay McCarthy <jay@racket-lang.org>
2010-05-26 10:08:29 -06:00
Stevie Strickland
24c5a9aed8
Fix for optional keyword contracts used on make-keyword-procedure results.
...
This fix should go into the 5.0 release.
2010-05-25 13:01:42 -04:00
Jay McCarthy
2df8fac233
Fixing a bug reported by 张虎成. Original and small test case were added. I reimplemented Knuth-Morris-Pratt because I couldn't debug the existing implementation.
...
Please include in 5.0
2010-05-25 07:47:23 -06:00
Jay McCarthy
50fd0278ba
Fixing an innoculous test case failure I introduced, by override the platform's time zone.
...
Relaxing the contract on date->string to accord with previous documentation.
Changing web-server example to use more restrictive contract
Please include in 5.0
2010-05-25 06:54:28 -06:00
Sam Tobin-Hochstadt
775e1b06a5
Test for former bug. Closes PR 10470.
2010-05-25 00:09:03 -07:00
Sam Tobin-Hochstadt
27e971dce2
Check that at least one require spec is provided.
...
Closes PR 10617.
Merge to v5.0.
2010-05-24 22:33:31 -07:00
Jay McCarthy
3f1a89b8f8
Fixing dumb bug from me
2010-05-24 18:46:31 -06:00
Vincent St-Amour
6e16a76b51
Revert "Added a /dev/null-like output port to unstable."
...
open-output-nowhere already does something similar.
2010-05-24 18:57:05 -04:00
Vincent St-Amour
9c12b7d2e7
Added a /dev/null-like output port to unstable.
2010-05-24 18:41:13 -04:00
Sam Tobin-Hochstadt
3b90cdb872
Merge branch 'master' of git.racket-lang.org:plt
2010-05-24 14:05:29 -07:00
Sam Tobin-Hochstadt
af689b2531
Tests for bug found by David Van Horn.
2010-05-24 14:04:43 -07:00
Sam Tobin-Hochstadt
f320d36e9c
Fix parsing of All on RHS of ->
2010-05-24 13:26:29 -07:00
Jay McCarthy
1b6b721aee
Adding date->seconds
2010-05-24 14:25:35 -06:00
Jay McCarthy
4d892983fa
Adding test cases to verify changes
2010-05-24 14:23:52 -06:00
Jay McCarthy
758b944996
Contract was too strict
2010-05-24 13:14:35 -06:00
Jay McCarthy
f44e3123b5
Adding byte counting ports
2010-05-24 13:14:35 -06:00
Jay McCarthy
85a7509034
Removing test auto run
2010-05-24 09:56:35 -06:00
Jay McCarthy
15d9a7dd8a
Initial ftp test cases
2010-05-24 09:56:35 -06:00
Jay McCarthy
52281d7089
rkt suffixes
2010-05-24 09:56:35 -06:00
Stevie Strickland
77b4106c84
Allow the structure name to be used as a constructor.
...
Push to 5.0.
2010-05-21 17:16:51 -04:00
Eli Barzilay
12211fff72
Various lazy-related fixes etc.
...
* A long-standing bug, which happened with
(let ([x (lazy (delay 1))]) (force x) (force x))
not being properly handled.
* Added `delay/strict', mostly for the below.
* Made srfi/45 reprovide it as `eager'.
* Also restricted the exports from srfi/45 to its interface.
All of these issues were reported by Andreas Rottmann.
2010-05-21 15:12:16 -04:00
Sam Tobin-Hochstadt
188f080c79
Handle set! transformers in match expanders.
...
- use prop:set!-transformer
- extract set!-transformers where necessary
Closes PR 10481
2010-05-21 10:41:24 -04:00
Sam Tobin-Hochstadt
230f1a59c6
More precise types for: truncate, floor ceiling
2010-05-21 10:41:24 -04:00
Vincent St-Amour
afdccf7a23
Used the .rktl extension for unwrapped typed benchmarks and set props
...
to not have drdr run the typed benchmarks.
2010-05-19 18:28:30 -04:00
Matthew Flatt
9fc5cbfa2c
Fix syntax error in ASL
...
Closes PR 10914
Merge to v5.0
2010-05-19 15:11:41 -06:00
Matthew Flatt
993d80eb2a
rackety shootout benchmarks
2010-05-19 15:10:46 -06:00
Sam Tobin-Hochstadt
e9ac3651a4
Add test file.
...
Closes PR 10594.
2010-05-19 15:22:22 -05:00
Sam Tobin-Hochstadt
9fe3747a19
Allow expected type to have weaker filters and objects.
...
Closes PR 10729.
2010-05-19 15:14:18 -05:00
Sam Tobin-Hochstadt
7e9313bad3
Allow recursive types in type annotations for `list'.
...
Closes PR 10562.
Tests for fixed bugs.
2010-05-19 15:14:18 -05:00
Vincent St-Amour
63be1f51ed
Added error checking in the graphs-typed benchmark.
2010-05-19 13:10:40 -04:00
Vincent St-Amour
1ac3f6905f
Changed the typed benchmarks and the benchmark harness to use wrapper
...
modules to turn typed Scheme's optimization on and off.
2010-05-19 13:10:39 -04:00
Vincent St-Amour
20cd21440f
Ported some more of the common benchmarks to Typed Scheme.
2010-05-19 13:10:39 -04:00
Vincent St-Amour
1e15826159
Switched from using the module form to using #lang in the typed benchmarks.
2010-05-19 13:10:39 -04:00
Vincent St-Amour
fb09e9da23
Updated some of the typed benchmarks.
2010-05-19 13:10:38 -04:00
Vincent St-Amour
e90e37ec62
Ported some more of the common benchmarks to Typed Scheme.
2010-05-19 13:10:38 -04:00
Vincent St-Amour
46fdef3f3f
Ported some of the common benchmarks to Typed Scheme.
2010-05-19 13:10:38 -04:00
Vincent St-Amour
790658886b
Wrote tests for the new pair accessor type signatures.
2010-05-19 13:10:36 -04:00
Sam Tobin-Hochstadt
3fd5c49172
Add test for PR 10318.
...
Closes PR 10318.
2010-05-19 11:12:13 -05:00
Sam Tobin-Hochstadt
638245e4c5
Better type annotation support.
...
- Delay more errors for additional reporting.
- Don't re-check expressions that were checked for inference.
Closes PR 10098.
2010-05-19 10:10:54 -05:00
Eli Barzilay
14cfb73902
"Raclog" -> "Racklog"
2010-05-18 23:47:31 -04:00
Stevie Strickland
4336f29273
Quick fix to get the right struct info out of define-struct/contract.
...
Closes PR 10526. Closes PR 10561.
2010-05-18 13:14:14 -04:00
Sam Tobin-Hochstadt
535dc73fad
More fixes for Vincent.
2010-05-17 18:03:34 -04:00
Sam Tobin-Hochstadt
d2a1470ea5
Fix repeated type ascription.
2010-05-17 16:20:44 -05:00
Sam Tobin-Hochstadt
0d1d61c725
rename to .rkt
2010-05-17 15:55:23 -05:00
Sam Tobin-Hochstadt
68391b2d7f
Fix for git/rkt
2010-05-17 15:36:28 -05:00
Sam Tobin-Hochstadt
ce874bb0a1
rename to rkt
2010-05-17 15:29:12 -05:00
Eli Barzilay
7b14a1f585
"Racunit" -> "Rackunit"
2010-05-17 12:07:32 -04:00
Jay McCarthy
5b38155e7f
Using raw response file in test
2010-05-17 11:05:22 -05:00
Eli Barzilay
939af28a4c
Some random ".ss" -> ".rkt"s
2010-05-17 05:58:19 -04:00
Eli Barzilay
9c352f5704
More svn -> git changes.
...
Some mentions of svn/subversion are replaced with git, and some patterns
for paths to ignore include ".git*". (Note ".mailmap" not added, might
need to.)
2010-05-17 05:41:04 -04:00
Eli Barzilay
1e5dbe553b
Fix two random emails.
2010-05-17 04:03:28 -04:00
Eli Barzilay
bcab28e5d2
Misc tests/drracket improvements.
...
Removed "info.rkt", since all entries were unused; switched ".ss" to
".rkt" in both real code and tested code (except for the teachpack
tests); modernized some tests to use symbolic requires (which would also
make it easier to deal with).
2010-05-17 03:07:10 -04:00
Eli Barzilay
fcedc30ee4
Rename "collects/tests/mred" -> ".../gracket".
...
Some additional mred-related tweaks.
2010-05-17 01:44:27 -04:00
Eli Barzilay
de0cc7771b
A lot of "DrScheme" -> "DrRacket"s.
2010-05-17 01:27:03 -04:00
Eli Barzilay
a46743211b
A lot of "plt-scheme.org" -> "racket-lang.org"s.
2010-05-17 00:53:12 -04:00
Eli Barzilay
bba676d90c
Update the text message at the top of WXME files, including the URL.
...
Also, update the message in existing files. Change the instructions to
use DrRacket or DrScheme version <previous-version>, and for really old
files (pre-v4), just use 4 for the version. Also just drop the second
paragraph in these files -- "Most likely, it was created by" is not
needed when for these files we know that this is true.
2010-05-17 00:19:26 -04:00
Eli Barzilay
7f6efdc8be
A lot of "MrEd" -> "GRacket"s.
2010-05-16 23:46:05 -04:00
Eli Barzilay
2d9601089d
A lot of "MzScheme" -> "Racket"s.
2010-05-16 18:26:26 -04:00
Eli Barzilay
a82bb41950
some prop fixes
2010-05-16 18:26:25 -04:00
Matthew Flatt
900784c8e4
fix regexp sub-pattern reporting
2010-05-15 08:36:11 -06:00
Jay McCarthy
b58932ba39
Off by one
2010-05-14 11:05:23 -06:00
Sam Tobin-Hochstadt
21b5c25c90
Add annotation to test.
...
Fix default case for `vector-set!'
2010-05-14 11:00:23 -04:00
Sam Tobin-Hochstadt
ff36a6e8d1
sensible handling of literal vectors
2010-05-14 11:00:23 -04:00
Sam Tobin-Hochstadt
7ac925695f
more sensible version of het vectors.
...
add vector-length, vector-set!
2010-05-14 11:00:23 -04:00
Sam Tobin-Hochstadt
ec14f2c0b8
Finish het vectors
2010-05-14 11:00:22 -04:00
Sam Tobin-Hochstadt
0558d11abb
more testing
2010-05-14 11:00:22 -04:00
Jay McCarthy
bac7ff3bdf
Fixing X11 test bugs
2010-05-13 14:34:34 -06:00
Jay McCarthy
fb8e8640bb
This error should not be on stderr, because it is intended
2010-05-13 14:25:39 -06:00
Sam Tobin-Hochstadt
a893116391
fix more tests
2010-05-13 13:36:54 -04:00
Sam Tobin-Hochstadt
dcf8507fd6
Fix incorrect tests.
2010-05-13 12:35:14 -04:00
Sam Tobin-Hochstadt
60aed123ce
fix more tests
2010-05-12 21:33:55 -04:00
Sam Tobin-Hochstadt
499f36ee69
add simple test
2010-05-12 17:05:09 -04:00
Sam Tobin-Hochstadt
5a8fac0bdf
switch to typed/
2010-05-12 11:52:11 -04:00
Sam Tobin-Hochstadt
ec942b6dab
Merge remote branch 'origin/master' into samth/new-logic2
2010-05-12 10:59:29 -04:00
Sam Tobin-Hochstadt
4548426cd4
Merge remote branch 'origin/master' into samth/new-logic2
2010-05-11 15:19:52 -04:00
Vincent St-Amour
2435f6fe06
Changed the common benchmark wrapper to use the racket language and to
...
print return values.
2010-05-11 14:56:43 -04:00
Vincent St-Amour
11d8dac0bf
Got rid of one-armed ifs in the common benchmarks.
2010-05-11 14:56:43 -04:00
Eli Barzilay
50753b6364
more fixes to automated tests
2010-05-10 23:36:14 -04:00
Eli Barzilay
8b3ff3e297
Use racket for automated tests.
2010-05-10 22:13:10 -04:00
Matthew Flatt
899e85f94f
change prop:custom-print-as-constructor to more general prop:custom-print-quotable
2010-05-10 18:32:25 -06:00
Sam Tobin-Hochstadt
a81de56b30
add test for bug found by vincent
2010-05-10 17:55:29 -04:00
Carl Eastlund
ff5b8da551
Adjusted list/c to stand alone, rather than using cons/c, so that it prints as itself.
2010-05-10 16:39:07 -04:00
Sam Tobin-Hochstadt
fe10457f4e
more test errors
2010-05-10 16:22:41 -04:00
Sam Tobin-Hochstadt
08d0df5256
fix test suite errors
2010-05-10 16:09:58 -04:00
Sam Tobin-Hochstadt
b1a49470ee
fix `implied-atomic?'
2010-05-10 11:51:18 -04:00
Sam Tobin-Hochstadt
82ee73ab51
Merge remote branch 'origin/master' into samth/new-logic2
...
Conflicts:
collects/typed-scheme/scribblings/begin.scrbl
collects/typed-scheme/scribblings/quick.scrbl
collects/typed-scheme/scribblings/ts-guide.scrbl
collects/typed-scheme/scribblings/ts-reference.scrbl
collects/typed-scheme/scribblings/varargs.scrbl
2010-05-10 10:36:21 -04:00
Matthew Flatt
41e1fe958f
test repairs
2010-05-10 06:23:37 -06:00
Matthew Flatt
ed1d7f81c9
move drscheme and tests/drscheme to drracket and tests/drracket
2010-05-09 15:34:50 -06:00
Robby Findler
155cc4ac05
fixed the way preference file restoration works in the case that there is no preferences file to start with
2010-05-08 16:22:56 -05:00
Robby Findler
eb5c839b97
changed an ss to a rkt
2010-05-08 16:18:04 -05:00
Jay McCarthy
8c918c489a
Fixing test re printing output... again :)
2010-05-07 12:44:12 -06:00
Matthew Flatt
e5a259bdf0
document latest printing convention
2010-05-06 18:01:21 -06:00
Matthew Flatt
43027a8d9b
switch printer to constructor+quote style
2010-05-06 10:33:42 -06:00
Sam Tobin-Hochstadt
1146ffa76d
Merge branch 'master' into samth/new-logic2
...
Conflicts:
collects/typed-scheme/private/parse-type.rkt
collects/typed-scheme/typecheck/tc-app.rkt
2010-05-05 13:35:29 -04:00
Matthew Flatt
27cd77c16c
fix problem with chaperone of chaperoned hash
2010-05-05 09:23:40 -06:00
Matthew Flatt
7c52a82216
fix another hash chaperone bug
2010-05-05 07:52:48 -06:00
Matthew Flatt
60446bcd95
fix racket/vector test and doc typo
2010-05-05 06:18:52 -06:00
Sam Tobin-Hochstadt
90f7f522f8
minor test edits
2010-05-04 19:47:38 -04:00
Sam Tobin-Hochstadt
a728bae3cb
use racunit better to get expected/actual info
2010-05-04 19:47:38 -04:00
Sam Tobin-Hochstadt
d678e7657d
use `test-begin' in test
2010-05-04 19:47:37 -04:00
Sam Tobin-Hochstadt
3ebd04550a
typed/racunit:
...
- fix more contracts
- make test tests not fail
2010-05-04 19:47:37 -04:00
Sam Tobin-Hochstadt
0a2b16f804
fix some racunit types, add test case
2010-05-04 19:47:37 -04:00
Ryan Culpepper
d0cc31b35e
syntax/parse: reverted error message, fixed error test
2010-05-04 14:12:49 -06:00
Matthew Flatt
8af4134991
move result-chaperoning procedure to start of chaperioning procedure's results
2010-05-04 13:56:21 -06:00
Jay McCarthy
bfc43a7ebd
More permissive cookie parser
2010-05-04 11:20:22 -06:00
Jay McCarthy
3f19ad6fce
Including version in cookie output
2010-05-04 10:42:57 -06:00
Matthew Flatt
a097b2ef6a
fix chaperone-hash to be more consistent with key handling
2010-05-03 17:59:54 -06:00
Sam Tobin-Hochstadt
d5776a1266
use `vector-member'
2010-05-03 18:03:01 -04:00
Sam Tobin-Hochstadt
69e2122af6
vector-mem{ber,q,v}
2010-05-03 17:08:36 -04:00
Sam Tobin-Hochstadt
34e64b650f
Add test for bug 10868
...
Add 'unit' command line arg to 'run.rkt' command to just run the unit tests
2010-05-03 15:13:33 -04:00
Sam Tobin-Hochstadt
92a3085658
rename
2010-05-03 13:18:56 -04:00
Sam Tobin-Hochstadt
996405af9c
fix problem reported by Sigrid on plt-scheme
2010-05-03 13:15:19 -04:00
Sam Tobin-Hochstadt
6b5305afe7
run .rkt files
2010-05-03 13:01:58 -04:00
Matthew Flatt
5a93e8c5e0
more test repairs
2010-05-02 08:31:12 -06:00
Matthew Flatt
e504acb726
use .rktl suffix for files meant to be 'load'ed
2010-05-01 09:58:16 -06:00
Matthew Flatt
043f97df97
fix more test files
2010-05-01 07:23:05 -06:00
Matthew Flatt
fa538620e8
fix cm test
2010-04-30 20:19:53 -06:00
Sam Tobin-Hochstadt
85fad33c4c
loadtest.ss -> loadtest.rkt
2010-04-30 16:35:48 -04:00
Sam Tobin-Hochstadt
9a170047f4
.ss -> .rkt
2010-04-30 16:29:10 -04:00
Jay McCarthy
e40f89fed2
Adding mark params
2010-04-30 13:06:55 -06:00
Sam Tobin-Hochstadt
5e9ae84b15
Merge remote branch 'origin/master' into samth/new-logic2
...
Conflicts:
collects/tests/typed-scheme/unit-tests/typecheck-tests.rkt
2010-04-30 13:48:49 -04:00
Jay McCarthy
e3a9aa8162
Fixing test of pprint
2010-04-30 11:07:02 -06:00
Jay McCarthy
645b0b06fe
Merge branch 'master' of git.racket-lang.org:plt
2010-04-30 10:57:38 -06:00
Jay McCarthy
bc5cf30ebe
Renaming rktunit to racunit
2010-04-30 10:57:32 -06:00
Sam Tobin-Hochstadt
04f58cab86
Merge remote branch 'origin/master' into samth/new-logic2
...
Conflicts:
collects/drscheme/private/insert-large-letters.ss
collects/tests/typed-scheme/unit-tests/typecheck-tests.ss
2010-04-30 09:34:31 -04:00
Matthew Flatt
f20d3db75f
fix some DrDr tests
2010-04-29 19:55:39 -06:00
Matthew Flatt
7ed0d4e00a
futures: protect use of mfence by processor count
2010-04-29 17:11:42 -06:00
Jay McCarthy
f70ffca756
Renaming schemeunit to rktunit and adding compat layer
2010-04-29 15:00:02 -06:00
Jay McCarthy
5cb8f4e3d9
Renaming logic/schelog to raclog, supporting unification for all racket datatypes
2010-04-29 13:41:12 -06:00
Jay McCarthy
7cd703f034
Renaming schelog to logic and racketing
2010-04-28 13:37:57 -06:00
Jay McCarthy
8a6cdfe582
Merge branch 'master' of git.racket-lang.org:plt
2010-04-28 13:21:53 -06:00
Jay McCarthy
7d1c7d874b
Changing unstable, xml, html, and web-server to be rackety
2010-04-28 13:21:30 -06:00
Matthew Flatt
6a28bd0e4b
fix some tests for drdr
2010-04-28 11:02:31 -06:00
Carl Eastlund
8879f4a61d
Updated unstable/srcloc tests for racket.
2010-04-28 12:30:25 -04:00
Matthew Flatt
882b7dce0e
move tests/mzscheme to tests/racket
2010-04-27 18:28:39 -06:00
Sam Tobin-Hochstadt
b5acbe3168
move d/c/p
...
fix tc-e/t
2010-04-27 19:29:10 -04:00
Matthew Flatt
28b4043077
rename all files .ss -> .rkt
2010-04-27 16:50:15 -06:00
Jay McCarthy
94a6aac517
failure-prefix form and failure-format parameter in eli-tester
2010-04-27 16:12:32 -06:00
Jay McCarthy
5b779d22ac
slatex test, slatex contracts and props
2010-04-27 11:00:24 -06:00
Jay McCarthy
e258476748
Supporting multiple value returns in formlets
2010-04-27 10:41:56 -06:00
Jay McCarthy
dbe00ce0b4
Fixing test re banner change
2010-04-27 09:44:57 -06:00
Jay McCarthy
5823da1710
Moving error output to stderr
2010-04-27 09:35:01 -06:00
Jay McCarthy
306e67f3ab
Fixing test finding
2010-04-27 09:31:05 -06:00
Jay McCarthy
96a3f47ea0
Fixing cookie regex
2010-04-27 08:48:07 -06:00
Sam Tobin-Hochstadt
f1401ad9b6
Merge remote branch 'origin/master' into samth/new-logic2
2010-04-27 10:27:26 -04:00
Sam Tobin-Hochstadt
53a4e4a2e4
remove debugging printfs, comment out fail test
2010-04-27 10:23:30 -04:00
Sam Tobin-Hochstadt
83c1671972
strnum? works
2010-04-27 10:16:21 -04:00
Sam Tobin-Hochstadt
d935b63290
so close
2010-04-27 09:50:39 -04:00
Jay McCarthy
97f5e690b5
Rearranging docs and renaming assert
2010-04-26 16:04:02 -06:00
Jay McCarthy
8cbfe949be
Unit tests
2010-04-26 15:44:20 -06:00
Jay McCarthy
33583fd5ca
Unit tests
2010-04-26 15:34:26 -06:00
Jay McCarthy
a8027280b5
Merge branch 'master' of git.racket-lang.org:plt
2010-04-26 13:42:54 -06:00
Jay McCarthy
78eab1a245
Adding predicates and using alists
2010-04-26 13:15:29 -06:00
Jay McCarthy
ca987f9020
New test
2010-04-26 12:26:08 -06:00
Jay McCarthy
9fce3c6963
Automated tests
2010-04-26 11:54:09 -06:00
Jay McCarthy
3cf1dc3440
Moving examples to tests
2010-04-26 11:36:52 -06:00
Sam Tobin-Hochstadt
10c23b0002
Merge branch 'master' into samth/new-logic2
2010-04-26 11:50:15 -04:00
Sam Tobin-Hochstadt
8047e32662
Treat static struct info as pattern constructor.
2010-04-26 11:44:37 -04:00
Sam Tobin-Hochstadt
df2291b955
Merge remote branch 'origin/master' into samth/new-logic2
2010-04-26 10:12:50 -04:00
Sam Tobin-Hochstadt
2889f37ed4
Merge branch 'samth/new-logic2' of git.racket-lang.org:plt into samth/new-logic2
2010-04-26 10:05:19 -04:00
Matthew Flatt
a6694a08b7
fix make-base-namespace in scheme/base (PR 10870)
2010-04-26 06:47:02 -06:00
Sam Tobin-Hochstadt
a46461d4f7
racket/base instead of scheme/base, see PR 10870
2010-04-25 18:43:10 -04:00
Matthew Flatt
616080c7c4
change 'define-struct' to bind the type name as a constructor, add an #:extra-constructor-name option, etc.
2010-04-25 12:10:36 -06:00
Sam Tobin-Hochstadt
0f9d50fa23
Merge branch 'master' into samth/new-logic2
2010-04-24 09:53:10 -04:00
Matthew Flatt
76754c5443
set-subset? to subset?
2010-04-24 07:18:11 -06:00
Matthew Flatt
7cb13860ee
reference racket conversions and scribble qq repairs
2010-04-23 17:00:53 -06:00
Sam Tobin-Hochstadt
b173f70ad1
Merge remote branch 'origin/master' into samth/new-logic2
2010-04-23 18:36:46 -04:00
Sam Tobin-Hochstadt
f7bf6d8a22
more progress towards let
2010-04-23 18:36:15 -04:00
Sam Tobin-Hochstadt
788630d26a
progress towards let
2010-04-23 16:40:05 -04:00
Sam Tobin-Hochstadt
2d88d698c2
implication works
2010-04-23 12:31:22 -04:00
Matthew Flatt
ab7f9acee2
add for/set
2010-04-23 08:26:20 -06:00
Sam Tobin-Hochstadt
9c59782a37
progress, fix some dumb bugs
2010-04-21 19:00:12 -04:00
Sam Tobin-Hochstadt
c50cb0ff18
Merge branch 'master' into samth/new-logic2
2010-04-21 15:19:36 -04:00
Sam Tobin-Hochstadt
a979bbdbdf
typecheck-tests compiles
2010-04-21 15:07:53 -04:00
Sam Tobin-Hochstadt
462b7f1b92
eta abstraction seems to work
2010-04-21 11:34:04 -04:00
Matthew Flatt
d7e4db3efd
fix some tests and docs after racket move
2010-04-20 17:28:07 -06:00
Matthew Flatt
c95a398754
move most of the 'scheme' collection to the 'racket' collection
2010-04-20 15:24:48 -06:00
Sam Tobin-Hochstadt
8bea31d725
finished with the examples
2010-04-20 15:30:07 -04:00
Sam Tobin-Hochstadt
5f0597b834
add tests for occurrence typing work
2010-04-20 14:49:38 -04:00
Sam Tobin-Hochstadt
fca1044972
Merge branch 'master' into samth/new-logic2
2010-04-19 16:14:11 -04:00
Eli Barzilay
5640fe77c5
Ignores that are roughly the same as the ones in svn
2010-04-18 10:47:32 -04:00
Matthew Flatt
9ca5f6b340
fix regexp-replace*
2010-04-16 17:27:53 -04:00
Matthew Flatt
2fb34bcfdc
fix Scribble reader test regexp-split pattern
2010-04-15 19:15:53 -04:00
Jay McCarthy
918f2caf34
Adding generics
2010-04-15 16:33:31 -04:00
Matthew Flatt
4bc155905a
Perl-like handling of empty matches in regexp-match*, etc., though without Perl-like filtering of empty strings in the result of regexp-split (PR 10855)
2010-04-14 22:53:14 -04:00
Matthew Flatt
1c34ccec44
improve regexp support (PR 10855, halfway)
2010-04-14 18:40:08 -04:00
Sam Tobin-Hochstadt
41e469d7ae
Update structure types to have constructor ids.
...
Use constructor to generate better contracts for poly structs.
2010-04-14 15:06:14 -04:00
Sam Tobin-Hochstadt
0c730ae50a
test improvements
...
svn: r18814
2010-04-14 17:11:21 +00:00
Mike Sperber
9d20fd713d
Lazy contract checking for DMdA's `define-record-procedures-parametric'.
...
svn: r18806
2010-04-13 07:57:57 +00:00
Sam Tobin-Hochstadt
25a817e4aa
Fix thinko in subtyping.
...
svn: r18802
2010-04-12 22:23:39 +00:00
Matthew Flatt
bdb71498e3
module paths normalize to .rkt, load handler converts .rkt back to .ss if necessary
...
svn: r18788
2010-04-11 16:55:18 +00:00
Matthew Flatt
5e22bb81f5
constant-folding repairs to some unsafe operations
...
svn: r18745
2010-04-07 12:48:15 +00:00
Matthew Flatt
2c36427b20
fix compiler bug with unsafe-c[ad]r and constant folding (PR 10850)
...
svn: r18742
2010-04-07 02:25:27 +00:00
Matthew Flatt
aec586d2be
fix a GC problem related to future and wcm; also fix a race condition related to JITing a delay-loaded procedure (and maybe specific to future-demanded JITting)
...
svn: r18739
2010-04-06 16:44:53 +00:00
Matthew Flatt
3cc95b31ef
add prop:struct-info
...
svn: r18730
2010-04-03 13:08:39 +00:00
Matthew Flatt
2cb9f378aa
Racket experiments
...
svn: r18725
2010-04-02 21:29:59 +00:00
Jay McCarthy
2a87df9e5c
Supporting arguments in dispatch pattern arguments
...
svn: r18724
2010-04-02 20:55:36 +00:00
Jay McCarthy
7b61ba023d
New library formlets
...
svn: r18720
2010-04-02 18:53:29 +00:00
Kevin Tew
191b111109
Communciate Structs
...
svn: r18715
2010-04-01 17:03:51 +00:00
Matthew Flatt
b2d65a1b95
fix the interaction of chaperones, keywords, and the whole zoo of reflective procedure operations
...
svn: r18711
2010-04-01 13:14:50 +00:00
Eli Barzilay
581cbb461b
Change `generator' to have a form of (generator () body ...). The empty
...
place will have initial input names, so having this first will make
existing code break with an easy to fix syntax error, rather than having
confusing failures. (Also made it throw a very clear error message if
there is no () now.)
svn: r18705
2010-04-01 07:45:41 +00:00
Robby Findler
6cc7e81db8
updated to match new error message
...
svn: r18691
2010-03-31 14:36:58 +00:00
Matthew Flatt
417be5d8e2
move definedness check for imported variable to link time instead of access time; add errortrace meta-language; tweak errortrace to avoid an unnecessary and loop-obscuring annotation; improve slightly bytecode optimizer's handling of w-c-m; improve JIT handling of w-c-m
...
svn: r18678
2010-03-30 20:21:28 +00:00
Jay McCarthy
0289edf0cb
Repairing SchemeUnit tests re: DrDr
...
svn: r18673
2010-03-30 17:42:16 +00:00
Jay McCarthy
04d1fa6a26
Parsing patch from Dave Gurnell
...
svn: r18671
2010-03-30 17:05:51 +00:00
Noel Welsh
cfab7a8d97
Add type definition for unsafe-vector*-ref and unsafe-vector*-length, which have recently been introduced, and a test case for in-vector (which uses the above).
...
svn: r18667
2010-03-30 13:33:45 +00:00
Matthew Flatt
baab09fc1b
drop the uglier half of the Mac OS X thread-local variable hack; thread GC state through mark functions (to avoid overhead of thread-local accesses); fix some procedure-arity bugs and work toward fixing chaperones and some other procedure operations on keyword procedures
...
svn: r18661
2010-03-29 15:06:47 +00:00
Noel Welsh
f655a38ead
Fix the SchemeUnit test suite so it runs without error following changed introduced in r18618.
...
svn: r18659
2010-03-29 12:58:13 +00:00
Matthew Flatt
b8c3112b98
fix chaperones on parameters
...
svn: r18654
2010-03-28 15:56:04 +00:00
Matthew Flatt
73807aef24
chaperones (v4.2.5.3)
...
svn: r18650
2010-03-28 01:10:33 +00:00
Sam Tobin-Hochstadt
d4e0c16d55
a new branch of the whole tree
...
svn: r18648
2010-03-27 14:49:58 +00:00
Mike Sperber
19793ca54b
Disable a test that exposes a hard-to-fix problem in the image
...
primitives.
svn: r18645
2010-03-27 13:52:49 +00:00
Sam Tobin-Hochstadt
752e93fc88
add simple tests
...
svn: r18638
2010-03-27 00:31:29 +00:00
Matthew Flatt
72db535760
fix optimizer bug for inlining procedures under 'let' in rator position
...
svn: r18622
2010-03-25 20:09:41 +00:00
Jay McCarthy
55c3176934
Adding a work around for the compiler bug... plus I like it better. And adding a regression test for the compiler.
...
svn: r18619
2010-03-25 18:14:11 +00:00
Noel Welsh
af84b331a1
Add the fx to fl conversion functions to Typed Scheme
...
Add tests for flonum operations to Typed Scheme test suite
Fix the compiler bug tests above uncovered
svn: r18609
2010-03-24 13:18:37 +00:00
Noel Welsh
cf017110a9
Fix a problem generating contracts for FlVector exports. Add test for problem.
...
svn: r18603
2010-03-23 10:30:24 +00:00
Sam Tobin-Hochstadt
23d16b904f
fix embed-in-c
...
svn: r18584
2010-03-19 15:27:47 +00:00
Stevie Strickland
dde2011ec7
Add ->dm and case->m, which are the implicit method versions of ->d and
...
case->.
This should be included in the release.
svn: r18579
2010-03-18 21:28:41 +00:00
Kevin Tew
8299803e06
[Places] channel tests
...
svn: r18577
2010-03-18 16:42:14 +00:00
Sam Tobin-Hochstadt
e1eb4a4b93
Fix bug in match reported by jay.
...
svn: r18563
2010-03-17 18:21:09 +00:00
Noel Welsh
5f6aeb364f
Check that the FlVector type is exported. Currently this test fails.
...
svn: r18557
2010-03-17 15:26:30 +00:00
Noel Welsh
39a1489403
Add FlVector types to Typed Scheme and bindings for all flvector operations in scheme/flonum and scheme/unsafe/ops.
...
svn: r18555
2010-03-17 14:49:29 +00:00
Kevin Tew
e7b6b4a3da
place holder for place-channel tests
...
svn: r18548
2010-03-15 21:28:57 +00:00
Stevie Strickland
c7c8f7061e
Add documentation, and also add tests for appropriate init-field behavior.
...
svn: r18541
2010-03-15 08:47:09 +00:00
Stevie Strickland
924842d9e9
* Fix inits so that we either call the previous class/c wrapper's init
...
or let continue-make-super take control if we were the first wrapper
* Fix up handling of init/contract sorting so that things are performed
at the right phase (at least if we're going to treat names as symbols).
* Fix up new tests so that all contract layers are tested.
svn: r18540
2010-03-15 08:29:22 +00:00
Stevie Strickland
7ec061cdbf
* Factor out zipping of inits/contracts of the init closure
...
* Add tests for higher-order behavior
svn: r18538
2010-03-15 07:37:25 +00:00
Stevie Strickland
1bd29dd7e9
Okay, we're going to add back init contracts, which I'd somewhat done before.
...
In this version, we're not going to have any reasonable first-order checks as
to whether or not the class actually accepts the initialization arguments that
are being contracted. I'm also just going to handle by-name at first, since
that's all I originally discussed in the paper.
svn: r18534
2010-03-15 06:49:49 +00:00
Stevie Strickland
7b831e86a6
Correct with-type so it handles result types of the form (values t ...).
...
svn: r18531
2010-03-14 02:32:20 +00:00
Sam Tobin-Hochstadt
9035e2e584
Prevent unbound identifiers from being in the base env.
...
Fix some bugs caught by this.
svn: r18526
2010-03-12 16:25:40 +00:00
Noel Welsh
97924ffc65
Add tests for all the fixnum operations. This only checks that the operations have types; semantics and completely specified types aren't rigourously checked.
...
svn: r18523
2010-03-12 12:13:10 +00:00
Sam Tobin-Hochstadt
b3be4f32f7
Null does not overlap with structs.
...
svn: r18508
2010-03-10 23:43:47 +00:00
Stevie Strickland
40b35a2b73
Now that we have a way of marking procedures as methods at runtime,
...
fix up all projection applications and uncomment out the tests for
appropriate method arity errors.
svn: r18504
2010-03-10 04:07:00 +00:00
Stevie Strickland
86a26d7947
Sync up to trunk.
...
svn: r18500
2010-03-10 01:11:31 +00:00
Sam Tobin-Hochstadt
c24daa5dbb
Add `define-predicate'
...
svn: r18497
2010-03-10 00:10:03 +00:00
Stevie Strickland
0982626a67
Add test cases, which let us see where we're failing at the moment.
...
svn: r18496
2010-03-09 23:56:20 +00:00
Matthew Flatt
4673b36dcf
adjust inlining heuristics again
...
svn: r18479
2010-03-06 03:44:07 +00:00
Sam Tobin-Hochstadt
87f978e59e
Fix PR 10813
...
svn: r18477
2010-03-05 21:52:54 +00:00
Stevie Strickland
bf60da75e1
Refactor out new has-contract?/value-contract functionality so that it's
...
the responsibility of the (higher-order) contract to add the contract
(plus possibly more in the future) to the wrapped value.
svn: r18469
2010-03-04 21:10:44 +00:00
Sam Tobin-Hochstadt
80fcee2577
Fix PR 10806.
...
svn: r18464
2010-03-04 13:45:25 +00:00
Casey Klein
cd2fc95d4e
Fixes typos in r18451
...
svn: r18459
2010-03-04 00:14:40 +00:00
Stevie Strickland
5fe0a790c1
Change how contracts for multiple values are handled to be a little cleaner
...
syntactically.
svn: r18458
2010-03-04 00:04:07 +00:00
Stevie Strickland
f2788561d3
Add the ability to contract more than one value returned from a with-contract
...
block in expression position.
svn: r18456
2010-03-03 21:54:18 +00:00
Robby Findler
7c1b076ee1
svn: r18451
2010-03-03 19:13:43 +00:00
Jay McCarthy
62e077e90d
Applying Dave Gurnell's serialization patch
...
svn: r18447
2010-03-03 16:55:42 +00:00
Matthew Flatt
fced29e946
fix regexp bug in unicode-category patterns
...
svn: r18427
2010-03-02 15:09:47 +00:00
Sam Tobin-Hochstadt
65b12a2af3
Use `current-contract-region' appropriately.
...
Maintain source locations.
Fix PR 10776.
svn: r18421
2010-03-01 23:43:15 +00:00
Sam Tobin-Hochstadt
12257912e3
Fix bug 10763.
...
svn: r18418
2010-03-01 22:48:11 +00:00
Sam Tobin-Hochstadt
78c14e434b
Add `with-type' for defintions, add #:result keyword.
...
Fix contract for top-arr.
Remove static version of printing conditional.
Fix brokenness in print-converting.
svn: r18416
2010-03-01 22:31:24 +00:00
Sam Tobin-Hochstadt
1c1a2dde38
Fix pconvert of hashtables.
...
svn: r18414
2010-03-01 20:27:55 +00:00
Robby Findler
d7f8c62371
fixed immutable boxes and vectors
...
svn: r18407
2010-03-01 14:47:38 +00:00
Stevie Strickland
16dbb0edc1
Fix bug in field mutation on contracted objects.
...
svn: r18390
2010-02-27 20:59:40 +00:00
Sam Tobin-Hochstadt
31f0b5e305
Fix tests to use `test-suite' to delay execution.
...
Move hiding of errors down in stack.
svn: r18381
2010-02-27 15:07:45 +00:00
Stevie Strickland
8e3a67936e
Add `unregister-type'
...
Add type regions.
Untyped lexical vars not an internal error.
svn: r18374
2010-02-27 01:26:16 +00:00
Stevie Strickland
7dacfaea85
Add with-contract for expression positions.
...
svn: r18372
2010-02-27 01:05:03 +00:00
Jay McCarthy
1f4ab946e1
Removing reliance on SXML and adding little xpath evaluator for xexprs
...
svn: r18366
2010-02-26 21:16:56 +00:00
Sam Tobin-Hochstadt
21d0dfcf09
use new schemeunit
...
svn: r18361
2010-02-26 20:44:30 +00:00
Jay McCarthy
dd31aa9512
Switching many uses of old Schemeunit to new
...
svn: r18360
2010-02-26 20:39:56 +00:00
Matthew Flatt
02583a1a08
ad hoc car/cdr optimizations
...
svn: r18354
2010-02-26 19:14:56 +00:00
Sam Tobin-Hochstadt
2bda690d2d
remove error printf for drdr
...
svn: r18349
2010-02-26 14:37:51 +00:00
Robby Findler
ca8459a3a0
changed to schemeunit so the tests can be in a module and so we dont see random values in the printed output
...
svn: r18341
2010-02-25 21:32:48 +00:00
Carl Eastlund
8b93f081bc
Renamed make-set{,eq,eqv} to set{,eq,eqv} for uniformity with list, vector, etc.
...
svn: r18338
2010-02-25 19:46:36 +00:00
Jay McCarthy
24d76d0e82
Allowing any module path in mutators for the collector
...
svn: r18336
2010-02-25 16:24:36 +00:00
Robby Findler
3955ef69b4
try to debug new drdr failure
...
svn: r18329
2010-02-24 21:46:53 +00:00
Robby Findler
df049ea35e
normalized the output so drdr won't say that this is changing
...
svn: r18326
2010-02-24 19:46:24 +00:00
Stevie Strickland
9f9e83b671
Yes, I know that we get different results for how it prints out. This needs
...
to be fixed. But for now, I'm commenting this out with a note to myself to
get this fixed.
svn: r18322
2010-02-24 17:46:51 +00:00
Robby Findler
50a6a585b1
fixed some repl-printing related bugs that would make 'write' sensitive to pretty-print's parameters in drscheme's repl
...
svn: r18321
2010-02-24 17:35:09 +00:00
Stevie Strickland
232db39f54
Sync up to trunk to prepare for the grand merge.
...
svn: r18319
2010-02-24 16:38:32 +00:00
Jay McCarthy
652cdcf902
Changing bindings parser on requests to promises.
...
svn: r18310
2010-02-23 22:29:22 +00:00
Sam Tobin-Hochstadt
1616e27b4b
fix comment, add test
...
svn: r18307
2010-02-23 21:36:53 +00:00
Jay McCarthy
a4dfbfb1d6
Fixing mutator-cond
...
svn: r18305
2010-02-23 19:43:36 +00:00
Stevie Strickland
8cc22294ff
Sync up to trunk.
...
svn: r18291
2010-02-23 07:25:24 +00:00
Stevie Strickland
6326731a15
Fix the tests that break due to semantic changes in object-contract.
...
svn: r18290
2010-02-23 04:34:05 +00:00
Stevie Strickland
d820493feb
First cut of converting object-contract to share a common base that
...
object/c will also use.
svn: r18274
2010-02-22 21:55:32 +00:00
Ryan Culpepper
d4b0f917df
rewrote schemeunit test
...
svn: r18271
2010-02-22 21:12:11 +00:00
Sam Tobin-Hochstadt
e417da3598
Switch to the current version of schemeunit.
...
svn: r18263
2010-02-22 17:58:18 +00:00
Jay McCarthy
1eea5163cc
Supporting byte-regexps and boxes in tester. Improving speed/allocation of parser and noting places where we could do better. Updating struct contracts in code and docs.
...
svn: r18262
2010-02-22 15:47:57 +00:00
Carl Eastlund
1d6111c532
Renamed simple-contract and simple-flat-contract to make-contract and make-flat-contract.
...
svn: r18259
2010-02-22 02:51:16 +00:00
Stevie Strickland
6f3b676fa5
Syncing up.
...
svn: r18249
2010-02-21 03:37:21 +00:00
Stevie Strickland
a0769da5ea
Add the contract shorthands for -> and ->* to use for methods where we don't
...
care about properties of this.
svn: r18248
2010-02-21 02:54:06 +00:00
Ryan Culpepper
3b630af6f9
schemeunit:
...
moved internal modules to schemeunit/private
moved tests to tests/schemeunig
added schemeunit/gui
drscheme:
fixed bug in show-backtrace-window
svn: r18243
2010-02-21 01:03:42 +00:00
Stevie Strickland
ffa34e1f7d
Add augride, which is like augment but enables the contract writer to give
...
subclasses an idea of whether a method can be augmented (augment) or whether
a method augmentation can be overridden (augride).
svn: r18240
2010-02-21 00:17:42 +00:00
Stevie Strickland
f72ca7bb1b
Now inherit works (and tests!)
...
svn: r18237
2010-02-20 22:54:11 +00:00
Stevie Strickland
370792b881
Refactoring done, and I think that's actually cleaned up things a bit. Now
...
to handle inherit.
svn: r18236
2010-02-20 22:44:53 +00:00
Stevie Strickland
a4d6252d16
Start inherit contracts (which are useful for mixins). Tests, plus parsing.
...
svn: r18232
2010-02-20 21:28:20 +00:00
Stevie Strickland
a169105ed0
Sync up to trunk, because keeping up to date is the right thing to do (and
...
hopefully it'll get rid of the issues in tests/future/future.ss).
svn: r18228
2010-02-20 19:36:15 +00:00
Robby Findler
92717e0f0b
used stderr when tests fail
...
svn: r18226
2010-02-20 17:16:54 +00:00
Matthew Flatt
457a2da675
try again to fix tests
...
svn: r18223
2010-02-20 13:39:51 +00:00
Matthew Flatt
e38e8d88e0
basic set library
...
svn: r18222
2010-02-20 13:00:48 +00:00
Matthew Flatt
d2bdc2eca8
fix test problems
...
svn: r18221
2010-02-20 12:23:01 +00:00
Stevie Strickland
c59805ab9e
Syncing up to trunk before I go to bed, so setup-plt can run while I
...
sleep.
svn: r18220
2010-02-20 10:59:49 +00:00
Stevie Strickland
c5c22e117c
Tests to make sure the first-order parts of method contracts are attributed
...
to the correct source upon failure.
svn: r18219
2010-02-20 10:46:54 +00:00
Stevie Strickland
cd4aa4c6f6
Forgot about the no-contract forms, so needed to add tests for those, also.
...
svn: r18218
2010-02-20 10:40:50 +00:00
Stevie Strickland
7830d55b42
Okay, that does it for augment, which means I'm done with coding. Now just
...
documentation and benchmarking, then this can go on trunk.
svn: r18217
2010-02-20 10:09:37 +00:00
Stevie Strickland
37e1cd2e2c
A few more tests to make sure we have everything right for augment once
...
implemented.
svn: r18216
2010-02-20 09:48:38 +00:00
Stevie Strickland
67d47e0a1d
Fixes in override ctcs and test suite. I thought I ran it, so I find it
...
weird that I found these on a subsequent run when adding some quick augment
tests to start the next batch. (Oh, those are included also.)
svn: r18215
2010-02-20 09:40:41 +00:00
Stevie Strickland
b5e2d5f93e
Okay, now override contracts are done, so only augments remain.
...
svn: r18214
2010-02-20 09:30:40 +00:00
Stevie Strickland
3b125d58fc
Tests for internal dynamic dispatch (Java-only)
...
svn: r18209
2010-02-20 08:08:17 +00:00
Stevie Strickland
aaf9a5aeac
Apply the inherit-field projections appropriately.
...
svn: r18204
2010-02-20 04:18:49 +00:00
Stevie Strickland
fcee6788d7
Parsing and first order checks for internal field access contracts.
...
svn: r18203
2010-02-20 04:02:59 +00:00
Stevie Strickland
d87794a8d2
External field contracts FTW!
...
svn: r18202
2010-02-20 03:52:47 +00:00
Stevie Strickland
95438db40f
Add set-field!. Because it's useful, because we have get-field, so why
...
not it, and because it's an easy way to later test external field contracts.
svn: r18199
2010-02-19 23:55:39 +00:00
Sam Tobin-Hochstadt
33c18b3985
providing static struct information to untyped code works
...
svn: r18198
2010-02-19 23:27:06 +00:00
Jay McCarthy
7d1a739df5
Adding comments and specs to parser.
...
Clarifying comments in marshaller. Supporting small numbers, small symbols, small marshalleds, small (proper) lists, small svectors, all-from-module long form
Improving inequality detector in tester: regexps and uninterned symbols
Correcting doc contract
svn: r18194
2010-02-19 19:47:15 +00:00
Robby Findler
7aa6ea4c76
PR 10645
...
svn: r18193
2010-02-19 19:43:14 +00:00
James Swaine
9170687148
moved futures random tests into /collects/tests/future
...
svn: r18192
2010-02-19 19:26:55 +00:00
James Swaine
cb12a81daf
added test notes to futures test suite
...
svn: r18191
2010-02-19 19:21:03 +00:00
James Swaine
a7332c09a2
moved futures tests to collects/tests/future directory
...
svn: r18190
2010-02-19 19:17:59 +00:00
Stevie Strickland
e9264b1fac
Syncing up before class.
...
svn merge ^/trunk
svn: r18188
2010-02-19 16:43:03 +00:00
Robby Findler
47b5892c92
probable fix to problems with this file (make sure find-relative-path's first argument is a directory)
...
svn: r18187
2010-02-19 15:29:54 +00:00
Stevie Strickland
55d39b0035
It was a good thing I decided to add some super/inner mixed examples here,
...
because it pointed out a bug in my implementation where we weren't getting
the right version of the super method (which gets the projection).
svn: r18180
2010-02-19 04:40:10 +00:00
Stevie Strickland
5cc68fdd0f
In some ways, I'm still trying to decide exactly what some of these forms mean.
...
For example, if we're in the java part of a beta-java chain, can we still add
an inner contract? If so, it should affect each java-style overriding method
until we reach the next beta-style augmenting method.
It can just be confusing, because one might thing that inner in a
contract => needs an augmenting method in the subclass, super => needs
an overriding method in the subclass. The latter is true, since only
the next immediate method can reach the super class's implementation,
but inner jumps to the next augmenting method, so the former isn't
necessarily true.
svn: r18179
2010-02-19 04:27:44 +00:00
Stevie Strickland
b59955bc01
Ah, that'd be the issue. THE TESTS WERE WRONG. All's well, and I've even
...
added a couple more tests to make sure we apply the projections in the right
order.
svn: r18176
2010-02-19 00:34:27 +00:00
Stevie Strickland
7fe863e792
Inner tests! They almost all fail! BUT WE SHALL CHANGE THAT.
...
svn: r18175
2010-02-19 00:09:47 +00:00
Stevie Strickland
6fcb61cc11
Add some test cases for super.
...
svn: r18172
2010-02-18 23:34:35 +00:00
Stevie Strickland
f8d5234148
Simplify the test case. Also, spam both my and Sam's inboxes.
...
svn: r18171
2010-02-18 23:24:15 +00:00
Stevie Strickland
38522f0dca
A tricky case, this.
...
svn: r18170
2010-02-18 23:22:51 +00:00
Stevie Strickland
cc52bcd197
Start throwing in higher-order checks.
...
svn: r18168
2010-02-18 23:09:42 +00:00
Stevie Strickland
8d9eda1459
I think that finishes all the first order tests.
...
svn: r18167
2010-02-18 22:53:35 +00:00
Stevie Strickland
b15dd9e689
You'll gasp, you'll cheer, you'll scream! MORE TESTS.
...
svn: r18165
2010-02-18 22:44:58 +00:00
Stevie Strickland
ce04db35a0
Rename tests to be more specific, start inner tests, fix introduced bug.
...
svn: r18164
2010-02-18 22:27:34 +00:00
Stevie Strickland
690b82da14
Check lots of crazy special cases for super contracts.
...
svn: r18163
2010-02-18 22:16:29 +00:00
Stevie Strickland
7abafad8b1
Tests of super contracts. Failing test here, because we're not checking for
...
non-final public methods when adding super (or later, override) contracts.
We should check for that in both cases, as the contract suggests that the
method in question is overrideable.
svn: r18160
2010-02-18 21:54:27 +00:00
Stevie Strickland
0971d37b70
Add first order checks for public fields and methods for both class/c
...
and object/c.
svn: r18159
2010-02-18 21:50:55 +00:00
Stevie Strickland
6e462ecb38
Forgot to quote the test expressions, which showed up once I added a
...
testcase for a blame error.
svn: r18158
2010-02-18 21:42:20 +00:00
Stevie Strickland
eeb2b52731
Start the MASSIVE TESTSUITE.
...
svn: r18157
2010-02-18 21:37:55 +00:00
Jay McCarthy
fb73b168d1
Adding testing for zo parser/marshaller/decompiler
...
svn: r18155
2010-02-18 21:07:05 +00:00
Robby Findler
8424dea37b
avoid doing mac os x-specific tests unless under mac os x
...
svn: r18154
2010-02-18 20:36:03 +00:00
Kevin Tew
202c056c53
tests file.ss use random port
...
svn: r18151
2010-02-18 18:54:53 +00:00
Jay McCarthy
25dbc6a418
Test cleanup
...
svn: r18150
2010-02-18 16:14:41 +00:00
Robby Findler
b51f3e0940
more debugging information printed
...
svn: r18148
2010-02-18 13:54:39 +00:00
Robby Findler
66e329c21b
updated pconvert to use the new arguments to make-hash and friends
...
svn: r18128
2010-02-17 21:20:39 +00:00
Robby Findler
5763cc0104
added some debugging printouts to try to find out how to make this work in drdr
...
svn: r18123
2010-02-17 20:38:07 +00:00
Matthew Flatt
91d725fbb9
add optional initialization argument to make-hash (and variants)
...
svn: r18120
2010-02-17 17:44:29 +00:00
Jay McCarthy
9a468dd9d0
Fixing error message re Robby and rearranging tests a little
...
svn: r18117
2010-02-17 16:04:13 +00:00
Robby Findler
445ec5c145
refactored the mutator test case generator to make testing more tractable and added some tests (and fixed a bug)
...
svn: r18113
2010-02-17 15:37:27 +00:00
Robby Findler
6565005468
checking this in to be able to show it to Jay
...
svn: r18111
2010-02-17 15:14:49 +00:00
Stevie Strickland
35afebaea3
Change object-contract to use find-method/who (already exported for Typed
...
Scheme) to look for the appropriate method to wrap, which makes Robby's
object-contracts appropriately translucent during contract wrapping.
svn: r18102
2010-02-16 19:58:07 +00:00
Jay McCarthy
520b4feedc
Adding PLAI software to the core
...
svn: r18101
2010-02-16 18:56:44 +00:00
Robby Findler
b73613460b
added a test that saves and reopens a file in the teaching languages
...
svn: r18088
2010-02-15 18:39:15 +00:00
Sam Tobin-Hochstadt
90c8fcff11
Generate proper contracts for polymorphic struct types.
...
Document `Nothing'.
svn: r18074
2010-02-12 21:57:58 +00:00
Matthew Flatt
38a0f6d89a
fix the actual result value for unboxed flmin and flmax
...
svn: r18045
2010-02-11 04:00:18 +00:00
Sam Tobin-Hochstadt
8bf908d106
More restrictive handling of contracts for the `Any' type.
...
svn: r18043
2010-02-10 20:45:50 +00:00
Robby Findler
8f5d2e1864
apparently the 1 pixel circle under linux draws in exactly one pixel when not in smoothed mode, which broke a test case; so that's changed now
...
svn: r18037
2010-02-10 17:40:21 +00:00
Robby Findler
4e92d54b28
possible fix to module lang test suite
...
svn: r18020
2010-02-08 19:44:01 +00:00
Sam Tobin-Hochstadt
55a48ca594
Fix a number of bugs reported by eli
...
svn: r18017
2010-02-08 18:17:15 +00:00
Robby Findler
49702f8f59
moved temp files into the temp directory
...
svn: r18015
2010-02-08 17:40:46 +00:00
Carl Eastlund
fe40d3e888
Merged changes from trunk.
...
svn: r18007
2010-02-06 19:23:24 +00:00
Robby Findler
75a60162b0
another attempt to get the drscheme gui test suite in shape to be run by drdr
...
svn: r18004
2010-02-06 17:13:49 +00:00
Eli Barzilay
3a08648dab
Added a `running' state, which is visible only from inside the
...
generator. (Also considered making it an error when the generator is
called while it is running, but that doesn't allow (yield (yield X))
fun.)
svn: r17982
2010-02-05 03:22:09 +00:00
Eli Barzilay
f1dcf49d38
Added `generator-state', implemented using a local state (which also
...
simplifies the code that raises an error from the last change).
svn: r17980
2010-02-05 03:22:04 +00:00
Eli Barzilay
505034ea26
The generator function can now be used to send values to the generator.
...
For example,
(define g (generator (yield (yield (yield 1)))))
(list (g) (g 2) (g 3) (g 4) (g) (g))
evaluates to '(1 2 3 4 4 4). This is something that Python does (as a
generator.send method), which might be useful for using generators as
co-routines, and it is actually easy to implement since sending values
is exactly what we get when the generator call is actually calling the
saved continuation. So most of the change is dealing with the
technicalities of throwing an error when the generator is called with
some arguments, when that's done after it's terminated (at the stage
where it's repeating the last value for ever).
A few tests added for this.
svn: r17979
2010-02-05 03:22:01 +00:00
Eli Barzilay
c88a5a6856
A bunch of additional typos
...
svn: r17976
2010-02-05 03:21:52 +00:00
Carl Eastlund
2e3ea3d0de
Merged latest changes from the trunk.
...
svn: r17974
2010-02-05 02:41:24 +00:00
Matthew Flatt
3812f8ca72
improve inling to support ((let (....) (lambda ....)) arg ...) patterns; allow nested 'let's for local flonum binding (which fixes a problem where unsafe flonum operations could end up much slower than safe ones)
...
svn: r17972
2010-02-05 00:16:06 +00:00
Sam Tobin-Hochstadt
318833f422
Add supertypes for mutable types, so that predicates work correctly.
...
svn: r17971
2010-02-04 23:39:15 +00:00
Robby Findler
1b39d29640
clean up temporary files
...
svn: r17970
2010-02-04 20:31:51 +00:00
Carl Eastlund
d7a7409fe0
Merged changes from the trunk.
...
svn: r17954
2010-02-03 15:15:11 +00:00