Commit Graph

33985 Commits

Author SHA1 Message Date
Vincent St-Amour
938dc7d41e Fix contract. 2014-09-11 10:42:42 -04:00
Robby Findler
dcfe7ede67 make some arity error messages for ->i contracted functions
slightly less terrible

... but ->i still doesn't do as good a job as -> and ->* do for arity
errors (specifically, ->i is still letting the blame-less errors that
application constructs thru when it could be assigning blame)
2014-09-10 16:57:52 -05:00
Robby Findler
c7e23b867e fix color-frame docs
closes PR 14733
2014-09-10 16:57:51 -05:00
Vincent St-Amour
5d6ecd7754 Fix the fix to type queries.
Should have been included in the original commit.
2014-09-10 14:30:22 -04:00
Vincent St-Amour
08178c1ec2 Fix type queries. 2014-09-09 16:24:09 -04:00
Vincent St-Amour
3ae6d2aa46 Merge clauses even when no clause is consistent with the expected type.
Closes PR14731.
2014-09-09 10:48:03 -04:00
Matthias Felleisen
4ddaa40e33 fixed error message according to Oliver Flatt's suggestion, take 2 2014-09-08 22:32:52 -04:00
Matthias Felleisen
9957fbd7f3 fixed error message according to Oliver Flatt's suggestion; Rackety 2014-09-08 22:32:52 -04:00
Jay McCarthy
8fb3e3b6eb Fix some typos 2014-09-08 21:35:40 -04:00
Jay McCarthy
891db224a0 Including build status and docs on pkgs. 2014-09-08 21:35:40 -04:00
William J. Bowman
c6b3f337e9 Added trace-define, trace-let, trace-lambda
In racket/collects/racket/trace.rkt
2014-09-08 16:36:16 -04:00
Asumu Takikawa
3905334f28 Fix opt-lambda property on opt-lambda methods
Related to PR 14726
2014-09-08 16:30:27 -04:00
Robby Findler
863f7d6669 improve parametric->/c's cooperation with a few bells and whistles in contract error reporting 2014-09-08 09:29:11 -05:00
Robby Findler
e281eecc1f add a test case for parametric->/c that tests that the
polymorphic variables are actually instantiated when the
function is called
2014-09-08 09:29:11 -05:00
Gustavo Massaccesi
1542398822 optimizer: move more things inside let and begin
Refactor the code to move inside 'let' or 'begin'.

Also, in the test position of a 'if', recognize the 'not' inside a 'let' or 'begin'.
For example, transform (if (begin ... (not p)) x y) => (if (begin ... p) y x)
Previously, this conversion was made only when
the 'not' was the outermost expression.

