Commit Graph

38480 Commits

Author SHA1 Message Date
Gustavo Massaccesi
2d95c39051 simplify treatmenet of begin0 and discarding expressions
Since `begin0` at the bytecode level always evaluates an initial
expression in non-tail position, we don't have to work so hard
to ensure that an extra expression sticks around.
2014-12-05 07:00:40 -07:00
Gustavo Massaccesi
60934f1415 optimizer: more optimizations for begin0
Move begin0 inside begin, for example
(begin0 (begin X Y) Z) ==> (begin X (begin0 Y Z))
Try to replace more begin0 with begin when the first expression is movable
Drop the begin0 when it has only one non omitable expression that preserves
the continuation marks.
2014-12-05 06:56:29 -07:00
Phil Nguyen
fbb6ae98b9 fix tiny typo in arith.rkt in racket guide 2014-12-04 21:56:41 -05:00
Juan Francisco Cantero Hurtado
2e48112cdb Combine some of the tests proposed initially to reduce the number of builds in Travis 2014-12-04 21:56:41 -05:00
Juan Francisco Cantero Hurtado
d0892df1dd Enable some extra tests in Travis CI. 2014-12-04 21:56:41 -05:00
Matthew Butterick
1e06b936cb correct inverted sentences 2014-12-04 21:47:42 -05:00
Matthew Flatt
a4abf116cb raco pkg: fix a test 2014-12-04 19:30:01 -07:00
Matthew Flatt
c140105068 raco pkg: fix removal before re-instal of extra clone-sharing packages 2014-12-04 19:30:01 -07:00
Matthew Flatt
c6d2548e22 make: fix Unix-style build 2014-12-04 19:30:01 -07:00
Sam Tobin-Hochstadt
0b461f98bd A file for this already existed. 2014-12-04 17:23:48 -05:00
Matthew Flatt
ae1e459a53 make: clear out "local" installer mode
The "local" installer mode made sense only with a "pkgs"
directory that had everything to be included in the installer.
2014-12-04 14:21:34 -07:00
Matthew Flatt
038da2b0e9 make: fix Windows build 2014-12-04 14:21:34 -07:00
Sam Tobin-Hochstadt
960d8f5cf4 Fix Travis tests by using collection paths instead for file paths. 2014-12-04 15:48:30 -05:00
Matthew Flatt
d05c00de3e fix build for a fresh checkout 2014-12-04 13:05:53 -07:00
Matthew Flatt
d593f5420b make: link packages via local catalog
Change the way that packages in "pkgs" are handled by `make`:
create a catalog that causes them to be installed on demand
as directory links.
2014-12-04 12:46:03 -07:00
Matthew Flatt
47f2f5483c remove "native-pkgs"
Treat native-library packages like all the others that are now
served from the catalog.
2014-12-04 10:11:15 -07:00
Matthew Flatt
344bffc959 package manager: "file://" URLs and "?type=..." queries
Allow a "file://" URL to specify a type that causes the path
to be installed as a link or static link. A type query like
that is mainly intended for use in a catalog, where a catalog
of local directories could create links as needed for other
packages (that might be pulled from other catalogs).
2014-12-04 10:03:52 -07:00
Matthew Flatt
e7264d2d98 package manager: adjust parsing of file:// URLs
For some reason, I previously made the package manager parse file URLs
by stripping away "file://" and treating the rest directly as a
path. Maybe it was to support relative paths, or maybe it was to
implicitly disallow query and fragment parts of the URL, but it seems
like a terrible idea; I've switched to `string->url` plus `url->path`.

As a result, parsing now implicitly allows and ignores query and
fragment parts of a "file://" URL. That's intended as a feature,
allowing extra information to be attached to a path in, for example,
a catalog.
2014-12-04 10:03:52 -07:00
Sam Tobin-Hochstadt
7b5d6fa130 Ignore extra-pkgs/ 2014-12-04 10:44:14 -05:00
Sam Tobin-Hochstadt
2987338218 Split almost everything else from the main repository.
The source to the split packages is in repositories under the
`racket` organization on GitHub. The repositories are all named
according to the pkg name, except for multiple-package
repositories such as `racket/compiler` which is named based on the
old directory name without the `-pkgs` suffix. Thus

   `pkgs/compiler-pkgs` -> https://github.com/racket/compiler

The Makefile has also been adjusted to pull packages from the
catalog when you type `make`. This currently relies on some tricks
that will break if you try to specify a particular set of `PKGS` on
the command line. We plan to improve this soon.

The packages in `pkgs/racket-pkgs` and `pkgs/base` are staying in
the repository, since they logically belong with the core code.

The `plt-services` package is still in the repository, but will
move out soon.
2014-12-04 10:33:19 -05:00
Matthew Flatt
f3dba3eb6b fix over-eager shortcut in the implementaiton of continuation jumps
Don't jump past a prompt when jumping to a continuation that is
a prefix of the current one.

