Commit Graph

22006 Commits

Author SHA1 Message Date
Ryan Culpepper
8392f20b8f db: fix async test for mysql 2012-03-18 04:57:41 -06:00
Ryan Culpepper
c10bf245c5 db: fix mysql close-on-exec slowdown (TCP issue) 2012-03-18 03:31:17 -06:00
Ryan Culpepper
6b02b507a9 macro-debugger: fix parser for local-actions in mod pass 2 2012-03-18 03:31:17 -06:00
Ryan Culpepper
71772ba6c0 macro-debugger: internal debugging improvements 2012-03-18 03:31:17 -06:00
Robby Findler
4fe8cd344c disable the drracket toolbar buttons for scribble/lp files 2012-03-17 19:24:33 -05:00
Robby Findler
9d43203990 adjusted the render-* functions so they produce .pdf if the given
filename ends with #rx#"[.]pdf".
2012-03-17 08:36:34 -05:00
Jay McCarthy
145efa622e Adding #lang web-server/base 2012-03-16 11:54:46 -06:00
Jay McCarthy
a55029cf76 Fixes PR12638 2012-03-16 11:54:46 -06:00
Kevin Tew
666c0fdb57 Fix sync/timeout hang due to place channels 2012-03-16 08:18:05 -06:00
Eli Barzilay
f3a21c6aba Remove typed versions of the cgi exceptions. 2012-03-16 03:45:35 -04:00
Eli Barzilay
9d239170cf Add to/from bytes functions to the json library.
Also add a distribution specs line.
2012-03-16 02:55:35 -04:00
Eli Barzilay
818e434c60 Remove no-longer used net/cgi exceptions. 2012-03-16 02:55:35 -04:00
Jay McCarthy
03d3a8f429 Clarifying what #lang web-server has 2012-03-15 12:03:34 -06:00
Ryan Culpepper
e13cce267d macro-debugger: workaround for instrumentation problem in provide
The expansion observer is not propagated to expand_all_provides.
2012-03-14 23:19:25 -06:00
Ryan Culpepper
4b6c71eaae macro-debugger: improve internal error debugging support 2012-03-14 23:03:47 -06:00
Ryan Culpepper
57bdb62547 macro-debugger: fix deriv parser for begin-for-syntax 2012-03-14 22:25:42 -06:00
Jay McCarthy
aaf53cb1d2 Fixing recent errors 2012-03-14 13:04:30 -06:00
Jay McCarthy
240dbc3c3d Renaming slice usage 2012-03-14 12:46:25 -06:00
Ryan Culpepper
a564110c08 syntax/parse: change expectstack rep to reduce/consolidate allocations 2012-03-13 19:50:09 -06:00
Ryan Culpepper
5db8553ea1 syntax/parse: expect:thing stores stx being matched 2012-03-13 19:50:09 -06:00
Ryan Culpepper
6cf3127cf9 syntax/parse: put failure information in syntax exn 2012-03-13 19:50:08 -06:00
Ryan Culpepper
e41ff8609c db: trim todo file 2012-03-13 19:50:08 -06:00
Ryan Culpepper
1b7368f80c db: fix memory leaks
- sqlite3: table prevented pst gc unless close-on-exec
 - statement cache wrongly disabled close-on-exec
   (not a leak, just gc'd very slowly)
 - limit statement cache size
2012-03-13 19:50:08 -06:00
Matthew Flatt
01f1fd56b4 adjust cm to not cmopile when it's not supposed to use source 2012-03-13 18:46:28 -06:00
James Ian Johnson
6e7fb4e7ef Bibliographies had a nondeterministic render order. Fixed. Added tests for disambiguation. 2012-03-13 18:38:31 -04:00
James Ian Johnson
337be4a677 It was possible for a multi-citation to be ambiguous and mention a something not referenced anywhere else. Added a safeguard so that the citation hash is properly populated. 2012-03-13 18:38:30 -04:00
James Ian Johnson
2c63ce2286 Added the ability to disambiguate between citations using autobib. 2012-03-13 18:38:30 -04:00
James Ian Johnson
f3dc5796be Better disambiguation for autobib. Delays rendering bib elements because the disambiguation must be accounted for. 2012-03-13 18:38:30 -04:00
James Ian Johnson
6f1c6b7d92 Added the ability to disambiguate between citations using autobib. 2012-03-13 18:38:30 -04:00
Robby Findler
ac99b732fa fix missing #:eval in redex tutorial 2012-03-13 16:44:38 -05:00
Matthew Flatt
99639c1999 errortrace repair
Closes PR 12629
2012-03-13 14:35:49 -06:00
Matthew Flatt
415b1eabc4 more load[/use-compiled] handler fixes for submodules
Closes PR 12630
2012-03-13 14:31:40 -06:00
Matthew Flatt
e01ebf6095 try module+' in place of slice' 2012-03-13 14:31:40 -06:00
John Clements
8d6e9e79a4 cleanup and refactoring of run-teaching-program, minor teachpack stepper fix
It looks like run-teaching-program hasn't been touched in quite a while.
To begin with, the "rewrite-module" function used to add code to print
out values of non-define exprs, but this is no longer necessary. In fact,
the only thing that it does now is to discard "provide" statements, and
even this may be unnecessary. I rewrote big chunks of this (short) file
to introduce defines, eliminate unnecessary functions, and add stepper-
skip-completely annotations to the requires associated with teachpacks.

Also, it appears that the 'rep' argument to expand-teaching-program
was entirely superfluous; I removed it from the argument list, and also
from the three places in the main tree (deinprogramm, lang, and the stepper)
that call this function.

Let me know of any problems seen with teachpack requires....
2012-03-13 12:09:41 -07:00
Robby Findler
4b18db1809 special case string snips that contain only newlines. This gets an
extra 1/2 megabyte is savings when opening up unit-size.rkt
2012-03-13 10:15:07 -05:00
Eli Barzilay
b2d2e533f9 More changes to platform names. 2012-03-13 10:29:14 -04:00
Matthew Flatt
1228770550 Modernize platform names, especially for Mac OS X. 2012-03-13 10:29:14 -04:00
Eli Barzilay
540213236a Major code revision for the json library.
* Modernize, improve, reformat, reorganize, etc.

* Use 'null as the default translation for json `null'.  Add keyword
  `#:null' arguments to control it, and a `json-null' parameter to
  change the default.  (Note that there is no ambiguity: symbols are
  used in hash keys, and JSON restricts them to always be strings, so
  `null' can never be a hash key.)

* Properly decode double \u-escape sequences (as UTF-16 surrogate
  pairs).

* Add a keyword option to do more string encoding of all non-ASCII
  characters.

* Rename `json->jsexpr' (and other way) to `string->jsexpr'.  This is
  because (a) after using it for a while I still can't remember which
  side is which and a `string' in the name makes it clear, (b) it
  follows the similar `xexpr' functions.
2012-03-13 10:29:14 -04:00
Eli Barzilay
a4ba7c8ebc Some semi-quick tests for the json code.
(With some items that need to be done.)
2012-03-13 10:29:14 -04:00
Eli Barzilay
b35d1b01b2 Initial import of Dave Herman's json library.
This commit has the unmodified original.
2012-03-13 10:29:14 -04:00
Eli Barzilay
0eb5f09e23 Add #:match-select' and #:gap-select' keyword arguments to
`regexp-match*', and the two `-positions' variants.
2012-03-13 10:29:14 -04:00
Eli Barzilay
f538c2e076 Fix a macro problem in "racket/private/string.rkt".
`port-success-k' is used in a single place, and instead of a simple
`lambda' expression it was used with (and ... (lambda ...)), which lead
to duplication of code.  Instead, move the question into the
`regexp-loop' macro.  (The compiled zo file is indeed smaller after this
change.)
2012-03-13 10:29:14 -04:00
Tom McNulty
14084d560d Add function binding-assq-all to request-structs.rkt 2012-03-13 10:29:14 -04:00
James McCoy
89234bde9e racket/draw: Check for libjpeg.so.8 on unix 2012-03-13 10:29:14 -04:00
Eli Barzilay
f3bb8c7104 This text is not linked from anywhere, and superseded by the guidelines
that Matthias maintains.
2012-03-13 10:29:14 -04:00
Eli Barzilay
43ef402274 Don't compile test files.
(Didn't touch the tiny "test-docs-complete" tests.)
2012-03-13 10:29:13 -04:00
Eli Barzilay
db2da10894 Improvements to the "support" section of the community page. 2012-03-13 10:29:13 -04:00
Eli Barzilay
3391aea5b4 Improve git intro text.
Add a description of the `insteadOf' option and a common github setup
that uses it.
2012-03-13 10:29:13 -04:00
Matthias Felleisen
0df7ef4d73 remove debugging 2012-03-13 07:19:45 -04:00
Matthew Flatt
facc8db712 change module-path?' to subsume path?'
Although th eoriginal idea was to distinguish "text" paths
from derived filesystem paths, practically everythign that accepts
a module path also accepts a path. Building the generalization into
`module-path?' makes it easier to support `submod' wrappers on paths,
and it seems to fix things rather than break them.
2012-03-12 21:08:54 -06:00
Matthew Flatt
060515b9cd extend string-literal syntax to allow surrogate-style \u pairs
For example, "\uD834\uDD1E" is another way to write "\U01D11E",
while "\uD834", "\uDD1E" or "\uDD1E\uD834" are still errors.
2012-03-12 21:03:20 -06:00
Matthias Felleisen
abfc3de9ba error handler now uses Guillaume's rewrites 2012-03-12 22:49:46 -04:00
Matthias Felleisen
1d894852a4 updated todo list 2012-03-12 22:49:45 -04:00
Jay McCarthy
a75a18637d Fixing an error in DrDr 2012-03-12 16:16:19 -06:00
Jay McCarthy
b1aae4a12d Outputing with chunked encoding 2012-03-12 16:16:19 -06:00
Jay McCarthy
1e80084c97 Reading chunked requests 2012-03-12 16:16:19 -06:00
Jay McCarthy
04fdfbb012 Preparing for implementing chunked encoding 2012-03-12 16:16:19 -06:00
Matthew Flatt
8b5a11a39d fix bug in `apply' expansion 2012-03-12 15:03:33 -06:00
Matthew Flatt
5dc08cbe03 decompiler repairs related to changes for submodules 2012-03-12 09:04:37 -06:00
Robby Findler
a7cb8fdc84 small improvements to the memory usage for files opened in DrRacket.
Before this commit, opening collects/drracket/private/unit.rkt required
about 17.5 megabytes of memory and after this commit, it is down to
about 15 megabytes.

The precise measurement I did was to create a frame and a scheme:text%
object in it, record the result of current-memory-use, open the file,
and record current-memory-use again.

For comparison, using a text:standard-style-list% object instead of
the scheme:text% requires only about 4.1 megabytes. One difference
being that there are about 3x more snips (10,204 vs 33,901 (after the
commit)), since we have one snip for each region that has a different
color in the scheme:text version, and the text:standard-style-list has
no colors and thus about two per line (there are 5006 lines in the
file).
2012-03-10 20:18:49 -06:00
Matthew Flatt
2811af1e59 fix test 2012-03-10 10:54:29 -07:00
Matthew Flatt
8eef24be87 mzlib/traceld: show submodule 2012-03-10 10:51:56 -07:00
Matthew Flatt
6e6086293c drdr: skip traceld
If loaded, it prints to stderr as a load of its `main' submodule
is attempted.
2012-03-10 10:48:04 -07:00
Matthew Flatt
537f194c4e net/imap: add TLS support
Based on a patch from Thomas Spurden
2012-03-10 10:47:22 -07:00
Matthew Flatt
97a64b1166 no callback for `tab-panel%' tab additions and deletions 2012-03-10 10:07:37 -07:00
Matthew Flatt
34314c1e7a fix JIT bug
The bug happens with n-ary uses of arithmetic operations that
have constant arguments but couldn't be constant-folded ---
maybe due to a divide-by-zero.
2012-03-10 08:30:01 -07:00
Jay McCarthy
f8325776cf racket/slice, expand raco test, remove begin-for-testing 2012-03-09 19:51:42 -07:00
Jay McCarthy
b73444a0f3 Adding module**, when-testing, and raco test 2012-03-09 15:54:18 -07:00
Vincent St-Amour
3f74319f46 Add mflatt to the people responsible for the tests of the syntax collect. 2012-03-09 15:19:53 -05:00
Kevin Tew
2584cb71c1 Remove /opt/plt paths from docs 2012-03-09 12:46:14 -07:00
Kevin Tew
5e20081b69 [Distributed Places] added ability to launch remote threads 2012-03-09 12:16:57 -07:00
Neil Toronto
54c8b51c32 Refactoring 2012-03-09 11:30:34 -07:00
Matthew Flatt
a81f7f289a fix typo? 2012-03-09 10:52:29 -07:00
Matthew Flatt
85802f45f2 raco exe' uses a main' submodule, if any 2012-03-09 10:34:57 -07:00
Matthew Flatt
6743900fc7 get-module-code repair 2012-03-09 10:34:57 -07:00
Matthew Flatt
a6a1b02de5 more doc updates for submodules 2012-03-09 10:34:57 -07:00
Matthew Flatt
54a441c0e3 DrRacket default `module*' indentation 2012-03-09 10:34:57 -07:00
Matthew Flatt
72ec4070bd drracket: run `main' submodule 2012-03-09 10:34:56 -07:00
Matthew Flatt
3a1e8803ff fix errortrace for submodules 2012-03-09 10:34:56 -07:00
Matthew Flatt
566759a5fa progress on submodule docs; bug fixes 2012-03-09 10:34:56 -07:00
Matthew Flatt
3d69dfab86 first cut at submodules 2012-03-09 10:34:56 -07:00
Matthew Flatt
d74793a5f9 fix race condition on GetLastError() call 2012-03-09 10:34:56 -07:00
Robby Findler
5cb1a844fb add ack to our sponsors 2012-03-09 10:23:38 -06:00
Robby Findler
a4b721ef3a make some private methods actually be private methods (instead of fields) 2012-03-09 10:23:38 -06:00
Kevin Tew
c46cdf63bc Comment out ssh to localhost example. 2012-03-08 21:50:45 -07:00
Jay McCarthy
4c9738effe Solve copyright problems wrt James Clarks' XML tests 2012-03-08 14:19:50 -07:00
Matthias Felleisen
ad50f144df fixed error message for shadowing clause names; Closes PR 12621 2012-03-08 11:12:42 -05:00
Ryan Culpepper
fb7c7e3793 syntax/parse: added roles, other updates/fixes
expr/c uses role for contract label when avail
export ~peek-not (previously missed)
fixes for integrable stxclasses
2012-03-08 07:39:42 -07:00
Ryan Culpepper
a0065b9efa syntax/parse: cut-prompt is inherited, not threaded 2012-03-08 01:17:47 -07:00
Ryan Culpepper
14089e0ac6 syntax/parse: clean up integrable stxclass code 2012-03-08 01:17:47 -07:00
Kevin Tew
cc716392da Distributed Places add runtime-paths, turn off tests. 2012-03-07 12:07:25 -07:00
Kevin Tew
09bed0d61e Initial Distributed Places commit
Distributed Places allows the spawning of remote racket processes and
places.  Distributed Places communicate transparently over TCP sockets.
2012-03-07 09:36:13 -07:00
Robby Findler
922857489a add an example to the racket/draw guide 2012-03-06 19:14:30 -06:00
Jon Rafkind
a94b7b9260 [honu] fix some tests. always reparse the right hand side of an operator 2012-03-05 13:48:52 -07:00
Jon Rafkind
249c7b02ca [honu] use syntax properties to differentiate parsed syntax from unparsed 2012-03-05 13:48:52 -07:00
Jon Rafkind
89f511fb3e [honu] bind all attributes from a syntax class. allow multiple expressions in a match list 2012-03-05 13:48:52 -07:00
Robby Findler
ac568d7b3f try using make-bitmap for the bitmaps under unix to see if drdr
likes that better
2012-03-05 13:48:34 -06:00
Robby Findler
519550d291 save a new set of unix bitmaps for the redex bitmap test
and (optimistically) turn the bitmap tests back in on in drdr

(also improve the GUI a little bit that shows the errors in
the test)
2012-03-05 11:44:45 -06:00
Robby Findler
3997eaefde clean up redex bitmap tests (under mac os x) 2012-03-05 08:52:17 -06:00
Robby Findler
4a304643d3 Rackety 2012-03-05 08:12:02 -06:00
Robby Findler
b7caf411ae added define-extended-judgment-form to Redex 2012-03-03 16:41:53 -06:00
Robby Findler
a0bb0430f2 separated the define-judgment-form implementation (and bind-withs)
into its own file
2012-03-03 16:41:52 -06:00
Neil Toronto
568828d491 Fixed graphical glitches:
plots too small to render margin decorations (i.e. axis and tick labels) now render without them;
plots in frames now initially render with full detail
2012-03-03 15:39:16 -07:00
Neil Toronto
610280225c Added unstable/gui/snip (provides snip-canvas%) and docs
Changed plot-frame to use snip-canvas%, so resizing the frame resizes the plot; added Escape handler (closes the frame)
2012-03-03 12:37:09 -07:00
Neil Toronto
bf97780eda Fixed an internal function contract 2012-03-03 12:37:09 -07:00
Asumu Takikawa
6edf9c16d4 turtles: better error message and improve docs
When uninitialized, turtles was giving a poor internal error.
Now it should tell the user to initialize. Also, added a note
in the docs about initialization.
2012-03-03 14:17:53 -05:00
Matthew Flatt
06e94d510a openssl: another attempt to get SSL_shutdown right 2012-03-02 10:33:36 -07:00
Matthew Flatt
5630a3a1ca racket/sandbox: use `gui-available?' at sandbox creation
Previously, sandbox creation used `gui?', which is the result of
`gui-available?' at the time that `racket/sandbox' is instanited.
This change makes sandbox behavior less sensitive tothe order in
which modules `require'd into a program are intiantiated.

The change depends on a new `sandbox-make-namespace' default
function for `sandbox-namespace-specs'. The new function uses
either  `make-base-namespace' or `make-gui-namespace', depending
on whether the GUI library is available at that point.

A new `sandbox-gui-enabled' parameter can disable use of the
GUI library even if it is available.

The `gui?' binding is still exported for backward compatibility,
but it shouldn't be used anymore.
2012-03-02 07:47:16 -07:00
Matthew Flatt
a976c56cb9 openssl: more little fixes
Fix an error message broken by earlier debugging, and also
fix long-standing shutdown problems. Move basic tests to more
standard location.
2012-03-01 20:34:53 -07:00
Matthew Flatt
fc2eb1c11c openssl: fix error handling
The recent thread-safety change wasn't right.
2012-03-01 15:43:04 -07:00
Sam Tobin-Hochstadt
8055d9f5f8 Allow multiple right hand sides in match/values.
Closes PR 12613.
2012-03-01 15:05:51 -05:00
Asumu Takikawa
04f7bdbb02 framework: add missing methods to interface and docs
The set-replace-start and get-replace-search-hit methods were
missing in the text:searchable<%> interface. The latter was
also undocumented.
2012-03-01 13:17:48 -05:00
Matthew Flatt
14f03bcf5b openssl: thread safety
There are many SSL_() functions that produce return codes with more
information from SLL_get_error() and/or ERR_get_error(). Those need
to be grouped in an atomic section to ensure thread safety at the
level of Racket threads.
2012-03-01 11:02:48 -07:00
Matthew Flatt
1032ce8afe openssl: make ssl-set-verify!' and ssl-try-verify!' work on ports
Using the functions on a port triggers renegotiation of the
connection, which s useful for cases such as a web server that
requires a certificate only for certain paths. This functionality
also allows better testing of the SSL library.
2012-03-01 11:02:48 -07:00
Matthew Flatt
efcb607865 fix openssl problem
Read and write actions on an SSL port can trigger internal write
and read actions (i.e., the opposite direction). On the read side,
write pumping was performed too early before returning a "wait
for new input" event; SSL operations between the pumping and
return could trigger the need for pumping, but it never happened
because the socket was waiting for new input before taking any
new actions.

The problem would shows up specifically when Apache renegotiates
a connection to demand certificates from a client after first
determining the target of the request (i.e., when a certificate
is required ony for specific locations on the server).

Thenks to Sergey Pinaev, Timur Sufiev, and Neil Van Dyke.
2012-03-01 11:02:47 -07:00
Robby Findler
51207a2f68 Revert "topologically sort collections based on the dependencies between"
This reverts commit 79c6a2b1e5.

Sorry--- I didn't mean to push this commit
2012-03-01 11:43:54 -06:00
Robby Findler
e256a396ba add a little more discussion based on comment from mailing list 2012-03-01 11:41:00 -06:00
Robby Findler
79c6a2b1e5 topologically sort collections based on the dependencies between
them and use that to order 'raco setup'

The dep-list.rkt file contains code that reads .dep files
and computes the topological sort; this result is expected
to be copied over into setup-unit.rkt
2012-03-01 11:41:00 -06:00
Matthew Flatt
facb411a63 fix problems with place termination 2012-02-29 20:20:55 -07:00
Matthew Flatt
ab9f63a3a0 fix error message 2012-02-29 20:20:55 -07:00
Sam Tobin-Hochstadt
3267738425 Sort paths before fuzzing, to make drdr runs reproducible. 2012-02-29 12:01:37 -05:00
Robby Findler
a23f6dbca2 move the redex scrbl files into a scribblings subcollection and adjust timeouts 2012-02-29 07:13:36 -06:00
Eli Barzilay
f7c67b49a4 Big newline at EOF scan. 2012-02-29 00:28:11 -05:00
Robby Findler
0243b50368 Make the "F" in "Search in Files" get the underline in the menu
closes PR 12607
2012-02-28 21:53:03 -06:00
Robby Findler
7d683c7faf fix error in blame assignment for -> with dot-args.
closes PR 12608
2012-02-28 20:15:58 -06:00
David Van Horn
b8d3219b1b Fix contract on filebox to reflect documentation. 2012-02-28 19:40:21 -05:00
David Van Horn
68b225c992 Rename scratch to avoid running by DrDr. 2012-02-28 19:06:14 -05:00
Matthew Flatt
6e42c92a50 add some interpreter vs. closure compiler benchmarks
Mostly for amusement, including the contrast between
the benefits of closure compilation for a host interpreter
versus the benefits for a host compiler.
2012-02-28 15:35:39 -07:00
Matthew Flatt
70ab6d482a fix problem with continuations
The problem was a misplaced allocation that could cause a GC
when the thread is in an unstable state in the process of
applying a continuation.
2012-02-28 15:35:38 -07:00
Vincent St-Amour
249c1cc666 Remove dependency on unstable/port. 2012-02-28 16:26:21 -05:00
Jay McCarthy
ffcda4741f Fixing a safe-for-space error that Robby found 2012-02-28 14:15:07 -07:00
Jay McCarthy
eb0e188b63 Clarify error message 2012-02-28 14:15:07 -07:00
Ryan Culpepper
94ae918b0f setup "images" collection earlier, "drracket" at end
This change cuts real time of "raco setup -D" almost in half
on a 4-core machine.
2012-02-28 05:27:58 -07:00
Ryan Culpepper
3e6069a70f syntax/parse: optimize common ellipsis patterns 2012-02-28 05:27:58 -07:00
Ryan Culpepper
2a3d6d5c31 syntax/parse: add attribute-prefix check to template form
(template x.y) raises an error if x an attribute but x.y is not.
2012-02-28 05:27:57 -07:00
Vincent St-Amour
4a8f447dae Remove unstable/port.
`port->list' does all it can do.
2012-02-27 22:03:39 -05:00
Matthew Flatt
012ef60cd5 fix non-tail loop in parallel `raco setup'
Deep recursion with too-few recognizable JIT frames caused
trouble with `current-continuation-marks'.
2012-02-27 14:46:03 -07:00
Jay McCarthy
172c6379d1 Test is sensitive to heap locations 2012-02-27 12:20:49 -07:00
Vincent St-Amour
f420edc5ee Add range to racket/list. 2012-02-27 13:40:31 -05:00
Vincent St-Amour
b323acb999 Only check chaining for missed optimizations. 2012-02-27 13:40:30 -05:00
Kevin Tew
3e0e4a3f6b Allow hashes across place channels. 2012-02-27 10:11:04 -07:00
Jay McCarthy
f29a2c0e61 Setting responsibility on EOPL test to dvh 2012-02-27 09:16:47 -07:00
Jay McCarthy
b51bd062a8 Adding indexing terms re: PR9893 2012-02-27 09:15:28 -07:00
Robby Findler
c5193f7da7 fix a bug in define-union-language
(this bug was somehow already covered by the existing test suites
 and also make pretty much every define-union-language break)
2012-02-27 10:00:23 -06:00
Robby Findler
bd08e09b12 fix up the repl test now that picts dont render as bitmaps
(following up commits
  ad65164c5e and
  72b9199976)
2012-02-27 10:00:23 -06:00
Matthew Flatt
0dcc96c5eb fix JIT, `unsafe-struct-ref', chaperone, and procedure property 2012-02-27 06:57:44 -07:00
Matthew Flatt
f9247ff3a5 fix zip/gzip bug
Closes PR 12605
2012-02-27 08:34:26 -05:00
Eli Barzilay
6d63c1f548 Make it possible to nest HTML outputs.
(This is the actual fix for PR 12604)
2012-02-27 06:46:26 -05:00
Robby Findler
fffafbab18 edit wxme docs to clarify the text-only? argument passed to read-snip 2012-02-26 21:43:44 -06:00
Matthew Flatt
188c6fdc66 add `log-max-level'
As suggested by Tobias Hammer
2012-02-26 22:13:02 -05:00
Matthew Flatt
2d7b97ece9 doc and terminology fix 2012-02-26 22:13:02 -05:00
Matthew Flatt
bf5ab2a1c9 fix test to be reliable
The original variant depended on floating-point precision of pow().
2012-02-26 22:13:02 -05:00
Matthew Flatt
21a07ae9d6 fix problems with `(_fun #:in-original-place? #t ....)'
The old implementation could cause deadlock by blocking on a semaphore
while waiting for the original place to run a callback, but a master
GC might be needed (and the blocked place wouldn't get the signal).

Beside fixing that problem, a potential memory leak is fixed in
calling an ffi funcition and having a Racket->C unmarshaling fail.
Also, the GC marking routine for a `place' value didn't reference the
place's underlying `place_obj' value.
2012-02-26 22:13:01 -05:00
Matthew Flatt
f79e2b4ee0 fix problems with `record-dc%' and composition
Recorded clipping, transformations, and alpha didn't compose with
the target DC's existing clipping, transformations, and alpha.
2012-02-26 22:13:01 -05:00
Matthew Flatt
40fb54248d add missing docs for transform' method of dc-path%' 2012-02-26 22:13:01 -05:00
Eli Barzilay
069e917cca Fix a very old typo in the pre-built "binaries" directory index.
Closes PR 12604.
2012-02-26 18:58:24 -05:00
Jens Axel Søgaard
ac9c155feb Bugfix for `graphics/turtles'
The orange triangle is now updated after each turtle command.  The erase
pen is now 2 pixels wide: before this, (draw 100) (erase 100) didn't
erase the line, but gave a grey line.
2012-02-26 15:55:30 -05:00
Neil Toronto
50df61fc4e Fixed typo in introduction 2012-02-25 22:47:09 -07:00
Neil Toronto
3ed1a78713 Made plot snips resizeable 2012-02-25 22:47:09 -07:00
Matthew Flatt
dc1d4e80dd fix incorrect GC decls hard-wired into xform
Closes PR 12602
2012-02-26 03:58:21 +00:00
Robby Findler
36323cf3be added a pict-snip test case 2012-02-25 21:42:40 -06:00
Robby Findler
ad65164c5e added a snipclass for pict-snip 2012-02-25 21:25:09 -06:00
Robby Findler
72b9199976 use record-dc% for drawing picts in the DrRacket repl 2012-02-25 17:59:07 -06:00
Robby Findler
f61f0830e5 change register-toolbar-button so that it accepts a number
argument and uses that to order the buttons in the DrRacket
panel.

Also, order all of the buttons via these numbers in
a more sane way
2012-02-25 16:57:49 -06:00
Robby Findler
df504d482e fixed bug in list/c's first-order checking code 2012-02-25 16:57:49 -06:00
Matthew Flatt
645ca02e92 racket/draw: add `record-dc%' 2012-02-25 20:57:56 +00:00
Sam Tobin-Hochstadt
678941ce5a Pass temporary value for Un' along in recursive call in substitute'.
Closes PR 12600.
2012-02-24 20:25:53 -05:00
Ryan Culpepper
fa5e57335c macro-debugger: right-click also changes syntax selection
fixes PR 12442
2012-02-24 17:51:41 -07:00
Ryan Culpepper
d4ac5e11ef ryanc is responsible for tests/data 2012-02-24 16:59:22 -07:00
David Van Horn
7491e172ea EOPL test suite re-written in Racket-based #lang eopl and rackunit
The eopl language is now racket-based rather than mzscheme-based.  This
test-suite, which was originally distributed on the book's web-site has
been re-written in the new language.  Changes include dropping all
drscheme-init.scm and top.scm files.  Remaining files were renamed to
use the .rkt extension and edited to use the #lang syntax (instead of
modulue).  Require and provide forms were changed to reflect racket's
syntax instead of mzscheme's (eg, only-in vs. only).  Several
occurrences of one-armed ifs were changed to use when and unless.  All
tests have been run successfully.
2012-02-24 14:46:18 -05:00
David Van Horn
b5a4ffcd55 Import allcode.zip into test suite. 2012-02-24 14:46:17 -05:00
Eli Barzilay
0de95a0a79 Do a timeout for http polls too.
(Turns out that some network problems can lead to a timeout after
several hours...)
2012-02-24 14:46:17 -05:00
Robby Findler
4eba0862cf fix struct-info related bug in provide/contract
that John Clements pointed out on the Racket
mailing list
2012-02-24 13:10:12 -06:00
Robby Findler
ca9e8d742f add missing defaults to calls to syntax-local-value 2012-02-24 11:31:06 -06:00
Matthew Flatt
60c1bc6638 fix problem with `get-module-code'
As reported and fixed by Timur Sufiev
2012-02-24 17:06:20 +00:00
Robby Findler
df4dbe615f add a convertible interface to texpict that lets
values be convertiable to picts.

use that interface in DrRacket, but via the suboptimal
screen-bitmap route (for now)
2012-02-24 10:48:19 -06:00
Robby Findler
868cc4388f go back to make-bitmap for pict turned into bitmaps via file/convertible
the lack of alpha (under windows) seems to outweigh the various
font drawing bugs/shortcomings
2012-02-24 08:15:05 -06:00
Robby Findler
9ffc18a000 adjust plai's gc2/mutator so that primitive applications are
special and primtives not in an application position is a syntax error
2012-02-24 08:15:03 -06:00
Asumu Takikawa
f092a96333 gui-debugger: closing the debugger should break 2012-02-23 19:52:29 -05:00
Asumu Takikawa
8170da3d10 gui-debugger: Racketize 2012-02-23 19:52:29 -05:00
Asumu Takikawa
41f60ac95f gui-debugger: update icons using Neil's icon set. 2012-02-23 19:52:29 -05:00
Asumu Takikawa
4f982fddfd gui-debugger: add a close button 2012-02-23 19:52:29 -05:00
Matthew Flatt
eb032c2fef improvements to the bitmap docs 2012-02-23 07:12:22 -06:00
Robby Findler
d476d3f21a fix a bug I thought I'd fixed a while back...? 2012-02-22 16:51:48 -06:00
Robby Findler
914f9feebc lighten some check syntax arrow colors in white-on-black mode
closes PR 12594
2012-02-22 16:41:46 -06:00
Matthew Flatt
a025f7e9c8 fix bug in bytecode optimizer
The bug is triggered by unsafe flonum operations, a
conversion that tries to make the arguments more unboxable,
and a `lambda' form within an argument to the unsafe
operation.

Closes PR 12587
2012-02-22 06:54:26 -07:00
Matthew Flatt
c1759243d4 fix a problem with the interaction of Pango and AppKit 2012-02-22 06:54:26 -07:00
Matthias Felleisen
190fbcd7ce fixed docs for quotient; Closes PR 12593 2012-02-22 08:33:16 -05:00
Jon Rafkind
4852904035 [honu] wrap expressions with let so local macro parsers can be defined. replace more usages of %racket with racket-syntax 2012-02-21 16:19:10 -07:00
Jon Rafkind
7379684c5b [honu] use syntax properties to differentiate racket syntax from honu syntax instead of the %racket identifier 2012-02-21 16:19:10 -07:00
Jon Rafkind
bb85c06df4 [honu] use honu->racket in more builtin forms 2012-02-21 16:19:09 -07:00
Jon Rafkind
782664316d [honu] honu forms implemented in racket must call honu->racket on the parsed output. add an example to do ocaml style pattern matching 2012-02-21 16:19:09 -07:00
Jon Rafkind
549a7522e3 [honu] add syntactic patterns. parse the output of macros using a local define-syntax (kind of hackish) 2012-02-21 16:19:09 -07:00
Robby Findler
1945ff2709 add make-platform-bitmap
also: use it in pict's rendering and
remove redex's platform-specific font choice
(going back to using 'modern on all platforms)

closes PR 12554
2012-02-21 16:19:45 -06:00
Eli Barzilay
c007c345f9 A bunch of more typos like the ones in David's commit. 2012-02-21 14:21:43 -05:00
David Van Horn
f029117266 Fixes spelling errors in reference. 2012-02-21 14:21:43 -05:00
David Van Horn
49064bc802 EOPL mzscheme => racket; closes PR10478. 2012-02-21 14:21:43 -05:00
Eli Barzilay
bfb731e065 Add robots.txt, to avoid spiders hammering the server via gitweb. 2012-02-21 14:21:43 -05:00
Robby Findler
bdd82c1b45 chop up the planetcute image
closes PR 12584
2012-02-21 12:21:07 -06:00
Matthew Flatt
b9012a2504 COM doc and error fixups 2012-02-21 06:14:44 -07:00
Matthew Flatt
b656219f8a net/smtp: fix auth encoding to not add extra CRLFs
Closes PR 12501
2012-02-21 06:14:44 -07:00
Matthew Flatt
a12f9831a3 add optional newline argument to `base64-encode' 2012-02-21 06:14:44 -07:00
Robby Findler
7c3464f9d7 add marks on quoted identifiers so that, when they are used later, they bind properly 2012-02-20 21:30:24 -06:00
Sam Tobin-Hochstadt
b4af99babb Fix types of numerics etc with expected type. 2012-02-20 18:45:33 -05:00
Robby Findler
7109e92b04 add gc2 support to random mutator 2012-02-20 15:29:00 -06:00
Robby Findler
3f5a45e904 fix broken vector->roots 2012-02-20 15:29:00 -06:00
Robby Findler
c42675f80c adjust gc2's mutator language:
- give names to user functions that matches the user's names
    (if the third bullet goes away, then the function
     mutator-lift needs to be adjusted so that it uses
     procedure-rename in order to preserve the improvement
     in this bullet)

  - change exn? to exn:fail? (to avoid catching break exns)

  - change lang so that primitives (the ones in the
    provide-flat-prims/lift declaration) are not allocated
    in the user's space (treat them as if they are constants)

    This change makes it easier to build up and explain the
    GC api, piece by piece. That is, you can first run a program
    that contains just a constant (and explain it) with only a
    subset of the api. Then you can do something like (+ 1 2)
    and explain it, both without getting into how procedures work.

    (This is helpful for the way I run my lectures)
2012-02-20 15:29:00 -06:00
Sam Tobin-Hochstadt
a8bdb9d6ce Speed up and improve tc-literal. Now uses expected types more, and more sensibly.
Closes PR 12586.
2012-02-20 15:09:51 -05:00
Sam Tobin-Hochstadt
74c9265d66 Improve restrict, and allow caller to control what type is returned for failure. 2012-02-20 15:09:51 -05:00
Sam Tobin-Hochstadt
99f01f5260 Fix overlap with sequences. 2012-02-20 15:09:51 -05:00
Vincent St-Amour
c7234772a4 Support relative path requires in performance report. 2012-02-20 14:02:07 -05:00
Jay McCarthy
1b054eed1b Making change suggested by Norman Gray 2012-02-20 10:50:48 -07:00
Jay McCarthy
75a326e027 Better explanation of DrDr's behavior 2012-02-20 10:50:48 -07:00
Jay McCarthy
d7aa944eba Squelch newline citations 2012-02-20 10:50:47 -07:00
Matthew Flatt
a884c91720 ffi/unsafe: add `array-length'
Closes PR 12576
2012-02-20 08:09:06 -07:00
Matthew Flatt
a79080e7ed improve docs to match improved "-h" output 2012-02-20 08:09:06 -07:00
Robby Findler
b811adda7c fix a bug in the collector (if 'free is a symbol used in the
mutator, then the 'find-free-space' functions could fail)
2012-02-20 08:56:30 -06:00
Robby Findler
b2a3b3a8a2 add xor, adjust implies following Carl's comments 2012-02-20 06:25:37 -06:00
Robby Findler
297db9b305 fix bug introduced recently by special cases for -> 2012-02-19 16:25:35 -06:00
Sam Tobin-Hochstadt
88bd4cce6c Document `quote' et al in ISL+lambda.
Closes PR 12585.
2012-02-19 16:24:57 -05:00
Robby Findler
d4b176dd41 clarify nor docs 2012-02-19 15:17:29 -06:00
Matthew Flatt
9ca0c34cb2 lazy: fix or' and and' to not force last argument
The `or' and `and' functions already worked correctly; this
fix is for `or' and `and' as applied directly to arguments, which
expands to the `racket/base' `or' and `and' forms.
2012-02-19 07:38:29 -07:00
Robby Findler
4b2f78477a added nand, nor, and implies to racket/bool 2012-02-19 08:05:11 -06:00
Robby Findler
ce6d1c042c add a test suite for racket/bool 2012-02-19 08:05:11 -06:00
Robby Findler
190d011f0d clarify boolean=? and symbol=? 2012-02-19 08:05:10 -06:00
Robby Findler
2d76c3bcab adjust -> contract so that (-> any/c ... any) contracts are now
flat contracts and using (-> any/c boolean?) uses predicate/c
without special intervention.

also, fix a bug in the opter contracts
2012-02-19 08:05:10 -06:00
Vincent St-Amour
e71fa0be88 Add typed for missing finum/flonum conversions. 2012-02-18 23:38:32 -05:00
Vincent St-Amour
240773ae6f single-flonum? is not provided by TR's internals anymore. 2012-02-18 23:23:59 -05:00
Robby Findler
d361724607 revert the logo to the released one 2012-02-18 14:32:08 -06:00
Eli Barzilay
17133dc6bc Ownership props.
Add stchang to lazy & tests; some other test directories.
2012-02-17 22:24:14 -05:00
Matthew Flatt
530b353798 racket/draw: change font face name interpretation again
Treat a "face" as a font description only if it has a comma,
otherwise go back to treating it as a family name.

This change fixes the problem of parsing "Times New Roman"
as "Times New, Roman".
2012-02-17 11:25:15 -07:00
Sam Tobin-Hochstadt
8378b742c7 Remove guibuilder. See mred-designer on planet for a maintained alterative. 2012-02-17 10:20:59 -05:00
Asumu Takikawa
b890f7d907 Docs: fix example in FFI intro 2012-02-17 10:02:36 -05:00
Sam Tobin-Hochstadt
89b3d0ef1c Set eli as responsible for files in tests. 2012-02-17 08:57:54 -05:00
Sam Tobin-Hochstadt
777b7a4c00 mflatt responsible for collects/mzlib 2012-02-17 08:41:54 -05:00
Matthew Flatt
11de33d4ff remove MysterX DLL, replace with wrapper around `ffi/com'
The ActiveX part of MysterX is gone. The `ffi/com' re-imeplemtnation
provides only core COM support.

The "mysssink" DLL is still needed, and its source is still
in the tree, but it is downloaded in the same way as other
pre-built DLLs. The DLL no longer needs to be registered with
regsvr32.
2012-02-17 06:37:19 -07:00
Matthew Flatt
b93eaa19f4 ffi/unsafe/alloc: releaser should be able to return a value 2012-02-17 06:36:23 -07:00
Matthew Flatt
f461d9f67d ffi: fix _x-pointer/null' when _x' has a supertype
This is more specifically a bug in `_cpointer/null', but it
shows up most easily through C structs.
2012-02-17 06:36:23 -07:00
Eli Barzilay
d379465baf Increase default timeout to 15m. 2012-02-17 07:29:52 -05:00
Vincent St-Amour
aa85692436 Clean up compiled test files to force recompiling. 2012-02-16 11:45:51 -05:00
Matthew Flatt
084278fabc handle-evt' cannot wrap handle-evt'
The prohbition against `handle-evt' on `handle-evt' is as
document and as originally intended. I'm not sure why it
was allowed.

Existing programs that use `handle-evt' incorrectly
can break. I found and fixed one incorrect use and one
questionable use in the Racket tree (which is a small
minority of the uses of `handle-evt' in the tree).
2012-02-15 18:59:24 -07:00
Eli Barzilay
cea74ad911 Infogroep mirror is back, now in http form. 2012-02-15 11:40:48 -05:00
Robby Findler
df5e7efd5e Made an editing pass over the redex tutorial 2012-02-15 08:29:22 -06:00
Robby Findler
b194b7791f fix garbled command line 2012-02-15 08:01:36 -06:00
Vincent St-Amour
eca43387f6 Fix tests. 2012-02-14 18:20:35 -05:00
Vincent St-Amour
37ba3672d4 Wait for compile-time logs to be processed before running optimizer tests.
This should solve the log ordering problems that caused non-deterministic
test failures during the nightly builds.
2012-02-14 18:20:35 -05:00
Vincent St-Amour
84e2880715 Move post-processing of missed optimization inside Performance Report. 2012-02-14 18:20:34 -05:00
Matthew Flatt
08303d9db8 fix test to not write to stderr 2012-02-14 14:27:40 -07:00
Matthew Flatt
6cd2e3c71b add `prop:cpointer'
Extend `define-cstruct' to support #:property specs, which causes
the constructor and C->Racket coercsions to wrap the pointer in
a structure instance with the specified properties. Of course,
the wrapper structure has a `prop:cpointer' property so that the
wrapper can be used transparently as a C pointer.

Add missing tests and documentation for the id`->list', `list->'id,
id`->list*', and `list*->'id bindings created by `define-cstruct'.
2012-02-14 14:25:55 -07:00
Robby Findler
88e4b59a95 adjust drracket test files to use 'gracket' instead of 'racket' in drdr 2012-02-14 13:19:18 -06:00
Robby Findler
dc6522b153 added racket/future to racket (the docs already say that it is included) 2012-02-14 12:30:23 -06:00
Robby Findler
eda4d294cc Lost the snipclass with the name (lib "collapsed-snipclass.ss" "framework")
somewhere between 5.1.3 and 5.2.1. Bring it back.

closes PR 12563
2012-02-14 11:26:20 -06:00
Robby Findler
0e543fc66b adjust the way internal errors are shown in DrRacket
so that printing an error no longer blocks (on user actions) but still
uses the GUI. Also: when new errors are generated while a dialog box
showing an error is still open, then just ignore those errors. Also,
if an error is generated that has been shown in the last 5 minutes, ignore
the new one.
2012-02-14 11:26:20 -06:00
Robby Findler
4763fb5189 drscheme => drracket 2012-02-14 11:26:20 -06:00
Matthew Flatt
967372c23d make an eventspace thread survive a break exception
When an eventspace is created, its thread implicitly calls
`yield'. It now effectively loops with `yield' and while
catching continuation aborts.

Closes PR 12566
2012-02-13 16:28:10 -07:00
Matthew Flatt
aee0868f24 fix Windows library names 2012-02-13 16:27:52 -07:00
Matthew Flatt
2c479683d1 add --launcher'/-l' flag to `raco exe' to create launchers
This addition triggered several other changes:

 * -k for a Mac OS X embedding is now relative to the __PLTSCHEME
   segment (which means that executables won't break if you strip
   them, for example)

 * the command-line no longer has a limited size for Mac OS X
   launchers and embedding executables

 * Mac OS X GUI and Windows launchers record the creation-time
   collection path, unless they are created as "relative" launchers
2012-02-13 16:27:51 -07:00
Matthew Flatt
573ce9492a add test for bad missing-glyph handling 2012-02-13 16:27:51 -07:00
Jay McCarthy
af9bab7426 Setting mflatt responsible for file he added 2012-02-13 11:50:38 -07:00
Robby Findler
6246df1d34 bump up the timeout for the broken up repl test 2012-02-13 07:14:56 -06:00
James Swaine
46c981bcdf Clarified futures-enabled? documentation 2012-02-12 20:42:05 -06:00
Robby Findler
f2d244cb1f clarify auto scrollbars & on-event interaction (ie, they don't interact) 2012-02-12 20:24:17 -06:00
Robby Findler
760ec887b9 split up the REPL test to get parallelism in drdr (and hopefully avoid timeouts) 2012-02-12 19:33:35 -06:00
Sam Tobin-Hochstadt
d0fbe825e6 Parameters can overlap with procedure types.
Closes PR 11993.
2012-02-12 14:30:36 -05:00
James Swaine
fd7235f94a Updated future-event docs 2012-02-12 02:05:36 -06:00
James Swaine
7114f08c0b Added tests for would-be-future
Minor fixes to would-be-future
Added futures-enabled? primitive
Added primitive name to future-event struct
2012-02-12 01:32:30 -06:00
Matthew Flatt
af62391c8c win32: fix canvas% control border drawing
Use the system-supplied region to intersect with the
window region, so that drawng the border doesn't replace
the window content.

See also Kieron Hardy's post on the users' list, 2/7/12.
2012-02-11 08:45:32 -07:00
Mike Sperber
73f188c9e8 Synch German string constants with latest. 2012-02-11 14:54:21 +01:00
Ryan Culpepper
5a1badf397 syntax/parse: added template metafunctions
Also fixed some bugs and added simple optimizations.
2012-02-10 22:12:54 -07:00
James Swaine
a5676e9a68 Added would-be-future 2012-02-10 20:05:43 -06:00
Robby Findler
e4e4d70b6b added define-union-language 2012-02-10 17:10:47 -06:00
Robby Findler
122625960d adjust runtime errortraces in redex to manipulate namespaces a little more carefully 2012-02-10 17:10:47 -06:00
Robby Findler
6914c5667c adjust test suite to match new lack-of-absolute-paths feature 2012-02-10 17:10:47 -06:00
Robby Findler
b93ff24fee add two links to redex docs 2012-02-10 17:10:47 -06:00
Sam Tobin-Hochstadt
4d21ab1019 Make inference understand the relationship between Vector' and Vectorof'.
Closes PR 12495.
2012-02-10 17:39:41 -05:00
Matthew Flatt
577f38f649 change `raco demod' test to write to temporary drectory
Also add `-o' option to `raco demod'.
2012-02-10 14:02:12 -07:00
Matthew Flatt
ecc4f4bbbe make a sandbox test much less likely to fail
Give it 20 seconds to run out of memory insteda of 2 seconds. The
test is still non-deterministic, though.
2012-02-10 14:02:12 -07:00
Vincent St-Amour
593e4a4f1d Provide require/typed/provide and require-typed-struct/provide from TR. 2012-02-10 11:30:20 -05:00
Vincent St-Amour
03ebf0d3de Update tests for new log format. 2012-02-10 11:30:20 -05:00
Vincent St-Amour
ddb1982e01 Emit optimization logs as we optimize, instead of accumulating them. 2012-02-10 11:30:20 -05:00
Vincent St-Amour
46b9b6ea58 Explain duplicate removal. 2012-02-10 11:30:20 -05:00
Vincent St-Amour
4b84e56fa6 Don't compute the logs if no-one's reading the logs. 2012-02-10 11:30:20 -05:00
Vincent St-Amour
e134e7cd38 Simplify TR log processing and move part of it to Performance Report.
More messages get logged, but if no-one is listening, doesn't matter.
2012-02-10 11:30:20 -05:00
Vincent St-Amour
0452a5983f Use trusted sandbox for Performance Report.
Solves permission problems.
2012-02-10 11:30:20 -05:00
Vincent St-Amour
8080669dd9 Fix typo. 2012-02-10 11:30:20 -05:00
Matthew Flatt
6abb87069c fix error-message formatting
Closes PR 12565
2012-02-10 06:17:19 -07:00
Matthew Flatt
937cdf51d7 change `current-write-relative-directory' to support more path conversions
In particular, allow a pair of a relative-to directory and a base
directory. Paths that syntactically extend the base directory are
recorded as relative to the relative-to directory (which must
syntactically extend the base directory).

The compilation manager now sets the parameter to a pair with
the base directory as the main collection directory, if the source
file's path extends that directory's path.

This generalization solves problems created by cross-module inlining,
where the source location of a procedure in bytecode can now be in a
different file than the enclosing module's file.

Also add a test that checks whether the build directory shows up
in any ".zo", ".dep", or documentation ".html" files.

Closes PR 12549
2012-02-10 06:17:18 -07:00
Matthew Flatt
9b569aa9a2 adjust some libraries to avoid converting paths to strings too early
Early conversions leave absolute paths in bytecode and rendered
documentation.
2012-02-10 06:17:18 -07:00
Ryan Culpepper
06979954fa syntax/parse: added experimental template form
Also added more atomic patterns to syntax-parse (previously overlooked).
2012-02-10 05:26:13 -07:00
Eli Barzilay
5a6ed440a1 Allow `get-conf' to be used with any key.
Make it possible to put user settings in the configuration, with the
same benefits (auto-reloading).
2012-02-10 06:05:50 -05:00
daniel watson
9835bc2f7b Guide typos
* fix cond intro 'text-expr' typo in guide
* fix quote in quote title
* for -> form in quasiquote unquote-splicing shorthand
2012-02-10 02:41:48 -05:00
Rodolfo Henrique Carvalho
19f43d27aa Typos in turtles (code and docs).
The name of the mathematician is Sierpinski.

* Serpinski => Sierpinski
* Rename serp => sierp.
2012-02-10 02:41:48 -05:00
Eli Barzilay
fc0fd4b537 Fix a bug where retrieving a submission would get appended to the default #lang line. 2012-02-10 00:43:26 -05:00
Matthew Flatt
284ba01db6 errortrace: skip annotation in namespace with wrong base phase
Closes PR 12551
2012-02-09 17:58:28 -07:00
Matthew Flatt
77bd401a2d fix problems with marks and module for-syntax
Closes PR 12538
2012-02-09 17:34:15 -07:00
Matthew Flatt
6d3a458847 fix reported arity of `map' et al.
Closes PR 12561
2012-02-09 16:49:34 -07:00
Matthew Flatt
8000dd78ca doc correction 2012-02-09 16:49:33 -07:00
Sam Tobin-Hochstadt
38e7fb5eb0 Relax type of `filter'. 2012-02-09 17:08:48 -05:00
Sam Tobin-Hochstadt
a5c7175e46 improve types for literal hash tables 2012-02-09 17:08:48 -05:00
Eli Barzilay
88da3effc4 "indicies" -> "indices", as noted by Rodolfo Carvalho. 2012-02-09 13:59:20 -05:00
Rodolfo Henrique Carvalho
237f64b265 Two typos. 2012-02-09 13:54:25 -05:00
Eli Barzilay
0cd6876334 Disable Win/i386-crashing test. (See comment for the reason.) 2012-02-09 13:24:51 -05:00
Eli Barzilay
38b0451b56 Lib path typo. 2012-02-09 13:07:48 -05:00
Kevin Tew
6ababab853 fix multiple places imported into the same module 2012-02-09 10:04:57 -07:00
Kevin Tew
c2f5b7e0ed Pretty up places test code 2012-02-09 08:52:05 -07:00
Ryan Culpepper
766790b9e4 db: clean up disconnect 2012-02-08 22:32:51 -07:00
Ryan Culpepper
f142a1c5f2 db: clean up communication, locking
Disconnect on break exn within lock; other break-safety fixes.
2012-02-08 22:32:51 -07:00
Ryan Culpepper
f5711c6cc3 db: added prepared statement cache 2012-02-08 22:32:51 -07:00
Ryan Culpepper
6fe7e65ff0 db: clean up common tx code 2012-02-08 22:32:51 -07:00
Ryan Culpepper
654ccb277f db: added cursors 2012-02-08 22:32:51 -07:00
Ryan Culpepper
618173c97e db: finalize close-on-exec psts within lock 2012-02-08 22:32:51 -07:00
Ryan Culpepper
4c817d0f7f db: clean up and reogranize common impl code 2012-02-08 22:32:50 -07:00
Asumu Takikawa
5a27a8538c Add documentation for #:opaque keyword. 2012-02-08 22:47:16 -05:00
Asumu Takikawa
db3c96a2a0 Added tests for opaque class/c contracts. 2012-02-08 22:47:16 -05:00
Asumu Takikawa
f1557bc4be Opaque class/c should treat field opaquely too. 2012-02-08 22:47:16 -05:00
Asumu Takikawa
3eb963f62d Add #:opaque keyword to class/c.
The #:opaque keyword specifies that a class/c should be opaque.
An opaque class contract raises an error if the contracted class
contains any methods not mentioned in the contract.
2012-02-08 22:47:16 -05:00
Robby Findler
09200fc7aa actually added the images this time 2012-02-08 19:18:59 -06:00
Robby Findler
5e0f5beee5 added Racket logo by John & Neil 2012-02-08 19:17:42 -06:00
Robby Findler
678603ae24 move the 'remove all saved bug reports' menu item to the
end of the menu so it is not so easy to accidentally
click on
2012-02-08 16:23:13 -06:00
Robby Findler
b3a9ae9ba2 change the font in the pink highlighting to avoid some
bad drawing behavior on the mac (that shows up in the
amb tutorial)
2012-02-08 16:23:13 -06:00
Jay McCarthy
dc8f47b20a Missing require in docs
Fixes PR 12544
2012-02-08 11:04:54 -07:00
Kevin Tew
4f3bec1792 pr# 12542 fixed - All symbol types are now allowed across place channels. 2012-02-08 10:21:59 -07:00
Robby Findler
55b3d99d78 adjust beaucoup places in redex where the source was being
included in the compiled files. (also, misc minor cleanups
notably a new exercise in tut.scrbl)

closes PR 12547 --- there are still a few uses left, but they do not
seem to be coming from Redex proper:

 - /Users/robby/git/plt/collects/racket/private/map.rkt still appears
   in a bunch of places (there is a separate PR for that I believe),
   and

 - /Users/robby/git/plt/collects/redex/../private/reduction-semantics.rkt
   appears in tl-test.rkt, but I do not see how it
   is coming in via Redex code, so hopefully one of the other
   PRs that Eli submitted is the real cause. If not, I'll revisit later
2012-02-08 09:59:44 -06:00
Robby Findler
ed22a630fd fix predicates to return booleans 2012-02-07 20:33:05 -06:00
Robby Findler
4bac243efe put an expression to evaluate to find the path instead of the path
that was there when the html file was built.

closes PR 12545 (I do not agree with Eli's proposal for fixing this so I
did it differently)
2012-02-07 16:14:09 -06:00
Robby Findler
6633387827 adjust 'bitmap' so that it saves paths as a list of strings that
get interpreted as a collection at runtime, instead of saving a path.

closes PR 12548
2012-02-07 15:50:53 -06:00
Robby Findler
2ca0473f1c shrink longest line down to something more reasonable 2012-02-07 15:50:53 -06:00
Robby Findler
811a9227c3 Rackety 2012-02-07 15:50:52 -06:00
Ryan Culpepper
ed1ba3a442 syntax/parse docs: use trusted sandbox config
closes PR 12546
2012-02-07 13:43:26 -07:00
Ryan Culpepper
679b2d3872 lazy-require: use cm-accomplice 2012-02-07 13:43:26 -07:00
Ryan Culpepper
e2404184ee syntax/parse: fix opaque head patterns and splicing syntax classes
closes PR 12537
2012-02-07 13:43:26 -07:00
Kevin Tew
2de9de9b26 place-channel-put: value not allowed in a message
prints out just the invalid object, not the whole message
2012-02-07 13:07:02 -07:00
Jay McCarthy
078540b17c Fixing another problem discover because of Galler 2012-02-06 09:12:42 -07:00
Robby Findler
30239514a3 clarify 'add teachpack' menu item
closes PR 12540
2012-02-05 19:44:56 -06:00
Robby Findler
98a0b74b4f up the timeout for tut.scrbl 2012-02-05 18:51:55 -06:00
Robby Findler
3f6a835572 lift some work out so it happens earlier (and less often) in
the -> contract combinators. This speeds up the running of the (new)
file tut.scrbl by about 10%.
2012-02-05 17:24:13 -06:00
Robby Findler
794240bf67 added a amb-based redex tutorial 2012-02-05 17:24:13 -06:00
Robby Findler
8bec634dcd adjust covered-cases so that it always returns deterministically
(sorting by the strings in the result)
2012-02-05 17:24:13 -06:00
Matthias Felleisen
4e075a1f63 fixed typo, closes PR 12539 2012-02-05 10:13:31 -05:00
Matthew Flatt
a5420e41fc fix pattern match on error message that was modified in 8cf49dfdb1 2012-02-04 07:00:35 -07:00
Matthew Flatt
8cf49dfdb1 fix format of some error messages
Closes 12536
2012-02-04 05:32:00 -07:00
Jordan Schatz
8a2b06574a Two typos in the rackunit docs 2012-02-04 03:05:00 -05:00
Eli Barzilay
1c841e143f Add `procedure-rename' to the pile of things that are not used.
Closes PR9811 (with no fix it).
2012-02-04 03:03:18 -05:00
Eli Barzilay
9f662b6467 Fix typo and minor improvement. 2012-02-04 03:03:17 -05:00
Eli Barzilay
f023744814 Center the release text on the page. 2012-02-04 03:03:17 -05:00
Matthias Felleisen
b63cb42acf fixed documentation for check-within 2012-02-03 10:30:23 -05:00
Vincent St-Amour
b194916ad6 Fix printing of types in instantiation error messages.
Closes PR 12507.
2012-02-02 16:00:16 -05:00
Vincent St-Amour
b73421f812 Enable Performance Report in typed/racket/base and typed/scheme/base. 2012-02-02 16:00:15 -05:00
Eli Barzilay
3ddf935f20 v5.2.1 stuff 2012-02-02 14:59:30 -05:00
Rodolfo Henrique Carvalho
c3f92c26b9 Update collects/scribblings/reference/stx-trans.scrbl 2012-02-02 12:46:01 -05:00
Tim Brown
496a4513d5 Small typo in 2nd paragraph of scribblings/inside/procedures.html "a" should be "as"; update for "collects/scribblings/inside/ports.scrbl". 2012-02-02 12:46:01 -05:00
Matthew Flatt
2f5430e227 update pre-built libraries 2012-02-02 08:04:12 -07:00
Matthew Flatt
c979e690a5 fix test to work right with imprecise GC 2012-02-02 06:32:55 -07:00
Neil Toronto
a94e1fc00e Fixed plot doc tests
Removed contract/c from unstable/contract
2012-02-01 22:17:25 -07:00
Neil Toronto
dc677998f0 Added JPEG compression to compiled-bitmap' and compiled-bitmap-list'
Added "whirl and pinch" transform
2012-02-01 22:17:25 -07:00
Eli Barzilay
999e481785 Fix apparent bug.
In the new-ish code for following redirections, the `strings' argument
wasn't passed along as it did before.
2012-02-01 21:51:47 -05:00
Eli Barzilay
76ab851d2a The "foreign-test.rktl" finally work on both windows machines.
To get the expected contents of the various environment variables, I
used a similar approach to what the build does in `grab_batch_vars':
* Start a cmd.exe shell (not a real shell)
* Dump the env into a buffer
* Run "... Studio/VC/vcvarsall.bat" (modifies envvars, which is why cmd
  is needed)
* Dump new env into a new buffer
* Sort both buffers and compare

Hopefully it still works also on Matthew's setup.

Two other small things:

* Use ".obj" suffix on windows to avoid warning.

* Catch error when trying to delete the .so file, since on the x86_64
  machine it throws an error.  (I'm not sure how it *doesn't* do that
  with the i386 machine.)
2012-02-01 21:51:47 -05:00
Robby Findler
977659a118 fix redex's syntax pruning to not drop the #%top binding 2012-02-01 20:09:29 -06:00
Sam Tobin-Hochstadt
7c1c0c96c0 Fix type of `raise'.
Closes PR 12525.
2012-02-01 20:25:05 -05:00
Jay McCarthy
47d626ee8b Fix for an error Galler found 2012-02-01 17:06:14 -07:00
Jon Rafkind
b74ad87160 [honu] wrap the condition of when expression inside parentheses. instantiate literal sets at the proper phase for honu macros 2012-02-01 16:05:41 -07:00
Jon Rafkind
712951d347 [honu] add fun as an alias to function 2012-02-01 16:05:40 -07:00
Jon Rafkind
54449d824c [honu] use a function keyword to define procedures and make lambdas 2012-02-01 16:05:40 -07:00
Vincent St-Amour
1b6cf730c3 Fix type of expt.
Closes PR 12526.
2012-02-01 16:50:40 -05:00
Vincent St-Amour
87887b7a18 Optimize n-ary fixnum comparisons (correctly). 2012-02-01 16:50:39 -05:00
Vincent St-Amour
e3be061171 Only optimize fixnum comparisons in the binary case.
Closes PR 12479.
2012-02-01 16:50:39 -05:00
Neil Toronto
950f034936 Pushing unfinished but stable flomap transforms so Matthew can debug a segfault 2012-02-01 09:54:25 -07:00
Neil Toronto
7d28eef00d Moved contract/c and treeof to unstable/contracts
Little plot doc fixes
2012-02-01 09:44:47 -07:00
Neil Toronto
ec96e37e09 Documented unstable/flonum 2012-02-01 09:44:47 -07:00
Neil Toronto
47fcdd4916 Sped up floor-log/base and ceiling-log/base, and made them correct on flonum inputs.
This change significantly increases the speed of number formatting, making extreme-bounds-tests.rkt run in about 1/4 the time.

Should consider moving these into racket/math, since floor-log/base generalizes order-of-magnitude.
2012-02-01 09:44:47 -07:00
Neil Toronto
713772959f Clipping lines now uses exact arithmetic. Fixes visual issues with plotting inexact functions at very small scales. Every plot should render correctly at every scale now. 2012-02-01 09:44:47 -07:00
Robby Findler
e8902f9981 added a hack to keep DrRacket from freezing when it is unable to
detect if a (n online check syntax) rename would conflict with
an existing name. (This can happen because the remote place's
custodian gets shutdown due to, for example, another tab's online
check syntax running.)
2012-01-31 21:11:16 -06:00
Robby Findler
a0ef78e97b adjust online check syntax to try to fix a bug where renaming information
can get "stale" and cause DrRacket to deadlock (this commit just sets
up some stuff to make one fix possible, but that fix doesn't seem to
be working, so the actual fix is disabled (see comment in commit))
2012-01-31 21:11:16 -06:00
Robby Findler
019e57b9d7 fix docs mistake 2012-01-31 21:11:16 -06:00
Vincent St-Amour
5e7d67ffa7 Include more information in TR optimizer test failures. 2012-01-31 15:43:56 -05:00
Eli Barzilay
9813ba425f Show how the machine identifies itself.
This includes `uname', and trying hard to get a domain name when `uname'
doesn't include one.
2012-01-31 14:08:18 -05:00
Matthew Flatt
a3ce8bf787 doc behavior of `copy-file' and modification dates on Windows 2012-01-31 07:14:25 -07:00
Matthew Flatt
6a4d699f5f fix sandbox test to work on Windows 2012-01-31 07:14:25 -07:00
Danny Yoo
bbab60545e adding gvector-remove-last! 2012-01-30 16:14:22 -07:00
Eli Barzilay
d211804c3f The "libs" files are now under a "tags" subdirectory.
(Related to the server auto-publishing new tags and branches, configured
to do that in "~ftp/pub/racket/libs/{heads,tags}" respectively.)
2012-01-30 13:51:58 -05:00
Matthew Flatt
6e01d1586a racket/gui: fix refresh for right-aligned or centered paragraphs in text% 2012-01-30 11:01:18 -07:00
Matthew Flatt
6b6beb601e add PLT_VALIDATE_COMPILE to enable extra checking of the compiler
Setting the environment variable causes the bytecode compiler to run
the bytecode validator (which is normally applied to input from a
bytecode file) immediately on all of the compiler's own results.
2012-01-30 10:31:37 -07:00
Matthew Flatt
706d5026ac fix bytecode compiler bug
Certain `lambda'-lifting operations can cause information
about the flonumness of a variable to get lost, leading
to a mismatch between the closure's flags and flags on
a variable reference. (The bytecode validator could detect the
bug when loading the broken bytecode. The broken information,
meanwhile, was only used by the JIT.)
2012-01-30 10:30:51 -07:00
Matthew Flatt
3bed8aee43 fix docs for `syntax-id-rules'
Closes PR 12519
2012-01-29 06:50:35 -07:00
Matthew Flatt
323c74fd09 added docs for a&d args of slideshow's dc procedure
Based on John Clements's correction

Also, improve some cross references.
2012-01-29 06:50:35 -07:00
Sam Tobin-Hochstadt
c16e48a083 Fix internal constructor name for struct:' so that struct-out' works.
Closes PR 12447
Related to PR 12516
2012-01-28 09:47:15 -05:00
Sam Tobin-Hochstadt
f3e3eb10ad Fix type of `memf' to be more permissive. 2012-01-28 09:47:15 -05:00
Jon Rafkind
99daf6a9d1 [honu] fix tests 2012-01-26 15:23:20 -07:00
Jon Rafkind
42d21a9918 [honu] erase old files 2012-01-26 13:56:05 -07:00
Jon Rafkind
100d77260a [honu] provide assignment operators 2012-01-26 13:32:52 -07:00
Jon Rafkind
b67f5e71e6 [honu] add moere assignment operators 2012-01-26 13:32:52 -07:00
Jon Rafkind
9e8a77c5c5 [honu] fix more references to := 2012-01-26 13:32:52 -07:00
Jon Rafkind
7e5a0285d3 [honu] replace := with = 2012-01-26 13:32:52 -07:00
Jon Rafkind
d6be1fbdee [honu] move operators to their own module 2012-01-26 13:32:52 -07:00
Jon Rafkind
1fac120cd2 [honu] move core definition of honu-syntax to another module 2012-01-26 13:32:52 -07:00
Jon Rafkind
2b6efee854 [honu] still need := 2012-01-26 13:32:51 -07:00
Jon Rafkind
d7a35c1eb8 [honu] use = for mutation to be consistent with other uses. put where clauses of list comprehensions on the right side 2012-01-26 13:32:51 -07:00
Jon Rafkind
2af9100a5d [honu] make "then" keyword required for if again. start to add more loop types to for 2012-01-26 13:32:51 -07:00
Jon Rafkind
a1869fa2f1 [honu] then is optional in "if". allow multiple sequences in for. add for/fold 2012-01-26 13:32:51 -07:00
Jon Rafkind
bc30a94c72 [honu] allow list comprehensions to follow expressions 2012-01-26 13:32:50 -07:00
Eli Barzilay
31746a2d9e Revise commented code so it can replace exiting code without dependency issues. 2012-01-26 13:20:26 -05:00
Matthew Flatt
d22ff8c5e2 improve Guide info on PLTCOLLECTS' and raco link -d' 2012-01-26 09:30:25 -05:00
Matthew Flatt
13a5b0c623 change `ffi-lib' to not make library symbols global by default 2012-01-26 09:30:25 -05:00
Matthew Flatt
ab9607b35a adjust a doc correction 2012-01-26 09:30:25 -05:00
Jay McCarthy
8be9abf1d4 Verify that the HTML tags really do have their empty-tag behavior 2012-01-25 16:48:11 -07:00
Jay McCarthy
ce73175427 Changing the defaults for empty tag shorthand in XML 2012-01-25 16:48:11 -07:00
Jay McCarthy
41a64cbbd8 Dealing properly with rest args in svn-style commands 2012-01-25 16:48:11 -07:00
Jay McCarthy
027b09fec8 Marking release commits specially 2012-01-25 16:48:11 -07:00
Jay McCarthy
fda7e8bad5 Fix behavior on rest arguments 2012-01-25 16:48:11 -07:00
Jay McCarthy
2d0d4823a7 Throw an error when required fields are missing, rather than letting scribble error 2012-01-25 16:48:11 -07:00
Jay McCarthy
a72ca57ccc Fixing stupidity... for now 2012-01-25 16:48:11 -07:00
Jay McCarthy
32d1060c33 Adding branch information to commits 2012-01-25 16:48:11 -07:00
Jay McCarthy
acc95cbb56 Release branch 2012-01-25 16:48:11 -07:00
Rodolfo Henrique Carvalho
7d97cbecb4 Update collects/scribblings/reference/filesystem.scrbl 2012-01-25 08:48:56 -05:00
Eli Barzilay
d69a45210c Add `$RKTShortName' that doesn't include the version and the platform,
use it to improve some installer texts.

(Also update comment about required macro definitions.)
2012-01-25 08:44:39 -05:00
Eli Barzilay
5c977f3471 Removed old "***" leftover. 2012-01-25 08:44:39 -05:00
Ryan Culpepper
0b3691691a db: fix sqlite3 #:use-place for raco exe 2012-01-24 15:28:32 -07:00
Robby Findler
7cf563c4d9 fix some typos in a comment 2012-01-24 08:29:09 -06:00
Eli Barzilay
d21e646327 Include the platform in the windows installer's "human name".
(Otherwise having both installed can be confusing since the uninstaller
has the same name; also, it's good to make a reminder for people who
want the other one.)

Also, just use the platform string in the registry key uniformly.

Also add a comment about detecting Win64 if it's desirable in the
future.
2012-01-24 07:23:22 -05:00
Sam Tobin-Hochstadt
f70c1b213f `sort' now infers properly -- test passes.
Please merge to release.
2012-01-24 05:19:01 -05:00
Ryan Culpepper
622a947bc4 db: added #:use-sources for db/base exports 2012-01-23 16:06:14 -07:00
Neil Toronto
f966ea8876 Removed test byproducts accidentally committed in d020c75202
Please merge into release
2012-01-23 15:56:12 -07:00
Neil Toronto
015625e732 PLoT documentation for new renderers and plot/utils (code changes are only to move code around so a previously public function could be public again)
Many little doc fixes

Closes PR 12433

Closes PR 12435

Please please please merge into release
2012-01-23 15:56:11 -07:00
Eli Barzilay
3dd9001fdd Sort out stuff around `timeout-control'.
1. The contract in the docs was wrong.

2. The docs used `#f' where the code was expecting 'disable, so made it
   accept both.

3. Don't recommend disabling the timer -- I had a case where the
   connection was left for more than a day as a result.  (Probably
   because there was a message after the receipt email.)
2012-01-23 17:06:19 -05:00
Matthew Flatt
01dce00271 racket/gui: correct some casts in GUI bindings 2012-01-23 11:20:21 -07:00
Matthew Flatt
877d528ed3 improve docs for `cast' with warnings about potential bugs 2012-01-23 07:36:44 -07:00
Matthew Flatt
9d48858d53 try to fix Win64 installer: "Program Files (x86)" => "Program Files" 2012-01-21 08:10:38 -07:00
Mike Sperber
f02ec48e16 Export `read' in DMdA languages. 2012-01-21 15:43:52 +01:00
Matthias Felleisen
1d9d0401df added rcontrol to key events and docs; robby please test 2012-01-20 16:39:13 -05:00
Neil Toronto
2465b87d84 Coolified clock-icon, added stopwatch-icon
Updated Performance Report toolbar icon

Updated FrTime loading icon
2012-01-20 13:16:42 -07:00
Neil Toronto
07500b27f6 Fixed error in flomap gradient calculation (borders were always getting 0.0, causing erroneous lighting)
Inset rendered deep-flomaps by 1px to harden against future border issues

Adjusted scatter-simulating blur (finally rid of edge sparklies!)
2012-01-20 12:39:23 -07:00
Neil Toronto
f1add6929b Added portable hash-quote-icon, updated and recolored macro stepper toolbar icon
Closes PR 12422

Please merge into release
2012-01-20 12:29:52 -07:00
Neil Toronto
1b0db97919 Too many changes to cherry-pick for release
This reverts commit b8e3e8a04b.
2012-01-20 11:52:17 -07:00
Eli Barzilay
2a1464b49e Move the dmg build to weatherwax (which can now deal with it. )
Also, remove attempt for a smart use of `fmt' -- the problem is that now
"$platform" is not set, so the conditional didn't do anything.  It would
be easy to get a conditional using `uname', but better to drop the whole
thing.
2012-01-20 11:40:11 -05:00
Neil Toronto
b8e3e8a04b Fixed error in flomap gradient calculation (borders were always getting 0.0, causing erroneous lighting)
Inset rendered deep-flomaps by 1px to harden against future border issues

Adjusted scatter-simulating blur (finally rid of edge sparklies!)

Added portable hash-quote-icon, stopwatch-icon

Vertical toolbar macro stepper icon now discernable

Updated Performance Report toolbar icon

Updated FrTime loading icon

Closes PR 12422

Please merge into release
2012-01-19 21:33:22 -07:00
Matthew Flatt
484803a896 gtk: fix problem wth window freeze & thaw
Closes PR 12496

Merge to 5.2.1
2012-01-19 16:20:45 -07:00
Matthias Felleisen
2a34cbfb85 re-added rshift to KEYEVTS, no clue how they got lost; Closes PR12500; please merge into 5.2.1 2012-01-19 17:59:43 -05:00
Matthew Flatt
481e061440 adjust `raco ctool --c-mods' and related to work with places
That is, the generated declare_modules() function registers the
module-declaration code so that it is run in any new place, too.

Merge to 5.2.1
2012-01-19 13:14:02 -07:00
Matthew Flatt
c723aeeb6a fix position counting in `read-byte'
Merge to 5.2.1
2012-01-19 13:14:02 -07:00
Matthew Flatt
6c4cd0e9c2 fix raco ctool --c-mods' for racket'
Merge to 5.2.1
2012-01-19 13:14:02 -07:00
Matthew Flatt
350d0b1edf fix `raco make -j'
Closes PR 12491

Merge to 5.2.1
2012-01-19 13:14:02 -07:00
Matthew Flatt
6b6d281dee document raco make' flags; add --disable-constant' flag 2012-01-19 13:14:02 -07:00
Matthew Flatt
eb0cbcb3c4 sort out for-require' vs. for-load' paths to a sandbox evaluator
The two became tangled in commit f7c16fc8, and then 952ae06105
adjusted the tangling in a way that broke code. This commit
further adjusts tangling in a way that hopefully causes fewer
compatibility problems, but it also splits inputs to
`make-evaluator' so that a programmer can choose more explicitly.
2012-01-19 13:14:02 -07:00
Robby Findler
c9e4c88b7c fix a bug in check syntax where it would attempt to (as part of the
coloring for blame assignment in check syntax) try to color
the right-hand side of a binding that actually comes from
a lambda-bound variable (and thus crash for not finding the
right-hand side)
2012-01-19 13:20:41 -06:00
Eli Barzilay
fb46b12836 Adjust the installer tests to the removal of libfit. 2012-01-19 13:59:47 -05:00
Robby Findler
3b2cf3f7a4 make the tooltips for the drracket toolbar buttons go away when they
get any events (this shouldn't be necessary unless one gets lost
somehow, but apparently that can happen)
2012-01-19 12:14:35 -06:00
Matthias Felleisen
0a5a949d1a fixed an old wheel-event bug and added version number to history, please propagate 2012-01-19 11:39:05 -05:00
Robby Findler
a41dbf5d7f added a clarification to the freeze docs 2012-01-18 20:04:30 -06:00
John Clements
481bc2f00f make sure initial update goes on eventspace thread 2012-01-18 14:51:42 -08:00
John Clements
758523bdf3 put status bar update on stepper frame eventspace 2012-01-18 14:51:42 -08:00
Jon Rafkind
276cb4150d [honu] replace = with in 2012-01-18 14:15:54 -07:00
Jon Rafkind
ae3ff467b0 [honu] already have integer, dont need int 2012-01-18 14:10:48 -07:00
Jon Rafkind
1b81ed5d8d [honu] add != operator. provide some other basic functions 2012-01-18 12:34:51 -07:00
Jon Rafkind
9d11622968 [honu] add a filtering clause to list comprehensions 2012-01-18 12:34:51 -07:00
Jon Rafkind
6552d3f2cd [honu] allow classes to accept 0 constructor parameters. add 'to' as a binary operator that creates a list of numbers 2012-01-18 12:34:51 -07:00
Matthew Flatt
a823986281 doc clarifications on `frtime' 2012-01-18 10:10:28 -07:00
Matthew Flatt
47c2fb8ba9 doc clarification on SRFI-1 exports 2012-01-18 09:50:32 -07:00
Eli Barzilay
f184222e2b Add a syntax for making lines in the status text linked. 2012-01-18 07:22:09 -05:00
Eli Barzilay
cf35df172a Make the bg-log files available on the web page too. 2012-01-18 07:17:48 -05:00
Eli Barzilay
cfa5938092 Better solution to using "$platform" -- do that only in DO_BUILD. 2012-01-18 07:17:48 -05:00
Matthew Flatt
b51b36869e win64: fix `raco dist'
Merge to 5.2.1
2012-01-17 21:07:07 -07:00
Eli Barzilay
cabd6fabc7 Remove robots meta tags.
Indexing index pages is harmless, and also "nofollow" is appropriate for
public lists with lots of junk, advertising etc.  We have nearly zero
spam, so following links in posts is fine.
2012-01-17 22:30:48 -05:00
Robby Findler
71595a55e6 adjust the names of the dot/neato binaries to be platform-specific 2012-01-17 12:42:42 -06:00
Matthew Flatt
ddd246232e fix JIT-generated code in case of arity mismatch
The generated code was checking arity after potentially copying
arguments to the start of the runstack (i.e., if the arguments
were not already there). If too few arguments are provided, then
the copy might access past the end of the given array.

The redundant arity check removed in commit f7c506471b
had previously masked this problem. (Or the check wasn't redundant
in that sense, but it's better this way.)

Merge to 5.2.1
2012-01-17 07:33:58 -07:00
Matthew Flatt
2c88b12913 add some missing acks
Merge to 5.2.1
2012-01-17 07:33:58 -07:00
Eli Barzilay
52382442f0 Have a default "" platform so kauai can still be used to make the dmgs.
(This is just a hack, $platform should really be used only in the build
functions instead of at the toplevel.)
2012-01-17 09:27:06 -05:00
Neil Toronto
695583e90b Added clock icon
Fixed faulty bilinear interpolation in shadow intersection, removed blurring hack

Fixed caching bug (for some reason, generate-temporaries didn't create a unique symbol - note, not *identifier*; used gensym instead)

Please merge into release
2012-01-16 22:30:52 -07:00
Neil Toronto
aa0851bc45 Exposed simple rendering API (can at least render simple icons given a pict now)
Please merge into release
2012-01-16 16:39:18 -07:00
Neil Toronto
f45843d58e Added docs for images/compile-time
Added `is-a?' and `list?' tests to `compiled-bitmap' and `compiled-bitmap-list'

Please merge into release
2012-01-16 16:39:17 -07:00
Ryan Culpepper
f711f3385c macro-stepper: fix relative require bug (set current-directory)
related to PR 12486
2012-01-16 14:55:43 -07:00
Matthias Felleisen
f173b9977c fixing silly mistake, plus test; please merge 2012-01-16 16:21:25 -05:00
Matthias Felleisen
54c1f496e8 this creates a repeatable cored dump in drracket 2012-01-16 15:41:48 -05:00
Neil Toronto
ea68677d2f Icon fixes:
Split images/icons/misc into images/icons/symbol and images/icons/misc

Updated tests

Fixed Gtk assertion failure in Macro Stepper (came from "about" dialog being created before the stepper window was shown; fixed by creating it on demand)

Changed Stepper similarly (though there was no assertion failure)

Put a quote in the Macro Stepper logo

Portable recycle-icon

Removed recycle unicode from the docs (was causing PDF build to fail)

Internal API fixes

Please merge into release
2012-01-16 12:45:48 -07:00
Matthias Felleisen
10f8222bf4 added documentation for pad-handler facility 2012-01-16 12:41:15 -05:00
Matthias Felleisen
f9233bce47 added pad-handler facility 2012-01-16 12:41:13 -05:00
Robby Findler
aaeb3db534 clear the "what was the last language?" state when moving out of the module language
so that things get initialized properly when moving back into the module language.

closes PR 12493
2012-01-16 09:09:58 -06:00
Robby Findler
5d946329ca adjust two 2htdp test files so they don't run in drdr (they are interactive)
please merge to the release branch
2012-01-16 08:56:59 -06:00
Eli Barzilay
7fa08391a0 XREPL fixes
* Avoid using readline on windows (segfaults, and anyway mostly not
  useful)

* Don't try to read init file if it doesn't exist.

* Improve asking questions in the `install!' command.
2012-01-16 08:18:30 -05:00
Danny Yoo
a1da6af22d correction for performance.scrbl 2012-01-16 08:18:30 -05:00
daniel watson
75d5b42640 Guide proofread
* fix content of REPL output in quote example

* fix indentation on tail-recursive my-map code
2012-01-16 08:18:30 -05:00
Eli Barzilay
252221246d Debian squeeze is back, and a typo.
(The lenny build will not be back.)
2012-01-16 08:18:30 -05:00
Neil Toronto
f66aab8057 Removed the animated GIF of the running stickman :(
Please merge into release
2012-01-15 22:19:55 -07:00
Neil Toronto
4a09c04581 Lightened icon outlines
Added lambda icon, foot icon, search forward/back icons

Doc fixes

Stepper: icons on buttons, logo and about dialog

Macro stepper: icons on buttons, logo and about dialog

Please merge into release
2012-01-15 22:19:55 -07:00
Robby Findler
b068d9583c Remove accidentally pushed commits
For the curious, this was an attempt to change the way context
matching works.  Currently, when matching a pattern, if 'hole' is
encountered, the match succeeds and the result just includes the term
at that point. This means that when matching (in-hole p1 p2), p1
generally returns multiple results and then those results are thinned
out by matching p2 against the thing actually at the hole.

Instead, one could pass along the function that does the matching and
then, when matching a hole pattern, it could decide right at that
point whether or not the match works.

This seems like it would be a win overall, but it interferes with
caching. Specifically, most reduction systems have lots of rules
that all begin

  (--> (in-hole E ...) ...)

and, in the strategy first described above, that matching can be cached.

But in the second, it cannot. Overall, this turns out to be a slight
lose in the current version of Redex. Maybe if other things change, however,
this tradeoff will change.

Revert "IN PROGRESS: more context speedup attempt"

This reverts commit 0134b8753d.

Revert "IN PROGRESS: a possible speed up attempt; match the thing in the hole before returning the context matches instead of afterwards"

This reverts commit 11059e2b5c.
2012-01-15 21:02:48 -06:00
Eli Barzilay
4b17fe731a Disable some builds.
* The darwin build on kauai (the machine is no longer maintained, and
  has no cairo installed).

* The two debian builds (also no cairo).

* Remove comment from osx64 build (which is now done on Robby's
  machine).
2012-01-15 20:48:10 -05:00
Eli Barzilay
4d04c04aa2 New build request functionality. 2012-01-15 20:48:10 -05:00
Eli Barzilay
952ae06105 Minor bug fix: using a string as a path should be used as a path.
Previously, they were treated as require specs, which was likely bogus.

(This is unrelated to the discussion about the exists problem.)
2012-01-15 20:48:10 -05:00
Eli Barzilay
e8356b3b91 Tiny typo. 2012-01-15 20:48:10 -05:00
Eli Barzilay
3bdf05d7e1 Minor improvements, mainly to the header/status suffixes. 2012-01-15 20:48:10 -05:00
Matthew Flatt
96dea8c732 fix typo (patch from Gustavo Massaccesi)
Closes PR 12489

Merge to 5.2.1
2012-01-15 17:05:11 -07:00
Matthew Flatt
6f528c7a17 fix and generalize errortrace detection of always-ok functions 2012-01-15 17:05:11 -07:00
Robby Findler
262931bb80 adjust typesetting so the ellipsis uses the default style, not
literal-style (unless an atomic-rewriter is in place)
2012-01-14 21:32:16 -06:00
Neil Toronto
b78ee4258c Finished images/icons contracts and docs
Please merge into release
2012-01-14 14:20:28 -07:00
Robby Findler
b3c450ffc9 add 'side-condition' to define-judgment-form (it does not have an implicit
unquote like the other side-condition's do, but it is still useful
for typesetting purposes)
2012-01-14 14:52:07 -06:00
Neil Toronto
599dda4745 Removed timing examples (not reliable)
Please merge into release
2012-01-13 22:00:06 -09:00
Neil Toronto
15f48a7b03 Documented logos
Please merge into release
2012-01-13 23:51:31 -07:00
Neil Toronto
0c5ea11056 Contracts for almost all icon-producing functions
More documentation (Now contains an animated GIF! We have achieved Web 1.0!)

Fixed stop sign double-rendering bug

Compiled logos size 256 (no rendering time for sizes < 256; intended size almost instantaneous)

Please merge into release
2012-01-13 22:49:27 -07:00
Sam Tobin-Hochstadt
b75e080aee Document unicode case->. 2012-01-13 14:40:48 -05:00
Sam Tobin-Hochstadt
e3609cdb32 Refactor and improve fuzzy searching in completion. 2012-01-13 14:39:05 -05:00
Vincent St-Amour
ca11c2e4fa Add an alternate name for case->. 2012-01-13 11:28:36 -05:00
Vincent St-Amour
87a53159dd Union types instead of clobbering them in the type table.
This fixes a bug where only the last branch of a case-> type would get stored.
2012-01-13 11:28:36 -05:00
Matthew Flatt
60c418b20e fix `find-files' to convert an initial string into a path
Merge to 5.2.1
2012-01-13 07:15:15 -07:00
Neil Toronto
4d1cedc913 Removed accidental dependence of images/icons/stickman on racket/gui
Began scribble docs

Added `compiled-bitmap' and `compiled-bitmap-list', which embed bitmaps
computed at expansion time into compiled files (safe 3D values)

Please merge into release
2012-01-12 21:48:41 -07:00
Neil Toronto
5dcfd76927 Text icon fix - works better when trimmed
Recycle icon (text icon of string "\u267b")

Removed debug output from plt-logo

Slightly faster bitmap <-> flomap conversion (uses bitmap%'s premultiply-alpha)

Please merge into release
2012-01-12 11:22:01 -07:00
Neil Toronto
436a1dcb71 Use running stickman in lower-right "run" indicator
Please merge into release
2012-01-12 11:22:01 -07:00
Neil Toronto
2313b528c4 Added standing and running stickman icons
Optimize rendering by looping only over the smallest rectangle with nonzero alpha

Please merge into release
2012-01-12 11:22:01 -07:00
Matthew Flatt
a1fd742ed0 change Scribble xref formats, so that HTML info works for Latex
There's no particular reason that any one format will have all
the information that other formats need, but it conveniently works
for now that HTML info can subsume Latex info.
2012-01-11 16:39:52 -07:00
Robby Findler
0134b8753d IN PROGRESS: more context speedup attempt 2012-01-11 13:16:47 -06:00
Robby Findler
11059e2b5c IN PROGRESS: a possible speed up attempt; match the thing in the hole before returning the context matches instead of afterwards 2012-01-11 13:16:46 -06:00
Robby Findler
e067a4415a fix call to message box to remove incorrect style flag
merge to the release branch, please
2012-01-11 13:16:46 -06:00
Robby Findler
5e80753b48 relax the contract to match what the server actually needs
closes PR 12476

merge to the release branch, please
2012-01-11 13:16:46 -06:00
Robby Findler
9aecc08579 tweak the printing of syntax errors again so the "in:" part is in tt font
merge to the release branch, please
2012-01-11 13:16:46 -06:00
Robby Findler
d93818dd61 Change 'bitmap' to use collection-file-path (with its new #:fail) argument,
so that it picks up linked collections.

closes 12424

merge to the release branch, please
2012-01-11 13:16:46 -06:00
Matthew Flatt
8c092f093b clean up and generalize optimizer support for omittable primitives
For example, the optimizer knew to drop `(cons x y)' if the result
is unused, but not `(pair? x)'.
2012-01-11 06:58:39 -07:00
Matthew Flatt
7850a26dfe fix bytecode optimizer bugs
Certain unsafe operations were allowed to propagate across a
`lambda' boundary (where space safety is known not to be an issue),
which could lead to duplicate uses of a "once used" variable if
the relevant `lambda' is inlined.

Furthermore, `lambda' boundary crossing wasn't detected in the case
that the operation to propagate was propagated through an intermediate
variable without a `lambda' crossing.

Merge to 5.2.1
2012-01-11 05:30:11 -07:00
Matthew Flatt
ff41a896bc add ffi/com', ffi/unsafe/com' 2012-01-10 18:35:32 -07:00
Neil Toronto
5736695bae Better debugger icon bomb 2012-01-10 15:21:49 -07:00
Neil Toronto
daf3ed55ba Rewrote flomaps and rendering in Typed Racket for speed and safety 2012-01-10 13:30:32 -07:00
Neil Toronto
be4bfdff4c Contract fix 2012-01-10 13:30:32 -07:00
Neil Toronto
6ec78137e3 Caching with weak boxes, cleanup, planet download icon 2012-01-10 13:30:32 -07:00
Robby Findler
f1a7864c63 fix bug in lw struct generation 2012-01-09 20:38:51 -06:00
Matthias Felleisen
d9176df246 replaced gamepad image with higher resolution version 2012-01-09 19:13:52 -05:00
Matthew Flatt
d56d28f0b6 protect `raco setup' from files in linked collection dirs
Patch by Jay McCarthy.

Merge to 5.2.1
2012-01-09 16:55:39 -07:00
Matthew Flatt
8b54dc43c8 fix problem printing symbols with unicode chars
Specifically, special-casing letters (such as sigma) were not
handled correctly.

Merge to 5.2.1
2012-01-09 16:55:39 -07:00
Matthew Flatt
7b4fd9b275 make draw-mem test more reliable 2012-01-09 16:08:28 -07:00
Matthew Flatt
23010fc495 add #:fail' option to collection-file-path' and `collection-path'
Merge a variant to 5.2.1
2012-01-09 15:59:05 -07:00
Matthew Flatt
3b87b73555 make scriblib/figure' work with scribble/jfp' 2012-01-09 13:29:56 -07:00
Matthew Flatt
3d76aa5c32 fix I/O race in test 2012-01-09 13:29:56 -07:00
Robby Findler
6cacd57ebc add check-redundancy, a parameter that causes redex to print some
debugging information about ambiguous matching (when the ambiguity
matters)
2012-01-09 12:57:24 -06:00
Robby Findler
a12df9cea6 redex: misc cleanups:
- remove cache instrumentation code
 - make hole->not-hole parsimonous
 - change the cache size back to 63
2012-01-09 12:57:23 -06:00
Robby Findler
0c6e0a11cf removed ambiguity from the cont-mark-transform's "a" non-terminal
Redex no longer has extra checks to eliminate redundant matches
(as those checks are prohibitively expensive for the lambdajs model)
so redundancy in the grammar can, when combined with context
decomposition or named patterns, lead to significant slowdowns
2012-01-09 12:57:22 -06:00
Robby Findler
4fab7f76af tweak the compiled representation of lw structs so they take less space
this shrinks the size of redex/examples/r6rs/r6rs.rkt's .zo file by about 25%
2012-01-09 12:57:21 -06:00
Robby Findler
2afda360d0 redex: adjust the test suites to clean up a few things; also make the
hole and the-not-hole equal? to each other (like they used to be)
2012-01-09 12:57:20 -06:00
Robby Findler
93c21e34de added a cycle check to define-language so grammars like this one:
(define-language L
     (e e))

are rejected as syntax errors
2012-01-09 12:57:19 -06:00
Jon Rafkind
ec02c2f83a [honu] refactor dot into syntax classes 2012-01-09 10:38:12 -07:00
Jon Rafkind
13abcf91fb [honu] make dot a fixture so that assignment can work: v.x := 5 2012-01-09 10:38:11 -07:00
Jon Rafkind
c9788909ea [honu] fix for literal sets generated in a macro. replace . with -> for classes in the linq example 2012-01-09 10:38:11 -07:00
Jon Rafkind
8bb8ac5859 [honu] provide #%top and #%datum for standard honu 2012-01-09 10:38:11 -07:00
Jon Rafkind
dc16449dd5 [honu] change to honu extension 2012-01-09 10:38:11 -07:00
Eli Barzilay
d539792895 * Fix showing branch in non-master builds.
* Show error in last status, so it's visible later.

* `show' can get a `-s' flag too.

* Remove unused `append_dots'.
2012-01-09 07:36:37 -05:00
Eli Barzilay
536f89926f ntoronto is responsible for images. 2012-01-09 07:36:37 -05:00
Ryan Culpepper
f9339d6903 restore some of deleted unstable docs into web-server-internal docs 2012-01-08 23:25:53 -07:00
Ryan Culpepper
dba35c3116 db: added nested transactions 2012-01-08 23:25:53 -07:00
Ryan Culpepper
62e117bfe6 added tests for srfi/13 from SXML codebase 2012-01-08 23:25:53 -07:00
Eli Barzilay
62213b9f28 Allow cross-site use of the status script.
Also a random header change, and adjust cache frequency.
2012-01-08 21:59:04 -05:00
Eli Barzilay
b24e0d52ea Another typo. 2012-01-08 15:23:34 -05:00
Matthew Flatt
7153fbd4d5 net/mime: allow any subtype, exns as exn:fail subtypes; doc fixes 2012-01-08 12:14:51 -07:00
Robby Findler
fbed2d5af7 remove (broken) attempt at optimization Jay suggested
also clean up some test cases that I wasn't sure about earlier
2012-01-08 12:13:37 -06:00
Robby Findler
0459e4fbcd redex: when there are no duplicate names in a pattern, don't do the
same-name-same-bindings check

this seems to speed up the r6rs test suite by about 12% and the
lambdajs benchmark by about 25%
2012-01-08 12:13:36 -06:00
Robby Findler
ddecad0575 redex: adjust the way metafunction tracing is printed so you
don't see (list 'lambda (list 'x) 'x) but instead (lambda (x) x)
2012-01-08 12:13:36 -06:00
Eli Barzilay
86579b4f15 Yet more tweaks and fixes. 2012-01-08 12:58:50 -05:00
Robby Findler
95ac3c86f7 fixed bug in the way aug:keymap extracts the names
now it should return only the canonical names of the keybindings
(instead of potentially returning both the canonical and
non-canonicalized names)
2012-01-08 07:07:56 -06:00
Robby Findler
3bc1e8f3c0 Change the keybindings dialog to be a frame, and make it react
to changes in focus

closes PR 12474
2012-01-08 06:55:50 -06:00
Eli Barzilay
e0275b95ba Drop Infogroep mirror.
(Keeps timing out.)
2012-01-08 03:36:50 -05:00
Eli Barzilay
107615f1fe Some more improvements and fixes. 2012-01-08 03:36:50 -05:00
Matthew Flatt
9389947f6f clarify docs on is-enabled?' and is-shown?' 2012-01-07 21:17:12 -07:00
Matthew Flatt
fd019a3478 add on-subwindow-focus' to window<%>'
relevant to PR 12474
2012-01-07 21:17:12 -07:00
Matthew Flatt
9ff30672fc add deprecation note for the ActiveX part of MysterX 2012-01-07 21:17:12 -07:00
Robby Findler
78ac4d3d27 fix syntax error message display for new way that drracket's ports handle printing of snips 2012-01-07 21:04:26 -06:00
Ryan Culpepper
ca3584452e update dist specs for icons fix, new images collection 2012-01-07 17:55:54 -07:00
Neil Toronto
89a5afa96d Purged last SVG file 2012-01-07 16:32:56 -07:00
Neil Toronto
1a00d2d51f Last icon rewrite!
This removes all the SVG sources, parsing, and marked-layer colorizing, the PNG binaries in the distribution, and the dependence of DrRacket on `slideshow/pict'.

Icons are now produced by drawing on a bitmap-dc%, inferring or building a z map, choosing a material, and sending these to a two-pass ray tracer. This is for the most part hidden behind an API consisting of functions from colors and optional sizes and materials to `bitmap%'s.

Contracts and documentation forthcoming.
2012-01-07 16:18:11 -07:00
Philippe Meunier
67beec3ae9 Updates French translation file and fixes small mistake in English one. 2012-01-08 04:25:16 +09:00
Eli Barzilay
465a8da995 Add status script. 2012-01-07 09:35:15 -05:00
Eli Barzilay
efc5a05049 Delete build directory at the start of a dispatched build.
Previously, if a dispatched build failed the files from the previous
build would still get copied.  This was an intentional feature, since
only the compiled binaries of these builds are used, and usually these
would work fine (with the zo files that were built on the main machine).

Now, the build directory is deleted when starting, which means that any
failure in a remote build means that the whole build will fail.  This
turns out to be better since when there are problems, the previous
behavior could be very confusing.  In addition, the racket setup itself
rarely fails, so this won't make a difference.
2012-01-07 09:35:14 -05:00
Eli Barzilay
ecf42d077b More build improvements.
* Use `ssh' to copy the repo tgz, so it can also create the build
  directory in a single connection.

* Use "racket" in the build materials directory name (since it's used in
  random machines).

* Use `chcon' to make files accessible to the web server under selinux.

* "YYYY-MM-DD HH:MM" in log time strings (leave the one on the web page
  as is).

* Uniform machine+platform labels in headers on dispatched builds.  The
  main build machine doesn't have them.
2012-01-07 09:35:14 -05:00
Eli Barzilay
e0dc712002 Add a status file.
On dispatched builds the status is printed in their own logs in a
greppable way, and these lines are removed when these logs are displayed
as part of the main log.
2012-01-07 09:35:14 -05:00
Eli Barzilay
62abe242f2 Better tmp filenames, since it's in a "racket" directory. 2012-01-07 09:35:14 -05:00
Eli Barzilay
6616d53831 More robust use of `$htmloutput'. 2012-01-07 09:35:14 -05:00
Eli Barzilay
aa0c90a2a0 Cleanup using `$tmpdir', and set it to a subdirectory of /tmp. 2012-01-07 09:35:14 -05:00
Eli Barzilay
13db1c1a08 Simplify `port-success-choose': no need for the first argument with the
full match, since it can be taken from the `ms' list.  (Also, some minor
reformatting.)
2012-01-07 09:35:14 -05:00
Robby Findler
e0a72fab7d did some refactoring to prepare for making the keybindings dialog
be a frame and react to changes in focus of the main drracket window.

didn't finish because there does not seem to be an equivalent to
on-subwindow-focus that lets the frame detect when one of its
children gets the focus.

related to PR 12474
2012-01-07 07:11:59 -06:00
Robby Findler
950d165133 fix the not-a-language message so that the styles in the REPL are right 2012-01-06 20:59:34 -06:00
Vincent St-Amour
631c145add Change Performance Report popups to frames instead of dialogs.
This fixes the lack of close button on mac.
2012-01-06 15:59:23 -05:00
Vincent St-Amour
076648fecc Improve documentation the TR numeric tower. 2012-01-06 13:19:14 -05:00
Vincent St-Amour
f50008280b Export Negative-Fixnum. 2012-01-06 13:19:14 -05:00
Vincent St-Amour
4556ea2992 Fix log's type for Real inputs. 2012-01-06 13:19:14 -05:00
Matthew Flatt
c1ceebb92a fix cfg-parser' to more closely match parser' 2012-01-06 10:43:10 +01:00
Robby Findler
20bcf80e8b add a check to make sure we don't try to select a teachpack when the
user clicks on empty space

closes PR 12472
2012-01-05 23:04:07 -06:00
Jay McCarthy
061007f30f Fixing last dumb mistake? 2012-01-05 14:57:08 -07:00
Jay McCarthy
0bf92dbc29 Forgot to update props for GC2 2012-01-05 13:23:12 -07:00
Jay McCarthy
c2355caef6 Finalizing initial pass on GC2
It was not a problem with the particular collector. All allocation
sites need to update the gc-roots-key with their static information.
2012-01-04 19:55:24 -07:00
Jay McCarthy
55e1df1445 See last commit 2012-01-04 19:55:24 -07:00
Jay McCarthy
caf83b911b Initial pass on adding manual closure management
There are still five errors, but they seem to be errors in the sample
collector. But I need to find out.
2012-01-04 19:55:24 -07:00
Jay McCarthy
f80292b4cf Converting mutators 2012-01-04 19:55:24 -07:00
Jay McCarthy
e4755a5ffc New GC code 2012-01-04 19:55:24 -07:00
Robby Findler
7fb3d5c395 improve the red highlighting in drracket so that it picks
the first thing in the stack that's in the definitions window
(instead of just the first thing in the stack period)
2012-01-04 10:59:42 -06:00
Jay McCarthy
ef1278d6e1 Adding radio and checkbox groups to formlets 2012-01-03 15:05:37 -07:00
Jay McCarthy
4271fe4231 Improve formlet docs a little
Clarify that the formlet position is any expression.
2012-01-03 15:05:37 -07:00
Jay McCarthy
022ce2d8d7 Fixing PR12443
There is a big comment in thread.rkt that explains the problem and the
"fix". I think something better could and should be done, but I don't
know what it is.
2012-01-03 15:05:37 -07:00
Robby Findler
160fcacad6 redex: fix bug introduced in recent optimization attempts 2012-01-02 22:21:21 -06:00
Robby Findler
83758881c3 Don't attempt to drop duplicates in the non-terminal case
This speeds up the lambdajs model considerably because the computation
to determine duplicates is expensive and no duplicates are really
ever dropped (and, in general, I think that duplicates will only
be dropped when the grammar is ambiguous; so maybe a better thing
is to just rewrite the grammar when that happens)
2012-01-02 10:08:34 -06:00
Robby Findler
6bf42855b8 adjust plug to be parsimonious and actually shortcircuit
when one hole has been found

This improves the lambdajs model example's running time, presumably
because the hole is generally found near the "beginning" of the
term
2012-01-02 10:08:33 -06:00
Robby Findler
5dcbedc768 redex: adjust the caching strategy
Instead of using a hash-table, use the equal-hash-code directly;
this lets me evict entries only when they clobber each other,
and generally keep good cache utilization.

Also, cut the cache size by a factor of 5 while still having a
slight performance improvement on the r6rs test suite benchmark.
On that same benchmark, there are 1714812 misses in the cache, but
only 3485 times is an entry in the cache clobbered
2012-01-02 10:08:31 -06:00
Robby Findler
a6a01fd7b8 redex: fix arity-1 cache key computation 2012-01-02 10:08:31 -06:00
Robby Findler
a7a70cbca9 redex: improved the definitely-not-list definitely-not-non-list
computation to be more accurate
2012-01-02 10:08:30 -06:00
Robby Findler
fe1df742b3 Tried to improve redex by detecting when a pattern does not
have any holes, hide-holes, or names and, in that case, just
combining booleans instead of building of mtch structs.

This does seem to work on a simple benchmark. The code below
gets about 6x faster. But on the r6rs test suite, there is
no substantial change (possibly because the caching obviates
this optimization?)

lang racket/base
(require redex/reduction-semantics)
(caching-enabled? #f)
(define-language L (e (+ e e) number))
(define t
  (let loop ([n 100])
    (cond
      [(zero? n) 1]
      [else `(+ 11 ,(loop (- n 1)))])))
(define f (redex-match L e))
(time (for ([x (in-range 1000)]) (f t)))
2012-01-02 10:08:29 -06:00
Robby Findler
6f97a3a783 disable attempt at Jay's optimization
When I enabled this, I don't see any speedup, on the R6RS test suite
benchmark (I see minor slowdown). Here are the numbers I get, on my
laptop:

   nt cache:  35537 msec
    neither: 844933 msec
 Jay's idea: 875306 msec

And with both on, I see a similar, minor slowdown (as compared to the
version with the nt cache).

The main difference seems to be that I'm getting about 6 "hits" per
test case on the nt-match structs (that is, I avoid work by finding an
nt-match struct) and I'm getting about 8,800 hits in the cache per
test case.
2012-01-02 10:08:29 -06:00
Robby Findler
424a535cf4 first attempt at Jay's optimization for redex
(only did enough to get the r6rs tests running)
2012-01-02 10:08:28 -06:00
Matthew Flatt
2b2c44774f fix scheme_basic_env() reset behavior
Also, fix test to that it DrDr will run it.
2012-01-02 15:03:49 +01:00
Matthew Flatt
03808d245c fix typo
reported by ozzloy
2011-12-31 17:03:50 -07:00
Eli Barzilay
3718600125 2011 -> 2012 2011-12-31 15:16:59 -05:00
Eli Barzilay
4d5ba08653 lambda' -> λ' 2011-12-31 14:24:41 -05:00
Matthias Felleisen
32b7a1b418 created pad=, exported it, documented game pad minimally 2011-12-31 11:28:11 -05:00
Matthias Felleisen
b0de0e126e an interactive test for various game pad configs 2011-12-31 11:28:11 -05:00
Matthias Felleisen
5867589993 initial stage of game pad, need to turn play file into test 2011-12-31 11:28:10 -05:00
Matthias Felleisen
c221131254 scheme/racket cleanup 2011-12-31 11:28:10 -05:00
Matthew Flatt
fb46daafa0 fix typo
Reported by J. Ian Johnson
2011-12-31 06:32:13 -07:00
Matthew Flatt
2ebff14e3e fix typo 2011-12-31 06:32:13 -07:00
Robby Findler
f4b4e00c55 added bitmap/file
closes PR 12466
2011-12-29 22:18:07 -06:00
Robby Findler
4c86e2fe86 redex: memoize only the non-terminal patterns
remarkably, this seems to cut the time for running
the r6rs test suite in about 1/2
2011-12-29 11:01:21 -06:00
Robby Findler
57f51cf5c8 redex: use predicate/c instead of (-> any/c boolean?)
and a few other, minor changes
2011-12-29 10:58:26 -06:00
Robby Findler
d6ce2b61bc redex: inline lookup-binding 2011-12-29 10:32:02 -06:00
Robby Findler
9bcb86eb0c redex: minor cleanup 2011-12-29 10:15:52 -06:00
Robby Findler
5b2d378a77 fixed a bug in recent Redex internal pattern rewrite
(discovered by the random testing done for the racket machine model)
2011-12-28 23:52:56 -06:00
Eli Barzilay
753fd77858 Minor typo.
Closes PR12463
2011-12-28 21:09:45 -05:00
Eli Barzilay
3fcd3c04d5 Minor typo in recent new regexp. 2011-12-28 21:07:25 -05:00
Eli Barzilay
064a914fb2 Complete set of mailman template files.
This covers all of the html files in mailman's template directory, and
we should have a consistent look for all pages.  (Including archived
messages.)  Also tweak the front page to have a link to the mailman
"listinfo" page with the complete list of the hosted mailing lists.
2011-12-28 21:07:25 -05:00
Eli Barzilay
1160e423e2 Add a timeout to the ftp poll.
This is because the ftp mirror tends to become unresponsive often, but
it takes a huge amount of time to actually get a tmeout.
2011-12-28 21:07:24 -05:00
Eli Barzilay
fa4c073b9e Adjust meta/web' for changes in scribble/html'.
Add a `resource/referrer' abstraction for referrers, on top of plain
resources.  (When the referrer is `values', it just returns the plain
resource.)  Also add `url-of' to replace `get-resource-path'.
2011-12-28 21:07:24 -05:00
Eli Barzilay
787f3151de Make a `resource' struct so it is identifiable.
(Also, change a `define-struct' to a `struct'.)
2011-12-28 21:07:24 -05:00
Eli Barzilay
180651d04d Remove the `referrer' argument from resources.
This turned out to be a bad idea.  The thing is that some resources need
to be referred to in multiple ways -- for example, different texts in
links of different kinds, or using the URL directly in some cases.  The
existence of `get-resource-path' is a witness for this problem, since it
was used for such cases -- this function is removed as well.

