Commit Graph

19612 Commits

Author SHA1 Message Date
Casey Klein
c0625dc30c Adds define-term form 2011-08-30 15:10:50 -05:00
Matthew Flatt
35a8359c6d remove some path case normalization
The change allows `raco setup' to reach a fixed point under Windows
for "redex/examples/cont-mark-transform".

I'm more and more convinced that `normal-case-path' is never
a good idea. In some cases, maybe it's good to recognize a
few extra equivalences, but it works badly when paths are taken
from many sources and are not consistently normalized. It's better
to just preserve case.

For basic normalization, `simplify-path' is the right choice. Use
inode identity (as `raco setup' does) when anything stronger
than `simplify-path' is needed.
2011-08-30 13:53:25 -06:00
Matthew Flatt
959db06c7c change "cache.rktd" format to be platform-independent
The format previously included relative paths in the syntax
of the platform used to run `raco setup'. While a "cache.rktd"
built on Unix would work for Windows, the reverse would not
be true. Also, `raco setup' under Windows would get confused
because it would arrive at different relative paths for the
same collection (e.g., "drracket/private" and "drracket\\private").
The portable representation of relative paths is also
normalized.

A "cache.rktd" file still has absolute paths for Planet packages
or links installed with `raco link', but that's not a problem for
packaging a distribution with a portable "cache.rktd".

