Commit Graph

2761 Commits

Author SHA1 Message Date
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
Robby Findler
76f41c2a1c fixed a bug and added some race-condition insurance
svn: r17946
2010-02-02 21:32:20 +00:00
Robby Findler
e74e46d9ca drdr-ized the rest of the drscheme test suite
svn: r17945
2010-02-02 21:06:07 +00:00
Ryan Culpepper
8d2f32efed syntax/parse:
fixed bug: splicing-stxclass immediately within ellipses
  added tests, docs for local-conventions

svn: r17944
2010-02-02 19:48:08 +00:00
Robby Findler
319a4a7ef0 fixed a bug revealed by drdr (but stil cant make this bad case happen on my machine, frustratingly
svn: r17942
2010-02-02 18:01:55 +00:00
Robby Findler
102b03311e made the check syntax tests more drdr friendly
svn: r17928
2010-02-01 17:46:17 +00:00
Robby Findler
6f4c164793 improved the implementation of error in the teaching languages, added test casees
svn: r17923
2010-02-01 15:39:33 +00:00
Robby Findler
bf67e34e87 fixed up module language test suite for new language dialog, plus misc cleanups based on last release
svn: r17922
2010-02-01 15:18:28 +00:00
Carl Eastlund
2e0cb8226e Replaced every "langauge" (note swapped vowels) with "language".
svn: r17918
2010-02-01 01:41:51 +00:00
Matthew Flatt
5433c57504 wrap each top-level form in a module with a prompt
svn: r17917
2010-01-31 17:04:55 +00:00
Matthew Flatt
e8c97a5102 more readable mandelbrot-unsafe; minor benchmark harness fixes
svn: r17915
2010-01-31 14:58:26 +00:00
Carl Eastlund
1d4cdbeb45 Exports from scheme/contract/private/blame: removed constructor; fixed confusing selector names.
svn: r17909
2010-01-31 03:03:30 +00:00
Carl Eastlund
2772ffccba Restored legacy functions for custom contracts.
svn: r17900
2010-01-30 21:14:27 +00:00
Robby Findler
aa67a279ab added a little more information
svn: r17899
2010-01-30 21:02:26 +00:00
Robby Findler
32faba2964 added more debugging information to try to figure out if the 'window with no button' error is a bug or not
svn: r17898
2010-01-30 20:53:03 +00:00
Carl Eastlund
2513e7d6e0 Merged changes from the trunk.
svn: r17892
2010-01-30 04:59:20 +00:00
James Swaine
68c197d02f added basic test suite for the parallel futures module
svn: r17890
2010-01-29 21:44:46 +00:00
Matthew Flatt
d620177619 fix benchmark readme
svn: r17885
2010-01-29 17:49:25 +00:00
Matthew Flatt
42e68c8ff1 even more benchmark scaffolding
svn: r17884
2010-01-29 16:33:15 +00:00
Matthew Flatt
a09e671f34 allow radio-box% to have no selected buttons
svn: r17865
2010-01-28 17:51:30 +00:00
Matthew Flatt
2c192f5297 support inlining of procedures with rest args
svn: r17860
2010-01-28 01:31:37 +00:00
Matthew Flatt
980d48ce19 fix karen and psyntax benchmarks
svn: r17850
2010-01-27 12:56:51 +00:00
Matthew Flatt
f07c19b268 update benchmark harness
svn: r17840
2010-01-26 20:17:44 +00:00
John Clements
bef818b2be test changes, goes in release 4.2.4
svn: r17806
2010-01-24 19:31:29 +00:00
John Clements
100fe8520d took bad require out
svn: r17803
2010-01-24 18:21:56 +00:00
Matthew Flatt
4ce8dfa7da fix problems with having a struct implement both prop:evt and prop:procedure; merge to 4.2.4
svn: r17802
2010-01-24 15:30:16 +00:00
John Clements
25cd6766fa test files, for release if it matters..
svn: r17795
2010-01-24 07:23:59 +00:00
John Clements
a18447e970 srfi 19 tests, not for release
svn: r17794
2010-01-24 07:23:09 +00:00
Carl Eastlund
bd9b6e9e97 Made unit contract test regular expressions more robust.
svn: r17782
2010-01-23 18:31:32 +00:00
Carl Eastlund
88aba214c9 Merged changes from trunk. No conflicts.
svn: r17780
2010-01-23 17:44:27 +00:00
Robby Findler
5dfed472c7 svn: r17777 2010-01-23 16:03:50 +00:00
Ryan Culpepper
ef138249f4 syntax/parse: fixed bugs (thanks samth)
Please propagate this to the release branch.

svn: r17756
2010-01-19 21:03:51 +00:00
Carl Eastlund
e5c74e7a25 Fixed bug I introduced when changing make-proj-contract to simple-contract.
svn: r17744
2010-01-19 07:33:03 +00:00
Carl Eastlund
35a716d5d3 Fixed blame detection regexp.
svn: r17742
2010-01-19 07:14:17 +00:00
Carl Eastlund
9d7ca20eeb Replaced guilty-party with equivalent.
svn: r17739
2010-01-19 06:29:15 +00:00
Carl Eastlund
888045dcf9 Replaced make-proj-contract with simple-contract in tests.
svn: r17737
2010-01-19 05:31:18 +00:00
Sam Tobin-Hochstadt
3fc133a0b8 Correct typing for `or'.
svn: r17665
2010-01-15 19:39:46 +00:00
Sam Tobin-Hochstadt
5e1b355e32 Syntax for predicates with non-empty paths
svn: r17660
2010-01-14 23:17:56 +00:00
Sam Tobin-Hochstadt
d69c96cf06 update to the final version of this code
svn: r17658
2010-01-14 22:09:31 +00:00
Sam Tobin-Hochstadt
104adf9c62 Types for the other `check-expect'-style forms.
svn: r17657
2010-01-14 21:24:47 +00:00
Sam Tobin-Hochstadt
1ab2a41092 Paths for first' and rest'
svn: r17654
2010-01-14 20:00:37 +00:00
Sam Tobin-Hochstadt
33592b4f6c Typecheck `or' correctly.
svn: r17653
2010-01-14 19:53:28 +00:00
Ryan Culpepper
97135f112c macro-debugger: fixed bug re local-expansion and macro hiding
svn: r17642
2010-01-13 23:41:23 +00:00
Jay McCarthy
a1d7945958 PR10689
svn: r17621
2010-01-12 21:51:35 +00:00
Matthew Flatt
331c6d2f5f fix bignum expt (PR 10690); also fixed a doc typo
svn: r17614
2010-01-12 02:16:12 +00:00
Sam Tobin-Hochstadt
4fa4f6fd2d Propogate expected type through `reverse'.
New loop special case for `for/list'.

svn: r17609
2010-01-11 20:48:26 +00:00
Eli Barzilay
55d4ac93b3 another case of this
svn: r17602
2010-01-11 06:38:19 +00:00
Eli Barzilay
384cadd579 express expected result of []s using []s, so these tests make sense for readers that use []s in a different way too
svn: r17601
2010-01-11 06:31:01 +00:00
Eli Barzilay
6b7c199326 * Some reorganization of code
* Rename `make-repeated-sequence-generator' -> `sequence->repeated-generator'
* Several tests for `sequence->generator'

svn: r17586
2010-01-09 04:45:39 +00:00
Stevie Strickland
ab3dd78cb1 Removing scheme/load I used for editing this.
svn: r17580
2010-01-08 21:04:21 +00:00
Stevie Strickland
1c47ecc346 Just fixing the unit testcases so that they don't error.
svn: r17579
2010-01-08 21:03:17 +00:00
Sam Tobin-Hochstadt
f13453e889 `andmap' now works as a predicate in Typed Scheme
svn: r17575
2010-01-08 19:05:58 +00:00
Stevie Strickland
ea20ee160f Add a dummy lambda expansion to signature compilation to ensure that the
expressions only refer to locally-bound names or names that are part of the
signature itself.

svn: r17573
2010-01-08 18:47:51 +00:00
Stevie Strickland
9e0f2a3c5f Identifiers in signature contracts don't use whatever prefixing or such may be
in play in the body of a unit, so we need to rename the "external" version to
the "internal" version.  This fixes PR 10246.

svn: r17571
2010-01-08 17:20:19 +00:00
Sam Tobin-Hochstadt
05a0e722f9 use of member, memq, memv as predicates working properly
svn: r17568
2010-01-08 15:55:32 +00:00
Sam Tobin-Hochstadt
0d46fcb48a Create new `typed/test-engine' collection.
Remove dependence of `typed-scheme' on `test-engine'.

svn: r17567
2010-01-08 15:38:17 +00:00
Jon Rafkind
b497787b89 one more name change
svn: r17556
2010-01-07 22:31:29 +00:00
Jon Rafkind
f5ea84cbb4 add infinite-generator macro. change name infinite to make-repeat-generator
svn: r17555
2010-01-07 22:28:37 +00:00
Sam Tobin-Hochstadt
b7f9899439 `member' can now be used a predicate.
svn: r17554
2010-01-07 22:11:54 +00:00
Jon Rafkind
9fc7b4c445 add infinite generator test
svn: r17553
2010-01-07 21:54:07 +00:00
Sam Tobin-Hochstadt
eaad64d612 Better error message for functions that don't have the same arity as
the expected.
Add some tests for errors.

svn: r17551
2010-01-07 21:45:57 +00:00
Sam Tobin-Hochstadt
08457d35e3 Improve error messages in the simple case.
Change 'typecheck to Type Checker in error messages.

svn: r17542
2010-01-07 19:41:42 +00:00
Matthew Flatt
41261c6047 fill out fl and fx operations; repair fixnum-overflow bug in quotient
svn: r17524
2010-01-07 03:30:33 +00:00
Sam Tobin-Hochstadt
a8e1c829c2 Fix `type-apply'
Fix duplicate filters

svn: r17522
2010-01-07 00:55:51 +00:00
Sam Tobin-Hochstadt
c7cb124c95 Put dynamic behavior of `check-expect' into functions.
Give those functions types.

svn: r17519
2010-01-06 23:03:08 +00:00
Robby Findler
68efb4008a normalized the results of procedure-arity
svn: r17504
2010-01-06 19:34:29 +00:00