There's no point in trying to generalize this here: instead, go back to
a simpler system where a resource always returns its URL (with an
optional argument to get an absolute URL).  When a `referrer'
functionality is needed, build it on top of that, in a place where it
makes more sense.  (That is, in a specific code for generating content,
where there could be a decision that resources have plain links and also
a very short link for use in navbars.)  Otherwise, it's usually simpler
to just define resources and referrers separately (as different
bindings, the latter uses the former).
2011-12-28 21:07:24 -05:00
Eli Barzilay
1cd8e6cbf3 Remove the referrer argument from copyfile' and symlink', and remove
the unused `content-resource' (it is not necessary).
2011-12-28 21:07:24 -05:00
Eli Barzilay
c8c13e46bb Switch delay's to lazy's. 2011-12-28 21:07:24 -05:00
Eli Barzilay
ace5fdf1f3 Clarify a comment for future work; a bunch of new internal definition uses. 2011-12-28 21:07:24 -05:00
Eli Barzilay
8beba3caf9 Avoid bash regexps
Turns out that bash's regexps (using `=~') changed so that quoting them
matches a literal string, and it seems dangerous to rely on parsing
unquoted regexps.  One way around this is to put the regexp in a
variable, but for the two simple uses that this script had, it's easy to
avoid regexps completely.
2011-12-28 21:07:24 -05:00
Matthew Flatt
00cd512e06 fix doc typo 2011-12-28 19:06:07 -06:00
Robby Findler
f1bacffbdc Adjusted rewrite-side-condition/check-errs so that it normalizes the internal
redex patterns a bunch:

