Commit Graph

22006 Commits

Author SHA1 Message Date
Matthew Flatt
2f9a0f4b94 fix bad refactoring 2012-05-12 00:55:12 -06:00
Matthew Flatt
9412ea0707 add `syntax/quote' library 2012-05-12 00:55:12 -06:00
Matthew Flatt
67c57efa1d fix an error message 2012-05-12 00:55:12 -06:00
Matthew Flatt
8fc3d25be4 cm: collect dependencies for submodules 2012-05-12 00:55:12 -06:00
Matthew Flatt
1432912357 racket/draw: fix outline adjustment in `draw-rectangle' and others 2012-05-12 00:55:12 -06:00
Matthew Flatt
dbd940611e allow #f as shift for `syntax-shift-phase-level' 2012-05-12 00:55:12 -06:00
Robby Findler
698c895413 adjust struct/c so that it just expands into struct/dc 2012-05-11 22:07:52 -05:00
Jay McCarthy
93d8e89b66 Better error messages, plus fix for the tag syntax 2012-05-11 20:13:29 -06:00
Jay McCarthy
409b717ec2 Clarifying the use of the name of the argument in s/s/d 2012-05-11 20:13:29 -06:00
Robby Findler
329d3bb3c8 add some example code showing how to bind a menu to a key via the keymaps 2012-05-11 07:13:55 -05:00
Eli Barzilay
7f940de6f9 Fix `array-set!' for arrays of more than 2 dimensions.
Closes PR 12765.
2012-05-11 06:18:21 -04:00
Eli Barzilay
621fd87b51 Warn when a given collection has nothing to compile, abort with an error all are empty. 2012-05-11 06:18:21 -04:00
Eli Barzilay
b20575b1c9 Switch to `racket', and a bunch of code cleanups.
There should not be any functionality change in this commit, but please
keep an eye for possible problems.
2012-05-11 06:18:20 -04:00
Eli Barzilay
48b0b50647 Minor improvement, and recognize a ".plt" suffix in any case. 2012-05-11 06:18:20 -04:00
Robby Findler
9401a537e0 extend the opters to track if a contract has any negative blame
(this is similar to being flat, but struct contract (lazy ones) can
be non-flat and still have no negative blame).

Use this to optimize struct/dc contracts; specifically when a contract
has no negative blame, then we don't need to add additional wrapping
for indy-ness.

This ended up being fairly tricky to handle the case where there
are several mutually recursive define-opt/c functions. The code
tracks which definitions depend on which ones and does a graph traversal
of the dependencies to find if there is any non-negative blame
possible. Naturally, this uses Racket's macro system to communicate
between the definitions.
2012-05-10 21:59:39 -05:00
Robby Findler
7221d01483 refactored contract opters so they return structs instead
of (8!) multiple values
2012-05-10 21:59:39 -05:00
Kevin Tew
4c59943b0d [Distributed Places] Remove caps and camelcase 2012-05-10 19:58:52 -06:00
Kevin Tew
154a96ab1f [Distributed Places] Docs clean up part 1 2012-05-10 15:36:58 -06:00
Kevin Tew
076e698e8c [Distributed Places] RMPI docs 2012-05-10 15:36:58 -06:00
Kevin Tew
c619f7cbbf [Distributed Places] more docs, removed old functions, RMPI function renames 2012-05-10 15:36:58 -06:00
Kevin Tew
1fab365129 [Distributed Places] fix kmeans hang 2012-05-10 15:36:58 -06:00
Kevin Tew
5be7a7d980 [Distributed Places] simple MPI layer over distribute places 2012-05-10 15:36:58 -06:00
Jay McCarthy
b703148833 Fixing bad re-indent.. I think? 2012-05-10 12:37:27 -06:00
Jay McCarthy
611e8d0d17 Changing from racket to racket/base in xml, html, and web-server 2012-05-10 10:36:29 -06:00
Jay McCarthy
f675514a2b scribble/lp on racket/base vs scheme/base 2012-05-10 10:36:29 -06:00
Jay McCarthy
042defedb6 Branch remove fix 2012-05-10 10:36:29 -06:00
Matthew Flatt
2d027e7ee5 scribble/eval: add eval:result' and eval:results' 2012-05-09 19:11:21 -06:00
Matthias Felleisen
cc8e988346 fixed mistakes in posn documentation; Closes PR 12755 2012-05-09 12:04:44 -04:00
Ryan Culpepper
78a2ea535b added link from Continue to db docs on servlets 2012-05-09 09:17:52 -06:00
Ryan Culpepper
00fd18bc62 db: various fixes and additions
- fix connection-pool for nested tx, fix race condition
 - ensure connected? always nonblocking
 - added and reorganized some doc sections
 - added grouping, contracts to in-query
 - added rows->dict
2012-05-09 09:17:52 -06:00
Ryan Culpepper
aa0d8aaa33 fix bug in db docs intro
closes PR 12743
2012-05-09 09:17:52 -06:00
Ryan Culpepper
902ba68dfb db: add servlet-based test 2012-05-09 09:17:52 -06:00
Eli Barzilay
7738f21a5b Move the srfi references to the section ends. 2012-05-09 04:11:17 -04:00
Danny Yoo
fc708c00d8 Danny's email changed. 2012-05-09 03:55:39 -04:00
Eli Barzilay
f1a7517ab6 Adds note about `system*' output.
(Slightly revised by Eli.)
2012-05-09 03:48:55 -04:00
Michael W
267a009e03 Adds note about system* output. UNTESTED 2012-05-09 02:46:33 -04:00
Eli Barzilay
06728e1dd2 Use absolute URLs in the quick subscription boxes.
Closes PR 12757.

(Also some reformatting.)
2012-05-09 02:42:52 -04:00
Eli Barzilay
f335b47a18 Apparently things work fine with readline 6 too. 2012-05-08 21:18:15 -04:00
Eli Barzilay
d04920c032 (Try to) Fix the section that talks about `apply' and keyword arguments.
Closes PR 12438.
2012-05-08 21:18:15 -04:00
Eli Barzilay
07d5fbe1f6 More time for the combined scribble tests. 2012-05-08 21:18:15 -04:00
Eli Barzilay
99f87cf72b Remove prose infelicity.
(Reported by Shriram a while ago.)
2012-05-08 21:18:15 -04:00
Eli Barzilay
6dfcf68a12 Fix a typo.
Closes PR 12456.
2012-05-08 21:18:15 -04:00
Robby Findler
646403e9f6 ported the contracts in srfi/14 to racket/contract 2012-05-08 16:50:17 -05:00
Ryan Culpepper
745607a51d added unstable/cat 2012-05-08 14:50:28 -06:00
John Clements
0196a6f97a doc clarification for make-argb 2012-05-08 12:02:02 -07:00
Asumu Takikawa
a8994c7261 Revert "Add contract-add-context to contract system."
This reverts commit f3b687c8ed.

