Ryan Culpepper
5a10ef7550
updated docs for struct-type-contract/c
2011-07-11 16:12:27 -06:00
Vincent St-Amour
59a85b3eb2
Add list optimizations.
2011-07-11 15:55:07 -04:00
Vincent St-Amour
79ef8e889e
Fix test for new contract error message format.
2011-07-11 15:35:49 -04:00
Vincent St-Amour
427eaca513
Add tests for jitted real->*-flonum.
2011-07-11 14:21:41 -04:00
Stephen Bloch
904ef63ce2
Fixed some more error messages.
2011-07-11 07:25:46 -04:00
Stephen Bloch
d3df33b023
Improved error messages to specify actual argument as well as expected
...
type. Still produces one check-error failure because of bug in
make-color.
2011-07-11 07:25:46 -04:00
Matthew Flatt
cc6f3f69ab
add `port-set-next-location!'; make prompt read handler use it
...
Closes PR 12035
2011-07-10 08:36:47 -06:00
Eli Barzilay
ebe9453e73
Fix the path relative functions to return a string for a path input,
...
clarify the documentation, add a few tests.
Fixes pr 12032
Fixes pr 12034
2011-07-10 06:53:44 -04:00
Sam Tobin-Hochstadt
79ed93a925
Add `racket/kernel' as language with very low startup time.
2011-07-09 22:49:50 -04:00
Sam Tobin-Hochstadt
64d42fa0d3
Fix capitalization of HtDP.
...
Merge to 5.1.2.
2011-07-09 22:49:49 -04:00
Matthew Flatt
b5bb703b48
fix cross reference
...
Merge to 5.1.2
2011-07-09 20:28:46 -06:00
Matthew Flatt
e765231dad
fix hash-ref' bugs on immutable
eq?'-based tables
...
There were two:
* new: after finding a hash code, the key wasn't
always checked to be `eq?' to the desired key
* old: the hash code wan't downshifted by 2, so
changes in the low two bits (like when a pair
is determined to start a list) could break
lookup
Merge to 5.1.2
2011-07-09 20:12:59 -06:00
John Clements
35c9bd90ab
preserve user origin field... it may be useful
2011-07-09 17:18:13 -07:00
John Clements
3030fd3f4a
test-engine now sets current-directory before running tests
2011-07-09 17:17:49 -07:00
John Clements
a1cc083737
preserve origin field
2011-07-09 16:19:16 -07:00
John Clements
9cdeda1e04
added purpose statement to expand-teaching-program
2011-07-09 16:19:16 -07:00
John Clements
592f28382b
refactoring, no semantic changes
2011-07-09 16:19:15 -07:00
John Clements
2cebd8f4cb
retabbing, dumping a 'local', no longer using parenthesized module form
2011-07-09 16:19:15 -07:00
John Clements
53db721ee9
retabbing only
2011-07-09 16:19:15 -07:00
John Clements
ba82f46a07
retabbing and dead code removal only
2011-07-09 16:19:15 -07:00
Matthew Flatt
3d03e8f884
fix define-primitive' and
provide-primitive'
...
Allow the implement to follow the `define-primitive'
or `provide-primitive' declaration.
2011-07-09 16:57:56 -06:00
Matthew Flatt
0acf9834f7
make ISL local' and
letrec' expand more the old way
...
That is, force expansion to use a single `letrec',
instead of a mixture of `let' and `letrec' that an
internal-definition expansion would now use.
2011-07-09 16:57:09 -06:00
Carl Eastlund
d5b852c386
Updated unit contract tests to not rely on a specific format for names of
...
blamed modules in contract error messages.
2011-07-09 17:28:04 -04:00
Carl Eastlund
00a6442712
Changed source-location->string and ->prefix to use
...
path->relative-string/library to produce collection and planet-relative source
names.
2011-07-09 14:48:14 -04:00
Carl Eastlund
b3136095ea
Changed default blame formatter to report blame parties relative to collection
...
and planet directories where appropriate. Added a test for this behavior.
2011-07-09 14:48:14 -04:00
Carl Eastlund
2e6a608539
Corrected documentation of quote-module-name to indicate that it does not
...
produce collection and planet-relative paths on its own. Deprecated
quote-module-path, and replaced existing uses of it with quote-module-name.
2011-07-09 14:46:58 -04:00
Matthew Flatt
584a96a4e0
fix define-primitive' and
porvide-primitive' to check binding
...
Closes PR 12031
2011-07-09 08:54:36 -06:00
Matthew Flatt
8271f7b182
export `step-count?'
...
Merge to 5.1.2
2011-07-09 08:47:21 -06:00
Matthew Flatt
efd1fa51bd
change `find-method/send' back to one result
...
The 2-result implementation is not needed now that contracts
are implemented via impersonators
2011-07-09 07:08:32 -06:00
Matthew Flatt
8decf99f34
move error reporting out of `define-syntax-rule' expansion
2011-07-09 06:32:41 -06:00
Matthew Flatt
34a5c400ba
remove some macro abuses
2011-07-09 06:16:11 -06:00
Matthew Flatt
121145be73
prune unused imports
2011-07-09 06:16:11 -06:00
Matthew Flatt
089201b49b
doc typo fixes
2011-07-09 06:16:10 -06:00
Guillaume Marceau
3815862a81
Remove spurious printf left in 9053f8f9
2011-07-09 01:39:17 -04:00
Guillaume Marceau
9053f8f99b
Fixed documentations bugs in scribblings/htdp-langs
2011-07-08 23:34:29 -04:00
Guillaume Marceau
9d465ed298
Adding files missing in the previous commit.
2011-07-08 18:36:24 -04:00
Guillaume Marceau
2c075978fd
Merged htdp-lib.scblr and teachpacks/error-composition.scrbl into htdp/htdp.scrbl,
...
to form a single manual titled "Implementing HtDP Teachpacks, Libraries, and
Customized Teaching Languages"
2011-07-08 18:23:17 -04:00
Guillaume Marceau
91d5c92415
Little tweaks to the *SL documentation
2011-07-08 18:23:16 -04:00
Guillaume Marceau
ff1ab35a12
Catches another way images prints.
2011-07-08 18:23:15 -04:00
Ryan Culpepper
0aecbf97ff
syntax/parse: add expr/c to main module
...
Merge to release branch
2011-07-08 15:34:59 -06:00
Ryan Culpepper
73230537ba
removed merge conflict artifact
...
Merge to release branch
2011-07-08 15:34:59 -06:00
Robby Findler
fbccf38d50
completed the planet library documentation and, in the process,
...
cleaned up various dependencies and exports from some of the libraries
2011-07-08 15:51:05 -05:00
Matthew Flatt
b98e1b189a
change semantic of internal definitions
...
and `letrec-syntaxes+values' --- allowing `let' in place
of `letrec', which in turn lets the compiler optimize
away location allocation
2011-07-08 14:00:41 -06:00
Matthew Flatt
0e95d49ddb
allow more expression reordering, especially unsafe ops
2011-07-08 06:23:29 -06:00
Matthew Flatt
65b1a569a0
add `unsafe-list-{ref,set}'
...
Use the new functions in `syntax-case'; the benefit is small, and
it's mostly useful as hint to the optimizer that the operation
can be dropped if the result isn't used
2011-07-08 06:23:29 -06:00
Matthew Flatt
5e49e0adea
improve decompiler handling of syntax object
2011-07-08 06:22:40 -06:00
Kevin Tew
5d66e52fcc
Add identifier? check to place macro
2011-07-07 16:56:23 -06:00
Ryan Culpepper
8ebda770a6
restored Getting Started link
2011-07-07 14:00:22 -06:00
Ryan Culpepper
e66275c3f5
moved typed racket docs up within section
2011-07-07 14:00:22 -06:00
Ryan Culpepper
3b707c1e54
rackunit: fix require/expose to work on variable-like macros
...
(eg struct names, names w/ contracts, etc)
2011-07-07 14:00:22 -06:00
Matthew Flatt
9bee07b7c0
fix debugger for syntax taints
2011-07-07 13:38:14 -06:00
Kevin Tew
68d49e9f59
Add assertions to place-channel tests
2011-07-07 12:38:20 -06:00
Sam Tobin-Hochstadt
49444460d5
Add types for `check-in-{port,bytes,bytes-lines}'.
2011-07-07 14:24:28 -04:00
Sam Tobin-Hochstadt
e972c0c392
Have DrDr keep ignoring the random seeds.
2011-07-07 14:24:28 -04:00
Matthew Flatt
2840e2367b
fix ASL `(begin0)' error message
2011-07-07 10:57:04 -06:00
Matthew Flatt
917d190877
more consistent *SL primitive descriptions
2011-07-07 10:45:43 -06:00
Matthew Flatt
6c3360c716
fix formating of duplicated syntax descriptions
2011-07-07 10:45:43 -06:00
Matthew Flatt
e1b02e08f7
generalize `defform' & co. to better support abstraction
2011-07-07 10:45:43 -06:00
Vincent St-Amour
50974440f4
Fix test to avoid differences in printing.
2011-07-07 11:41:59 -04:00
Matthew Flatt
1dd7aa5889
avoid unnecessary syntax object
2011-07-07 07:25:48 -06:00
Matthew Flatt
e783d84268
move checking code out of macro expansion
2011-07-07 07:25:48 -06:00
Matthew Flatt
5bc8b67eba
fix decompile of define-values-for-syntax
2011-07-07 07:25:48 -06:00
Matthias Felleisen
3a3de9c23d
better title in preperation for merging with Guillaume
2011-07-07 09:19:44 -04:00
John Clements
77a31dc2af
fix a stepper bug related to recent change to handling of module-level defines
2011-07-06 23:22:29 -07:00
Matthias Felleisen
4698e94127
providing a name for tick handler, Closes PR 12027
2011-07-06 23:09:27 -04:00
Eli Barzilay
4475d12169
Rephrase some of the (meta) wording, reformat, fix some scribble-isms, etc.
2011-07-06 18:53:48 -04:00
Vincent St-Amour
0494e16d4f
Fix tests.
2011-07-06 18:34:14 -04:00
Vincent St-Amour
4947090191
Fix benchmark to reflect changes to flvector ops types.
2011-07-06 18:32:47 -04:00
Vincent St-Amour
2e6b518c95
Add an extra test for partial bounds checking elimination.
2011-07-06 18:09:35 -04:00
Vincent St-Amour
a7459c5ee7
Do partial bounds checking elimination for flvector operations.
2011-07-06 18:09:31 -04:00
Vincent St-Amour
7debd46621
Recognize multiple argument types for flvector accessors.
...
With only Integer possible as type for the index argument, Integer was
used as expected type, and any information we had about the argument
(sign, range, etc.) was lost.
2011-07-06 18:09:31 -04:00
Vincent St-Amour
d75d6c7ee4
Move flvector types with other indexing functions.
2011-07-06 18:09:30 -04:00
Vincent St-Amour
60f3074ccd
Do the impersonator? check up front.
2011-07-06 18:09:30 -04:00
Vincent St-Amour
979545a90f
First stab at optimizing bounds checking.
2011-07-06 18:09:29 -04:00
Ryan Culpepper
714166a062
unstable/gui/ppict: added tile placer, updated todo
2011-07-06 15:31:08 -06:00
Ryan Culpepper
a34821ea4f
unstable/gui/ppict:
...
added #:set, #:alt to ppict-do
added ppict-do-state
added at-find-pict
added tag-pict
updated to slideshow changes
changed placer rep, added merge-refpoints
2011-07-06 15:31:08 -06:00
Ryan Culpepper
1f7165df16
unstable/gui/ppict: added abs-x, abs-y placer args, changed grid to 1-based
2011-07-06 15:31:08 -06:00
Ryan Culpepper
d246a0bcc1
unstable/gui/ppict: added cascade placer
2011-07-06 15:31:08 -06:00
Ryan Culpepper
1a16173bf1
fixed doc typos
2011-07-06 15:31:08 -06:00
Jay McCarthy
c7126ae628
Typo in formlet docs
2011-07-06 15:24:15 -06:00
Jay McCarthy
57aa7149c1
Typo in formlet docs
2011-07-06 15:23:40 -06:00
Jay McCarthy
4c276ea010
Attempting to fix a very brittle test case
2011-07-06 15:21:39 -06:00
Matthew Flatt
6b4b95c569
fix `unsafe-struct-{ref,set}' for chaperones
2011-07-06 15:08:41 -06:00
Matthew Flatt
edb02aec97
slightly faster method sends
...
by using just `object-ref' instead of `object?' plus `object-ref'
2011-07-06 14:00:51 -06:00
Kevin Tew
36e3679854
Scheme_Place_Object is now under gc control, multiple places can wait on a place channel.
2011-07-06 13:27:50 -06:00
Matthew Flatt
ff49859c80
git: fix "&" and "_" handling in labels
2011-07-06 09:54:57 -06:00
Matthew Flatt
de54efc84e
cocoa: fix "&" handling in menu-item labels
...
Closes PR 12025
2011-07-06 09:54:41 -06:00
Matthew Flatt
d8352d5890
allow lists of pre-content to `decode-content', etc.
...
and improve docs for `scribble/decode'
2011-07-06 09:07:19 -06:00
Guillaume Marceau
dc6378f7a2
Adds a research paper section to the error message composition guidelines.
2011-07-06 08:48:26 -04:00
Guillaume Marceau
c287519cc0
Updated the expected errors messages in the tests to match the new vocab.
2011-07-06 08:47:15 -04:00
Eli Barzilay
0ee3aef9cb
Redo some of the ".ss" -> ".rkt" conversion that were undone in the last push.
2011-07-06 06:21:49 -04:00
Guillaume Marceau
9706920055
Updated the error messages of the world and universe teachpacks.
2011-07-06 05:35:27 -04:00
Guillaume Marceau
aa9dbd21f5
Updated the error message of check-expect. Fine tuning of the error messages.
2011-07-06 05:35:25 -04:00
Guillaume Marceau
eedab060ba
Updated teachpack documentation for the new vocabulary.
2011-07-06 05:35:17 -04:00
Guillaume Marceau
ca2de63f9e
Added the error message composition guidelines to the teachpack documentation.
2011-07-06 00:28:55 -04:00
Guillaume Marceau
6fc14b269d
The rewriting machanism no longer inserts with-handler everywhere.
2011-07-06 00:28:45 -04:00
Guillaume Marceau
01b9bde7fa
The documentation for htdp-lang now uses the new vocabulary.
2011-07-06 00:27:28 -04:00
Guillaume Marceau
6eea5b1793
The new error messages now pass the tests/language-test.rkt suite
...
(except for contract runtime error messages in levels higher than
beginner.)
2011-07-06 00:19:26 -04:00
Guillaume Marceau
f858b8bb5c
Htdp no longer throws exceptions that have no source information
2011-07-06 00:19:24 -04:00
Guillaume Marceau
79589b9b9f
The htdp test suite now checks that the correct error messages are thrown.
2011-07-06 00:19:22 -04:00
Guillaume Marceau
2f3da4c4cd
Changed the wording of BSL error messages
2011-07-05 17:57:19 -04:00
Guillaume Marceau
103474a5f5
Implemented struct colored-error-message struct and colored-format
2011-07-05 17:57:18 -04:00
Vincent St-Amour
6da4835a14
Fix props.
2011-07-05 16:28:51 -04:00
Vincent St-Amour
867f1e9097
Fix syntax test harness to work with compiled tests.
2011-07-05 16:28:25 -04:00
Vincent St-Amour
669523477a
Add a test suite for the syntax collect.
2011-07-05 15:06:24 -04:00
Eric Dobson
b25ee81d79
Changed TR test to use struct with struct info instead of HTDP struct.
2011-07-05 11:25:11 -04:00
Eric Dobson
805e1fb309
Correctly require/typed structs with parents. Closes PR11509.
2011-07-05 11:25:10 -04:00
Eric Dobson
07910253b4
Fixes build-struct-expand-info to create correct struct info.
...
Adds a check to struct-info? to make sure selectors
and mutators are the same length. Closes PR12017.
2011-07-05 11:25:10 -04:00
Eric Dobson
a9655c04dd
Provides better error message for PR 11889.
2011-07-05 11:25:10 -04:00
Eric Dobson
0b76178138
Fix typechecking of call-with-values. Closes PR11709.
2011-07-05 11:25:10 -04:00
Eric Dobson
5493e17538
Fix match to not use apply and work with TR.
2011-07-05 11:25:10 -04:00
Eric Dobson
046d476970
Add types for kernel struct constructors.
2011-07-05 11:25:10 -04:00
Eric Dobson
fc8ed9772a
Added srclocs to errors raised by match.
2011-07-05 11:25:10 -04:00
Matthew Flatt
5d06476cb3
scribble: clarify intent of `#:use-sources'
2011-07-05 07:03:26 -06:00
Matthew Flatt
1daa2649f0
another fix for `vector-{ref,set!}' on chaperone/impersonator
...
--- fixes a81917a2692; drop this commit if that one is dropped
2011-07-05 06:29:32 -06:00
Matthew Flatt
a7deb516f7
minor doc style corrections
2011-07-04 16:48:25 -06:00
Matthew Flatt
67e5b3d364
fix import collision
...
--- probably due to the addition of `identity' to `scheme[/gui]',
but the test file should require `scheme/gui/base'
2011-07-04 16:39:36 -06:00
Matthew Flatt
e3b8997fb8
fix test
...
which is sensitive to details of the documentation of `->'
2011-07-04 16:35:38 -06:00
Matthew Flatt
4905d344dd
slideshow/pict: add `rotate'
...
which requires two new fields in the `child' struct to support
`lt-find', etc., when child picts are rotated
2011-07-04 16:26:09 -06:00
Matthew Flatt
850b85cbdb
add some cross-references
2011-07-04 16:26:09 -06:00
Ryan Culpepper
e38843618d
unstable: better ppict-do, absorbed code from pslide
2011-07-03 04:05:03 -06:00
Ryan Culpepper
77a89b8d83
unstable: added ppict, pslide
2011-07-03 02:25:10 -06:00
Ryan Culpepper
5ec2fee90d
macro-stepper: more work on syntax tainting
2011-07-02 23:32:02 -06:00
Ryan Culpepper
71a92f2957
macro-stepper: first step to making macro stepper aware of syntax tainting
2011-07-02 23:32:02 -06:00
Stevie Strickland
d3ebf21d97
Fix the unit contract tests due to changes in contract violation reports.
2011-07-03 00:47:58 -04:00
Jay McCarthy
de9aec3051
Allowing paths in big-bang's record? argument and adjusting a test to make use of that feature. It would also be good to allow bitmap to take paths, but that is non-trivial, because of its assumption that non-literal strings are module paths
2011-07-02 20:13:39 -07:00
Matthew Flatt
3dcb19007d
protect the expansion of `enter!'
2011-07-02 19:41:27 -06:00
Matthew Flatt
b57cf0134f
fix typos
2011-07-02 19:18:11 -06:00
Jay McCarthy
8da2f537fb
Another test that is sensitive to the contract error message text
2011-07-02 14:50:24 -07:00
Jay McCarthy
7a602b8864
What are tests for anyway?
2011-07-02 14:47:54 -07:00
Jay McCarthy
439bbc6d8f
Another broken test courtesy of refactoring, not testing, and ignoring DrDr. In this case, it seems like the user should not have relied on the function always returning a string (based on the old documentation---not the name, which implies a string comes out), so I've changed the use rather than the function.
2011-07-02 14:34:41 -07:00
Jay McCarthy
8d6827e741
Thank you for breaking tests by a semantics-ignoring Search&Replace and then ignoring that DrDr caught the break.
2011-07-02 14:15:20 -07:00
Jay McCarthy
f55ec3def7
It is very odd that racket/load doesn't let this work
2011-07-02 14:04:52 -07:00
Jay McCarthy
65ebdc4f90
Fixing this test
2011-07-02 14:01:32 -07:00
Jay McCarthy
bd46637210
This test is sensitive to the JIT, it seems
2011-07-02 13:51:31 -07:00
Jay McCarthy
88bf52c88b
These tests are sensitive to the contract error messages
2011-07-02 12:19:41 -07:00
Jay McCarthy
14bc3afe90
Increasing timeout based on linear projection
2011-07-02 12:17:01 -07:00
Jay McCarthy
4a9ec78844
Different server path
2011-07-02 11:52:04 -07:00
Jay McCarthy
0896792e23
Showing files by status
2011-07-02 11:52:04 -07:00
Jay McCarthy
984215fd87
A little reformating
2011-07-02 11:52:04 -07:00
Matthias Felleisen
a1c219a068
eliminated superfluous require for-syntax, refactored and cleaned up; fixed bug in test?
2011-07-02 13:34:02 -04:00
Matthew Flatt
8aa4ff1b06
syntax taint repairs
2011-07-02 10:08:15 -06:00
Robby Findler
df6590b80f
adjust contract violation message by putting the name at the start of the message. For example, this:
...
contract violation, expected <(or/c (quote clean) (quote armed) (quote tained))>, given: #f
contract on wrapped from 'zo-structs, blaming 'no-dep
contract:
(->
any/c
(listof wrap?)
(or/c 'clean 'armed 'tained)
wrapped?)
at: C:\tmp3.rkt:6.21
becomes this:
wrapped: contract violation, expected <(or/c (quote clean) (quote armed) (quote tained))>, given: #f
contract from 'zo-structs, blaming 'no-dep
contract:
(->
any/c
(listof wrap?)
(or/c 'clean 'armed 'tained)
wrapped?)
at: C:\tmp3.rkt:6.21
(apologies if the indenting isn't quite right above; vi messed with it when I tried to paste it in ...)
2011-07-03 00:04:12 +08:00
Eli Barzilay
3157955d40
".ss" -> ".rkt" scan done.
2011-07-02 10:37:53 -04:00
Eli Barzilay
4da4a2759b
New setup/path-to-relative' that supersedes
unstable/dirs' and most of
...
`setup/private/path-utils'.
The API is a little different: instead of getting the alist and the
path, there's a curried function that gets the alist and produces a
function to do the substitutions.
2011-07-02 01:10:38 -04:00
Eli Barzilay
1276568558
Combine two let's into a
let*', use some #'s.
2011-07-02 01:10:38 -04:00
Eli Barzilay
f86687de9c
Use 'user-collects in `library-relative-directories', since "<user>" by
...
itself is ambiguous.
(Since this is used in contract messages, this might be a visible
difference; it still seems to me that "<user>" would be confusing.)
2011-07-02 01:10:38 -04:00
Eli Barzilay
6b44974b42
Improvements around uses of the current `unstable/dirs', and
...
`setup/path-relativize'.
`setup/path-relativize' is freed from a bunch of things that were due to
historical baggage, but some remain. (Also, update its docs.)
2011-07-02 01:10:38 -04:00
Eli Barzilay
3e755eba11
Misc improvements
2011-07-02 01:10:38 -04:00
Eli Barzilay
226f86d201
Try to improve the tests wrt timeouts and memory limits
2011-07-02 01:10:38 -04:00