Commit Graph

34523 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
3bbdd134b1 Remove stray reference to Racket in LICENSE files.
Related to PR 14842.
2014-11-25 14:09:57 -05:00
Robby Findler
c53c29d9d8 fix bug in 8027e48 2014-11-24 22:23:39 -06:00
Matthew Flatt
3f44372e25 raco setup: better error reporting for failure during doc move 2014-11-24 16:27:11 -07:00
Matthew Flatt
6096d567af make-path->relative-string: handle immediate directory path 2014-11-24 16:27:11 -07:00
Matthew Flatt
d0b94f48e0 {chaperone,impersonate}-procedure*: fix argument propagation
Fix the "self" argument propagation through an impersonator that has
no redirection function (but that probably has impersonator
properties).

Closes PR 14852
2014-11-24 16:27:11 -07:00
Matthew Flatt
ac5961eae9 text%: avoid O(n^2) behavior on string insert
Break large inserts into smaller chunks by successively halving the
chunk, instead of successviely peeling off a small part. Also, avoid
traversals and re-traversals of a long line while checking and
breaking up lines.
2014-11-24 16:27:11 -07:00
Matthew Flatt
ce4f41bc72 racket/draw: fix ok? result for too-large bitmap creation
Use cairo_surface_status() to check whether creation succeeded.
2014-11-24 16:27:11 -07:00
Matthew Flatt
f02bfbd11e racket/snip: fix bug in splitting string snips 2014-11-24 16:27:11 -07:00
Asumu Takikawa
51099e660e Fix typo in GUI docs 2014-11-24 15:10:30 -05:00
Robby Findler
c11a83c1dd clarify materialize-user-docs docs 2014-11-24 09:27:39 -06:00
Robby Findler
eb0f88939a use materialize-user-docs in drracket
closes PR 14844
2014-11-24 09:25:02 -06:00
Robby Findler
9d6265d9aa make <menukey>-k (kill program) clear pending io
related to PR 14851

When sending a giant bytes via write-bytes, we can get into a situation
where there are lots and lots of bytes inside the port that haven't yet
been put into the repl's text% but that will, eventually, even though
the program is dead. The commit clears out any such pending IO
2014-11-23 21:11:06 -06:00
Robby Findler
8027e4872a adjust text:ports to better deal with giant amounts of bytes
by splitting them up and using separate events so other work
can also happen while the insertion is going on.

This change also changes the queue-callback for IO insertion
to be a low-priority callback. This should have been the case
before, I think, but it is a bit surprising it wasn't and so
this may also cause other problems

closes PR 14851
2014-11-23 21:10:54 -06:00
Matthew Flatt
89ca0c26ce add setup/materialize-user-docs and related raco setup flags
The new library provides a way to force a user-specific documentation
etry point into existence. Normally, that would happen when a package
with documentation is installed in user scope. After the entry point
exists, then it sticks around even if all user-scope packages are
removed. In some cases, it may be useful to force the entry point into
existence as if packages had been installed and removed.

(This might be useful for avoiding a quarantine on installed
documentation files on Mac OS X, or a trampoline might be better.)
2014-11-23 10:51:07 -07:00
Matthew Flatt
b2a919af40 raco pkg {install,update}: help users keep repo clones consistent
When packages A and B have the same Git repository source, and
when at least one of them is linked as a repository clone, then
the package system doesn't require A and B to both be linked or
both be linked to the same clone... but that can lead to confusion
for users. The package manager now detects this situation and in
many situations can update non-clones to make then clone links
at the same repository.
2014-11-23 07:32:35 -07:00
Matthew Flatt
37a209b60e net/git-checkout: finish support for "dumb" HTTP(S)
Full dumb-server support is even more useful for testing.
2014-11-23 06:31:01 -07:00
Matthew Flatt
8498eff8ef raco pkg {install,update}: track Git repo source from a catalog
When a package is installed via a catalog, and the source provided
by the catalog is a Git repostory, then allow `--clone` to use
that repository when just the package name is given.
2014-11-23 06:31:01 -07:00
Matthew Flatt
6379aaddef raco pkg {install,update}: add --clone <dir> mode
Using `--clone <dir>` with a Git-based package source causes the
package installation to be linked to a clone of the repository
as a subdirectory of <dir>. The package can be developed locally
in the usual way with Git tools, but `raco pkg update` can itself
pull updates to the package/repository.

