Commit Graph

38639 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
8ea8c54eb4 Avoid requires of contracts when they're not used.
This changes when various libraries that provide contract
support to possible contracted bindings to declare when
those bindings are needed.

Probably, each static-contract combinator should manually
add to the list, instead of having one fixed static list,
but this is a start.

Saves about 10ms in startup for an empty TR module on my
laptop.

Thanks to Robby for the idea.
2014-10-28 12:04:49 -04:00
Robby Findler
ed0fa5da5b another attempt to eliminate references to the original
installation directory from the drracket tool docs

please include in 6.1.1
2014-10-28 11:03:42 -05:00
Matthew Flatt
8e34ef3a9d libffi: fix problems with gcc-4.0 on 32-bit Mac OS X
Based in part on https://trac.macports.org/changeset/122079
2014-10-28 08:06:13 -06:00
Robby Findler
01b0c11249 generalize the support for mouseover tooltips so that
the computation of the string doesn't have to happen
during macro expansion, but can happen only when check syntax
is in the picture
2014-10-28 08:25:37 -05:00
Robby Findler
6d4b708851 move find-string tests into the wxme test suite 2014-10-28 08:25:37 -05:00
Matthew Flatt
6e62de29ed compiler/zo-marshal: allow extflonum literals
original commit: 201a5f0e6f
2014-10-27 20:01:38 -06:00
Matthew Flatt
201a5f0e6f compiler/zo-marshal: allow extflonum literals 2014-10-27 20:01:38 -06:00
Matthew Flatt
35a762b556 remove internal sorted-dirlist function
The result of `directory-list` is now sorted by default, so the
extra function is not needed.
2014-10-27 16:01:49 -06:00
Matthew Flatt
9291726482 racket/file: add make-parent-directory*
Also, clarify behavior of `make-directory*` in the case of a relative
path when the current directory does not exist.
2014-10-27 16:01:49 -06:00
Robby Findler
13d7e264c4 fix incorrect interpretation of 'eof in new find-string implementation 2014-10-27 16:38:39 -05:00
Vincent St-Amour
0a8764b470 Add pointer to Sublime Text support. 2014-10-27 15:07:32 -04:00
Vincent St-Amour
c4a09baad8 Move racket-mode to the top of suggested emacs modes. 2014-10-27 15:07:32 -04:00
Asumu Takikawa
d66e0fc3d2 Add deftech for fallback/default methods in docs 2014-10-27 14:32:44 -04:00
Matthew Flatt
2d85fdc02f libffi: restore some small patches
Also, revert file-permission changes.
2014-10-27 11:18:16 -06:00
Gustavo Frederico Temple Pedrosa
9832ad7750 Update libffi to 3.1
Update libffi to 3.1 to add support for new architectures.
2014-10-27 11:18:16 -06:00
Robby Findler
df8fef86da fix a contract example in the documentation
closes PR 14798 (the previous commit, 86017992ab, that
claimed to fix this PR is unrelated; sorry for that)

Please include in 6.1.1
2014-10-27 09:19:27 -05:00
Matthew Flatt
f31c6563e4 make read-line interruptable on a primitive port
Closes PR 14800

Merge to v6.1.1
2014-10-27 07:00:30 -06:00
Matthew Flatt
5eca66acdf meta/pkg-build: edit the "about" page 2014-10-26 19:00:48 -06:00
Matthew Flatt
a352470914 work around a kqueue bug(?) on Mac OS X
There seems to be a problem in kqueue() on Mac OS X for watching for
FIFO write availability, where adding a read event for the same FIFO
(at a different file descritor) can disable the write event.

Merge to v6.1.1
2014-10-26 09:51:17 -06:00
Matthew Flatt
2679638e74 fd read and write: avoid redundant O_NONBLOCK flag setting 2014-10-26 09:21:28 -06:00
Matthew Flatt
b2509614e2 fd write: accomodate non-partial writes to a non-full descriptor
If a write to a non-blocking descriptor fails, then try again
with fewer bytes, since nothing in the spec write() seems to
promise writing partial amounts. In particular, writing to
a FIFO no Mac OS X might fail even if there are a few bytes of
space; as it happens, the select() function seems to compensate
and claim that such a FIFO is full, but kqeueue() doesn't.
2014-10-26 09:21:28 -06:00
Matthew Flatt
5dad9a1ef1 meta/pkg-build: record start and end time for tests 2014-10-26 09:21:28 -06:00
Matthew Flatt
e3e69085c3 meta/pkg-build: add an "about" page
Explain `raco test`, the `PLT_PKG_BUILD_SERVICE` environment variable,
and the "x86_64-linux-natipkg" platform.
2014-10-26 09:21:28 -06:00
Robby Findler
046a851d70 Use the scale when rendering svg
Thanks to Antonio Menezes Leitao for the change
2014-10-26 07:08:08 -05:00
Robby Findler
86017992ab fix incorrect contact; closes PR 14798
please include in the 6.1.1 release
2014-10-25 21:52:18 -05:00
Robby Findler
06b9b4f0a2 simplify and extend the find-string method in text%
This implementation runs about 10% faster than the old when searching
for "λ" in (collection-file-path "unit.rkt" "drracket" "private"). It
is copied directly from the search search algorithm from Wikipedia
called Knuth-Morris-Pratt, but with a fancier version of get-char that
cooperates with text%'s snip interface for more efficient linear
scans of characters.

