Commit Graph

25323 Commits

Author SHA1 Message Date
Matthew Flatt
bba223a9fe ffi/unsafe: allow a constant result for asynch use of a callback
A constant result for foreign-thread use of a callback allows a
callback to return without synchronizing with the Racket thread.
A constant result is thus useful when a callback's work can simply
be skipped if the callback is applied in the "wrong" OS thread.
2013-04-23 13:48:15 -06:00
Matthew Flatt
07fd3676d0 racket/gui cocoa: fix `enable' on window whose ancestor is disabled 2013-04-23 13:48:15 -06:00
Burke Fetscher
2ebc200d3d redex: unfold nts once during unification
Also:
* add a backtracking limit
* check for ground terms in both term and pat environments
  when filling in generated patterns
* update tests to be consistent with the above
2013-04-23 13:26:15 -05:00
Matthew Flatt
fc54bbba3c pkg: "module name resolver" and "index" -> "catalog"
This termonology change affects lots of function names from `pkg/lib'
and `pkg/db' (former `pkg/pnr-db'), and it also affects some `raco
pkg' commands.

Existing package installations that are marked as 'pnr in a
local configuration are converted automatically to 'catalog, but any
existing "indexes" configuration must be changed to "catalogs".
2013-04-23 08:38:07 -06:00
Matthew Flatt
f09d1d1ae8 fix iteration on large hash trees
Bug introduced by 7a8c2ff063: a tree can be deep enough that the
representation of the path to the current item can be too big to
fit into 32 bits. It will always fit in 64 bits, though.

Merge to 5.3.4
2013-04-23 07:15:01 -06:00
Eric Dobson
2e2ef0b57a Add polydots to all things that support it.
Closes PR 13612.
Closes PR 13584.
2013-04-22 21:03:00 -07:00
Eric Dobson
fc36c12ce4 Correctly protect Procedures in TR.
Closes PR 13664.
2013-04-22 21:00:52 -07:00
Stephen Bloch
c24258b45f Corrected error messages in test file to match new wordings. 2013-04-22 20:08:47 -04:00
Matthew Flatt
1749c7ce07 fix a test 2013-04-22 16:32:05 -06:00
Matthew Flatt
74fb6feb45 fix `nack-guard-evt'
The generated NACK shouldn't become ready when the thread where
the NACK is created terminates.
2013-04-22 16:24:25 -06:00
Matthew Flatt
27b7e7dc7e pkg/lib: add pkg-index-update-local' and pkg-index-suggestions-for-module'
Assembles other functions to create and consult a local database of
packages and the modules that the packages implement.
2013-04-22 10:27:02 -06:00
Matthew Flatt
ef0491be07 pkg/pnr-db: fir and document `get-module-pkgs' 2013-04-22 10:27:02 -06:00
Matthew Flatt
1fa80c84e0 pkg/lib: fix `get-pkg-content'
When discovering modules, handle the case that a directory
name doesn't work as a collection name.
2013-04-22 10:27:02 -06:00
Matthew Flatt
4cc320e49d pkg/pnr-db: add `get-pkgs-without-modules'
Also, by default, clear out information for old checksums when
setting a package's information.
2013-04-22 10:27:02 -06:00
Matthew Flatt
ccc7438d41 pkg/lib: add `#:quiet?' options and adjust printing 2013-04-22 10:27:02 -06:00
Matthew Flatt
426a8c0d39 add `exn:fail:{filesystem,syntax}:missing-module'
These exception types are intended as a hook for a programming
environment to recommend packages that can provide a module that isn't
found (through an uncaught-exception handler). The new exceptions are
generated by the default module name resolver and defaultload
handler. In addition to the exceptions, there's a new
`prop:exn:missing-module' property and `exn:missing-module?', which is
what an environment should use to detect relevant exceptions.

