Matthew Flatt
bf83d1126d
add some unsafe operations as an alternative to FFI access
...
Accessing unsafe functionality through the FFI seemed like a good way
to avoid writing C code, but it made things more complicated instead
of easier, and it interacts badly with a more agressive shift away
from C (such as porting to Chez Scheme). So, add functions to the
primitive `#%unsafe` module, instead.
2017-05-26 16:26:06 -06:00
Matthew Flatt
7f1ab90806
raco exe on Mac OS: ensure that "PkgInfo" is writable
...
Relevant to #1680
2017-05-25 13:01:12 -06:00
Matthew Flatt
f27be30c15
fix error message
2017-05-25 13:01:08 -06:00
Leif Andersen
8f6ec91fb1
code-define-id -> core-define-id
...
Just another small typo.
2017-05-25 14:48:53 -04:00
Leif Andersen
3f61100dcc
ctype -> ctype?
...
Also void -> void?
These two forms are now documented using contracts, which matches
with the rest of the FFI docs.
2017-05-25 13:48:48 -04:00
Jay McCarthy
07f35d248c
Abort if munmap or protect_pages fails
...
On Linux, munmap can fail when you run out of mappable regions.
If protect_pages fails, then you can't install a write barrier
2017-05-25 13:38:33 -04:00
Milo Turner
cc25a27f87
fix id-set-symmetric-difference, same as 4716a6e
fixed for sets
2017-05-24 15:55:03 -04:00
Stephen Chang
7620bfcb7c
fix and actually run id-set tests
2017-05-24 13:25:15 -04:00
Stephen Chang
42152ed31c
add neg-party arg to id-set-contract-check
2017-05-24 10:01:43 -04:00
Robby Findler
6a145244d6
add missing adjust-location call
2017-05-23 09:05:30 -05:00
Robby Findler
ffe07718b8
adjust browser-run to include any stderr message into the error dialog box
2017-05-23 08:46:21 -05:00
Ben Greenman
b36c35ac7e
typo: 'an mutable' => 'a mutable'
2017-05-21 02:00:00 -04:00
Robby Findler
f175148ca3
attempt to fix the "cannot visit documentation because the anchors
...
are dropped in the urls" problem
inspired by Greg's approach, as discussed here:
http://www.greghendershott.com/2017/03/please-scroll.html
2017-05-19 15:18:26 -05:00
Alexis King
699dd39b1e
Fix square brackets in benchmark that is supposed to be R5RS Scheme
...
This issue was uncovered by a change to the r5rs package in
racket/r5rs@ecbe26bb8b .
2017-05-18 14:39:26 -07:00
Ryan Culpepper
81cb99038c
add note about spurious test failure
2017-05-18 12:54:26 -04:00
Ryan Culpepper
c082f130cb
support string, bytes (bindings from racket) as stxclass refs
...
add compile-time table as alternative to stxclass binding
2017-05-18 12:54:26 -04:00
Ryan Culpepper
ce9b309dbc
defstxclass uses #:kind "syntax class" for better labeling
2017-05-18 12:54:26 -04:00
Dan Feltey
544b7a2721
Merge pull request #1696 from dfeltey/chaperone-vector-start-typo
...
Fix typo for chaperone-vector* error messages
2017-05-17 15:15:36 -05:00
Daniel Feltey
ab2b36175b
Add vectorof first-order test cases
...
Previously none of the test cases would execute the `check-vectorof` function's
`first-order?` case in the implementation of `vectorof` contracts.
2017-05-17 13:31:45 -05:00
Daniel Feltey
1bdaf0b231
Fix typo for chaperone-vector* error messages
2017-05-17 12:50:05 -05:00
Daniel Feltey
8bc9cef7a9
Fix typo in vector contract implementation leading to wrong error message
2017-05-15 17:33:24 -05:00
Robby Findler
f2a29515d1
adjust invariant-assertion error message to avoid blame
...
closes #1681
2017-05-13 11:12:25 -05:00
Georges Dupéron
5904cea99a
Small changes to the documentation
...
* Fixed typo in the docs for serialization (serializable-struct/version → serializable-struct/versions)
* Fixed typo in scribble documentation (head pattern → a-pattern)
* Made the order of the argument descriptions match the order of the arguments in the documentation for import and export
2017-05-12 16:01:29 -05:00
Leif Andersen
cd1e56bfaf
Improve docs for FFI custodian API. ( #1684 )
...
Improve docs for FFI custodian API.
The docs were unclear on when an object goes from weakly to strongly
held.
Also add a missing space
2017-05-12 16:32:25 -04:00
Matthew Flatt
f43234e1cb
add prop:authentic
and (struct .... #:authentic ....)
...
An authentic structure type is one whose instances cannot be
impersonated or chaperoned. The intended use of `prop:authentic` is to
annotate a library-private data structure where impersonators are
never needed internally for the data structure, and the declaration
lets the compiler produce less code and fewer branches by omitting
impersonator support.
2017-05-12 12:40:57 -06:00
Robby Findler
65beb4de4c
fix cons/dc's predicate
2017-05-12 11:26:49 -05:00
Robby Findler
8f34b702ab
improve flat-contract test suite so that it checks
...
the predicate-ness of the contracts
2017-05-12 11:26:49 -05:00
Matthew Butterick
7908be8ce9
Fix spelling errors ( #1687 )
...
“cooresponds” → “corresponds” x2
2017-05-11 10:08:26 -04:00
Matthew Flatt
e6793c4598
fix variable-reference->module-path-index
on primitive refs
2017-05-09 20:28:25 -06:00
Matthew Flatt
26c4dd6909
add #%unsafe
exports to implement ffi/unsafe/atomic
...
Export functions through the usual `#%unsafe` primitive module,
instead of using the FFI to get at unsafe operations.
2017-05-09 09:32:34 -06:00
Matthew Flatt
e68e4bd6f6
minor configure --help
format repairs
2017-05-09 09:32:34 -06:00
Robby Findler
79cef0a96e
clean up a bunch of contract names
2017-05-06 22:10:41 -05:00
Robby Findler
2db8523eb5
add dependency on the icons pkg
2017-05-02 15:32:28 -05:00
Ben Greenman
11484b9d34
doc: explain blame object passed to late-neg
...
The blame object passed to a late-neg-proj function will be missing
one party. The missing party is sometimes the negative party and
sometimes the positive party.
2017-05-01 18:26:01 -04:00
Sam Caldwell
a666f1b0c1
typo
2017-05-01 16:34:26 -04:00
Vincent St-Amour
4ffd2fc1b8
Restore docs about impersonator-of? and immutable hash tables.
...
In the impersonate-hash docs, this time.
2017-04-30 13:44:49 -05:00
Vincent St-Amour
206ced8d47
Add examples for impersonator-of?.
2017-04-30 13:44:49 -05:00
Vincent St-Amour
d9b39eac1f
Add back desciption of impersonator-of?'s behavior on impersonator subparts.
2017-04-30 13:44:49 -05:00
Daniel Feltey
e29dba115b
New impersonator-of? docs
2017-04-30 13:44:49 -05:00
Matthew Flatt
de0d84f7b3
racket/serialize: repairs for structs that have auto fields
...
Closes #1650
2017-04-29 13:20:25 -07:00
Matthew Flatt
bb2f1998f1
document binding structure of for/fold
...
The binding structure is not natural, but changing the binding rules
would risk breaking existing code.
Closes #1659
2017-04-29 11:08:42 -07:00
Vincent St-Amour
13443dec92
Add chaperone-vector*, unsafe-chaperone-vector, and property-only vector chaperones.
...
By analogy with the procedure chaperone equivalents.
2017-04-28 14:27:53 -05:00
Vincent St-Amour
541015ba3b
Update raco pkg new
for v6.9.
...
(cherry picked from commit 351dcfe14d0f3aa7f7b5b1491d882c887a971c24)
2017-04-27 11:50:13 -05:00
Matthew Butterick
6e64da6880
Fix typos ( #1651 )
...
Fix typos
`sourve` → `source` x4
2017-04-27 09:16:22 -06:00
John Clements
473a3f5573
doc update for info.rkt files
...
specifically, mention that info.rkt files do
not provoke package conflicts
2017-04-27 09:15:03 -06:00
Matthew Flatt
608e6cc2a2
add tests for racket/port
...
Also, fix some doc typos.
2017-04-26 17:16:59 -06:00
Matthew Flatt
d469265a6e
Makefile: support both cross-platform and non-cross installers
...
In non-cross mode, `-C` needs to go after `-G` and `-X` when setting
up a "bundle" directory to turn into an installer, because that mode
needs to use foreign libraries (such as SQLite) at build time, and it
can use the instances that are being set up for the installer.
Meanwhile, improve the advice for setting `PLAIN_RACKET` to use `-C`
for a cross-platform build mode, even though things tend to work
anyway without it.
2017-04-26 15:59:04 -06:00
Matthew Flatt
6de3659664
repair for hash-keys-subset?
...
When comparing a part of a hamt that is a collision node versus a
subtree node, a "hash code" was extracted from the collision node ---
but that's really a code for an integer key is that used for the
collision element. The comparison should instead use a code extracted
from the reference to the collision node (which is the code that is
common to all colliding keys).
2017-04-26 15:27:39 -06:00
Matthew Flatt
f8aeed279b
Windows: fix 64-bit mzdyn.exp
...
Also, make the `raco exe` tests more accommodating to uncooperative
Windows configurations.
2017-04-25 16:31:51 -07:00
Philip McGrath
e9cd1e5595
Corrected Racket Reference for get/build-late-neg-projection
...
and `get/build-val-first-projection`.
Both had incorrectly shown that the returned function took
a `contract?` as an extra first argument.
2017-04-25 14:57:50 -05:00