Reported by Max New
2014-12-03 07:15:34 -07:00
Sam Tobin-Hochstadt
776dd0f5bb Revert "Makefile change"
This reverts commit e0a9a92c0f.
2014-12-02 21:07:25 -05:00
Sam Tobin-Hochstadt
46a5ed0aad Provide additional identifiers needed for pkg-index. 2014-12-02 21:06:26 -05:00
Sam Tobin-Hochstadt
e0a9a92c0f Makefile change 2014-12-02 14:37:09 -05:00
Sam Tobin-Hochstadt
49ccf968d0 Remove extra directories. 2014-12-02 09:30:05 -05:00
Sam Tobin-Hochstadt
6d99e5b268 Remove extra directories. 2014-12-02 00:13:32 -05:00
Sam Tobin-Hochstadt
7cdbe299a4 Don't check doc-completness for picturing-programs in htdp. 2014-12-01 16:23:26 -05:00
Sam Tobin-Hochstadt
789915ad43 Remove picturing-programs from props script. 2014-12-01 16:22:15 -05:00
Sam Tobin-Hochstadt
685d97504f Remove dependence on "srfi-doc" from "plot-doc". 2014-12-01 16:22:15 -05:00
Sam Tobin-Hochstadt
883a072e27 Split frtime from the main repository.
Source for `frtime` is now at:
  https://github.com/racket/frtime/
2014-12-01 16:22:15 -05:00
Matthew Flatt
2e69ece74b raco setup: make --check-pkg-deps work on a collection subset
Lift the remaining caveat about using `--check-pkg-deps` when
supplying specific collections to `raco setup`.
2014-12-01 10:58:55 -07:00
Sam Tobin-Hochstadt
592ea25ee2 Remove dependency of "db-doc" on "srfi-doc". 2014-12-01 10:37:10 -05:00
Sam Tobin-Hochstadt
3d0e2ad5cd Split picturing-programs and swindle from the main repository.
They are available at:
  https://github.com/racket/picturing-programs
  https://github.com/racket/swindle
2014-12-01 10:16:35 -05:00
Sam Tobin-Hochstadt
1d1d3f34c4 Remove no-longer-needed require. 2014-12-01 10:06:50 -05:00
Sam Tobin-Hochstadt
40b1094b96 Make srfi doc reference indirect. 2014-12-01 09:02:29 -05:00
Sam Tobin-Hochstadt
1410b50156 Fix dependency error. 2014-12-01 08:37:53 -05:00
Sam Tobin-Hochstadt
72b65c3ed8 One more dependency missed. 2014-11-30 22:53:54 -05:00
Sam Tobin-Hochstadt
e3f8b7e9ce Remove dependencies on srfis and r6rs. 2014-11-30 22:51:25 -05:00
Sam Tobin-Hochstadt
013a1cba6c Remove split collections from props. 2014-11-30 22:51:25 -05:00
Sam Tobin-Hochstadt
bf5ec036f2 Split eopl, preprocessor, and make from the repository.
They are available at:
  https://github.com/racket/eopl
  https://github.com/racket/preprocessor
  https://github.com/racket/make
2014-11-30 19:12:52 -05:00
Matthew Flatt
20fa0ce790 raco pkg update: make --lookup and --clone work right together
The combination of `--lookup`, `--clone`, and `--catalog` can provide
a one-step path from a snapshot's built implementation of a package to
a repository-linked clone, for example.  In that situation, however,
`raco pkg` will have limited ability to detect that packages
originally drawn from the same repository are consistenly installed as
clones (and we can revisit if it turns out to be an issue).
2014-11-30 15:23:19 -07:00
Gustavo Massaccesi
60433b15f7 optimizer: fix do_make_discarding_sequence
The optimizer converts (car (cons X Y)) to (begin0 X Y) and then reduces
it to (begin Y X) if X is movable.
Check that the movement is safe for space and for continuation captures.
2014-11-30 14:28:56 -07:00
Matthew Flatt
3638ee6129 raco pkg show: add -l'/--long', and adjust the default mode
Make `raco pkg show` more readable by default by constraining the
output to 80 characters and adjusting the way some columns print.
2014-11-30 14:28:56 -07:00
Matthew Flatt
3cc1514a7d raco pkg {install,update,remove}: add --batch
Adjust defaults for `--deps` and `--multi-clone` to depend on
interactive vs. batch mode.
2014-11-30 12:41:32 -07:00
Matthew Flatt
ebe1537450 raco pkg update --clone: offer advice on converting directory links 2014-11-30 11:37:48 -07:00
Matthew Flatt
936f4abd3d improve a package-dependency error report from raco setup 2014-11-30 11:19:10 -07:00
Sam Tobin-Hochstadt
fe934dfe89 Split slatex from the main repository.
Source for `slatex` is now available from:
  https://github.com/racket/slatex/
2014-11-30 13:01:18 -05:00
Sam Tobin-Hochstadt
73d06ec24c Fix test that used distro-build. 2014-11-29 17:53:08 -05:00
Sam Tobin-Hochstadt
7ba7719caf Split plt-web from the main repository.
Source for `plt-web` is now available at:
  https://github.com/racket/plt-web
2014-11-29 17:31:32 -05:00
Sam Tobin-Hochstadt
c968833f7d Run distro-build and remote-shell on drdr. 2014-11-29 15:43:29 -05:00