And use the refactored code to move application inside 'let' or 'begin' in a single step
For example, transform ((let (...) ... (let (...) ... f) x) => (let (...) ... (let (...) ... (f x))
In the conversion, it's necessary to shift x to the new coordinates inside the 'let's.
In the new version x is shifted only once.
2014-09-07 19:33:46 -06:00
Matthew Flatt
cddfdca835 JIT: fix problem with arity checking with >= 25 arguments 2014-09-07 18:41:16 -06:00
Matthew Flatt
f99d6840a6 download web pages: notes on source distributions
Closes 14694
2014-09-07 18:41:16 -06:00
Matthew Flatt
9dd8e68c40 plt-web: leave the tt font alone 2014-09-07 18:41:16 -06:00
Matthew Flatt
d64976b7bb web pages: change "Source" to "Unix Source" for non-minimal source 2014-09-07 18:41:16 -06:00
Asumu Takikawa
ab47d1bb25 Handle methods that have opt args but no kws
Closes PR 14726
2014-09-07 17:26:05 -04:00
Robby Findler
bc83e9b778 Open Require Path: ignore .bak files under windows, but ~ files elsewhere
instead of ignoring ~ files everywhere
2014-09-07 15:34:48 -05:00
Robby Findler
f4d66ad4d1 fix magic-open-paren bug
also, replace some eq?s with equal?s.
2014-09-07 15:34:48 -05:00
Asumu Takikawa
df3c56fae2 Fix use of tc-literal 2014-09-07 15:44:19 -04:00
Marc Burns
467786fc1c Handle data descriptor signatures in file/unzip
http://www.pkware.com/documents/casestudies/APPNOTE.TXT specifies that a data
descriptor signature may be placed after the compressed data and before the
data descriptor. file/unzip now handles this case.
2014-09-07 07:47:20 -06:00
Marc Burns
478b01b0e3 unzip: Handle non-seekable input ports.
Before this commit:
  - unzip would attempt to seek the input port via file-position in some cases

After this commit:
  - unzip reads and discards bytes as needed to skip forward
2014-09-07 07:47:20 -06:00
Matthew Butterick
c9692b113f fix docs for image 2014-09-07 07:47:19 -06:00
Matthew Flatt
f9f43a4be7 avoid compiler warnings 2014-09-07 07:47:19 -06:00
Neil Toronto
c245ef4c67 Fixes and additions for some GUI class types 2014-09-06 22:44:26 -04:00
Asumu Takikawa
99c8da4d92 Adjust types for stx-map and syntax->list
These types need to be adjusted to match the types that
are now produced for syntax datums due to the previous
commit.
2014-09-06 17:39:24 -04:00
AlexKnauth
ada4fb74fa Fix typechecking of (syntax ...) expressions
The type is
  (Syntaxof the-type-of-the-result-of-syntax-e), not
  (Syntaxof the-type-of-the-result-of-syntax->datum)

Closes PR 14561
2014-09-06 17:39:24 -04:00
Matthew Flatt
289e908ab2 string-normalize-...: fix memcpy that should be memmove 2014-09-05 22:02:13 -06:00
Matthew Flatt
230ce10b11 bump version 2014-09-05 21:13:16 -06:00
Matthew Flatt
51d91032f5 optimizer: fix bug
Repair a typo in b0f4a32049; thanks to Blake Johnson.
2014-09-05 21:10:16 -06:00
Matthew Flatt
79f7a642e1 avoid compiler warnings 2014-09-05 19:06:02 -06:00
Matthew Flatt
33e97745e9 treat OS page manager (especially Linux) more gently
Batch up mprotect() calls when cleaning up a place. Hopefully,
this will avoid ENOMEM errors from mprotect() on DrDr's build.
2014-09-05 17:49:41 -06:00
Matthew Flatt
af9e891215 module caching: ensure consistency of directory paths
Use `path->directory-path` to normalize directory paths and
increase use of the cache.
2014-09-05 15:54:18 -06:00
Matthew Flatt
bc48e9b935 win32: reduce allocation in the scheduler
It's not clear that the changes affect anything in practice,
but they avoid unnecessary allocation and quadratic behavior
in principle.
2014-09-05 15:54:17 -06:00
Matthew Flatt
3e8ef82c55 try to fix module-caching test 2014-09-05 15:08:46 -06:00
Matthew Flatt
cd17e08f12 check result of mprotect() 2014-09-05 13:49:27 -06:00
Matthew Flatt
59d3663106 ffi/unsafe win32: fix inefficiency in call-in-orig-thread mode
The problem made simultaneous rendering of "plot" and "math"
documentation about 10 times slower than it should be.
2014-09-05 10:34:27 -06:00
Matthew Flatt
f885d98d60 make site: fix for SRC_CATALOG mode
In SRC_CATALOG mode, there's not a separate "native" directory.
2014-09-05 09:40:54 -06:00
Matthew Flatt
f32d4b0187 minor cleanup on thread termination 2014-09-04 23:49:50 +02:00
Matthew Flatt
52514a4af4 fix interaction of alarm-evt and replace-evt
With `replace-evt` the time that the system needs to wake up
to check the event can drift later, but scheduling state was
carried in a way that works only if the wake-up time drifts
earlier.

Unfortunately, I don't know how to write a test for this bug.
The usual stategy of using `system-idle-evt` to detect busy
waiting doesn't work here, because the business happens despite
the scheduler's conclusion that the system is idle.

As reported by Jan Dvořák on the mailing list.
2014-09-04 23:49:28 +02:00
Matthew Flatt
59fac3d38a racket/port: fix busy-wait bug in make-limited-input-port
As reported by Marc Burns on the mailing list
2014-09-04 23:46:18 +02:00
Matthew Flatt
c9a11c4ee4 scribble/eval: change handling of serializable convertible results
When an evaluation result from a sandboxed computation is convertible
(so that it should be preserved for rendering) and serializable, then
serialize the value from transfer from the sandboxed environment to
the rendering environment.

This change complements the one that makes `pict`s serializable.
Serializing a pict result avoids retaining the sandboxed environment,
including its instance of the `pict` and `racket/draw` modules,
when a sandbox-created pict is part of the generated document.
For example, the memory use of the result of "math.scrbl" is about
20% smaller with this change.
2014-09-04 23:46:18 +02:00
Matthew Flatt
105d0b27f4 pict: make picts serializable 2014-09-04 23:46:18 +02:00
Matthew Flatt
77ddf71bc2 pict: throw out LaTeX back-end and simplify
The "texpict" interface as based by LaTeX is ancient, undocumented,
and unlikely to have been used since the previous millennium. Throw it
out and simplify the implementation (by discarding signatures and
units).
2014-09-04 23:46:18 +02:00
Marc Burns
0353211b81 Couple of grammar fixes. 2014-09-04 11:07:10 -04:00
Vincent St-Amour
aa43a958d2 Fix typo in math/matrix docs.
Closes PR14721.
2014-09-04 10:43:18 -04:00
Jay McCarthy
34dc76bd05 Revert "Fix PR14692"
This reverts commit 92d5408aa8, because
it breaks the build due to recursive deps. (It also breaks if the core
is in the "racket" package.)
2014-09-03 10:53:28 -04:00