There's also a new `current-module-path-for-load' parameter, which
just provides a commuincation path from the module name resolver to
the the load handler. The parameter is a relatively ugly piece of the
puzzle, but it's the best I could find to squash the new functionality
into the existing stack of handlers.
2013-04-22 10:27:02 -06:00
Matthew Flatt
91efc754ba inside: document scheme_fd_to_semaphore() 2013-04-22 10:27:02 -06:00
Vincent St-Amour
1f3e38d305 Print seed used for TR random testing.
To make it possible to reproduce test runs.
2013-04-22 11:55:00 -04:00
Robby Findler
5db7715b27 add an example with html tags and attributes 2013-04-21 20:46:44 -05:00
Sam Tobin-Hochstadt
ecf02a32b4 Add #:omit-define-syntaxes to define-type. 2013-04-21 15:39:38 -04:00
Matthew Flatt
5c4a7db828 scribble/manual: add #:link-target?' to defproc', `defform', etc.
Specifying `#:link-target? #f' gets blue-box typesetting without
declaring documentaton for a binding.
2013-04-21 09:49:14 -06:00
Robby Findler
e12a685107 adjust drracket's online expansion machinery to track exns that are
passed to the error-display-handler during expansion

(not just the exn records that actually get raised)

the motivation is to do a better job with TR's way of signalling
mutiple error messages.
2013-04-21 10:16:07 -05:00
Robby Findler
eb4e89f3ff typo in proc-docs docs. 2013-04-20 22:22:06 -05:00
Robby Findler
085170c441 adjust run.sh so it runs all of the tests 2013-04-20 22:22:06 -05:00
Asumu Takikawa
a9286ce726 Fix doc contracts 2013-04-20 23:17:59 -04:00
Matthew Flatt
2d6fd46720 raco pkg: report when downloading 2013-04-20 09:38:56 -06:00
Matthew Flatt
a9cc79c89b racket/gui cocoa: fix swapping of buttons with the 'border style
Register a button as a default button every time that it is shown,
so that multiple buttons in a frame can have the 'border style
(as long as only one is shown at a time).
2013-04-20 09:38:56 -06:00
Matthew Flatt
82457258e2 mrlib/terminal: create embedded terminal in a container sequence 2013-04-20 09:38:56 -06:00
Matthew Flatt
fd8bde94da racket/gui cocoa: avoid focus-setting loop 2013-04-20 09:38:55 -06:00
Matthew Flatt
075db0bf17 disable a GC test when running CGC 2013-04-20 09:38:55 -06:00
Eli Barzilay
4dfe89a118 Change checksums for -h changes.
Also add completions for some new flags.
2013-04-20 02:04:42 -04:00
Eli Barzilay
02d7f58cc1 raco test: make -r' and -x' mutually exclusive. 2013-04-20 02:04:42 -04:00
Matthew Flatt
96c5521196 scribble/reader: allow escape character to be non-ASCII 2013-04-19 20:46:25 -06:00
Matthew Flatt
b7f17b389a mrlib/terminal: generalize to allow an embedded terminal
That is, instead of always creating a new frame, allow the terminal
GUI to work as a panel.
2013-04-19 15:30:36 -06:00
Matthew Flatt
71aa65c33c pkg/lib: fix `installed-pkg-names' 2013-04-19 15:30:35 -06:00
Matthew Flatt
d9649ebdc5 pkg/lib: doc correction 2013-04-19 15:30:35 -06:00
Vincent St-Amour
3415280657 Extra tests. 2013-04-19 14:21:04 -04:00
Matthew Flatt
ff580c212c fix problem with switchable-button tool tip
Closes PR 12562

Merge to v5.3.4
2013-04-19 08:19:47 -06:00
Matthew Flatt
5ec31c8f65 ffi/unsafe: add _double' and _float' tests 2013-04-19 07:54:30 -06:00
Tony Garnock-Jones
38fffd3582 Complain visibly when cannot load GL shared libs, instead of swallowing error. 2013-04-19 07:54:30 -06:00
Matthew Flatt
57516164de ffi/unsafe/obj: add +A' and -A' method modes
On Cocoa, a view's `drawRect:' method can be called from a
heartbeat thread that animates controls. Such a call happens
rarely for a `canvas%' or other class where `drawRect:'
is overridden, but since it can happen, ensure that the
callback runs on the Racket thread.
2013-04-19 07:54:30 -06:00
Sam Tobin-Hochstadt
3fd9df03f7 Fix types of system etc for new keyword arguments.
This requires extending the ->optkey type constructor to support rest
arguments, and fixing the keyword function type generation code.

Testing is still limited because there's no parsing for such types.
That will be handled in a later commit.
2013-04-18 21:01:56 -04:00
Stephen Bloch
6740ab5748 Corrected a variety of wrong-arg-type error messages for map-image,
build-image, et al.