- repeats are turned into wrappers in sequences,
- names are all explicit,
- non-terminals are wrapped with `nt',
- cross patterns always have the hyphens in them.
- ellipses names are normalized (so there are no "hidden"
  name equalities); this also means that repeat patterns
  can have both a regular name and a mismatch name

Also, added a match-a-pattern helper macro that checks to make sure
that functions that process patterns don't miss any cases
2011-12-28 09:46:43 -06:00
Robby Findler
c9fcde258f docs bug (as noted by Marijn on racket-dev) 2011-12-27 08:53:35 -06:00
Robby Findler
376ad1f52c remove 'stupid-internal-definition' and Rackety 2011-12-27 08:53:32 -06:00
Jay McCarthy
a0475c5d90 Commit from Anthony West to tutorial 2011-12-26 14:43:49 -07:00
Jay McCarthy
9723e939b4 Merge branch 'master' of git.racket-lang.org:plt 2011-12-26 14:33:20 -07:00
Jay McCarthy
ae31b19168 Synchronizable events from Tom McNulty 2011-12-26 14:33:07 -07:00
Robby Findler
e02eb9c2c1 the variable most-recent-languages-hier-list-selection used
to be a  hierarchical-list-item<%> object, but now it is
a list of language names (same information, different data)
and one place didn't get updated.

Closes PR 12462
2011-12-26 09:50:33 -06:00
Matthew Flatt
3a1df23be6 fix `text-outline' test to include a curve 2011-12-26 06:27:22 -06:00
Michael W
ae1ca5b91a Bugfix: text-outline now handles curves correctly 2011-12-26 06:26:58 -06:00
Matthew Flatt
e12bf33f8d 'rshift and 'rcontrol don't interrupt keybindings
Closes PR 12461
2011-12-25 19:39:37 -06:00
Matthew Flatt
1c63784517 for record-dc%', record initial configuration after each erase'
Closes PR 12460
2011-12-25 19:26:39 -06:00
Matthew Flatt
6c5c170565 racket/draw: add text-outline' to dc-path%' 2011-12-25 18:20:39 -06:00
Robby Findler
9bef0204bb fix the "Show Line Numbers" menu item so its label changes
when the preference changes