It also generalizes the previous one by supporting searching into
embedded text% objects inside editor-snip% objects

related to PR 14688
related to PR 14687
2014-10-25 21:52:18 -05:00
Matthew Flatt
28bc3ebeac meta/pkg-build: keep test-success log (same as test-failure) 2014-10-25 15:06:28 -06:00
Matthew Flatt
776aa89347 meta/pkg-build: always set the VM clock
Consistent installation depends on a global clock that always
moves forward, so make sure VMs stay in sync.
2014-10-25 07:40:04 -06:00
Matthew Flatt
e381192e6e meta/pkg-build: run raco test --drdr for each package 2014-10-25 07:40:04 -06:00
Matthew Flatt
abf76be7f0 meta/pkg-build: add support for "minimal" vs. full VMs
Try building on a minimal VM, first, and then fall back to a more
general VM is that fails. For example, a minimal VM might not include
a C compiler, which can help clarify that a package will work in some
environments and not in others.
2014-10-25 07:40:04 -06:00
Matthew Flatt
8c9a9da525 meta/pkg-build: fix potential problem with cycle detection
Also, correct typos and out-of-date information in comments that
serve as documentation.
2014-10-25 07:40:04 -06:00
Mike Sperber
fa64870b78 Synch German string constants with latest. 2014-10-25 14:47:40 +02:00
Asumu Takikawa
6ad017a1e9 Fix init order of choice%'s type 2014-10-24 15:33:52 -04:00
Greg Hendershott
9de70551dc Fix bug with equal? on small bit-vectors. 2014-10-24 15:28:25 -04:00
Vincent St-Amour
c389bfab3b Fix set-symmetric-difference docs. 2014-10-24 13:07:25 -04:00
Matthew Flatt
14f984ba63 distro-build: try connecting a few times to let a VM warm up
This strategy has been successful for the package-build service,
and it will hopefully cut down on spurious snapshot build failures
that happen when a VM's networking doesn't start up quickly enough.
2014-10-24 08:27:50 -06:00
Matthew Flatt
2e327d7886 Mac OS X .pkg installer: check for target folder before installing
If the target folder exists, let the user know and give up. (This
seems safer than trying to delete the folder, since there might be
other files in the folder than the original files, and the installer
doesn't currently keep a list of installed files.)
2014-10-24 08:01:15 -06:00
Asumu Takikawa
17cafe652e Avoid computing type tooltips twice
The logging code in tc-toplevel.rkt is sufficient to get
all the type tooltips.
2014-10-24 01:00:30 -04:00
Asumu Takikawa
5138614aba Fix checking of (list ...) w/ union expected type
Closes PR 14758
Closes PR 14747
2014-10-23 23:01:28 -04:00
Matthew Flatt
f79ac7b510 Scribble HTML: included needed tag prefixes in "Link to this section" 2014-10-23 10:27:24 -06:00
Matthew Flatt
fb75dcd38d unix-installer test: check "natipkg" 2014-10-23 10:27:24 -06:00
Robby Findler
58662d2208 generalize rule-pict-style to allow more customization of reduction-relation layouts 2014-10-23 09:50:46 -05:00
Asumu Takikawa
375abf3c2b Simplify TR class macro handling of names
Instead of using a syntax-property hack, just disarm the
expanded syntax (TR will do this later in the pipeline anyway).
2014-10-23 00:48:05 -04:00
Asumu Takikawa
9e242fbaef Export disarm* with protect-out 2014-10-23 00:47:41 -04:00
Asumu Takikawa
670c857685 Fix typed private class fields with functions
A public method definition and a private field that contains
a function are hard to distinguish without traversing the entire
class body, which caused TR to fail to detect the private field
case. TR now uses more compile-time state to precisely
distinguish the cases.

Also fixes a related bug in which TR would incorrectly handle
multiple private fields defined with a single `define-values`.

Closes PR 14788
2014-10-23 00:20:07 -04:00
Matthias Felleisen
a70ece0bb0 typo, thanks Jack Clay 2014-10-22 22:41:28 -04:00
Matthew Flatt
1f764a3dba fix internal meta-continuation comparison for continuation sharing
The check that the current meta-continuation matches the captured one
would always fail (I think), since the current meta-continuation is
pruned on capture. Keep a weak link to the original meta-continuation
to enable detection of capturing a continuation that matches or
extends one that was previously captured.

Enabling sharing exposed a problem with the code that saves
continuation marks for partial sharing, since that implementation
became out of sync with the main implementation (so merge the
implementations).
2014-10-22 13:14:58 -06:00
Vincent St-Amour
9c30da7682 Prune argument types too in error messages.
Closes PR 12907.
2014-10-22 13:58:42 -04:00
Matthew Flatt
d9f2a84951 repairs for {impersonator,chaperone}-struct
Commit 0b71b8481d didn't have the tests that I thought I had
written, and so the changes were unsurprisingly buggy.
2014-10-21 21:09:36 -06:00
Matthias Felleisen
2d422da25a fixing error message 2014-10-21 22:54:11 -04:00