Please merge to release branch.
2013-04-18 12:40:38 -04:00
Matthew Flatt
e29878e7ae racket/system: make `system', etc., set PWD by default
That is, make `system' behave like a shell.
2013-04-18 07:02:05 -06:00
Matthew Flatt
4cc29194d1 Unix: initialize `current-directory' from the PWD environment variables
... when PWD is defined and when it refers to the same directory
as the result of getcwd().

A shell sets PWD before starting Racket to communicate a preferred
way of referring to the current directory, which may involve soft
links that are not reflected in getpwd().
2013-04-18 06:37:53 -06:00
Eli Barzilay
e311de0522 Improve some printouts.
Specifically the one from ,rr.  Also make ,switch syntax error more
friendly.  Also, test for the recent xrepl fix, including its printout.
2013-04-17 16:39:10 -04:00
Eli Barzilay
ff461c0bee Sync sanity path checks to the modified configure paths. 2013-04-17 14:52:28 -04:00
Matthew Flatt
3e1ecc41b4 demote some `raco' commands
The commands `link', `pack', and `unpack' are now
discouraged in favor of `pkg'.
2013-04-17 12:28:50 -06:00
Matthew Flatt
51d48f3ab4 raco setup: --tidy mode (as needed by `raco pkg remove') and more
When a collection disappears, then documentation and metadata
cross-references need fixing up based on everything that remains
available, even though other setup actions are confined to
collections that are specifically relevant to the packages. The
new `--tidy' mode takes care of that.

Package installation now also provides `--avoid-main' when working
with packages in a scope other than installation scope, and `raco
setup' now better respects `--avoid-main' to avoid creating
executables or re-running documentation.

Also, revise the `raco' documentation to better orient it toward the
package manager.
2013-04-17 12:28:50 -06:00
Matthew Flatt
bcb05bc8cf raco setup: protect against bad info-domain cache 2013-04-17 12:28:49 -06:00
Matthew Flatt
17f2822a63 remove debugging `log-error' 2013-04-17 12:28:49 -06:00
Robby Findler
c50005870f adjust case-> so that the blame context information includes
which case of the case-> happened
2013-04-16 18:40:48 -05:00
Robby Findler
a46e4c71b6 fix case-> to not abuse procedure-chaperone
closes PR 13697
2013-04-16 18:40:48 -05:00
Robby Findler
d1e7841f84 add File|New, File|Open... and File|Open Recent menu items to the
bug report form window

related to PR 13698
2013-04-16 18:40:48 -05:00
Jay McCarthy
b2463815d6 Adding pkgs-all 2013-04-16 13:53:37 -06:00
Jay McCarthy
d3f8c75de9 Adding pkgs/all 2013-04-16 13:53:37 -06:00
Matthew Flatt
d2b1dc6c63 raco pkg remove: only setup needed collections
That is, limit the ending `raco setup' to the same collections
as the corresponding `raco pkg install' (droppping collections
that no longer exist afterward, of course).
2013-04-16 13:17:05 -06:00
Matthew Flatt
6fe2861877 DrRacket: if any file in package X is open, treat X as "in development"
... for the purpose of "populate 'compiled' directories" --- but only if
the user has write permission for the package directory.

This change may or may not be a good idea. The idea is that installed
packages generally should be treated in the same way as the main
"collects" tree (e.g., avoiding debugging instrumentation), but if you
happen to be developing a package, then you want it treated like things
that are not in the main "collects" tree. So, how do you pick? Maybe
opening a file in the package is a good way to pick.
2013-04-16 12:51:54 -06:00
Matthew Flatt
7e91a00648 remove accidentally added files 2013-04-16 12:27:20 -06:00
Matthew Flatt
551fd1c68d DrRacket: disable "compiled/drracket" during skipped-file load
If DrRacket decides to skip a file for "populate compiled",
then there may exist a file in "compiled/drracket", anyway,
or there may be such a file for some depenency of the skipped
file. Before this patch, that situation was considered to be a
broken installation, and things would go bad in the likely
case that the "compiled/drracket" files were out of date.