closes PR 12459
2011-12-25 13:39:14 -06:00
Robby Findler
188f868a28 Remove the position-location cache that check syntax used to maintain for
the purpose of drawing arrows.

The computation to fill in the cache seems to actually be pretty quick and
the work to clear the cache when it is out of date (via a call to on-change)
can be substantial on big files, so just not maintaining the cache seems better.
(there are 7254 arrows in drracket/private/unit.rkt, stored in an interval map,
and iterating over the interval-map in a for loop seems to be time consuming)

Also, DrRacket could get into a state where switching tabs would trigger a
call to on-change, which means that switching tabs would take a few seconds.
2011-12-23 16:15:26 -06:00
Matthew Flatt
5bfaea25fe fix draw-polygon' on pairs instead of point%'s
Closes PR 12455
2011-12-23 07:25:59 -06:00
Matthew Flatt
dccc76c9b0 slight modernization of the Slideshow tutorial 2011-12-21 16:30:24 -07:00
Matthew Flatt
d020c75202 remove libfit 2011-12-21 16:17:56 -07:00
Matthew Flatt
5a7f1b15ed mysterx: fix private/mxmain hack to avoid cross-module optimization
Using the old extension protocol for MysterX --- plus the hack of
a dummy source module for a kind of portability --- really should
be replaced with an FFI-based approach to the MysterX DLL.
2011-12-21 14:00:26 -07:00
Eli Barzilay
ed8e3367d4 More fixes and improvements to `net/unihead'.
* In base64 encoding remove all newlines from the encoded result, avoids
  getting an invalid result.

* In qp encoding:
  - replace all spaces by underlines, not just the first (looks like a
    typo in the previous code)
  - encode "?"s and "_"s too, as required for this encoding
  - remove soft newlines (again, avoid an invalid result)

* Use `regexp-replace*' to encode the parts between the lines.  Besides
  making the code simpler, it fixes a bug in the previous code where
  multiple lines would each get encoded and the results concatenated
  without the newlines or any other whitespace.