After discussion with Robby and Stevie, we concluded that
this procedure isn't necessary for now. If we ever think
of more examples where it's useful we can bring it back.
2012-05-08 12:58:49 -04:00
Vincent St-Amour
e786149434 More precise type for flexpt. 2012-05-08 11:42:21 -04:00
Vincent St-Amour
95c2115799 Fix prims.rkt's type->contract to accept keyword arguments.
Necessary when some prims are used at the top-level.
2012-05-08 11:16:27 -04:00
Matthew Flatt
9a41129c69 racket/flonum: add `flexpt' 2012-05-07 20:41:14 -06:00
Ryan Culpepper
7cafd9daca stop running stress-template in drdr 2012-05-07 15:08:22 -06:00
Ryan Culpepper
3bde72ffb0 syntax/parse: fix dependencies of experimental modules 2012-05-07 14:46:14 -06:00
Ryan Culpepper
eb3dce14cd fix some doc contracts for submodules 2012-05-07 14:46:13 -06:00
Ryan Culpepper
0b8b0c36ef fix check-requires for submodules 2012-05-07 14:46:13 -06:00
Ryan Culpepper
62177bc135 macro-debugger: don't shut down expansion on error (TR raises async errors)
related to PR 12505
2012-05-07 14:46:13 -06:00
Ryan Culpepper
2b34e0a75b macro-debugger: more submod fixes, removed unused code & exports 2012-05-07 14:46:13 -06:00
Ryan Culpepper
6c6fa36c8c add srfi links 2012-05-07 14:46:13 -06:00
Ryan Culpepper
f0c03ad921 macro-debugger: updates for submodules 2012-05-07 13:26:07 -06:00
Robby Findler
dd764ca83d move the 'opt/c unknown contract' logging to the right place 2012-05-07 10:36:44 -05:00
Robby Findler
5996e8f480 finish up struct/dc 2012-05-07 10:36:44 -05:00
Robby Findler
64603d0c27 adjust the opter protocol so that opters can say either: "yes this is
a chaperone contract", "no it definitely isn't" or "evaluate this code
at runtime to find out"; previously only the first two options
were available to opters

(this commit also includes other tweaks here and there so won't stand alone)
2012-05-07 10:36:44 -05:00
Robby Findler
04017d83d5 start adding struct/dc contracts 2012-05-07 10:36:39 -05:00
Eli Barzilay
a4381dd1f6 Do the xref test only if "doc/reference/out.sxref" exists/
(Since the nightly build includes the documentation only on the main
machine.)
2012-05-07 09:12:00 -04:00
Eli Barzilay
b315000311 All of `overridden-collects/teachpack' should not be tested. 2012-05-07 09:12:00 -04:00
Eli Barzilay
55814fe7fc Fix ,install!
(Questions where very broken when readline was active.)
2012-05-06 13:13:49 -04:00
Eli Barzilay
49c8a5fb28 Racketizations. 2012-05-06 13:13:16 -04:00
Eli Barzilay
17090fca4f A bunch of fprintf' -> eprintf' conversions (and a few related things). 2012-05-06 12:06:00 -04:00
Eli Barzilay
084f1dcea7 Use the new `wrap-line' in the scribble text renderer.
Looks like it's not making any changes in the current tests (which use
the text renderer), but with words that are longer than the width the
old version would stop wrapping afetr these words.  Added a test file
that fails with that and succeeds with the new one.  If anyone cares
about this, it's easy to make hyphenate words that are too long for a
line.

(Also fixed some redundant frustration in the bib test...)
2012-05-06 08:17:36 -04:00
Eli Barzilay
34ec391194 Some racketization (and outdent). 2012-05-06 06:29:18 -04:00
Eli Barzilay
efda1706d8 Use the new wrap-line' in scribble/eval'.
This might have output that is a little better in cases where the
wrapped string is longer than `maxlen', for example, with an input of:

  "    x xxxxxxxxxxxxxxxx..."

and wrapping at 10 characters, the output was

  "    x\nxxxxxxxxxx\nxxxxxx..."

and now it's

  "    x xxxx\nxxxxxxxxxx\nxx..."
2012-05-06 06:15:04 -04:00
Eli Barzilay
36394500e5 Streamline all scribble tests. 2012-05-06 05:53:19 -04:00
Eli Barzilay
d28b0c0806 Use `scribble/text/wrap' in xrepl.
(Also organize the tests a little.)
2012-05-06 05:38:04 -04:00
Eli Barzilay
3cb4552e32 Minor fixes to `tests/lazy'.
* Make each test file runnable using `module+'.

* Make the space tests not print anything (unless they fail, of course).

* Make the `first-class?' case even "more first class" by defining their
  and/or as functions.  (Doesn't make a real difference for this test,
  but nice to test more of the language.)