To avoid that problem, parameterize `used-compiled-file-paths'
to drop the DrRacket "populate compiled" target while loading
the skipped file.

This change sets up a more selective "populate compiled" where
a package's modules might switch between eligible and
ineligible for compilation by DrRacket.
2013-04-16 11:23:16 -06:00
Matthew Flatt
fe9350ea62 DrRacket: treat installed packages like "collects" directories
... for the purpose of "populate 'compiled' directories".
2013-04-16 11:04:28 -06:00
Matthew Flatt
25ddfcbfb3 ffi/com: repairs for parameterized-property setting and for date values
Merge to v5.3.4
2013-04-16 10:02:37 -06:00
Matthew Flatt
10e53e3bf4 pkg/lib: lock clean-up, and add `path->pkg'
Make the installed-package database lock reentrant, change some
functions to take the lock, and fix the documentation on when a
lock is expected to be taken outside of functions.
2013-04-16 08:58:19 -06:00
Matthew Flatt
267ac03279 pkg/lib: clean up names and package-scope parameter
More consistent exported names and parameters that better match the
three scope choices (installation, user, or shared) --- cleaning up
after myself.
2013-04-16 08:58:19 -06:00
Matthew Flatt
44d59702c0 racket/gui cocoa: fix `list-box%' visble-cell calculations
There were especially problems with header columns, but
also intercell spacing was not taken into account.

Merge to v5.3.4
2013-04-16 08:58:19 -06:00
Asumu Takikawa
d4927e917b Fix old style contracts 2013-04-16 10:52:55 -04:00
Asumu Takikawa
7d4b162181 Fix imap-list-child-mailboxes to match contract
Closes PR 13658
2013-04-16 10:52:55 -04:00
Asumu Takikawa
c7d878c009 Fix parsing when CNAME is provided for MX query
The code was assuming that the record type was
MX even though this could be false. Also adjusted
some code to also make it easier to test.

Note: the behavior when MX records are missing
is probably still not right.

Closes PR 13654
2013-04-16 10:52:55 -04:00
Robby Findler
ffd7b8fde3 another attempt to handle the #:important flag properly for blame objects
related to PR 13692
2013-04-15 22:12:46 -05:00
Robby Findler
11f74fc571 track dependencies from files with errors separately
from when the file doesn't have an error

More precisely, keep two sets of depndencies for a given
open tab. If the file expanded without error then we consider
that authoratative and keep that set of dependencies around
even if a later expansion fails. So there are two sets of
dependencies for each tab. When expansion succeeds, we reset
both of them, but if expansion fails then we reset only one,
preserving the set we got from the last successful expansion

please include in the release
2013-04-15 21:12:20 -05:00
Burke Fetscher
67daa276ff Remove uses of else in match.
Also, a few micellaneous fixes for the prototype trace browser
2013-04-15 18:17:57 -05:00
Robby Findler
15623d9341 export only contract-random-generate from racket/contract,
not the internal helper functions

Thanks to Asumu for catching this!
2013-04-15 15:44:33 -05:00
Robby Findler
a0cee1ba99 get rid of now-osolete opt/c code 2013-04-15 15:44:33 -05:00
Matthew Flatt
b47c1857b5 raco pkg: support platform-specific package dependencies
A platform-specific dependency is useful for triggering
installation of a platform-specific library only on the
platform where its needed.
2013-04-15 06:21:49 -06:00
Matthew Flatt
37aa091e1c raco pkg: add support for local package-index databases
Adds `pkg/pnr-db', `raco pkg index-copy', and `raco pkg index-show'.

Includes tools to build a database of modules that are supplied by
packages, which will be useful for a tool to recommend package
installs when a module is not found.

Also, document `pkg/lib' and add extra helper functions
for getting package information from a package name resolver.
2013-04-15 06:21:49 -06:00
Matthew Flatt
50ade25b28 net/url: support HTTP/1.1 connections 2013-04-15 06:21:49 -06:00
Robby Findler
c188be0441 move the call that sets the focus later so it actually happens
merge to the release branch, please
2013-04-14 18:48:07 -05:00
Eric Dobson
b8ab1334d9 Terminate typechecking on cyclic lists.
Closes PR 13687.
2013-04-13 20:23:19 -07:00
Robby Findler
7ea6a430f1 change promise/c docs to use defproc instead of defform
also fix a few "listof/c"s

