Commit Graph

33133 Commits

Author SHA1 Message Date
Matthew Flatt
97da48ab67 remove/adjust obsolete C preprocessor cases
Mac OS Classic and Palm ae long since unsupported.

TCP support implies sockets (since old Mac TCP is gone).

For what it's worth, make the build work without TCP support, although
no one ever builds that way.
2014-05-12 04:57:44 -06:00
Matthew Flatt
58e8ed7d7d games/cards: add @2x card images
For both original and @2x, adjust images to use alphas for the corner,
instead of drawing with clipping, which avoids alignment problems on
an @2x display.
2014-05-12 04:57:44 -06:00
Matthew Flatt
54e42664df racket/draw: faster (on some platforms) path for drawing a bitmap
The faster path applies in the common case of drawing a whole
bitmap, as opposed to a section of the bitmap.

Thanks to Laurent Orseau for tracking down this performance issue.
2014-05-12 04:57:44 -06:00
Eric Dobson
3f5bddfcbd Fix subst-all contract. 2014-05-11 21:02:03 -07:00
Robby Findler
75de9243e4 add pict->argb-pixels and argb-pixels->pict 2014-05-11 22:30:14 -05:00
Robby Findler
6df33ab08c make new-∀/c and new-∃/c figure our their own names and have a better printing 2014-05-11 22:30:14 -05:00
Eric Dobson
4f7a119a08 Correctly handle moving dotted vars to the dmap. 2014-05-11 17:43:34 -07:00
Eric Dobson
d7ed73d5ac Add support for 1 sided contracts on Top types. 2014-05-11 17:17:09 -07:00
Matthew Flatt
6d572864d2 net/sendurl: improve docs on encoding in send-url and other functions 2014-05-11 08:35:43 -06:00
Matthew Flatt
d1525edf62 Scribble search, etc.: fix URL decoding
Use Javascript's decodeURIComponent() instead of unescape().

This repair makes searching for Unicode characters work from DrRacket
(e.g., via F1).
2014-05-11 08:34:58 -06:00
Matthew Flatt
b15aea28c2 fix accidental disabling of thread-specific process-milliseconds 2014-05-10 19:29:54 -06:00
Tony Garnock-Jones
d512a4a9c1 Index atexit in the documentation, to make it easier to find for people coming from C 2014-05-10 19:27:52 -06:00
Robby Findler
95cdd6e619 fix a performance bug in drracket's REPL IO.
This one of those classic n^2-loop-that-should-be-linear bug. The fix
speeds up this program (when run in DrRacket) by about 1.75x:

  (for ([x (in-range 10000)])
    (display "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz\n"))