* When the string to be encoded is longer than 70 characters, split and
  encode the sub-parts, then concatenate the encodings with a "\n "
  separator.  This is done as a poor attempt to follow the line length
  limits specified in rfc2047, or more concretely, to avoid sendmail's
  "!\n " splitting.
2011-12-21 14:46:13 -05:00
Eli Barzilay
188c65661d Fixes and improvements to `net/unihead'.
* Use `re:non-ascii' to look for a non-ascii character => faster.

* Use either CR or LF for a newline, not just LF.

* Use `regexp-replace*' to encode the parts between the lines.  Besides
  making the code simpler, it fixes a bug in the previous code where
  multiple lines would each get encoded and the results concatenated
  without the newlines or any other whitespace.
2011-12-21 14:46:13 -05:00
Matthew Flatt
dcedd6e2be fix for `scribble --text' and tables 2011-12-21 11:27:06 -07:00
Eli Barzilay
ddcab952f7 Quote sender, subject, and recipients strings if needed.
There might be existing uses of `net/sendmail' that did this quoting
since this code didn't do so.  Such uses would continue to work fine,
since quoted strings would already be plain ASCII, so a second quoting
would leave it as is.

Note that the quoted strings are also used as command line arguments.
It seems that sendmail deals with these all fine when they appear as
command line arguments.  This means that any valid email address format
can be used, not just "raw" emails.  If there are some sendmails that
don't do this, then it would be better to add a `-t' flag to let
sendmail parse the text in the message.

