Commit Graph

2761 Commits

Author SHA1 Message Date
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