2012-05-06 05:38:04 -04:00
Eli Barzilay
4adc10b071 Fix test: use a new directory for the submodule tests 2012-05-06 05:38:04 -04:00
Eli Barzilay
89b9ad0dde New wrap-line' function in a new scribble/text/wrap' module.
This should probably become documented if it's stable enough.  For now
it's intended for building wrapping functions, so it's only documented
in comments the file.
2012-05-06 05:38:04 -04:00
Eli Barzilay
c161540751 Fix props for "mkheart.rkt"'s new place. 2012-05-06 05:38:03 -04:00
Eli Barzilay
8605c91ccf Minor typo
(Reported by Shriram a while ago.)
2012-05-06 05:38:03 -04:00
Matthew Flatt
230463fa3d racket/gui: fix problem with recent edit-sequence change
Restores undo support in DrRacket, for example.
2012-05-05 22:09:13 -06:00
Matthew Flatt
c5d3750d39 try libpng15 before libpng12 2012-05-05 10:32:05 -06:00
Matthew Flatt
b30374824a racket/draw: add #:eventspace' argument to open-output-text-editor'
The argument is `(curent-eventspace)' by default, which makes ports
work better with threads.

Closes PR 12749
2012-05-05 10:32:05 -06:00
Matthew Flatt
48f7ddafe4 racket/gui: fix some concurrency problems `text%'
Changed `open-output-text-editor' to put its additions into
an edit sequence to better work with threads.

Fixed problems in editor-canvas refresh and resize events, where
the editor's refresh synchronization wasn't used properly.

Fixed race conditions in the the protocol that is used to separate
refreshes and edit sequences.

Related to PR 12749
2012-05-05 10:32:05 -06:00
Eli Barzilay
1fae7942d5 Add a branch indicator to the stamp, if we can find one and it's not "master".
Added by Sam's request.
2012-05-04 20:18:38 -04:00
MartyNeal
6e1ee717f7 Fixed `stream-add-between'.
Don't put an extra seperator element at the end of the stream.  Brings
it in-line with the list version (`add-between') and sequence
version (`sequence-add-between').  Includes a test.
2012-05-04 20:18:38 -04:00
Asumu Takikawa
36dd749268 racket/class: remove commented code 2012-05-04 17:41:13 -04:00
Asumu Takikawa
61784877a0 Fix blame for behavioral subtyping.
- negative parties of interface contracts should be
    the interface itself
2012-05-04 17:24:55 -04:00
Stevie Strickland
14da5dacc5 Small fixes.
* Use #f instead of (lambda () #f) in hash-ref call
 * We want the positive blame, not negative, when interface-contracted
   methods are passing through a class/c application.
 * Use (interface <i>) and (class <c>) for interface and class blame.
2012-05-04 17:24:55 -04:00
Asumu Takikawa
ba8e879703 Use a weak hashtable to cache concrete instances 2012-05-04 17:24:55 -04:00
Asumu Takikawa
10967a22ce Make class/c and interface contracts cooperate
- also fixed a problem with subclassing, though I'm not
   sure it's quite correct yet
2012-05-04 17:24:55 -04:00
Asumu Takikawa
670154bd2b First cut of working interface contracts.
- still need to fine-tune code (maybe avoid lists)
  - is the blame story correct?
  - weak hash table for new class copy
  - interaction with class/c
2012-05-04 17:24:55 -04:00
Asumu Takikawa
f4fb628934 Changing new to (eventually) concretize interface contract methods.
* No-op for now, but will later do more work.
 * Fix up Typed Racket to handle the new do-make-object.
2012-05-04 17:24:55 -04:00
Asumu Takikawa
f09867f6a7 Add function to find ctcs/blame for interfaces 2012-05-04 17:24:55 -04:00
Asumu Takikawa
a7e03aee2c Add interface contract meth. names to class struct 2012-05-04 17:24:55 -04:00
Asumu Takikawa
6f4ad1de25 Add contracts to interface syntax & structures 2012-05-04 17:24:55 -04:00
Eli Barzilay
26c13d278e Move the "mkheart.rkt" generator to a new meta directory. 2012-05-04 17:24:08 -04:00
Andreas Rottmann
53cbe874e0 Allow installation into arbitrary directories with "plt-r6rs --install"
Hi!

Here's an updated version of the patch, which also mentions the added
option in the docs; also the specified directory is added to the
collection paths, since compilation will fail otherwise.

From: Andreas Rottmann <a.rottmann@gmx.at>
Subject: Allow installation into arbitrary directories with "plt-r6rs --install"

Added a `--collections' option to plt-r6rs which allows to specify the
directory where libraries are installed into.
2012-05-04 17:24:08 -04:00
Jose Antonio Ortega Ruiz
6f0e79feff Fixes for trivial typos in Reference sec. 1.2.
(Eli: Ancient commit on the mailing list that wasn't merged...  Most
things were already fixed.)

Signed-off-by: Jose Antonio Ortega Ruiz <jao@gnu.org>
2012-05-04 17:24:07 -04:00
Stephen Bloch
8f4178e7eb Eli's suggested patch to enable searching for picturing-programs library
functions (which includes image and universe) using F1 from teaching
languages.
2012-05-04 14:56:28 -04:00
Matthew Flatt
9e657a2026 racket/draw: fix handling of font hinting 2012-05-04 11:19:01 -06:00
Matthew Flatt
0dbd3f1610 redex typesetting: make token splitter more tolerant
Possibily the typesetting enginer should reject an ill-formed
input, instead; I'm not sure what went wrong with the input.
2012-05-04 10:20:24 -06:00
Asumu Takikawa
f3b687c8ed Add contract-add-context to contract system.
This procedure is used to add blame contexts to an
existing contract. This prevents the need to re-create
the contract in order to add blame contexts.
2012-05-04 02:52:46 -04:00
Matthew Flatt
4292c6e037 fix docs for `box-cas!', fix JITted version to check mutability 2012-05-03 21:38:36 -06:00
Matthew Flatt
19d474d045 fix some tests related to the make-color' and make-pen' addition 2012-05-03 19:22:58 -06:00
Matthew Flatt
0d88a08c48 implement branch mode JIT generation for `box-cas!'
Also, move slow path into common code
2012-05-03 19:22:46 -06:00
Matthew Flatt
23d46620f2 documentation tweaks 2012-05-03 19:22:46 -06:00
Aaron Turon
868dcb6d57 Add box-cas!' and unsafe-box*-cas!'.
These primitives atomically update a box to a new value, as long
as the current value is the same as a provided value.  They also
are future-safe.

When futures are enabled, they use low-level hardware instructions
to perform the change atomically.
2012-05-03 19:19:24 -06:00
Asumu Takikawa
b211782bcd Lift the use of (quote-module-name) by the default current-contract-region. 2012-05-03 19:47:24 -04:00
Stevie Strickland
b2bfbad240 Add special typechecking rule for expansion of (quote-module-name). 2012-05-03 19:38:47 -04:00
Asumu Takikawa
4651ccc0ad Fix a TR issue with syntax-local-lift-expression 2012-05-03 19:36:32 -04:00
John Clements
9f9468f7c2 check-= uses magnitude to compare number differences 2012-05-03 10:55:49 -07:00
John Clements
721af649d7 reformatting 2012-05-03 10:55:49 -07:00
Matthew Flatt
5ffb9389ac fix `raco setup' for splicing collections
Closes PR 12676
2012-05-03 11:11:38 -06:00
Matthew Flatt
1b0f6cc995 doc repair
Closes PR 12708
2012-05-03 11:11:38 -06:00
Robby Findler
f2816e72b4 fix proc-doc/names documentation
closes PR 12739
2012-05-03 11:36:09 -05:00
Jay McCarthy
0e628037ab Changes re: jGc 2012-05-03 08:51:49 -06:00
Eli Barzilay
2fa345ef9e Revise license page with the clarification text that was sent on the list.
(Slightly revised.)
2012-05-03 10:25:34 -04:00
Eli Barzilay
ed2b579e3c Fail early on a non-pair input to `list-ref'.
There's no index that works with non-pairs, and the generic error
message in such cases is confusing.

Closes PR12740.
2012-05-03 10:24:05 -04:00
Eli Barzilay
1eed0c3d92 Improve the windows text a bit. 2012-05-03 10:24:05 -04:00
Eli Barzilay
97850b5002 No need to use a new 'at-exp-prop property to identify newlines
The information is already present in the 'scribble property, so use it
instead.
2012-05-03 10:24:05 -04:00
Eli Barzilay
5fd13c82c3 Recommend using racket' rather than gracket-text' in the handin quickstart. 2012-05-03 10:24:05 -04:00
Eli Barzilay
68544f55c1 Link to racketcon from the community page. 2012-05-03 10:24:03 -04:00
Asumu Takikawa
efc581e831 Revise Getting Started based on feedback. 2012-05-02 22:59:06 -04:00
Asumu Takikawa
420b66ca4e Add an example to scriblib/autobib docs. 2012-05-02 22:39:06 -04:00
Stevie Strickland
4d99b83df8 Removing mzlib/class-traced.
Both Carl and Matthias have signed off on removing this code.
2012-05-02 19:15:53 -04:00
Vincent St-Amour
376b31cf28 Use icons to distinguish optimizations from missed optimizations. 2012-05-02 17:54:29 -04:00
Vincent St-Amour
d04a1be7ea Add lines to separate popup entries. 2012-05-02 17:48:57 -04:00
Vincent St-Amour
a2a60cb924 Fix TR test for new contract error message format. 2012-05-02 15:14:39 -04:00
Vincent St-Amour
a62444fa3e Optimize integers used as sequences. 2012-05-02 15:14:37 -04:00
Matthew Flatt
68e005fb2c racket/draw: make-immutable-{color,brush,pen} => make-{color,brush,pen}
Also, use keywords for `make-pen' and `make-brush'.

Adding `make-pen' and `make-color' creates many conflicts among
teaching libraries, such as `2htdp/image'. These are easy to fix
up in the tree, but adding such obvious names to `racket/draw'
may create other compatibility problems, so we might have to reconsider
the names.

In consultation with Asumu.
2012-05-01 21:04:40 -06:00
Asumu Takikawa
86a976531c Fix plot to use immutable constructors. 2012-05-01 21:20:52 -04:00
Asumu Takikawa
8db45eb557 Add immutable constructors for color%, brush%, pen%
- Make set-immutable a local method and document
    is-immutable? as a public method
  - Add some racket/draw tests
2012-05-01 21:20:52 -04:00
Matthew Flatt
466ffadb12 racket/draw: use libpng15.so.15 when available
E.g., Mageia 2 has libpng15, not libpng12
2012-05-01 16:48:29 -06:00
Matthew Flatt
54a6ba8d36 racket/sandbox: change syntax-object wrappers generated for locations
Generate wrappers consistent with a reader-level absence of `.'s,
instead of wrapping every pair. This change fixes the `syntax-e'
example in the Guide's description of syntax objects.
2012-05-01 16:48:15 -06:00
Matthew Flatt
23296615ec scribble/eval: change string or byte-string expression handling
Use `datum->syntax' instead of `begin' to protect the string or byte
string. Danny Yoo suggested this change.
2012-05-01 16:48:15 -06:00
Matthias Felleisen
e04b74f22a fix mistake in memf documentation, Closes PR 12745 2012-05-01 16:48:17 -04:00
Asumu Takikawa
3db6d1c5b2 Fix REPL hyperlink in Getting Started. 2012-05-01 15:20:28 -04:00
Asumu Takikawa
1406354869 Update Getting Started page. 2012-05-01 14:57:47 -04:00
Asumu Takikawa
db02ad9b75 Add pointers to the Guide in Reference docs. 2012-05-01 14:57:14 -04:00
Matthew Flatt
4ac4e2e8d6 fix a problem with the "self" module path index
This bug was introduced recently by changes to support submodules.

Closes PR 12744 (and Robby had reported it earlier)
2012-04-30 23:37:20 -06:00
Neil Toronto
be49a59e4d Added plot-x-tick-label-angle, plot-x-tick-label-anchor, and similar for y and far axes 2012-04-30 16:12:12 -06:00
Neil Toronto
3862faee64 Fixed discrete-histogram gap and bounds calculation, expanded docs 2012-04-30 14:15:18 -06:00
Robby Findler
05859765ad change the contract opter so that unknown contracts don't pretend to be flat 2012-04-30 14:39:27 -05:00
Robby Findler
4694a9874f added line numbers to the syncheck test cases (and removed bogus comment) 2012-04-30 14:39:27 -05:00
Vincent St-Amour
cda496d4ed Doc fixes.
One is from Eric Hanchrow.
2012-04-30 14:13:32 -04:00
Matthew Flatt
eee60c7d47 fix a test suite to work on its own 2012-04-30 06:55:20 -06:00
Matthew Flatt
da103ddc16 remove obsolete and unused MysterX doc sources 2012-04-30 06:53:17 -06:00
Robby Findler
b66f716374 adjust the unit contract tests for the new contract error messages 2012-04-29 21:45:07 -05:00
Robby Findler
8739f15057 Adjusted contract error messages to say given/produced appropriately
(and generally cleaned up the way values are actually put into the
code, replacing some ~a's with ~e's and some Rackety)
2012-04-29 21:29:37 -05:00
Robby Findler
33613a75a6 add an example from Neil \bot to the discrete-histogram docs 2012-04-29 21:29:37 -05:00
Matthew Flatt
393a1f441a scribble: for Latex, pick tt encoding of <, >, and | explicitly 2012-04-29 11:23:37 -06:00
Matthew Flatt
fc1089c842 scribble: change Latex rendering of empty hidden part titles 2012-04-29 10:37:11 -06:00
Stephen Bloch
c769481d9d Previous commit mistakenly exposed a debugging function "show-cache".
It is no longer exported.
2012-04-29 07:31:17 -04:00
Stephen Bloch
ddde53bed4 Documentation for fold-image and fold-image/extra. 2012-04-28 18:09:57 -04:00
Stephen Bloch
2df9ca8789 Added fold-image and fold-image/extra functions, as well as tests for
them.
2012-04-28 18:09:57 -04:00
Stephen Bloch
656713cbcf Enlarged cache for get-pixel-color from one image to 3, so you can
alternate among three images without thrashing and re-rendering.
2012-04-28 18:09:57 -04:00
Matthias Felleisen
f95798c7b5 use deprecated from manual for teachpacks 2012-04-28 13:25:33 -04:00
Matthias Felleisen
2992fa122d use deprecated from manual, deprecate 'deprecate' in common 2012-04-28 13:25:32 -04:00
Matthias Felleisen
9ef66b80ea add a form to declare a module/library deprecated 2012-04-28 13:25:32 -04:00
Robby Findler
98e06248b5 properly deal with menu shortcuts that are symbols (e.g., 'f1) in
the "Show Active Keybindings" menu item

closes PR 12737

Thanks to Laurent Orseau for the fix!
2012-04-28 08:52:13 -05:00
Danny Yoo
a067380622 small typo 2012-04-28 05:27:34 -04:00
Eli Barzilay
16d40c3170 Fix command-line for the demodularizer.
Closes PR 12731.
2012-04-28 05:23:43 -04:00
Eli Barzilay
890de3af6c Move the honu code for vim to collects/meta. 2012-04-28 05:23:43 -04:00
Eli Barzilay
904d2666aa Completions for zsh. 2012-04-28 05:23:43 -04:00
Eli Barzilay
de98df327c Typo (but these requirements should be eliminated eventually). 2012-04-28 05:23:43 -04:00
Robby Findler
9288fda689 set the timeout for the easter-egg test to double what it takes on my machine 2012-04-27 14:52:19 -05:00
Robby Findler
1ff580d06a add deprecation note to htdp/image 2012-04-27 14:52:09 -05:00
Asumu Takikawa
cd67536738 class/c: allow local method names
Prior to this change, a method/field name defined with
define-local-method-name was not contractable.
2012-04-27 13:00:48 -04:00
Matthew Flatt
393e8b90b2 fix sorting bug in bytecode submodule table 2012-04-26 21:45:00 -06:00
Matthew Flatt
f099eec2af save modidx submodule path in bytecode form
This change should have been part of 9ba663aa77.
2012-04-26 21:45:00 -06:00
Jon Rafkind
976be2b8c9 [honu] typo in parenthesis name for the color lexer 2012-04-26 21:11:56 -06:00
Jon Rafkind
565e844228 [honu] add vim syntax file for honu 2012-04-26 18:00:46 -06:00
Matthew Flatt
e1b180ee17 honu: add `error' to compile time 2012-04-26 17:59:19 -06:00
Matthew Flatt
563909c328 scribble/bnf: add `BNF-seq-lines' 2012-04-26 17:59:19 -06:00
Asumu Takikawa
0ea558a463 class/c: fix interaction w/ absent and #:opaque 2012-04-26 14:45:50 -04:00
Asumu Takikawa
841b190ef7 Fix local member info leak due to opaque class/c
Prior to this change, the use of opaque class contracts
could reveal the printed names of local members names
in a class.
2012-04-26 14:45:50 -04:00
Matthew Flatt
5e4b9e3aca racket/draw: pens and brushes from lists should be immutable
Closes PR 12732
2012-04-26 08:45:17 -06:00
Matthew Flatt
a8ca75b773 fix documentation example for `protect-out'
The example relied on the current code inspector affecting
syntax object created during `eval', but since the switch
from certificates to taints, the relevant code inspector is
determined by the namespace, and a namespace gets its code
inspector at creation time.

Closes PR 12717
2012-04-25 19:54:00 -06:00
Matthew Flatt
fc7f6bbe0f racket/gui: add a 'no-icon style for `message-box' 2012-04-25 19:32:58 -06:00
Matthew Flatt
d6a57e073c racket/draw win32: change default font for 'script 2012-04-25 19:17:16 -06:00
Matthew Flatt
9c025210aa racket/gui win32: font fallback for labels
When the requested font isn't available, fall back to
the default font at the requested size and style
2012-04-25 19:17:16 -06:00
Matthew Flatt
418a3cd83b racket/draw cocoa: adjust default 'script font
Also, adjust the way a font is converted for control labels to
strp away Pango descriptions.
2012-04-25 19:17:16 -06:00
Stephen Bloch
2d2f013465 Updated some comments; no effect on running code. 2012-04-25 17:05:56 -04:00
Stephen Bloch
924d510746 Changed the transparency of some bundled images. 2012-04-25 17:04:39 -04:00
Jay McCarthy
5c64e251e1 Fix PR 12694 2012-04-25 06:57:24 -06:00
Matthew Flatt
ffea2b2c02 ffi/unsafe/com: infer 'any type for `com-omit' 2012-04-25 00:11:57 -06:00
Matthew Flatt
9ba663aa77 preserve submoduleness in module path index for expanded submodules
The preserved path is exposed by a new `module-path-index-submodule'
function, and `module-path-index-join' now accepts an optional
submodule path.

Also, fixed a problem with `collapse-module-path-index' when
a module path indx is built on a resolved module path that
is a submodule path.

In addition to the main repair, `collapse-module-path[-index]' is
correctly documented to allow '(quote <sym>) rel-to paths.

Finally, `collapse-module-path-index' changed to use a symbolic
resolved module path that appears as the base of a module path
index, rather than falling back to the given rel-to path. It's
possble that the old beavior was intentional, but it wasn't tested,
and it seems more likely to have been a bug.

Closes PR 12724
2012-04-24 21:10:28 -06:00
Matthew Flatt
3c615e434b fix resolution of relative module path in a submodule
Closes PR 12729
2012-04-24 16:15:29 -06:00
Robby Findler
57cae5c85b added a skeleton 2htdp/image guide section 2012-04-24 16:11:17 -05:00
Jay McCarthy
ae38ecc564 Adding new options re Galler 2012-04-24 14:49:33 -06:00
Asumu Takikawa
555f85ac3a Add missing method contracts for color% 2012-04-24 10:08:46 -04:00
Asumu Takikawa
1207ca77c4 Hide internal fields in color% and point%. 2012-04-24 10:08:46 -04:00
Stephen Bloch
ba8684cb63 provide provide, so it's possible to use provide and require in
student languages.  This will be a problem if somebody writes a
function in BSL or BSLLA, provides it, requires it in a non-student
language, and uses it as an argument to a higher-order function
that isn't declared as a "higher order primitive".  That is,
not very often.  Even if so, just re-open the BSL or BSLLA source
file, switch languages to ISL, save it, and the problem goes away.
2012-04-24 06:37:51 -04:00
Matthias Felleisen
3e1e9c8763 removed code:comment hack that clearly never should have been there 2012-04-23 20:01:58 -04:00
Jon Rafkind
40a3161570 [honu] always keep parsing a unary operator 2012-04-23 17:18:12 -06:00
Jon Rafkind
4799d08022 [honu] dont splice the output of a macro directly into the output 2012-04-23 17:18:12 -06:00
Robby Findler
80d57148d1 fix bug in docs; closes PR 12716 2012-04-22 21:54:19 -05:00
Robby Findler
723ad6207c add opening a file (and (hopefully) waiting for the coloring to finish)
and run the test three times, instead of just once
2012-04-22 08:57:50 -05:00
Robby Findler
fa7d78949e improve recursive-contract so that it doesn't expand into as much code
and it has a more accurate stronger?  predicate (as the new blame info
tracking stuff broke its earlier stronger? predicate)
2012-04-21 22:03:41 -05:00
Robby Findler
0621c150ec added opters for real?, listof, and non-empty-listof 2012-04-21 16:56:24 -05:00
Robby Findler
17a723a63e Improve the contract error messages:
- add context information, so we can see which part of the contract failed
 - re-arrange some of the information in the contracts
2012-04-21 16:55:03 -05:00
Jon Rafkind
32a2339d04 [honu] dont create unique ids for struct fields 2012-04-20 14:08:36 -06:00
Jon Rafkind
9858ec72d2 [honu] allow syntax() form to accept a single term. provide some hash stuff 2012-04-20 14:08:36 -06:00
Jon Rafkind
b51ab5802a [honu] replace $ with honu-$ just to be safe 2012-04-20 14:08:36 -06:00
Jon Rafkind
79b6e5611e [honu] dont confuse identifiers with $. use = in with-syntax 2012-04-20 14:08:36 -06:00
Jon Rafkind
bb57412242 [honu] check for definitions before continuing to parse. completely parse the left hand side of an operator 2012-04-20 14:08:36 -06:00
Matthew Flatt
6dc3fbb72c fix doc picto 2012-04-20 12:27:29 -06:00
Eli Barzilay
457908061f Typo in the name for x86_64-osx-mac. 2012-04-19 21:53:42 -04:00
Asumu Takikawa
0b90dc49cf Fix docs for render-term. 2012-04-19 17:37:12 -04:00
Eli Barzilay
2b76d9e5b0 A bunch of scheme' -> racket' conversions.
I think that there are no user-visible changes from these changes.
2012-04-19 16:02:03 -04:00
Eli Barzilay
6f215759ae Add string-trim' and string-normalize-spaces'. 2012-04-19 16:02:03 -04:00
Eli Barzilay
e2e2a1e3e1 Some cleanups to "script.html".
Closes PR 12464.
2012-04-19 16:02:03 -04:00
Matthew Flatt
659ff05143 refine some contracts related to submodule paths
Merge to 5.3
2012-04-19 12:45:28 -06:00
Matthew Flatt
8600e7fe31 fix misplaced phase shift in submodule expansion
Merge to 5.3
2012-04-19 12:45:28 -06:00
Sam Tobin-Hochstadt
fdb4ab7025 Handle `check-expect' in non-application form.
Closes PR 12710.
2012-04-19 12:50:25 -04:00
Matthew Flatt
862e1628a6 fix Planet resolver for submodule tests
For example, `(module-declared? '(submod (planet dyoo/bf) reader) #t)'
shouldn't fail if there's no "main.rkt" to hold a `reader' submodule;
it should return #f.

Merge to 5.3, but updating cstartup.inc will require a manual merge.
2012-04-19 08:15:11 -06:00
Matthew Flatt
81eb15f655 doc correction 2012-04-19 08:15:11 -06:00
Stevie Strickland
95d784db84 Fix a ->d contract example in the reference. 2012-04-18 17:42:14 -04:00
Sam Tobin-Hochstadt
0b7674cb06 Describe `cl' syntax class in match.
Closes PR 12657. Merge to 5.3.
2012-04-18 17:03:17 -04:00
Stevie Strickland
d76b0dac78 Fix contract names for ->m, ->*m, case->m, and ->dm contracts.
This should be merged into the 5.3 release branch.
2012-04-18 15:27:36 -04:00
Robby Findler
81252541dc add context to blame error messages
This is using the same idea that Stevie had, more than two
years ago(!). Sorry for not picking up on this earlier
2012-04-17 22:57:57 -05:00
Eli Barzilay
1c9de39348 Rename #:gap-select' -> #:gap-select?' and some minor doc fixes. 2012-04-17 15:56:10 -04:00
Eli Barzilay
a14569bfe3 Web pages tweaks.
* Add a reference from the community page to the bug reports page.

* Make it possible to subscribe to lists right from the community page.
  Improve the email input boxes with placeholder text and a short
  explanation on hovering.
2012-04-17 14:04:57 -04:00
Eli Barzilay
115a3dfbac Make it possible to run each scribble test file by itself. 2012-04-17 14:04:57 -04:00
Eli Barzilay
7360c4c3c2 Add a blurb on names in the json library. 2012-04-17 14:04:57 -04:00
Vincent St-Amour
8cbd26899f Include both float zeroes in Non-Negative and Non-Positive types.
Closes PR12706.
2012-04-16 17:51:04 -04:00
Matthew Flatt
1bcf56f5e9 fix problem with continuations and `call-in-nested-thread'
Closes PR 12705

Merge to 5.3
2012-04-16 13:33:50 -06:00
Matthew Flatt
38e628be80 ffi/com: add support for type descriptions on values 2012-04-16 08:47:13 -06:00
Matthew Flatt
ff378d12ce fix interaction of delimited continuations and stack overflow
Closes PR 12702, 12704

Merge to 5.3
2012-04-15 05:37:45 -06:00
Matthew Flatt
b09870cf7e racket/draw: fix result on non-void `record-dc%' methods
Merge to 5.3
2012-04-15 05:37:44 -06:00
Matthew Flatt
4179cbfa63 enforce ranges on all integer types
DO NOT merge to 5.3
2012-04-15 05:37:44 -06:00
Matthew Flatt
57f101c74c fix contract in docs
Merge to 5.3
2012-04-15 05:37:44 -06:00
Matthew Flatt
6566bf5d15 fix most-negative number and _int64 on a 64-bit platform
Closes PR 12703

Merge to 5.3
2012-04-15 05:37:44 -06:00
Matthew Flatt
2d6073f59f docs: will executors are synchronizable events
Merge to 5.3
2012-04-15 05:37:35 -06:00
Ryan Culpepper
9f492c10a7 db: fix mysql large blobs, other changes
MySQL:
 - support multi-packet data rows
 - fixed very old length-coding bug (24 vs 32 bit length)
 - support large params via long-data packets
 - 'any' pseudo-type for parameters
 - distinguish 'blob'/'text', 'var-string'/'var-binary'
 - read 'text' results as string, not bytes
SQLite3:
 - enabled sql types tests
2012-04-14 19:47:32 -06:00
Ryan Culpepper
2dadc4dbac syntax/parse: increase timeout for stress-template 2012-04-14 19:47:31 -06:00
Ryan Culpepper
5d49663b83 added begin-on-demand (combo of module* and lazy-require) 2012-04-14 17:16:01 -06:00
Robby Findler
7bd1d5ed9b fix the contract-name accessor for struct/dc contracts 2012-04-14 15:14:21 -05:00
Robby Findler
0b71ebecaf adjust the way 'new' is laid out in the documentation to be more DrRacket-like 2012-04-14 14:54:19 -05:00
Robby Findler
2d08319b6c mirror an earlier optimization in opt/c whereby (-> any/c ... any)
just turns into an arity check
2012-04-13 20:04:23 -05:00
Robby Findler
9344a7a242 fix chaperone-contract? on opt/c-produced contracts 2012-04-13 10:09:55 -05:00
Robby Findler
35e818ae50 the autosave file might be deleted by the user after it is created
the first time but before the file is actually saved. guard against that.

closes PR 12698
2012-04-13 10:04:25 -05:00
Robby Findler
5e03c7cf99 Added struct/dc and cleaned up a bunch of stuff in the contract
library (mostly in opt/c)

Specifically:

- add inlining declaration for ->i helper function

- modernized the opt/c contracts and improved them so that mutually
  recursive define-opt/c functions recognize each other instead of
  bailing out to the slow path.

- added =/c as an optimized contract

- improve the error message for the between and comparison opt
  contracts

- adjust the blame struct so the name is created lazily, since opt/c
  contracts just stick a copy o the contract into the thunk that
  creates the name and we don't want to run those effects twice if we
  can help it.
2012-04-12 22:49:50 -05:00
Sam Tobin-Hochstadt
fdb70316f1 Fix documentation for `implies'. 2012-04-12 16:28:52 -04:00
Jon Rafkind
c390d96780 [honu] only allow semicolons in expression sequence position 2012-04-12 12:50:44 -06:00
Jon Rafkind
fa8377883d [honu] explicitly check for commas when parsing a comma separated expression sequence 2012-04-12 12:50:44 -06:00
Matthew Flatt
c695727aec ffi/unsafe/com: fix arrays of 'any 2012-04-11 19:12:32 -06:00
Matthew Flatt
89307edbce ffi/unsafe/com: avoid inclusion of no-error result code in error messages
Merge to 5.3
2012-04-11 17:55:12 -06:00
Matthew Flatt
bcb22a3adb ffi/unsafe/com: repair for optional `any' arguments
Merge to 5.3
2012-04-11 17:49:08 -06:00
Matthew Flatt
c5e5a0349a add #:line-number-sep' to codeblock' 2012-04-11 11:49:01 -06:00
Matthew Flatt
7b322c151d fix `record-dc%' test
Merge to 5.3
2012-04-11 11:49:01 -06:00
Matthew Flatt
3ecf06a8ba generalize `xml/plist' to read/write any plist value
Merge to 5.3
2012-04-10 16:38:54 -06:00
Matthew Flatt
1914345af4 fix submodule re-`expand' problem
Closes PR 12691

Merge to 5.3
2012-04-10 15:57:50 -06:00
Matthew Flatt
c64c55b86f fix mzlib contract name test
Merge to 5.3
2012-04-10 15:57:50 -06:00
Ryan Culpepper
211e382a70 syntax/parse: update phase discussion with begin-for-syntax
merge to 5.3
2012-04-10 15:50:32 -06:00
Ryan Culpepper
096e3d689b increase drdr timeout for template stress test
merge to 5.3
2012-04-10 15:50:32 -06:00
Ryan Culpepper
b19c982faf change db collect to be part of "mz" ("textual") distribution
merge to 5.3
2012-04-10 15:50:32 -06:00
Jon Rafkind
76632c7914 [honu] ignore parse-error tokens when building the first syntax tree 2012-04-10 13:33:06 -06:00
Kevin Tew
e3c54d6510 [Distributed Places] white space fixes 2012-04-09 13:20:27 -06:00
Kevin Tew
823c091e8b [Distributed Places] cleanup docs 2012-04-09 13:15:00 -06:00
Kevin Tew
033cdc1413 [Distributed Places] add solo connections and tcp-connection-died handler 2012-04-09 13:15:00 -06:00
Kevin Tew
ee463056a8 [Distributed Places] fully connected network patch 2012-04-09 13:15:00 -06:00
Kevin Tew
394373ab2d [Distributed Places] Merge place and connection 2012-04-09 13:15:00 -06:00
Jay McCarthy
4f8a13062f Fixing PR 12690 2012-04-09 12:53:30 -06:00
Matthew Flatt
104e70bf65 fix JIT bug related to list-ref' and list-tail'
Closes PR 12688
2012-04-08 17:16:36 -06:00
Matthew Flatt
f968ca3db6 add `gc-info' to doc index 2012-04-08 17:16:36 -06:00
Vincent St-Amour
f3bbe1914d Improve type for expt. 2012-04-08 13:08:17 -04:00
Asumu Takikawa
c40ce285cf Tweak snip/draw contracts for better error messages.
This commit names some intermediate class contracts,
which now print better due to a recent change by Robby.
2012-04-08 12:45:42 -04:00
Asumu Takikawa
a376725c77 Move draw/snip contracts to private/ 2012-04-08 12:28:22 -04:00
Matthew Flatt
2bdcdbb197 racket/draw, racket/gui: modernize contracts, mostly in documentation
Use `or/c' instead of `one-of/c', `#f' instead of `false/c'.
2012-04-06 18:51:10 -06:00
Matthew Flatt
971bee1d4b fix docs for `dump-memory-stats' 2012-04-06 18:51:10 -06:00
Matthew Flatt
351e82735b move and rename pict `convert' support
Renamed `convert' to `pict-convert', etc., to avoid confusion
with `file/convert' bindings.

Moved out of `slideshow/pict' to `slideshow/pict-convert', because
most `slideshow/pict' clients do not need it.
2012-04-06 18:51:10 -06:00
Robby Findler
1a9ab0b018 made class/c use the name from the context for the name of the contract, when available 2012-04-06 16:21:10 -05:00
Robby Findler
483dde9ea8 add keywords as values that coerce into contracts
adjust 'one-of/c' and 'symbols' so they just use or/c (when possible)

improve or/c's stronger check so that, in the case that or/c is
getting eq or equal contracts, or/c's stronger check is as good as
'symbols'/'one-of/c's stronger check is.
2012-04-06 16:21:07 -05:00
Jon Rafkind
bbc806732c [honu] always reparse the output of honu-expression. provide honu-comma so that it works with literal sets 2012-04-06 12:36:19 -06:00
Jon Rafkind
6531ce7547 [honu] use a local macro inside a where expression 2012-04-06 12:36:18 -06:00
Sam Tobin-Hochstadt
0b3ac2b378 Add Mozilla to supporters, add links. 2012-04-06 10:24:58 -04:00
Sam Tobin-Hochstadt
1abb027fc7 Fix Typed Racket build with contracts enabled. 2012-04-06 10:24:49 -04:00
Robby Findler
23b9d8472f removed printf 2012-04-06 07:51:03 -05:00
Robby Findler
aaa15946fc contract stronger fix for contract structs 2012-04-05 23:18:22 -05:00
David Van Horn
f6a8024aed Fix documentation link for provide in eopl (mzscheme => racket).
Closes PR12681.
2012-04-05 23:24:43 -04:00
Vincent St-Amour
e26201b4f6 Fix type of * with no arguments.
Closes PR 12679.
2012-04-05 19:18:20 -04:00
J. Ian Johnson
3caf0aca23 Sort bibliographies by authors' last names.
(Tweaked by Vincent.)
2012-04-05 19:04:54 -04:00
Robby Findler
a475c078e2 add splicing-syntax-parameterize to the default indentation prefs 2012-04-05 17:34:45 -05:00
Robby Findler
ada5382bea adjust the docs for response/xexpr so that it shows up as coming from
web-server as well as web-server/http/xexpr
2012-04-05 17:08:47 -05:00
Matthew Flatt
9d563c786a racket/gui, win32: fix problem with modal dialogs
Although most events in other frames were blocked, it was
possible to bring other frames to the front and to select
menu items in other frames.
2012-04-05 06:58:53 -06:00
Matthew Flatt
20256a3f15 scribble: add 'block style for `table' 2012-04-05 06:58:53 -06:00
Robby Findler
526b659616 account for long search strings when opening the results window
in "search in files"

closes PR 12673
2012-04-05 07:29:40 -05:00
Robby Findler
aa8b280f1c adjust the splay tree implementation so that it creates fewer cons
cells when searching in the tree

Two tricks: represent lists of nodes as improper lists so singleton
lists don't allocate a cons and pass around two accumulators that
correspond to the hd & tl of a path, instead of cons'ing that up
into a list and them immediately taking it apart again

measurement: when starting up drracket with
collects/drracket/private/unit.rkt and then waiting for the colorer to
finish, and then inserting an open quote right before the first open
quote in the file (and waiting again for the colorer to finish)
creates 249000 cons cells before this change and 116000 after this
change

After a little more work, I'm pretty much convinced that this was
the wrong approach and that the splaying implementation should just
change to not allocate the paths into lists at all, thus removing
the other 116k cons cells. (I plan to get to this another day;
it should not be difficult now that I roughly understand how these
things work.)

I also looked into top-down splaying and found these notes to
be illuminating:

  http://digital.cs.usu.edu/~allan/DS/Notes/Ch22.pdf

They essentially convinced me that we cannot use top-down splaying
here, since the "reassembling" stage requires moving some arbitrary,
unexplored subtree from a right-child to a left-child, and thus the
left-subtree-length cannot be updated properly.
2012-04-05 07:14:52 -05:00
Matthew Flatt
a984f68a46 gui-debugger: update for submodules
Closes PR 12668
2012-04-04 07:50:41 -06:00
Matthew Flatt
16d65ed251 fix `raco demod' for new submodule fields in zo structs 2012-04-04 07:37:30 -06:00
Matthew Flatt
e62f812941 ffi/com: fix another GC problem, this time related to custodians 2012-04-04 07:16:50 -06:00
Matthew Flatt
522a92970e ffi/com: fix GC issue related to COM events 2012-04-04 07:00:25 -06:00
Eli Barzilay
8934b64beb Remove bold leftover reference to "search.html".
(This was using the custom google search, which is no longer maintained.)

Closes PR 12671.
2012-04-04 02:52:51 -04:00
Danny Yoo
8f2ea07ec5 Optimize cpt-table-lookup
(Tweaked by Eli.)
2012-04-04 02:52:51 -04:00
Rodolfo Henrique Carvalho
b87c2a18a4 Fix typo. 2012-04-04 02:52:51 -04:00
Matthew Flatt
6afc9d5e8c racket/gui: fix reparent' with a pane%' target 2012-04-03 18:36:28 -06:00
Matthew Flatt
89ef600b6e ffi/unsafe/com: com-object->eq?' implies equal?' 2012-04-03 18:36:27 -06:00
Matthew Flatt
e05e549021 streamline `vectorof' contact implementation
Saves about 10% in a benchmark that applies a
`vectorof' contract frequently.
2012-04-03 18:36:27 -06:00
Robby Findler
5dad811a5d rackety 2012-04-03 17:08:00 -05:00
Robby Findler
404b4da138 avoid allocation for 'paren' structs 2012-04-03 17:08:00 -05:00
Stevie Strickland
f37ff698b4 Rewrite hash-keys so that only keys, not values, are accessed.
This distinction is important after the introduction of chaperones and
impersonators, since accessing a key and accessing its corresponding value
may have different effects, and hash-keys should only trigger the former.
2012-04-03 12:52:03 -04:00
Matthew Flatt
d635b93644 slideshow/pict: sync text' size limit with font%' 2012-04-02 16:45:37 -06:00
Matthew Flatt
3bf5389237 racket/gui: fix `slider%' range checking
Closes PR 12669
2012-04-02 15:25:47 -06:00
Matthew Flatt
cb7200295e ffi/unsafe/com: fix custodian and multi-instance problems 2012-04-02 14:36:23 -06:00
Robby Findler
f5449f38e8 adjust url-exception so it recognizes the same exceptions it used to 2012-04-01 22:16:35 -05:00
Matthew Flatt
2bf05a8df3 ffi/unsafe/com repairs 2012-04-01 12:58:16 -06:00
Asumu Takikawa
4c022046d5 Fix contract on set-argb-pixels 2012-04-01 01:54:33 -04:00
Robby Findler
4360e62c22 improve the gui for specifying the submodules to run 2012-03-31 22:46:44 -05:00
Robby Findler
033536e746 select the contents of the search string in the 'search in files' dialog
closes PR 12667
2012-03-31 12:12:50 -05:00
Asumu Takikawa
f13d9a56d2 Update racket/draw contracts. 2012-03-31 11:46:04 -04:00
Asumu Takikawa
94a837fcc8 Remove dynamic checks from racket/draw.
Now that this code has contracts, these checks are
redundant. The contracts are at least as precise as the
checks are.
2012-03-31 11:46:04 -04:00
Asumu Takikawa
c758f65a0b Uncomment & fix racket/draw contracts
Use dummy values (see also racket/snip) to avoid cycles.
2012-03-31 11:46:04 -04:00
Matthew Flatt
c83df32440 try to improve docs for `make-keyword-procedure' 2012-03-31 07:45:53 -06:00
Mike Sperber
cb438298cd Synch German string constants with latest. 2012-03-31 14:06:08 +02:00
Jay McCarthy
1d19a844f4 Moving tests re: Sam 2012-03-30 23:54:42 -06:00
Asumu Takikawa
0f5f611f12 Fix docs for get-selected-text-color method. 2012-03-31 00:43:43 -04:00
Asumu Takikawa
5340309080 Make has-alpha-channel? return a boolean.
This method used to violate the documented contract.
2012-03-30 23:34:35 -04:00
Asumu Takikawa
2e1d59f7b2 Class contracts for racket/snip. 2012-03-30 23:34:35 -04:00
Asumu Takikawa
303110583b Class contracts for racket/draw. 2012-03-30 23:34:35 -04:00
Asumu Takikawa
d7fefc848b Fix requires to avoid circular dependencies. 2012-03-30 23:34:34 -04:00
Robby Findler
8e35fd01a5 forgot the result contract 2012-03-30 20:57:53 -05:00
Robby Findler
4b57482298 adjust DrRacket submodule-running options so the user
has more control over which ones get run
2012-03-30 16:42:34 -05:00
Robby Findler
92e8740105 add the #:validate argument to get-text-from-user 2012-03-30 16:42:34 -05:00
Kevin Tew
f777020eef [Distributed Places] Renamed uses of vm to node, removed export of coercion functions 2012-03-30 11:58:39 -06:00
Robby Findler
97b76d474e some cleanups, thanks to Eli 2012-03-30 10:44:42 -05:00
Robby Findler
7e86c04847 update module language part of language-test.rkt for submodules 2012-03-30 10:44:42 -05:00
Matthew Flatt
2785f9cf9a fix priority of refresh for SGL example
While it looks this example was always broken in a sense, the
`racket/gui' make the problem more prominent.

Closes PR 12662
2012-03-30 07:56:43 -06:00
Robby Findler
5c7a299c04 make DrRacket run test submodules (in the module language) by default.
Add an option in the language dialog to disable that behavior
2012-03-29 22:12:14 -05:00
Jay McCarthy
1ce1277d1e Set the name statically re: Robby 2012-03-29 18:51:02 -06:00
Robby Findler
86572cc8c3 adjust the contract on string->url so that it actually catches all of
the errors that would be signalled by the body. also, remove
url-regexp from the exports (it was only recently added)

I believe this eliminates two of Eli's concerns:

  - the contract is no longer so painful to read

  - the performance is more reasonable.

Specifically, for the performance, here are the times I see to call
string->url on "http://www.racket-lang.org":

no contract: any/c
cpu time: 564 real time: 566 gc time: 3

weak contract: (-> (or/c string? bytes?) url?)
cpu time: 590 real time: 590 gc time: 3

strong, regexp-based contract:
(-> (or/c (not/c #rx"^([^:/?#]*):") #rx"^[a-zA-Z][a-zA-Z0-9+.-]*:") url?)
cpu time: 632 real time: 633 gc time: 5

This appears to be about a 10% slowdown for the regexp-based contract
over the weaker contract.

related to PR 12652
2012-03-29 19:31:32 -05:00
Jay McCarthy
1fd8865e23 Fixing PR12658 2012-03-29 16:06:32 -06:00
Jay McCarthy
13e36fbec4 Autobib errors with no authors or dates on a bib entry. Test included. 2012-03-29 15:44:27 -06:00
Matthew Flatt
d67997293d switch places tests to raco test' instead of racket -tm' protocol 2012-03-29 14:55:14 -06:00
Matthew Flatt
63a4414863 make --run-if-absent' the default mode for raco test'
This convention makes it easier to deal with a set
of ".rkt" files that implement tests, while a `test'
module implements a `main'-like split for some of the
files.
2012-03-29 14:55:14 -06:00
Matthew Flatt
96e4fa0d13 promote raco test'; demote raco unpack' 2012-03-29 14:55:14 -06:00
Matthew Flatt
738cac3d24 generalize `malloc' to allow a 0-sized request
Past experience suggests that this is generally better than adding
`zero?' tests at various places that might otherwise call `malloc'.
2012-03-29 14:55:14 -06:00
Siddharth Agarwal
a73b9bb788 ffi: extend _list and _vector to support zero-length output 2012-03-29 14:55:14 -06:00
Danny Yoo
0cfb3f1d39 fix flush for `make-pipe-with-specials'
Closes PR 12659
2012-03-29 14:55:13 -06:00
Matthew Flatt
f301838511 fix a syntax-object problem related to module bindings
The immediate symptom was that `(provide (all-defined-out))'
didn't work in a `module+'-based submodule, but there were
also non-submodule ways to expose the problem.
2012-03-29 14:55:13 -06:00
Vincent St-Amour
69899c33fc Fix type of expt.
Closes PR 12660.
2012-03-29 15:39:24 -04:00
Vincent St-Amour
054f4d9b56 Fix optimization of first, rest, etc. 2012-03-29 15:39:24 -04:00
John Clements
fd6dddb8d0 deleted test-docs-complete.rkt 2012-03-29 10:10:01 -07:00
Matthew Flatt
dfca7d89d9 documentation clarification 2012-03-29 06:46:58 -06:00
Matthew Flatt
140a50d04e fix a problem with submodule expansion 2012-03-29 06:46:58 -06:00
Robby Findler
cd576ffb3c adjust the easter egg test suite so it can be loaded by Sam's lib
to run all kinds of days.

also fix a bug so that it properly resets the prefs back to the
defaults (and thus has to explicitly set the language)
2012-03-29 07:32:18 -05:00
Kevin Tew
7fde2894d1 Distributed place cleanup due to feedback from Matthew
Removed use of (get-current-module-path)
Removed /2s
Removed use of vm and compute adjetives
2012-03-28 18:53:37 -06:00
Kevin Tew
bba967144b quote-module-name and quote-module-path now take an optional submodule path
(quote-module-name "..")
(quote-module-path ".." 'A 'B)
2012-03-28 18:52:02 -06:00
Jay McCarthy
f6b2913b26 Moving the place where formlet tech links go from the technical description to the tutorial 2012-03-28 14:37:40 -06:00
Robby Findler
a90d48975a use regexp-match? instead of regexp-match in regexp-based contracts 2012-03-28 10:59:31 -05:00
Matthew Flatt
6e5cf70c95 draw picts in DrRacket with 'aligned smoothing 2012-03-28 06:41:00 -06:00
Matthew Flatt
e7f286b87d fix `make-handle-brush' to retain original pointer
In case there's a finalizer attached to the pointer object.
2012-03-28 06:26:58 -06:00
Matthew Flatt
4b36e708a3 fix `record-dc%' problem with regions
Closes PR 12655
2012-03-28 06:26:58 -06:00
Robby Findler
a1446a037b be a bit more systematic with tabbing and magic square-bracket-ing for 'for's
also, add in for/sum and for/product
2012-03-28 07:21:09 -05:00
Jay McCarthy
86c1504c19 Removing an error message from dropping HTTP connections 2012-03-27 22:46:38 -06:00
Matthew Flatt
4f197f4ba9 racket/draw: add get-handle' to bitmap%'; add `make-handle-brush'
The `get-handle' method provides the underlying Cairo surface for
a bitmap, while the unsafe `make-handle-brush' function supports the
use of a Cairo surface as a `brush%'.

Also, add `racket/draw/unsafe/cairo-lib', which simplifies access
Cairo from external libraries. Documenting `racket/draw/unsafe/cairo'
might be better, but that's a lot more work.
2012-03-27 18:14:26 -06:00
Matthew Flatt
4735666cd9 scribble: for Latex/PDF output, use \makebox for precise pict widths
Otherwise, the width of a pict is implicitly rounded up, since
the PDF bounding box is an integer.
2012-03-27 13:14:54 -06:00
Robby Findler
676f744c1d add 'match-pattern?' 2012-03-27 12:21:17 -05:00
Robby Findler
fdf3fa6492 apply Andy's diff (and adjust the documentation correspondingly)
closes PR 12652
2012-03-27 12:21:17 -05:00
Matthew Flatt
b3002cfab0 add hinting configuration to `font%'
The default is that hiniting is enabled, which causes some text
metrics (notably width) to be rounded to integer values, which makes
spacing more consistent. This default is backward-compatible. The
non-default 'unaligned mode refrains from rounding, which makes metric
information scale correctly and improves output for PS/PDF (such as
Redex output).

The `text' function from `slideshow/pict' defaults to
disabling hinting --- which is consistent with its default to combine
text instead of drawing character-by-character -- so slides and Redex
inherit the improvement.
2012-03-27 11:16:27 -06:00
Sam Tobin-Hochstadt
2eeff9d1fc Revise `Path-String' wording. Thanks Robby. 2012-03-27 12:27:30 -04:00
Sam Tobin-Hochstadt
8968979422 Document relation between Path-String' and path-string?'. 2012-03-27 10:35:37 -04:00
Matthias Felleisen
1711ab96ba added vector->list 2012-03-27 10:19:52 -04:00
Robby Findler
e777796a74 fix recently introduced bug in drracket test suites 2012-03-26 17:13:42 -05:00
Robby Findler
617df05ef7 added a test suite for DrRacket that checks to make sure the Dear Dr
starts up on all of the days that have easter eggs (well, except 7/2,
since that one is hard to interpose on and hasn't changed in a long
time)
2012-03-26 15:43:56 -05:00
Robby Findler
b640b6b41c fix splash screen error handling code 2012-03-26 15:43:55 -05:00
Eli Barzilay
8203cf3769 v5.2.1 re-built installer sizes 2012-03-26 15:51:22 -04:00
Robby Findler
bef9e11272 re-unbreak DrRacket 2012-03-26 07:51:57 -05:00
Matthew Flatt
704c320131 unbreak DrRacket 2012-03-26 06:33:37 -06:00
Matthew Flatt
9143c1c7df fix `syntax/loc' to preserve properties 2012-03-25 19:25:35 -06:00
Matthew Flatt
2d87d48ebd make HTML rednering work when a `part' has not tags 2012-03-25 19:25:35 -06:00
Matthew Flatt
6c1e1635ab add missing "jfp.css" 2012-03-25 19:25:35 -06:00
Eli Barzilay
cffed0fab4 Test suite for `known-module', should have been included in the xrepl change. 2012-03-25 21:01:57 -04:00
Eli Barzilay
592d23f5b5 Minor improvement: use `make-rename-transformer' instead of a macro. 2012-03-25 20:57:53 -04:00
Eli Barzilay
cd4121548e Improve intro to the concept of phases, fix some scribble typos, reformat. 2012-03-25 20:57:52 -04:00
Eli Barzilay
89dee6f6c1 Xrepl improvements, mainly around the treatment of module names.
* Get rid of the concept of `modspec': `getarg' now has `require' for
  require specs and `module' for a module name (the latter is what all
  previous uses of 'modspec except for ,require really needed); command
  descriptions use "<require-spec>" and "<module>", documentation
  adjusted as well.

* `module-name?' etc turn to `known-module' and `known-module-name',
  with a saner behavior, and tests to keep it sane.

* This cleans up a lot of things.  Two specific points: ,switch works
  better with toplevel-defined modules (see the corresponding change in
  the test suite), and also fixes PR 12148.

* Ensure that ,sh commands return void.

* Add tests for ,r with non-atomic require spec, and for use of $F in
  ,sh commands.

* Improved the test suite, including uses of `module+' so each file can
  be run by itself to perform a subset of the tests.
2012-03-25 20:57:52 -04:00
Robby Findler
5280ef1517 clear the interactions text's undos from the drracket thread, not from the user thread 2012-03-25 17:25:48 -05:00
Robby Findler
0d6b825377 add a preference to control whether or not there is an extra
pixel of space in between lines in DrRacket.

This change is based on Matthew's experience having a look
at the font setup on the three platforms.

He writes:
>  * Mac OS X: the convention seems to be to add space between lines.
>   TextEdit, for example, looks like DrRacket: the maze has spaces.
>
>   (I can't find a font that makes the maze look right, actually, even
>   if I adjust the line spacing.)
>
>  * Windows: the convention seems to be that space is built into the
>   font. DrRacket (and SirMail) draw lines more sparsely than Notepad.
>
>   Perhaps consistent with the differing conventions, the height of
>   "Courier New" at 11-pixel size is 14 on Windows, 13 on Mac OS X.
>
>  * Unix: the convention seems to be to add space. DrRacket looks like
>   the default Terminal and Text Editor programs on Ubuntu.
>
>   The maze nevertheless looks right everywhere, because the glyphs
>   extend an extra pixel above the declared bounding box!
2012-03-24 20:20:05 -05:00
Sam Tobin-Hochstadt
c5e30d8af5 Use the correct #%app for applications of `local' bound identifiers in the student languages. 2012-03-24 16:04:08 -04:00
Sam Tobin-Hochstadt
a39001911c Improve filter for `path-string?'. 2012-03-24 16:04:08 -04:00
Matthew Flatt
ed05c385e8 coerce picts to PS/PDF in 'smoothed mode 2012-03-24 11:04:17 -06:00
Matthew Flatt
0b783f80b7 fix problem with measuring text and font substitutions 2012-03-23 15:55:35 -06:00
Jay McCarthy
dfb4bc112d Removing the thread previously introduced which is now no longer necessary given the real problem 2012-03-23 10:47:56 -06:00
Jay McCarthy
9b579d8c2a Fixing the error message from PR12443 2012-03-23 10:44:43 -06:00
Jay McCarthy
99f1cc44df redex-match violates its documented contract
This patch fixes the problem that the hole matcher may return an empty
list rather than a #f that gets sent to the caller of redex-match. I
re-ran the Redex tests and found no violations. However, I am not
confident that there isn't a more correct place to put this '() -> #f
replacement.

I will be immediately forwarding this push email to Robby to have him
check it.
2012-03-23 06:39:14 -06:00
Matthew Flatt
523ccff762 minor doc improvements 2012-03-22 19:19:33 -06:00
Matthew Flatt
ae89e210fb allow (submod "..")' as a shorthand for (submod "." "..")'
Also, `(submod ".")' is allowed as a module path; it's not useful,
but it makes the grammar slightly more regular.
2012-03-22 18:43:11 -06:00
Matthew Flatt
876bc6f02b doc corrections and improvements related to submodules
In particular, add `module+' to the Guide.
2012-03-22 15:12:55 -06:00
Kevin Tew
d4d5ca70fb Hold reference to original thread during BEGIN_ESCAPABLE in place-channel sync
Fixes several bugs related to killed threads that were in the middle of
syncing on place-channels.
2012-03-22 14:52:48 -06:00
Matthew Flatt
c1dbaff6b8 revise phases section in small ways to match the guide's style 2012-03-22 12:41:55 -06:00
Matthew Flatt
5cb3422ea9 semi-export ability to extract multiple images from gif 2012-03-21 19:37:46 -06:00
Robby Findler
1b0df5d48d fix rotate so that it can accept non-integral arguments
closes PR 12632
2012-03-21 19:45:45 -05:00
Ryan Culpepper
74ca931f5a more template improvements
- loosen pattern variable depth rules (now compatible with syntax)
- generalize ?? form to head-templates
- doc improvements
- propagate paren-shape property
2012-03-21 17:48:10 -06:00
Ryan Culpepper
df265ddc67 syntax/parse: eliminate old minimatch struct syntaxes 2012-03-21 17:33:08 -06:00
Ryan Culpepper
6c369f2563 updates to syntax/parse/experimental/template
- changed substitute to use closure-compilation
- added stress/perf test for templates
- updated minimatch with vector patterns
- split substitute into separate file, minimize dependencies
- do ellipsis optimization dynamically
- validate guides: check var indexes
2012-03-21 17:33:08 -06:00
Robby Findler
f77467311a specify 'angle's range 2012-03-21 16:59:53 -05:00
Jon Rafkind
a606f6614b [honu] add two more tests 2012-03-20 11:32:46 -06:00
Jon Rafkind
918c87e96b [honu] return the current expression when a semicolon is parsed 2012-03-20 11:32:46 -06:00
Matthew Flatt
47ae2b387a fix shaodwing problem in `module*' 2012-03-20 07:28:35 -06:00
Matthew Flatt
5551e287da fix typo 2012-03-19 14:34:33 -06:00
Sam Tobin-Hochstadt
56120d9697 Fix types for regexp-match*' and regexp-match-positions*'.
Note that the keyword arguments themselves are not yet typed.
2012-03-19 15:59:34 -04:00
Vincent St-Amour
999de5a488 Fix bug in autobib's handling of urls. 2012-03-19 11:10:22 -04:00
Robby Findler
9bc1684c9b fix problems with user-defined keybindings and the example in the docs
as reported on the dev mailing list by António Menezes Leitao
2012-03-19 09:58:59 -05:00