closes PR 13694
2013-04-13 19:12:51 -05:00
Robby Findler
0d0334616f add one more leading space to contract error messages (covering the first field) 2013-04-13 18:45:39 -05:00
Robby Findler
24ee49b7a2 add an "contract on:" line for the case when an #:important argument
overrides the name of the value so we can keep that original name somewhere

related to PR 13692
2013-04-13 18:45:28 -05:00
Robby Findler
79955e1204 fix the sense of the blame aspects of the blame object has a #:important
closes PR 13692
2013-04-13 18:38:34 -05:00
Stevie Strickland
ab66b485e5 Revert "Check that init args mentioned in contracts are provided."
This reverts commit 27b4df3eb5.
2013-04-13 17:35:22 -04:00
Stevie Strickland
27b4df3eb5 Check that init args mentioned in contracts are provided.
Closes PR 13693.
2013-04-13 17:31:39 -04:00
Stevie Strickland
eb12d76769 Add two spaces before contract error message fields (Reference section 9.2.1). 2013-04-13 17:31:39 -04:00
Mike Sperber
3cb555a6c1 Synch German string constants with latest. 2013-04-13 14:37:54 +02:00
Matthew Flatt
69707c9255 racket/gui: gl-config fixes 2013-04-12 18:29:01 -06:00
Stephen Chang
b3ba324a92 fix typed racket named let: error when there are no binding types
closes PR 13691

include in release
2013-04-12 18:25:55 -04:00
Matthew Flatt
9a52894b8b racket/enter: fix exception handling & propagation for `enter!'
Merge to v5.3.4
2013-04-12 14:58:54 -06:00
Matthew Flatt
9420855879 racket/gui cocoa: delay `on-paint' if a GL context isn't ready
The relevant `on-paint' call is one that is forced for a GL
canvas to try to draw a frame's content before the frame is
shown. Sometimes, thread scheduling would let the frame get
sufficiently initialized at the Cocoa level before the `on-paint'
call happened, but sometimes not.
2013-04-12 14:58:53 -06:00
Matthew Flatt
fff88eeb92 ffi/unsafe/obj: fix use of ivar in rator position
Merge to v5.3.4
2013-04-12 14:58:53 -06:00
Jay Kominek
0562755be9 OpenGL context sharing 2013-04-12 14:58:53 -06:00
Matthias Felleisen
6642c114f7 reformat error message for implode, Closes PR 13690 2013-04-12 16:25:20 -04:00
Asumu Takikawa
fa80c53115 Fix #:methods regression at top-level
Please merge to v5.3.4
2013-04-12 16:10:27 -04:00
Claire Alvis
d84494dd44 Fixes strange error messages for invalid generic method definitions
Closes PR 13681

Please merge to v5.3.4
2013-04-12 16:10:27 -04:00
Matthias Felleisen
2d934e6a4f die to dice 2013-04-12 13:17:22 -04:00
Matthew Flatt
879a919973 fix dependency cycle in `picturing-programs' 2013-04-12 06:40:38 -06:00
Matthew Flatt
33700427f2 racket/gui: make list-box% columns more consistent across platforms
Cocoa: use ellipses instead of line wrapping
Gtk: allow column sizing below title width

Merge to v5.3.4
2013-04-12 06:36:51 -06:00
Stephen Bloch
c25ed7473c Moved error-message tests into a module+ in main source file. 2013-04-12 06:43:11 -04:00
Eli Barzilay
b5771e6ade Avoid loading modules in module->path' and known-module'.
This is particularly problematic for `require-reloadable'.

Closes PR 13688.
2013-04-12 01:23:19 -04:00
Robby Findler
a425ee5207 improve the name of recursive-contract (thanks, Asumu!)
closes PR 13686
2013-04-11 22:44:56 -05:00
Burke Fetscher
41d90c6dd5 redex: syntax error fix for define-relation
please merge to the release branch
2013-04-11 22:34:29 -05:00
Robby Findler
e6122d5fbd fix listof error reporting
closes PR 13685