One caveat (not a new one): since they're passed as is, it is possible
to use two emails in a single string, as in "a@b.com, c@d.com".  This
could lead to obvious problems if someone uses "Bar, Foo <foo@bar.org>"
instead of "\"Bar, Foo\" <foo@bar.org>".  (Using a `-t' to parse the
content won't help with that...)  The only way to avoid this would be to
parse the emails and quote the name part if needed.  But that's a much
hairier piece of code.
2011-12-20 16:13:13 -05:00
Eli Barzilay
f9d07d8400 Revise `net/sendmail'.
* Move the `X-Mailer' header to the top, so that the interesting headers
  are all together at the bottom (the top gets littered by server
  headers anyway).

* Use `subprocess' directly (`process*' wasn't really doing anything
  more than that).

* Allow the sender to be `#f', leaving the header out.  This makes all
  sendmails that I've used use the username that is running the process.

* Just search for a sendmail program: don't barf on windows, so it can
  be used in case there is a sendmail.exe executable there.

* Remove `no-mail-recipients' to make it in-line with other racket code
  that doesn't raise super-specific exceptions.

* Use port counting instead of doing the counts manually, much simpler
  code.
2011-12-20 15:53:40 -05:00
Sam Tobin-Hochstadt
81bb8a5ea3 Improve type of `in-range'. 2011-12-19 19:41:45 -05:00
Matthew Flatt
26c0ef99ef fix executable distribution creation on Unix 2011-12-19 12:36:16 -07:00
Ryan Culpepper
d00b93cdff remove references to non-existent unstable module 2011-12-18 14:35:41 -07:00
Ryan Culpepper
bb93132463 uniform position for unstable header in unstable docs 2011-12-18 14:23:21 -07:00
Ryan Culpepper
59beeb2e14 minor doc fixes 2011-12-18 13:57:50 -07:00
Ryan Culpepper
933965b2c2 moved unstable/prop-contract into racket/contract/base 2011-12-18 13:57:50 -07:00
Ryan Culpepper
e086d237cd moved unstable/mutated-vars back to typed-racket 2011-12-18 13:57:49 -07:00
Ryan Culpepper
bf21e5b765 pruned unstable/bytes (moved some code back to web-server)
Corrected contracts from serializable? to printable/c.
2011-12-18 13:57:49 -07:00
Ryan Culpepper
dd061bdb17 removed unstable/net/url (moved code back to web-server) 2011-12-18 13:57:49 -07:00
Ryan Culpepper
7f345fe067 removed unstable/gui/language-level 2011-12-18 13:57:49 -07:00
Ryan Culpepper
6ac708a3da pruned unstable/syntax 2011-12-18 13:57:49 -07:00
Ryan Culpepper
d803e55a5b removed resolved commentary from unstable/struct 2011-12-18 13:57:49 -07:00
Ryan Culpepper
7ef56fbfc5 pruned unstable/string (moved some code back to web-server) 2011-12-18 13:57:48 -07:00
Ryan Culpepper
52aefa6e35 removed unstable/require 2011-12-18 13:57:48 -07:00
Ryan Culpepper
a4c6c7cfce pruned unstable/port 2011-12-18 13:57:48 -07:00
Ryan Culpepper
fd2554d6fc removed unstable/path (moved code back to single use in web-server) 2011-12-18 13:57:48 -07:00
Ryan Culpepper
bc7401d4d9 pruned unstable/function 2011-12-18 13:57:48 -07:00
Ryan Culpepper
e4e89b0bc9 removed unstable/exn (moved code to single use in web-server) 2011-12-18 13:57:44 -07:00
Ryan Culpepper
f21b871760 removed unstable/dirs 2011-12-18 13:57:22 -07:00
Ryan Culpepper
53fc18008c removed unstable/dict (no uses) 2011-12-18 13:57:14 -07:00
Ryan Culpepper
4f9da1fd1c pruned unstable/define 2011-12-18 13:56:00 -07:00
Ryan Culpepper
f99d79ef10 pruned unstable/contract
Removed unused code. Removed nat/c, pos/c as they correspond to
standard predicates.
2011-12-18 13:56:00 -07:00
Ryan Culpepper
b12d284055 fixed typo 2011-12-18 13:14:03 -07:00
Matthew Flatt
6bae0fc036 clarify `letrec' spec 2011-12-18 07:27:32 -07:00
Matthew Flatt
4fed17704a avoid `racket/gui' tests that can't work on X 2011-12-18 07:27:32 -07:00
Matthew Flatt
1b4f13e674 scribble: avoid line-break between "#" and "<void>" 2011-12-18 07:27:32 -07:00
Matthew Flatt
4b1f746714 enable R5RS map' & for-each' (i.e., mmap' and mfor-each') inlining 2011-12-18 07:27:32 -07:00
Mike Sperber
a657b0217e Fix for line3d's `create-viewport-matrix'.
Submitted by David Herrmann.
2011-12-18 14:37:34 +01:00
Mike Sperber
16a27c6391 For DMdA languages, document which signatures work with `check-property'.
Namely, not the singular record signature, but the signature
constructors of `define-record-procedures-parametric'.