See the new chapter 6 in "Package Management in Racket" for
more information.
2014-11-23 06:31:01 -07:00
Matthew Flatt
04f5fe3815 net/git-checkout: support "dumb" protocol for discovery
Supporting just reference discovery can be useful for certain
testing configurations.
2014-11-23 06:31:01 -07:00
Matthew Flatt
389e971cea FFI docs: fix some missing links 2014-11-23 06:31:01 -07:00
Jay McCarthy
9214349612 Adding data/enumerate/lib 2014-11-22 08:38:48 -08:00
Jay McCarthy
9ea2a35307 Removing dead file 2014-11-21 13:48:16 -08:00
Jay McCarthy
8dd7a3daaf Switching to use data/enumerate rather than home grown 2014-11-21 13:43:20 -08:00
Jay McCarthy
db824a3cbe slimming godel deps 2014-11-21 13:32:06 -08:00
Robby Findler
21964bd89e add some tests to help when porting to new enumeration combinators 2014-11-21 15:20:14 -06:00
Robby Findler
f0b2e429f5 fix docs for color% constructor to match implementation 2014-11-21 15:10:06 -06:00
Sam Tobin-Hochstadt
bb83f51a28 Avoid trying to check dependencies for planet packages. 2014-11-21 14:18:31 -05:00
Sam Tobin-Hochstadt
b1d4dd382c Port the slidey game to Typed Racket.
Work done by Earl Dean.
2014-11-21 14:18:31 -05:00
Asumu Takikawa
85b70aef7f Fix infer-self-type for depth overriden methods
When an overriden method implements a subtype of the superclass
type, sometimes the typechecker gets confused what the type should
be in the resulting class type.
2014-11-21 14:17:16 -05:00
Robby Findler
983eaa5284 change the number printed at the bottom of tally maze to be the board
index of the current board, not the initial board
2014-11-21 08:55:38 -06:00
Asumu Takikawa
591147dd02 Fix with-type when used at the top-level
In some situations, with-type would fail to clean up its
state before reporting an error at the top-level.
2014-11-21 02:07:11 -05:00
Asumu Takikawa
381078510a Remove unused requires in TR 2014-11-21 01:46:52 -05:00
Asumu Takikawa
826a08d80c Put Instance types in the seen list for subtyping
Since we resolve under Instance types for subtyping we
need to put them in the current-seen list too. Fixes
an infinite loop bug in subtyping.
2014-11-20 20:42:08 -05:00
Asumu Takikawa
9b4e3befa3 Remove the depth subtype check on #:implements
This check was not really necessary to begin with,
but I thought it might be a useful sanity check. In
retrospect, calling `subtype` here causes other headaches
(such as when registering type aliases) and is confusing
when multiple #:implements are provided.

Instead, the #:implements clauses are just linearized
and the last type for any given method/field is taken.

This may also prevent a heisenbug that occurs in the
GUI framework types. I still don't know the root cause of
that non-determinism though.

Closes PR 14669
2014-11-20 12:20:28 -05:00
Asumu Takikawa
56e7026b16 Add #:implements/inits for Class types
Allows some Class types to be written more concisely.
2014-11-20 12:20:28 -05:00
Robby Findler
3d175cedc8 whoops, forgot to fix decode in the docs 2014-11-20 11:05:18 -06:00
Robby Findler
0c31890e59 adjust to renaming in data/enumerate 2014-11-20 10:58:06 -06:00
Robby Findler
f2c01e780b rename encode/decode to to-nat/from-nat
also, Rackety for 102 columns and drop the nat? and
extended-nat? exports, using instead the standard
names for those concepts: exact-nonnegative-integer?
and (or/c exact-nonnegative-integer? +inf.0)
2014-11-20 10:58:06 -06:00
Matthew Flatt
1b4236722d raco setup: fix --fix-pkg-deps to imply --check-pkg-deps 2014-11-20 07:50:11 -07:00
Matthew Flatt
aa5e7d1039 remove redundant declaration & GC registration 2014-11-20 07:50:11 -07:00
Matthew Flatt
67ec4fb982 fix use of embedded bytecode 2014-11-20 07:50:10 -07:00
Robby Findler
d017dbdeda more ellipsis snip fixes 2014-11-20 07:50:33 -06:00
Robby Findler
372b4d072b fix up some problems with ellipsis snips
Thanks to Stephen Chang for the help here.

closes PR 14754
2014-11-19 22:40:46 -06:00
Robby Findler
b6ebd4101a add a new section to the contract guide on building combinators, plus
export a few new functions to smooth some rough edges in the new combinators api
2014-11-19 22:40:46 -06:00
Robby Findler
bc6492a797 remove unused require 2014-11-19 22:40:46 -06:00
Robby Findler
56f9fdc8f3 move contracts section of guide into its own subdirectory 2014-11-19 22:40:45 -06:00
Asumu Takikawa
84de4fd8e3 Bump up DrDr timeout for with-tr-contracts.rkt 2014-11-19 17:39:16 -05:00
Ryan Culpepper
a067dcacb0 fix gvector shrinking condition 2014-11-19 14:20:13 -05:00
Ryan Culpepper
5ac4ab32b7 fix gvector on large argument list 2014-11-19 14:20:13 -05:00
Sam Tobin-Hochstadt
ed4845b39b Handle empty gvectors when doubling size.
Closes PR 14843.
2014-11-19 14:08:11 -05:00