please merge to the release branch
2013-04-11 19:35:09 -05:00
Robby Findler
6cc0581dcd add Burke to acks
please merge to release branch
2013-04-11 19:35:07 -05:00
Matthew Flatt
06c42f0887 equality for `define-cstruct'-generated wrappers
Closes PR 13650

Merge to v5.3.4
2013-04-11 14:48:26 -06:00
Robby Findler
e5ae68a0c2 Add Burke to redex responsibility
(and remove Casey)
2013-04-11 14:06:40 -05:00
Matthew Flatt
98c5209c95 ffi/unsafe: fix doc typo
From Tobias

Closes PR 13684

Merge to v5.3.4
2013-04-11 10:30:00 -06:00
Matthew Flatt
c1d9b0716e dist-spec fix for `raco setup' extra file 2013-04-11 10:11:58 -06:00
Matthew Flatt
d195e3889b raco pkg: fix `raco setup' sensitivity to package scope
Merge to v5.3.4
2013-04-11 09:54:17 -06:00
Matthew Flatt
ff324f9270 raco setup: remove any extra documentation dirs in installation
After uninstalling a package in installation scope, its documentation
should be removed. A new `raco setup' step takes care of that.

Merge to v5.3.4
2013-04-11 09:54:17 -06:00
Matthew Flatt
0b2c9af57c move handin-client' and handin-server' to `handin' package 2013-04-11 09:54:17 -06:00
Matthew Flatt
ef6639f4c7 pkg docs: add a tag for the "how to develop" section
Merge to v5.3.4
2013-04-11 09:54:17 -06:00
Jay McCarthy
f29a071774 Normalize max-waiting contracts 2013-04-11 08:33:29 -06:00
Jay McCarthy
1bdf6e67dd Adding max-waiting to serve/servlet, re dyoo 2013-04-11 08:33:29 -06:00
Jay McCarthy
f340939677 Changing default max-waiting to 511 re Apache 2013-04-11 08:33:29 -06:00
Jay McCarthy
7dd9cc9568 Adding link 2013-04-11 08:33:29 -06:00
Jay McCarthy
5c4952ba03 Fixing PR13683 2013-04-11 08:33:29 -06:00
Matthew Flatt
fd614991e6 code tweaks 2013-04-11 06:50:13 -06:00
Matthew Flatt
a9a20e9aa7 fix the name of `environment-variables-ref'
Also, fix use of unsetenv() to work with platforms where it returns
void.
2013-04-11 06:42:54 -06:00
Robby Findler
d710550f0a make opt/c use a more comprehensive list of known-to-be-good
predicate contracts

also make it just evaporate when the contract is unknown
(instead of leaving a wrapper behind around the contract)
2013-04-10 18:32:25 -05:00
Matthew Flatt
d4fa2766c2 performance tweaks for `for/{fx,fl,extfl}vector'
Also, provide a better error message when the body produces a
non-{fix,flo,extflo}num.
2013-04-10 17:26:38 -06:00
Burke Fetscher
3feb6cf039 add a consistency check on the final environment
Specifically, check that fully instantiated terms
with cstrs on them satisfy those cstrs.
2013-04-10 16:13:45 -05:00
Matthew Flatt
e49956e3ea fix hole in validator
The validator was not as smart as the compiler in determining
that a `let' expression could be relied on to produce a
constant-shaped function (without side effect or error) in the case
that a right-hand side expression is a call to a known structure
constructor or predicate.

Closes PR 13679

Merge to v5.3.4
2013-04-10 15:06:13 -06:00
Matthew Flatt
6ea9a2b3e3 add `make-environment-variables'
Swap order of argument for `environment-variables-get'
and `environment-variables-set!', so that the environment
variables come first --- which follows the usual order.
This change means that the parameter isn't used to get
the default environment variables, but that seems ok; the
convenient interface is `getenv' and `putenv'.

On Windows, case-normalized environment variable names.