Also, `raco setup' cleans "cache.rtkd" by removing collections
that are omitted and by not including collections that have no
"info.rkt"/"info.ss" file.
2011-08-30 13:53:24 -06:00
Robby Findler
0fbed43a26 Fix 'place's handling of the result of resolved-module-path-name
Plus minor cleanups:
 - fixed indentation
 - removed useless gen-create-place function
 - avoid using the guard position of syntax-case
 - drop useless datum->syntax call (it returns syntax
      objects unmodified and generate-temporary
      returns a syntax object)
 - "interal" => "internal"
 - minimized the generated code (move into a function call)
 - check to make sure constructed lambda expression is well-formed
 - check to make sure 'place' is used inside a module (or else
   several other things it use will fail)
2011-08-30 14:46:02 -05:00
Ryan Culpepper
b706fc1ebc db: cleaned up testing script, run sqlite tests by default 2011-08-30 12:04:25 -06:00
Ryan Culpepper
883e9e9e6b syntax/parse: syntax-parse sets current-syntax-context 2011-08-30 12:04:25 -06:00
Ryan Culpepper
281df3221e db: tried async execution with odbc... didn't work
Added note in TODO, my guess why not.
Fixed odbc ffi bindings, added a few more status checks.
2011-08-30 12:04:25 -06:00
Ryan Culpepper
f339060e55 db: added note on performance, edited note on isolation 2011-08-30 12:04:24 -06:00
Ryan Culpepper
418985d4c4 db: fixed issues with statement finalization (don't use weak hash)
In some cases, statements were disappearing from statement-table
without being finalized; this makes disconnect fail.
(I was only able to produce the problem when the db lib was
instantiated in a sub custodian that is later shutdown....
like the way the rackunit gui runs the test suite.)
2011-08-30 12:04:24 -06:00
Ryan Culpepper
397702808a db: fixed virtual-statement
Eliminated interface test (shallow) in favor of method test
(correct, recursive). Also made vstmts work with virtual-connections.
2011-08-30 12:04:24 -06:00
Ryan Culpepper
94456ad0ec db: moved pg-only code out of interfaces module 2011-08-30 12:04:24 -06:00
Ryan Culpepper
b3e55dc078 db: added note on sql injection, moved param paras to stmt section 2011-08-30 12:04:24 -06:00
Ryan Culpepper
1c6817426e db: added group-rows, #:group arg to query-rows 2011-08-30 12:04:24 -06:00
Ryan Culpepper
c13c22f0e4 fixed missing arg to raise-type-error 2011-08-30 12:04:24 -06:00
Kevin Tew
d5d28d3357 fix [] to {} 2011-08-30 11:27:18 -06:00
Kevin Tew
07c5c076e2 Fix cpointer and cstruct tag text 2011-08-30 09:52:06 -06:00
Sam Tobin-Hochstadt
534d89b983 Fix type of `make-temporary-file'. 2011-08-30 11:33:40 -04:00
Sam Tobin-Hochstadt
3e1eb67336 Make environments much lazier about computing types; remove useless requires.
Allow duplicate type annotations when they are the same type.
2011-08-30 11:33:40 -04:00
Jay McCarthy
2dc0098d86 Changing test phase 2011-08-30 08:52:54 -06:00
Robby Findler
936b51adf1 double planet tests timeout 2011-08-30 08:12:32 -05:00
Robby Findler
61aaf584c5 adjust the threading protocol for compilings files to be kill safe 2011-08-30 07:59:33 -05:00
Robby Findler
8ea1487eea double planet tests timeout 2011-08-30 06:52:00 -05:00
Stephen Chang
8d962c0b4f add strictness tests for Lazy Racket 2011-08-30 02:31:05 -04:00
Eli Barzilay
734fc832b7 Twitter link for @racketlang; small tweaks. 2011-08-30 01:07:32 -04:00
Eli Barzilay
449fab512b Plot doc typo.
Fixes PR12133.
2011-08-29 23:59:38 -04:00
Eli Barzilay
0f84202f78 This test can fail when running with the CGC. 2011-08-29 23:36:08 -04:00
Eli Barzilay
4ae7e05632 Finally there should be no temp file leftovers now. 2011-08-29 22:12:25 -04:00
Eli Barzilay
14357370dd Some small improvements. 2011-08-29 22:12:07 -04:00
Eli Barzilay
187110cc2c Change default temporary format from "mztmp~a" to "rkttmp~a". 2011-08-29 20:53:57 -04:00
Robby Findler
d4f4f754f1 make make-temporary-file use the source location for its template argument
(This involves making make-temporary-file be a macro instead of a procedure.)
2011-08-29 19:36:33 -05:00
Robby Findler
d2d02cc7a2 lengthened the planet tests timeout 2011-08-29 19:36:32 -05:00
Robby Findler
1efcb24575 adjust the fonts for the error message in the online check syntax 2011-08-29 19:36:31 -05:00
Eli Barzilay
4ec565ae97 Add the missing documentation for ,check-requires. 2011-08-29 17:41:35 -04:00
Eli Barzilay
a2d483bb95 Removed waterworld. 2011-08-29 16:58:03 -04:00
Eli Barzilay
f3f3af124f Removed SrPersist.
Blessed-by: Ryan
2011-08-29 16:55:42 -04:00
Eli Barzilay
1b05a2968c Quick fix
(Didn't realize that tool names are relative to the info file.)
2011-08-29 16:48:15 -04:00
Eli Barzilay
57ea31cca2 With 4f83f7f, the hack around PR7104 is no longer needed. 2011-08-29 16:36:24 -04:00
Eli Barzilay
ffbd9e16ea Some info.rkt cleanups. 2011-08-29 16:33:13 -04:00
Eli Barzilay
e788903d0e Remove a bunch of no-longer-needed `compile-omit-paths', and move the
few ones into the subcollections.
2011-08-29 16:33:12 -04:00
Eli Barzilay
d8029e4fca Organize the errortrace tests. 2011-08-29 16:33:12 -04:00
Vincent St-Amour
15aeb099ea Add Nonnegative-Integer as a synonym for Natural. 2011-08-29 15:26:12 -04:00
Eli Barzilay
0e31b37aa4 Documentation typo. 2011-08-29 15:13:01 -04:00
Eli Barzilay
0c26a38bed `scribble/tools' is Robby's. 2011-08-29 15:13:01 -04:00
Eli Barzilay
89096b8838 Added `check-requires'. 2011-08-29 15:13:00 -04:00
Sam Tobin-Hochstadt
e67415171a Improve types for some date operations; fix typo. 2011-08-29 12:08:13 -04:00
Sam Tobin-Hochstadt
8a4aee8865 Fix typo.
Reported-By: Shriram Krishnamurthi <sk@cs.brown.edu>
2011-08-29 12:08:13 -04:00
Sam Tobin-Hochstadt
d000567b79 Improve formatting of reference docs for reader abbreviations. 2011-08-29 12:08:13 -04:00
Kevin Tew
a810b30b87 remove underscore from cpointer key 2011-08-29 08:44:32 -06:00
Robby Findler
8bcbaa11d6 adjust drracket's userspace initialization so that it does not set the
user's pretty-print-columns globally; instead it just records the value
and uses parameterize to install it when printing results
2011-08-29 08:42:42 -05:00
Matthew Flatt
46a0fe9490 fix `compile-omit-files' handling for Planet packages
The bug was introduced with changes to support `raco link'.
2011-08-28 20:02:23 -06:00
Matthew Flatt
43dd4c7ab9 path normalization in setup/scribble
Needed so that `raco setup' doesn't rebuild documents as it
decides, say, that the "games/cards" document depends on
"games/scribblings\\games.scrbl" instead of
"games/scribblings/games.scrbl".

Has this been needed for a while, or did it somehow
become needed with recent changes to `raco setup' to
support `raco link'?
2011-08-28 19:20:19 -06:00
Matthew Flatt
b02e37b0b9 restore module cache
The module cache was added in 97ce26b1 (April 16, 2011),
but it was accidentally disabled in e9721058 (May 5, 2011).

This time, I figured out a way to test whether the cache is
working (other than to benchmark examples, which is how I
discovered that it wasn't working).
2011-08-28 18:15:44 -06:00
Matthew Flatt
2d1b0172fb move Reference reader & prnter docs to the model chapel
instead of having those sections buried in the I/O chapter
2011-08-28 18:15:43 -06:00
Robby Findler
64067efb04 adjust the online check syntax so that you get a subtle indication of read errors instead of just silence 2011-08-28 12:30:41 -05:00
Matthew Flatt
2692d119be fix cross-reference 2011-08-28 11:08:33 -06:00
Matthew Flatt
4f83f7f279 allow phase 1+ references to not-yet-defined bindings
For example,

 (define-for-syntax (f x) (g x))
 (define-for-syntax (g y) y)

is now allowed. The unbound-variable check for phase 1
and up is delayed until after the module body is partially expanded.
2011-08-28 10:27:31 -06:00
Matthew Flatt
b628ae8424 remove leftover tmp file during reference build 2011-08-28 07:50:41 -06:00
Ryan Culpepper
c97b3144fa db: added note for SQL Server 2011-08-27 16:31:22 -06:00
Ryan Culpepper
19774260f7 improve Continue db code: use table-exists? instead of catch all exn? 2011-08-27 16:31:22 -06:00
Ryan Culpepper
a2f75e494d db: implemented list-tables for odbc (db2, oracle only)
added dbms field to odbc connections
2011-08-27 16:31:22 -06:00
Ryan Culpepper
78f7c4fcd4 db: fix problems found by drdr
avoid running odbc-dependent modules in drdr
  fix scribble config to use abs mod paths in eval setup
2011-08-27 16:31:22 -06:00
Ryan Culpepper
92e2d1eb6e db: split off db/util/datetime module 2011-08-27 16:31:22 -06:00
Ryan Culpepper
a91e6f6452 db: "recordset" -> "rows-result", "rows" 2011-08-27 16:31:22 -06:00
Ryan Culpepper
7bd370cd33 fixed typo in Continue tutorial 2011-08-27 16:31:22 -06:00
Robby Findler
0f534be12c oops 2011-08-27 17:25:52 -05:00
Robby Findler
7c640c5c5d add a test case for starting up drracket when there is no writing to the filesystem allowed 2011-08-27 17:25:15 -05:00
Robby Findler
9fcc12b6a0 adjust drracket to be more accomodating in the presence of hostile filesystems 2011-08-27 16:41:35 -05:00
Robby Findler
8fd388fde1 adjust put-preferences docs to match implementation 2011-08-27 16:41:34 -05:00
Robby Findler
72e5e1248f make all of the planet tests run sequentially (as they manipulate global
planet state that causes them to fail when run in parallel)
2011-08-27 16:41:33 -05:00
Robby Findler
25eb851217 Revert "add more debuggin info to the thread-safe-resolver.rkt planet test to try to debug it on drdr"
I think I know why this test is failing now; no need for this info anymore

This reverts commit e88c8dbaa0.
2011-08-27 16:41:31 -05:00
Carl Eastlund
126d8192ff Added documentation example of sequence/c for multiple-valued sequences. 2011-08-27 14:46:43 -04:00
Carl Eastlund
fe3d4c9fe6 Fixed sequence/c to work with multiple-element sequences. 2011-08-27 14:13:27 -04:00
Carl Eastlund
871ea6dc76 Added tests for sequence/c with multiple-valued sequences. 2011-08-27 12:57:26 -04:00
Jay McCarthy
5c4a5ceb81 Adding another variant of libssl for CentOS 2011-08-27 06:54:50 -06:00
Jay McCarthy
33f562c5fd Adding tgz 2011-08-27 06:54:50 -06:00
Robby Findler
e88c8dbaa0 add more debuggin info to the thread-safe-resolver.rkt planet test to try to debug it on drdr 2011-08-27 07:54:12 -05:00
Robby Findler
6823941080 adjust framework get and put file functions to use simple-form-path instead
of normalize-path (I'm unsure of the ramifications of this change ...)
2011-08-27 07:54:11 -05:00
Robby Findler
1d13d1399c adjust the framework get file dialog functions to not call normalize-path unless
they've recently checked to see if the file exists
2011-08-27 07:54:10 -05:00
Robby Findler
913883fd28 adjust include-bitmap so that it does not write to the filesystem
(also, Rackety)
2011-08-27 07:54:08 -05:00
Mike Sperber
59be05131c Synch German string constants with latest. 2011-08-27 14:10:59 +02:00
Matthew Flatt
fcf24ab586 fix bug in `raco unpack'
due to recent conversion from `mzscheme' to `racket/base'
2011-08-26 19:31:06 -06:00
Matthew Flatt
733d6b97ff make libs dir to readable by default for sandboxed code
One example use is the handin server, where the ssl library
is needed to run some programs in my class. (I didn't figure
out exactly why, but it seems reasonable.)
2011-08-26 19:31:06 -06:00
Matthew Flatt
5579b12da0 fix `raco link' collection-name checking 2011-08-26 19:31:06 -06:00
Sam Tobin-Hochstadt
005923c284 Only generalize #t, not #f. 2011-08-26 14:08:40 -04:00
Sam Tobin-Hochstadt
c7ac40f33b Repair test for boolean generalization. 2011-08-26 14:08:40 -04:00
Sam Tobin-Hochstadt
598d81671a Intern based on sequence numbers for values that have them.
20% speedup on the empty program.  Closes PR 10734.
2011-08-26 14:08:40 -04:00
Sam Tobin-Hochstadt
403bb6414e Much more infrastructure for timing typed racket passes. 2011-08-26 14:08:39 -04:00
Vincent St-Amour
62a7122744 Fix TR printing. 2011-08-26 14:06:10 -04:00
Matthew Flatt
bedd7b1671 Guide corrections 2011-08-26 10:04:19 -06:00
Matthew Flatt
85790b6611 improve description of andmap' and ormap'
Based on suggestions from Dan Grossman and Ryan Culpepper
2011-08-26 10:03:53 -06:00
Matthew Flatt
71b500b49f speed up mult/unmult in `{get,set}-argb-pixels'
Also add test cases to check consistency of the results.
2011-08-26 09:13:28 -06:00
Eli Barzilay
2ef9f5ae0e Fix a bug in resolve-module-path' to do an expand-user-path', which
`file' specs do too (in `require' etc).
2011-08-26 10:13:27 -04:00
Eli Barzilay
6e50ecad99 Add $1', $2', ..., `$5' as last-value references. 2011-08-26 09:42:56 -04:00
Eli Barzilay
15211fbb42 Fix weak box tests for optional `weak-box-value' argument; add one for the new functionality. 2011-08-26 09:20:26 -04:00
Eli Barzilay
cda4479d1e Hold the saved values weakly. 2011-08-26 09:10:46 -04:00
Matthew Flatt
cc82506be5 fix alpha mult in `set-argb-pixels' 2011-08-26 07:06:31 -06:00
Matthew Flatt
290fe066b6 add optional argument to weak-box-value' and ephemeron-value' 2011-08-26 06:24:34 -06:00
Matthew Flatt
b0245395b7 add a test for undo-clickback repair 2011-08-26 06:07:57 -06:00
lvilnis
b0d909bd8f Fixed a bug with delete, undo and clickbacks in DrRacket 2011-08-26 06:07:57 -06:00
Sam Tobin-Hochstadt
ba09e906d8 Generalize #t and #f to `Boolean'. 2011-08-26 08:05:44 -04:00
Eli Barzilay
3b13b7dfc3 Added ryan as responsible for db collection; added to distribution specs. 2011-08-26 05:26:46 -04:00
Eli Barzilay
6203f53ef6 Syntax-based implementation for saved values, finally working. 2011-08-26 05:26:46 -04:00
Eli Barzilay
1db5ad97f8 Fix another bunch of "language" typos. 2011-08-26 05:26:46 -04:00
Robby Findler
22466b4158 fix a bug where drracket was not moving the menu underscores around
properly in the case that menu keybindings were disabled
2011-08-25 22:54:50 -05:00
Sam Tobin-Hochstadt
7dd209f905 Initial support for standard optional arguments. 2011-08-25 19:00:49 -04:00
Sam Tobin-Hochstadt
717476f84d Repair type of `find-relative-path'. 2011-08-25 19:00:49 -04:00
Ryan Culpepper
26145b4655 updated Continue tutorial to use db library 2011-08-25 12:56:42 -06:00
Ryan Culpepper
93222d4fba db: improved listing of db/base exports in docs 2011-08-25 12:56:42 -06:00
Ryan Culpepper
82896bfce2 db: added list-tables, table-exists? (except for ODBC, so far) 2011-08-25 12:56:42 -06:00
Ryan Culpepper
50f0a32f9e added db library 2011-08-25 12:56:42 -06:00
lvilnis
b77b379534 The "Profile" pane in DrRacket can now be dragged to resize. 2011-08-25 13:39:28 -05:00
Sam Tobin-Hochstadt
760625c031 Revise `require/typed' docs. Closes PR 11890. 2011-08-25 14:10:05 -04:00
Sam Tobin-Hochstadt
3707310250 Properly parse `Values' in types.
Closes PR 11145.
2011-08-25 14:10:05 -04:00
Sam Tobin-Hochstadt
4185da9035 Support vector arguments to `datum->syntax'.
Related to PR 10290.
2011-08-25 14:10:05 -04:00
Robby Findler
eb56a39a50 add the roots to the links info line in the bug report form 2011-08-25 12:33:33 -05:00
Robby Findler
701ea003e7 change the menu shortcuts so that file|close becomes <menukey>-shift-w when there
are multiple tabs (instead of just going away)
2011-08-25 12:33:33 -05:00
Robby Findler
9817820e4c remove non-existent files from the 'open recent' menu (but only when the file is selected) 2011-08-25 12:33:33 -05:00
Matthew Flatt
ecc058de4a change `raco exe' to disable collection lookup by default 2011-08-25 09:15:30 -06:00
Matthew Flatt
495c0da189 fix define-runtime-paths' and raco exe'
Cross-module optimization started inlining the `#f'
value for the table that `raco exe' replaces.
2011-08-25 09:15:29 -06:00
Matthew Flatt
ce7c0d62c3 if only a Unix root is shared, don't make a path relative 2011-08-24 20:08:20 -06:00
Matthew Flatt
ec29a2d85c add `use-collection-link-paths' 2011-08-24 20:08:19 -06:00
Matthew Flatt
7299b0603e check format of collection name in `raco link' 2011-08-24 20:08:19 -06:00
Matthew Flatt
84e3ab2a20 add support for collection roots to the collection links file 2011-08-24 20:08:19 -06:00
Matthew Flatt
8f0487d8e4 make `raco link' write relative paths 2011-08-24 20:08:19 -06:00
Matthew Flatt
71e92bcecf more `raco link' command-line changes: add -u, adjust -rn 2011-08-24 20:08:19 -06:00
Matthew Flatt
96098e678c change -s `raco link' flag to -l 2011-08-24 20:08:19 -06:00
Matthew Flatt
2dbaa45e1b add `raco unpack'
Although the ".plt" format is going to be replaced, the format is
currently viable for distributing collections, and I have wanted
a raw `unpack' command for a while. It was useful today to fix
problems with `raco pack' and collection links.
2011-08-24 20:08:18 -06:00
Robby Findler
ee17f7ce47 Revert "adjust the way the execute-callback is overridden so that this mixin"
This reverts commit 7dfffb3eb8.
2011-08-24 18:07:22 -05:00
Kevin Tew
5a30aa89eb Allow TCP sockets and file ports to be communicated across places 2011-08-24 14:33:54 -06:00
Sam Tobin-Hochstadt
a7cf16d486 Propagate expected function types propertly in case-lambda.
Closes PR 10139.
2011-08-24 15:29:10 -04:00
Sam Tobin-Hochstadt
d6f1c35e1b Reuse `case-lambda' syntax in optimizer. 2011-08-24 15:29:10 -04:00
Robby Findler
92fa4a8d58 add links to the bug report form 2011-08-24 13:37:25 -05:00
Robby Findler
41e22a6e3f added the ability to tell drracket to run a program and then run something after that
used that ability to make the scribble buttons work better
2011-08-24 11:25:26 -05:00
Robby Findler
7dfffb3eb8 adjust the way the execute-callback is overridden so that this mixin
cooperates better with other mixins that might do similar things
2011-08-24 11:25:24 -05:00
Robby Findler
4923e20994 clarify precise semantics of 'raco setup -D' 2011-08-24 11:25:23 -05:00
Matthew Flatt
a7855e20a8 add `raco link'
includes a rewrite the "Module Basics" section of the Guide
2011-08-24 09:07:14 -06:00
Matthew Flatt
b7bad5cc8a fix `racketmod' file box mode 2011-08-24 09:07:13 -06:00
Matthew Flatt
fa82d70cc6 slideshow/pict: add linestyle' and #:style' argument to `pin-line' 2011-08-24 09:07:13 -06:00
Matthew Flatt
f082919f0b doc style adjustments; reorg cmdline+editors docs in Guide 2011-08-24 09:07:12 -06:00
Matthew Flatt
a0ba7eb10c doc clarifications 2011-08-24 09:06:28 -06:00
Asumu Takikawa
36d3cc69db Typo in docs. 2011-08-24 03:00:41 -04:00
Robby Findler
6c91288f2f speed up bitmap rotation (could probably revisit this to
speed up flipping (and also to do all three in one pass)
2011-08-23 18:56:51 -05:00
Robby Findler
b425ca90d2 fix bug in the loading of non-alpha bitmaps (also: minor Rackety) 2011-08-23 18:56:50 -05:00
Kevin Tew
f85c73f83d change evt? to handle-evt? 2011-08-23 14:02:01 -06:00
Kevin Tew
0f595f4882 docs cpointers over place-channels 2011-08-23 14:02:01 -06:00
Kevin Tew
8782f4c445 send ffi pointers across places 2011-08-23 13:33:06 -06:00
Kevin Tew
fa4bb9dda0 Change cpointer tag to be a symbol 2011-08-23 13:33:06 -06:00
Danny Yoo
5e16770932 Hacked #lang algol60 into place
(Patch from Danny Yoo, touched up a little.)
2011-08-23 12:20:21 -04:00
Eli Barzilay
9091fddc52 Use (here-namespace) for autoloads, (not `hidden-namespace' which is more of a user workspace thing). 2011-08-23 12:08:37 -04:00
Eli Barzilay
01a591392e Some more ;-ized printouts. 2011-08-23 12:08:37 -04:00