(We'd done this before, but that patch got reverted, without the
doc part getting reinstated.)
2011-12-18 14:18:42 +01:00
Mike Sperber
7fac9193fa In the DMdA languages, create arbitrary for record signature without fields.
This way, you don't have to use define-record-procedures-parametric
for records like this:

(define-record-procedures empty
  make-empty empty?
  ())
2011-12-18 14:18:42 +01:00
Mike Sperber
c080940d02 Fix infinite recursive signatures.
Such as this, submitted by Torsten Grust:

(define-record-procedures-parametric stream_ stream-of
  make-stream
  stream?
  (stream-head stream-tail))

(define stream
  (lambda (t)
    (signature (stream-of t (-> (stream t))))))

(: from (number -> (stream number)))
(define from
  (lambda (n)
    (make-stream n (lambda () (from (+ n 1))))))

(: foo (stream number))
(define foo (from 1))

The problem was that the arbitaries got evaluated too eagerly.
2011-12-18 14:18:42 +01:00
Ryan Culpepper
6742c308d9 db: fix sqlite3 memory corruption bug 2011-12-16 19:18:46 -07:00
Vincent St-Amour
664245ae69 Add in-slice sequences.
Patch from David Vanderson.
2011-12-16 13:50:25 -05:00
Robby Findler
a122ea725d fix a bug in the kill-safe abstraction that is designed to protect
the state that online check syntax uses (indirectly via scribble)
to lookup documentation.

since the kill-safe abstraction moved some computation over to
another thread, the values of various parameters (current-directory
in this case) were not preserved. So when scribble then ended up
resolving a module path with the wrong current directory, this
bad value got cached. Then later, when check syntax tries to figure
out what file to open to jump to it, it got the cached bogus value
(even though current-directory was right when check syntax asked
for the filename).

closes PR 12538
2011-12-15 20:37:15 -06:00
Robby Findler
a2bbcf8b00 tighten up the contract 2011-12-15 20:37:14 -06:00
Matthew Flatt
c9d214138e make `choice-evt' take O(N) time for N arguments
Delay flattening nested `choice-evt's to `sync'.
2011-12-15 16:04:08 -07:00
Sam Tobin-Hochstadt
ff74b262cf Global seed to debug fuzzer timeouts. 2011-12-15 13:53:04 -05:00
Robby Findler
fd89d560b2 fix docs 2011-12-15 10:34:06 -06:00
Robby Findler
39e4454f51 added docs for the pkg-info.ss url to planet 2011-12-15 08:44:39 -06:00
Robby Findler
a88d9ca116 missed a place to add an undatum 2011-12-15 08:44:39 -06:00
Robby Findler
c91d004729 more cleanup of the rendering for the case when (format "~s" x)
and (format "~a" x) are different (when 'x' is a symbol)
2011-12-15 08:44:39 -06:00
Sam Tobin-Hochstadt
7802eda605 Better types for fourth' -- tenth'. 2011-12-14 19:06:05 -05:00
Matthew Flatt
ee775c3cc3 intern strings, etc. only when making syntax objects, not in `read'
Rename `read-intern-literal' to `datum-intern-literal'.