Also, change the implementation to use an immutable hash
internally.
2013-04-10 12:06:29 -06:00
Matthew Flatt
cfe9f447c8 fix sandbox test to avoid influence from other tests 2013-04-10 12:04:52 -06:00
Burke Fetscher
468d2b192e redex: elminate another #f/failure confusion 2013-04-10 12:59:15 -05:00
Asumu Takikawa
3946d7ff78 Fix environment variable doc typos 2013-04-10 12:50:46 -04:00
Matthew Flatt
6e0492dff0 fix a UDP multicast test to make it work on Windows XP 2013-04-10 09:11:28 -06:00
Matthew Flatt
7c0f35e138 reference: simplify some contractcs 2013-04-10 08:29:42 -06:00
Matthew Flatt
d5f32b649c racket/sandbox: add sandbox-make-environment-variables
By default, a sandbox gets a fresh environment variable set,
which means that it does not affect environment variables
outside the sandbox (which means that sandboxed code cannot
set the Racket process's OS-level environment variables).

Closes PR 13667
2013-04-10 06:59:33 -06:00
Matthew Flatt
3d1b0bd381 new environment-variable API
The `current-environment-variables' parameter determines the current
mutable "environment variable set". If that set is the initial one for
a Racket process, then using the set corresponds to working with OS
environment variables.  Otherwise, it's really just a hash table that
is packaged up as OS environment variables if a subprocess is created.

The new environment-variable interface works in terms of bytes, instead
of assuming that environment variable names and values fit in a string
encoding.

The string-based `getenv' and `putenv' are still available as
convenience wrappers. The checking on environment-variable names
for those wrappers is a little tighter, preventing any attempt to use a
name that contains "=".
2013-04-10 06:59:33 -06:00
Matthew Flatt
de9b77ad6d plai/{gc2/}mutator: doc fixes
A symptom of mismatched `for-label' imports was that searching for "<="
would show red-underlined links to the `plai/{gc2/}mutator' documentation.

Merge to v5.3.4
2013-04-10 06:59:33 -06:00
Robby Findler
2decc99b26 add forgotten piece to the opt/c -> fix 2013-04-09 22:23:01 -05:00
Robby Findler
4da6b0904e add something that tracks the size of .zo files over time
(this is for our benefit via drdr)
2013-04-09 22:02:49 -05:00
Robby Findler
011f47540d fix opt/c for -> contracts when the function accepts keyword arguments 2013-04-09 22:02:49 -05:00
Robby Findler
b8058b381a adjust mzlib contract test suite for fixed or/c names 2013-04-09 22:02:49 -05:00
Danny Yoo
075212d07c Correct typo. 2013-04-09 15:49:11 -06:00
Matthew Flatt
2295d16074 fix `raco setup -j' for a non-places build
When places are not enabled, then `raco setup' uses multiple
Racket processes that commuincate via pipes. Don't try to send
a place channel over a pipe.

Merge to v5.3.4
2013-04-09 12:20:13 -06:00
Matthew Flatt
8d7c231cd8 doc clarification 2013-04-09 10:55:21 -06:00
Robby Findler
b721565488 add #:error-name argument to opt/c
this makes it easier to stick opt/c implicitly into
various other contract using forms
2013-04-09 09:41:54 -05:00
Robby Findler
caad82f91e remove the code duplication in opt/c
The code duplication was there only to support
constructing the name for the optimized contract;
instead we actually just built the name as we go
(the old version actually built the old contract
 and then used that to get the name)

also:
 - racket/contract/base now requires basic-opters.rkt
   so all of the opters are registered when racket/contract/base
   is loaded, not just the non-basic ones
 - fix the ordering of the names of subcontracts in or/c
 - make opt-contracts print a more meaningful name
2013-04-09 09:41:46 -05:00
Eli Barzilay
436d9f25f9 Distribute all COPYING*.txt files. 2013-04-09 05:41:22 -04:00
Eli Barzilay
f57fbd94a6 Fix old pointers to COPYING.txt that should go to COPYING_LESSER.txt. 2013-04-09 05:41:07 -04:00
Eli Barzilay
bc7230bea2 Add missing responsible. 2013-04-09 05:15:57 -04:00
Matthew Flatt
8b5523bd10 fix `for/flvector', etc. unsafety
Closes PR 13675

Merge to v5.3.4
2013-04-08 17:45:02 -06:00
Tony Garnock-Jones
94e36c8193 Tests for UDP multicast primitives 2013-04-08 15:23:01 -06:00
Robby Findler
f093131607 adjust pick-a-maze based on Neil's comments
please include in the release
2013-04-08 16:09:55 -05:00
Matthew Flatt
d5ede87ae8 JIT for ARM
Includes switch from LGPL 2.1 to LGPL 3, since the ARM port
of GNU lightining is licensed under LGPL 3.
2013-04-08 14:43:30 -06:00
Matthew Flatt
bc5c89cbf0 fix a non-deterministic test 2013-04-08 14:43:29 -06:00
Burke Fetscher
495e5c94cf redex: bug fix for gerating terms including #f
please include in the release
2013-04-08 15:03:01 -05:00