The bug is fairly old too: I introduced this bug on March 6th,
2004. (Thanks, Sam, for making that old history accessible!)
2014-05-10 20:02:03 -05:00
Robby Findler
fa68b57de3 fix raco test -c
closes PR 14494
2014-05-10 11:12:22 -05:00
Robby Findler
9d87fe5079 cleanups to old, broken test suite and some bug fixes it uncovered
also, fix any/c generator
2014-05-10 10:01:29 -05:00
Mike Sperber
86b885b627 Synch German string constants with latest. 2014-05-10 15:29:13 +02:00
Matthew Flatt
e471995fa6 distro-build: fix catalog dir creation for built packages 2014-05-10 06:53:12 -06:00
Eric Dobson
722c4fd075 Add explicit -Null abbreviation.
Also clean up many use cases of -pair and (-val null) with -lst*.
2014-05-09 20:21:11 -07:00
Eric Dobson
6967ec7954 Add comments to tc/apply. 2014-05-09 20:21:11 -07:00
Eric Dobson
e56652bc18 Merge poly and simple function cases in tc-apply. 2014-05-09 20:21:11 -07:00
Eric Dobson
d6ef3d774c Add match expander for all polymorphic functions. Use it in tc-apply error messages. 2014-05-09 20:21:11 -07:00
Eric Dobson
afb3d99dc3 Simplify different cases in poly tc-apply. 2014-05-09 20:21:11 -07:00
Eric Dobson
976c1de96d Remove extraneous check. 2014-05-09 20:21:11 -07:00
Eric Dobson
cee3a3f2e1 Simplify poly drest case in tc-apply. 2014-05-09 20:21:10 -07:00
Eric Dobson
345673c953 Simplify failure case in tc-apply. 2014-05-09 20:21:10 -07:00
Eric Dobson
fafe7365ae Pull out typechecking subexpressions in tc-apply. 2014-05-09 20:21:10 -07:00
Eric Dobson
4c2dcfaeb6 Merge different cases in tc-apply. 2014-05-09 20:21:10 -07:00
Eric Dobson
8ab29675d6 Make polydotted * case in apply similar to other cases. 2014-05-09 20:21:10 -07:00
Eric Dobson
362747bfcd Make apply of poly functions more like regular functions. 2014-05-09 20:21:10 -07:00
Eric Dobson
5e0670d87e Add tests for empty case-lambdas in apply. 2014-05-09 20:21:10 -07:00
Matthew Flatt
5c521961b5 racket/sandbox: fix guard on attempt to flush sandbox plumber 2014-05-09 16:27:04 -06:00
Matthew Flatt
7987740d18 file/gzip: compensate for too-far lookahead 2014-05-09 15:47:01 -06:00
Robby Findler
86a96d35b7 adjust keybindings doc to be more informative, but
also never use unprintable characters
2014-05-09 12:39:51 -05:00
Jay McCarthy
723fae213c changing valid char to XML 1.1 rather than 1.0 and reverting changes from recent PR 2014-05-09 10:39:35 -06:00
Jay McCarthy
fc8075245a protect against errors in chunking or gunziping... without this there can be hangs 2014-05-09 10:39:34 -06:00
Matthew Flatt
718cbd4c41 distro-build: fix catalog relative paths
The old use of relative paths was unusual and fragile.
Proper relative paths are now supported, so generate paths
consistent with that.
2014-05-09 10:32:14 -06:00
Matthew Flatt
db1c05f78e change DrRacket doc to not attempt to render a control character 2014-05-09 09:37:25 -06:00
Matthew Flatt
e4e8a69e06 scribble: discard partial output on exception
This change avoids the problem of a bad "index.html" on a doucment
rendering error, where the presense of an "index.html" would count
as successes on a retry.
2014-05-09 09:37:24 -06:00
Matthew Flatt
0c7ebb9278 drracket: plumber for user process
The exit handler in the user process flushes via the plumber,
but maybe DrRacket could do more with the user's plumber, such as
attempting to exit instead of always forcing the old user process to
terinate when the "Run" button is clicked.
2014-05-09 08:16:21 -06:00
Matthew Flatt
01aec8f4cd racket/sandbox: plumber
A sandbox needs it own plumber so that sandboxed code cannot attach an
arbitrary callback to the plumber outside the sandbox. The plumber
outside the sandbox gets a flush callback that tells (within the
sandbox thread) the new plumber to flush.
2014-05-09 08:16:21 -06:00
Matthew Flatt
d5b42f8c50 add plumbers, remove custodian-tidy-all
In v6.0.1.7, I tried to give a port-flushing job to custodians. They
turned out to be unqualified, so let's try employing specialists.

Thanks to Eli for pointing out the problem with the v6.0.1.7 design:
attaching callbacks to custodians allows a sandboxed task to escape
through the custodian hierarchy. Plumbers avoid this problem by
having no hierarchy.
2014-05-09 07:06:27 -06:00
Sam Tobin-Hochstadt
e1ab2ffcf4 Fix contract.
First bug caught with new test.  Thanks Robby!
2014-05-08 16:19:30 -04:00
Ryan Culpepper
98ae3d8b2d v6.0.1 announcement 2014-05-08 16:10:44 -04:00
Ryan Culpepper
1618dc7018 v6.0.1 installers info 2014-05-08 15:58:42 -04:00
Matthew Flatt
fdf06e461a add raco pkg catalog-archive
The `catalog-archive` command not only copies a catalog, but also copies
all package sources referenced by the catalog to create a snapshot that
doesn't depend on any external pieces.

One reason you might want to do that is to download all packages on a
machine with general network access, and then building packages on a
(virtual) machine whose network access is limited.

This commit also adds support for relative package sources in the
catalog protocol, where a client converts a relative package source to
an absolute one.  Since the relative-to-absolute conversion happens on
clients, relative sources will be of limited use until v6.0 and v6.0.1
become deprecated.

A new `current-pkg-lookup-version` parameter corrects the misuse of
`current-pkg-scope-version` for package-catalog queries.
2014-05-08 11:03:31 -06:00
Eric Dobson
e5d4aed2fb Remove duplicate case in infer. 2014-05-07 21:13:04 -07:00
Eric Dobson
03373d1189 Add cgen/inv and use it. 2014-05-07 21:13:04 -07:00
Eric Dobson
c7645170e3 Make cset-meet take more than two arguments. 2014-05-07 21:13:03 -07:00
Robby Findler
bf9cdfb3f1 fix contract test suite responsibilities 2014-05-07 21:33:57 -05:00
Robby Findler
ce3f891209 improve any/c's random generation
by using the environment sometimes and making up (simple) functions
sometimes
2014-05-07 21:29:32 -05:00