Interning is needed only in `read-syntax' or `datum->syntax' to
set up the invariants that the bytecode compiler needs for cross-module
optimization. When `read'ing numbers from a data file, meanwhile,
interning slows things down a lot and doesn't seem worthwhile.
2011-12-14 16:03:44 -07:00
Jay McCarthy
a16caef298 Revising docs a little to help use dispatch-rules 2011-12-14 11:53:15 -07:00
Matthew Flatt
c8fcf2a0a4 remove datum', etc. from mzscheme' 2011-12-14 06:37:45 -07:00
Ryan Culpepper
d312744aae db: make debugging easier 2011-12-13 23:51:31 -07:00
Ryan Culpepper
b355abfdb3 db: allow mysql-connect without db 2011-12-13 22:18:13 -07:00
Ryan Culpepper
fd74709e1c db: implement mysql auth plugin support, old password support
related to PR 12415
2011-12-13 22:17:51 -07:00
Ryan Culpepper
32c5e3c9d2 avoid resolving module-path-index (current-directory may not be set right) 2011-12-13 17:38:21 -07:00
Asumu Takikawa
1ec2f9ca82 Fix doc inconsistency for require/typed. 2011-12-13 16:54:01 -05:00
Jordan Schatz
36c720a28c Small spelling error 2011-12-13 09:47:43 -05:00
Matthew Flatt
b87a7c0ec9 fix `raco make --no-deps' 2011-12-13 06:13:17 -07:00
Matthew Flatt
b99eb54f16 fix race in subprocess test 2011-12-13 06:13:16 -07:00
Robby Findler
610efbbe75 brutal changes to check syntax to try to see if they fix the symptom Marijn reports 2011-12-13 04:56:13 -06:00
Robby Findler
843f057024 Revert "adjust the synchronization in check syntax for reading doc results to"
This reverts commit 8f12372b17.
2011-12-13 04:56:13 -06:00
Jay McCarthy
701b8ed72f Missing data character 2011-12-12 15:54:00 -07:00
Eli Barzilay
932f7ce726 Remove "Affiliates" section which is less relevant now. 2011-12-12 16:40:42 -05:00
Robby Findler
48772f2e40 when double clicking in a comment, fall back to word-based instead
of sexp-based selection

closes PR 12439
2011-12-12 14:45:27 -06:00
Robby Findler
2ed8023b36 minor refactoring 2011-12-12 14:45:27 -06:00
Jay McCarthy
5701c9cc69 Apache not in docs 2011-12-12 11:33:07 -07:00
Jay McCarthy
fb18174e22 Removing stderr output from archive? 2011-12-12 10:22:52 -07:00
Matthew Flatt
25dd8727cb add datum-case', etc. as syntax/datum'
This library is used by Redex, which wants a `syntax'-like template
language, but for datum values instead of syntax objects. Using
`datum-case' and `datum' generates much less code. Redex uses
only a small part of the general functionality, so adding
`syntax/datum' could be overkill. It's implemented by generalizing
the `syntax-case' and `syntax' pattern matching and template
constructing code, though; it's not a lot of extra code, and it's
easiest to generalize completely. We may find other uses for
datum templates, too.
2011-12-12 08:13:20 -07:00
Eli Barzilay
09402178db Bring back the search-the-web paragraph, with a pointer to SO instead. 2011-12-12 09:47:06 -05:00
Eli Barzilay
2761c9a8ac Remove links to the cookbook and the schematics project.
(Both no longer active.)
2011-12-12 09:30:05 -05:00
Eli Barzilay
0514bec845 When `make-evaluator' receives a path to a file, it allows reading it. 2011-12-11 02:52:41 -05:00
Sam Tobin-Hochstadt
6fae17282f Don't run the slides. 2011-12-10 17:38:18 -05:00
Sam Tobin-Hochstadt
adb6b79620 Filesystem errors are not internal typed racket errors. 2011-12-10 17:28:34 -05:00
Sam Tobin-Hochstadt
eb38783750 Fix type of `remove-duplicates'.
Also fix type inference for functions with mandatory keyword arguments in other cases.
Related to PR 12434.
2011-12-10 17:28:34 -05:00
Matthew Flatt
bf90cf9028 fix problems printing symbols with unicode chars 2011-12-10 11:43:59 -07:00
Matthew Flatt
17504a960e more interning related to Scribble xref 2011-12-10 11:43:58 -07:00
Matthew Flatt
28ee1570ae strip value from 'dep tag
The value isn't used; a 'dep tag is ony to establish
dependencies, and the relevant value is with a 'form or
'def tag. Avoiding the extra value saves another 5% in
cross-reference files.
2011-12-10 11:43:58 -07:00
Matthew Flatt
b2fade9206 read-intern strings generated by Scribble; other interning
This change saves a small amount of space in cross-reference files
and some space in loaded cross-reference information.
It also saves work converting strings to mutable on deserialize,
although the performance difference seems negligible.
2011-12-10 11:43:58 -07:00
Mike Sperber
0f2c5d20ea Synch German string constants with latest. 2011-12-10 14:05:13 +01:00
Robby Findler
622bec0719 avoid (format "~s" x) in favor of (symbol->string x) for symbols
when doing typesetting stuff in Redex, as the former seems to have
some kind of context dependency that makes it insert ||s around
some upper-case symbols sometimes
2011-12-10 02:55:47 -06:00
Robby Findler
f8cbe1ad23 add the List Machine benchmark by Appel, Dockins, and Leroy 2011-12-10 01:34:58 -06:00
Sam Tobin-Hochstadt
f23baef8aa Opaque types may overlap with anything.
Closes PR 12434.
2011-12-09 18:11:51 -05:00
Matthew Flatt
596e7683b5 Merge branch 'master' of racket-lang.org:plt 2011-12-09 10:36:58 -07:00
Matthew Flatt
40fc46a870 fix PNG reader
when alpha isn't wanted and image has tRNS
2011-12-09 10:33:35 -07:00
Matthew Flatt
287d5cedf5 add `pseudo-random-generator-vector?'
Also, adjust docs to clarify that `vector->pseudo-random-generator!'
can be used as a more complete seeding function.
2011-12-09 09:12:17 -07:00
Matthew Flatt
1da5b859b7 more info for failing test 2011-12-09 08:01:52 -07:00
Robby Findler
e55ed2dc25 improve syntax error reporting for judgment-holds in reduction relations (and
probably elsewhere)
2011-12-08 20:35:46 -06:00
Sam Tobin-Hochstadt
64f9af0a84 Minor fix to fuzzer. 2011-12-08 19:59:47 -05:00
Sam Tobin-Hochstadt
c22611ca2b Fix documentation to avoid drdr warnings. 2011-12-08 19:25:55 -05:00
Vincent St-Amour
b5d393d939 Add TR support for gcd and lcm on rationals. 2011-12-08 17:13:50 -05:00
Matthew Flatt
f93c94f6ff add 'shift, 'control, 'rshift, and 'rcontrol events 2011-12-08 15:05:41 -07:00
Matthew Flatt
4a387c5b6a add some missing checks on bytecode parsing
The `tests/racket/stress/fuzz' test fails much less frequently,
though problems certainly remain.
2011-12-08 13:42:09 -07:00
Matthew Flatt
657be87c66 generalize gcd' and lcm' to work on rationals 2011-12-08 09:25:39 -07:00
Matthew Flatt
7e666b4b45 add stream' to racket/stream'
based on a pull request from Dan King
2011-12-08 09:25:34 -07:00
Ryan Culpepper
90acf8a36f temporary fix for broken dist-specs 2011-12-07 23:38:37 -07:00
Robby Findler
cbab512dd1 adjust the way 'jump to next/prev error source loc' menu items work
so that they also highlight the error location in pink when jumping there
2011-12-07 16:18:17 -06:00
Ryan Culpepper
0dcafac0c9 db: improved message debugging for mysql 2011-12-07 13:23:33 -07:00
Neil Toronto
4f9b642827 Stop rendering logos at 512 2011-12-07 10:56:08 -07:00
Neil Toronto
3e895b7072 Plot performance improvement: precalculated light, view and half dir
Color flonum-to-byte conversion handles special flonums (hopefully helps with Marijn's problem)
2011-12-07 10:56:08 -07:00
Neil Toronto
419a7ccbc0 New icons, standardized lighting 2011-12-07 10:56:08 -07:00
Neil Toronto
4334727609 Standardized SVG icon source sizes
New icons

New PLaneT logo
2011-12-07 10:56:07 -07:00
Neil Toronto
9c2386e40e Added `disk-icon', changed DrRacket "Save" icon 2011-12-07 10:50:39 -07:00
Jay McCarthy
e62940734f Fixing changed test 2011-12-07 08:15:38 -07:00
Jay McCarthy
54298bc2fd Closing 9646 2011-12-07 06:23:25 -07:00
Jay McCarthy
12580337f2 Fixes PR9965 and a missing doc xref 2011-12-07 06:23:25 -07:00
Sam Tobin-Hochstadt
a497300fbe Drop some trivially-pure code. 2011-12-06 17:20:32 -05:00
Sam Tobin-Hochstadt
8f133964f2 Disable test that needs input. 2011-12-06 17:20:32 -05:00
Robby Findler
8f12372b17 adjust the synchronization in check syntax for reading doc results to
cope with the case where the thread has been killed (the nacks are
apparently not triggered on thread death in some cases)

(optimistically) closes PR 12427
2011-12-06 16:13:17 -06:00
Robby Findler
2899fd0903 get rid of the obscenely long menu item name
closes PR 12423
2011-12-06 15:42:57 -06:00
Robby Findler
8f7572bc5e fixup the heart bitmap so it has an alpha channel and then add it into the weekend/weekday rotation 2011-12-06 15:42:57 -06:00
Jay McCarthy
6af5b312d6 Increasing timeout for benchmark 2011-12-06 11:00:49 -07:00
Robby Findler
7a5e90f48f use build-path to construct path segments instead of putting slashes into strings 2011-12-05 21:01:28 -06:00
Robby Findler
1d03e5f711 adjust the double clicking in racket mode so that clicks on the
(instead of sexp-based)

closes PR 12421
2011-12-05 21:01:28 -06:00
Robby Findler
447bd44a0c minor rackety 2011-12-05 01:14:54 -06:00
Robby Findler
f725066bf9 fix bug in the handling of side-conditions 2011-12-05 01:14:54 -06:00
Matthew Flatt
1c6354e235 fix meta/check-dists
(Also, use a hash table instead of an association list for a
query cache.)
2011-12-04 08:01:48 -07:00
Matthew Flatt
be80e7d864 fix an over-eager reordering by the bytecode compiler
The over-eager transformation could be space-unsafe, and it
could duplicate an unsafe operation whose result is used only
once in a function that eds up being inlined multiple times.
2011-12-04 06:52:33 -07:00
Sam Tobin-Hochstadt
821ec051d0 Avoid providing internal macro. 2011-12-03 18:46:01 -05:00
Matthew Flatt
7c7135f58e Revert "typo in universe' docs for on-new'"
The documentation is correct as-is.

This reverts commit eec86cdaf2.
2011-12-03 11:21:21 -07:00
Matthew Flatt
7d2914fc8a fix `defform[*]' handling of #:id and grammar production
In @defform*[#:id x1 [(qqq x1)]], for example, `#:id x1' needs to
calcel the default treatment of `x1' within `(qqq x1)' as
a metavariable, while treating `qqq' as a meta-variable.
2011-12-03 10:03:13 -07:00
Matthew Flatt
07342303e5 scribble: fix HTML rendering of table in nested flow starting item 2011-12-03 08:41:15 -07:00
Matthew Flatt
eec86cdaf2 typo in universe' docs for on-new' 2011-12-03 08:24:32 -07:00
Matthew Flatt
788e8bb5f4 fix demod for inline-variant 2011-12-03 06:15:58 -07:00
Matthew Flatt
61fa9fe7dc improve dist spec (where collects:' is meant instead of package:') 2011-12-03 06:06:51 -07:00
Matthew Flatt
787437223c remove reference to `compiler/cffi'
Closes PR 12413
2011-12-02 19:44:29 -07:00
Matthew Flatt
7ddbc95b51 clean up `set!' implementation in ASL to avoid catching failures
The code seems to pre-date the failure thunk to `syntax-local-value'.
A problem with letting an exception get raised is that it triggers
the `error-value->string' handler, which loads Slideshow pict support
in DrRacket, which loads `racket/draw' at phase 1 --- which isn't
inherenty bad, but a lot of work that can be avoided.
2011-12-02 16:02:11 -07:00
Matthew Flatt
745c4b6470 fix another way that `racket/gui' instances can leak 2011-12-02 15:48:29 -07:00
Robby Findler
ce7523f01f more atoms can be shared now, so wrap 'em up 2011-12-02 16:38:56 -06:00
Ryan Culpepper
2e4d4e21ca rackunit: change exn:test to extent exn:fail
closes PR 12393
2011-12-02 14:41:17 -07:00
Ryan Culpepper
a1c7c2b6f9 macro-stepper: fix reset/obsolete/shutdown behavior 2011-12-02 14:41:17 -07:00
Ryan Culpepper
3dc78a3d1e macro-stepper: fix display of "confusable" objects 2011-12-02 14:41:17 -07:00
Robby Findler
e9a5cf05c7 change the strategy drracket uses for the convertible? values 2011-12-02 15:19:15 -06:00
Robby Findler
1f2d0462a9 guard against strange syntax objects being passed to 'code' 2011-12-02 15:18:18 -06:00
Matthew Flatt
7397f710e2 fix reconstruction of `provide' forms in module expansion 2011-12-02 13:58:39 -07:00
Vincent St-Amour
9417503492 Fix for/sum: when summing something other than integers. 2011-12-02 15:21:14 -05:00
Vincent St-Amour
3279ea4b61 Whitespace cleanup. 2011-12-02 15:21:14 -05:00
Matthew Flatt
96330556e7 fix secondary hash-code for weak hashes 2011-12-02 12:11:52 -07:00
Matthew Flatt
58d01d0d12 fix dist specs for "icons" change 2011-12-02 09:03:57 -07:00
Robby Findler
2e54a89773 adjust drracket's repl so that it renders convertible things by turning them into .png's. 2011-12-02 08:10:32 -06:00
Stephen Bloch
39629e8e99 map-image and map-image/extra now give their function argument x and y
coordinates, or not, depending on the arity of that function.  This
enables one to write a simple function from color -> color and
immediately map it on an image.  For the situation in which the
function is location-dependent, one can still write a function from
x,y,color -> color and map this on the image.
2011-12-02 07:09:37 -05:00
Neil Toronto
29ad6b36b6 Replaced PLaneT logo
Replaced stop sign icons

Fixed some icons (esp. borders on shiny)
2011-12-01 23:04:27 -07:00
Neil Toronto
076453dacc Use bitmap' instead of icon->pict'
Rename `pict->icon' to `pict->bitmap' and put in `slideshow/pict'
2011-12-01 17:04:31 -07:00
Sam Tobin-Hochstadt
daf371059d Add link. Closes PR 9325. 2011-12-01 16:54:52 -05:00
Sam Tobin-Hochstadt
04b8962542 Fix doc mistake.
Close PR 9508.
2011-12-01 16:54:52 -05:00
Sam Tobin-Hochstadt
e9a045c695 Fix doc typo.
Related to PR 9501.
2011-12-01 16:54:52 -05:00
Sam Tobin-Hochstadt
6df35ce132 Fix doc typo.
Closes PR 12395.
2011-12-01 16:54:52 -05:00
Neil Toronto
73615de58f Precision improvements for user functions that return flonums
Performance: 2d-plot-area% now uses flonums internally as much as possible
2011-12-01 13:26:36 -07:00
Robby Findler
1c9c31efd1 drop the weekend condition for the default icon style 2011-12-01 13:45:26 -06:00
Robby Findler
301631c0d6 add a contract for slideshow/pict's bitmap function 2011-12-01 13:45:25 -06:00
Matthew Flatt
545b37ff0d add racket/performance-hint' with begin-encourage-inline' 2011-12-01 10:26:48 -07:00
Matthew Flatt
1bc2441b5a switch to syntax property for 'compiler-hint:cross-module-inline 2011-12-01 10:26:48 -07:00
Kevin Tew
958ad908ab place scrbl fix 2011-12-01 09:54:38 -07:00
Robby Findler
45c72d0837 add a compiler-hint:cross-module-inline hint.
Calling this function:

(provide
 (contract-out
  [f (-> integer? integer?)]))
(define (f x) x)

from another module seems to speed up by about 8% with the annotation
in this commit.
2011-12-01 10:33:30 -06:00
Matthew Flatt
99032a75d0 inline map', for-each', andmap', and ormap'
More generally, support a
 (define _id (begin 'compiler-hint:cross-module-inline _proc-expr))
hint, which is how the compiler determines that `map', etc., are
candidates for inlining.
2011-12-01 06:59:27 -07:00
Robby Findler
1ca79003f1 remove ? from German string constant to match similar removal from the English
(checked with Mike Sperber first)
2011-12-01 07:22:08 -06:00
Eli Barzilay
e0eccf7019 Make "icons" into a package, to include its documentation. 2011-12-01 03:55:44 -05:00