Commit Graph

33925 Commits

Author SHA1 Message Date
AlexKnauth
0b045ba77b Add syntax-local-match-introduce 2014-08-15 11:19:48 -04:00
Phil Nguyen
77ae11e248 fix tiny typo in documentation for framework/test 2014-08-15 11:19:48 -04:00
Jens Axel Søgaard
9a4f6b1a19 Fix **racketmodname.
The case where (car a) is a string wasn't handled correctly. The error was provoked by sicp-manual.scrbl.
2014-08-15 11:19:48 -04:00
Matthew Flatt
ccc9edfbc9 package-system docs: add FAQ entry on installing without documentation
The entry is mostly about the new `--binary-lib` option, but it
also describes the "-lib", "-doc", etc., convention.
2014-08-15 16:11:29 +01:00
Matthew Flatt
b2b00010e3 annotate and check packages for build and binary modes
If "p" is available as a source package, which is typical, then `raco
pkg install --binary p` would strip away the build dependencies of "p",
so that "p" would not install properly.

This commit changes `raco pkg install` to look for an annotation on
the package and complain if the annotation is inconsistent with the
requested conversion: a binary package cannot be used as a source
package or vice versa. (A built package, as provided by a snapshot
site, can be used as any kind of package.)
2014-08-15 15:41:27 +01:00
Matthew Flatt
05523a0b42 raco pkg: add --binary-lib package stripping to remove docs
The `--binary-lib` mode is like `--binary`, but it also omits
documentation to form a "binary library package".

The `--binary-lib` flag and "X-lib" vs. "X-doc" approaches solve the
same problem with different trade-offs:

 * When a package is split into "-lib" and "-doc" packages, then it's
   easier install non-documentation parts, and it's possible to
   install them from source. A programmer has to work more to split
   the packages, however, and the library and its implementation must
   have separate sources (i.e., no or restricted in-source
   documentation).

 * When a package is just "X", then users can install a no-source,
   no-documentation version by specifying `--binary-lib`, but only
   when the package is available from some catalog and provider in
   built form (such as from a distribution site or a package-build
   service).

In the long run, I think that relying on `--binary-lib will be best
and typical for most packages. The "X-lib" plus "X-doc" approach
that's common in the current distribution's packages, meanwhile, will
likely stick around for basic packages that are commonly useful in
constrained settings (including the setting of a package-build
service).
2014-08-15 10:33:20 +01:00
Matthew Flatt
53290089b5 fix doc typo 2014-08-15 09:29:07 +01:00
Matthew Flatt
eb9cbe20bf add update-implies to package "info.rkt"s 2014-08-14 16:49:53 +01:00
Matthew Flatt
ed66ff4ecc pkg metadata: add update-implies
The `update-implies` declaration is half of `implies` (even though the
name is bigger): update of the package implies an update of another,
but a dependency on the package is no license to access the content
of the other.

This declaration is intended as an alternative to keeping version and
dependency declarations in sync for a pair of packages that are always
updated together, normally because the packages are in the same
repository. For example, a "-test" or "-doc" package might have an
`update-implies` declartion on the corresponding "-lib" package.
2014-08-14 16:49:52 +01:00
Matthew Flatt
d178b23c00 remove accidentally added files 2014-08-14 16:49:52 +01:00
Matthew Flatt
39eae2e647 racket/gui: fix problems with canvas autoscroll 2014-08-14 15:58:54 +01:00
Matthew Flatt
c61a4714e8 doc clarifications and typo in command-line help 2014-08-14 14:00:01 +01:00
Matthew Flatt
906ba45c6c reegxp-match: fix problem with lazy string decoding and output port
Closes PR 14684
2014-08-13 13:28:51 +01:00
Matthew Flatt
f865da8d10 fix doc typo 2014-08-13 12:50:45 +01:00
Matthew Flatt
ad870a1d0f racket/gui: minor test clean-up 2014-08-13 09:17:16 +01:00
Matthew Flatt
864d165c24 racket/draw: avoid an internal error on a bad bitmap 2014-08-13 09:14:04 +01:00
Matthew Flatt
c359f7ac29 build less when a pre-built racket is supplied
Adjust dependency tracking and makefile rules to that when
`--enable-racket=...` is provided to `configure`, intermediate
CGC objects are not compiled.

The new approach uses dependency tracking that was already supported
by xform, previously used only for Windows.
2014-08-13 07:33:09 +01:00
Matthew Flatt
7e141a89f7 suppress ar output for SGC library
The `nicear` script avoids stderr output on DrDr.
2014-08-13 07:33:09 +01:00
Asumu Takikawa
cc442ef0ec Fix TR type for current-check-around 2014-08-12 17:24:07 -04:00
Matthew Flatt
a266d623aa windows: better approach to manifest
Works for VS 2008 and 2012, at least.
2014-08-12 18:07:28 +01:00
Matthew Flatt
3b962a235d Revert "windows: remove custom manifest"
This reverts commit 67007451b3.

Seems to be needed after all.
2014-08-12 16:43:26 +01:00
Matthew Flatt
fa66067359 fix no-places, no-futures build 2014-08-12 15:58:43 +01:00
Matthew Flatt
fc8b2f02f9 Windows: more changes to auto-adapt to Visual Studio version
Although newer versions of Visual Studio can open 2010 projects, the
meaning of the project turns out to be: use 2010 tools. So, I've added
a step in the build script to automatically upgrade the solutions and
projects based on the version of Visual Studio that is being run.

Meanwhile, since my previous tests for VS 2012 and VS 2013 were using
VS 2010 projects, I wasn't actually testing with the 2012 and 2013
compilers. Additional changes are needed to make those work, notably a
fresh implementation of setjmp() and longjmp() for Win64.

This was all very painful, but the projects are now in much better
shape, so maybe it won't be so bad from here.
2014-08-12 15:55:37 +01:00
Matthew Flatt
67007451b3 windows: remove custom manifest
The manifest was intended to enable XP-style controls, but at this
point it doesn't seem to do anything except interefere with some
variants of the build tools.
2014-08-12 15:42:13 +01:00
Matthew Flatt
948b24b595 remove accidentally added file 2014-08-12 10:11:06 +01:00
Matthew Flatt
df375daef4 avoid NULL argument to memcpy()
gcc 4.9 takes advantage of the specification of undefined behavior if
you pass a NULL to memcpy(), even if the last argument is 0
2014-08-12 08:47:14 +01:00
Matthew Flatt
3c8b5b672e windows: fix sgc allocation of executable pages 2014-08-12 07:33:43 +01:00
Matthew Flatt
881990eddf windows: switch projects to SGC by default 2014-08-12 06:44:55 +01:00
Matthew Flatt
a312f499cb racketcgc: use SenoraGC instead of Boehm GC by default
This new default for Unix and Mac OS X trades performance for
portability (hopefully), but for most users the switch affects only
for the build process, where `racketcgc` is used to build `racket`.

To continue using Boehm GC, configure with `--disable-sgc`.

For now, Boehm GC continues to be the default for Windows.
2014-08-12 05:14:44 +01:00
Matthew Flatt
2916fc34cc SenoraGC: support allocation of executable memory; tune for performance
Allocation of executable memory is intended to make SELinux
happier by mmapping with PROT_EXEC instead of using mprotect()
to allow execution after the fact.

Performance improvements bring SGC within 30% of the Boehm GC on
`racketcgc -cl racket`, which makes SGC an even more plausible
substitute.
2014-08-12 05:14:14 +01:00
Vincent St-Amour
676dfebce6 Change RacketCon talk title. 2014-08-11 14:56:38 -04:00
Matthew Flatt
2220452b72 racket/place: protect place-creation bindings
Closes PR 14677
2014-08-11 10:48:58 +01:00
Matthew Flatt
c4508ad0d9 avoid cross-namespace submodule pollution via module-code cache
When a module is loaded with submodules intact, it should not be
cached and used for a later load that is intended to obtain the
module without submodules. Avoid mismatches by constraining the
cache to modules without submodules.
2014-08-11 10:26:32 +01:00
Matthew Flatt
1d6a9078d4 web pages: update news to v6.1 2014-08-11 09:31:06 +01:00
Matthew Flatt
d5db02603a meta/new-web: use --web mode of raco s3-sync
A side effect of this change is that ".html" files bigger than
1k are gzipped, in addition to ".css" and ".js" files. I find
several web comments to the effect that gziping ".html" files works
fine, because all browsers support it, and no warnings against.
Since gzipping ".css" and ".js" files has worked fine for us, too,
lets take the plunge and try gzipping ".html".
2014-08-11 09:26:10 +01:00
Matthew Flatt
3f9d86c348 fix "props" for "pict-snip-pkgs" 2014-08-11 07:58:33 +01:00
Matthew Flatt
2bdb8c1de5 fix rename-transformer-target for chaperoned structs 2014-08-11 07:41:47 +01:00
Matthew Flatt
5ef75682d7 fix run-time error reporting for variables in a submodule
Error reports used the "source" field of a module, which
doesn't have submodule information, or the "name" field of
a module, which might not match an actual filename (".ss"
vs. ".rkt"). Create the right combination.
2014-08-11 07:41:43 +01:00
Robby Findler
e569710e63 fix rule reference in tutoral, also spell-check
closes PR 14676
2014-08-10 06:54:52 -05:00
Robby Findler
1c26a5d99c fix r6rs link just link in 8d3fd26c6 2014-08-10 06:53:26 -05:00
Robby Findler
6b563a89c8 stop doing slow computation whose results were useless
also, clean up drawing of 'insert large letters' dialog
so that you don't see a little white sliver when there are
no characters typed
2014-08-09 23:16:49 -05:00
Robby Findler
13316f1df9 rename t to tau 2014-08-09 23:16:49 -05:00
Vincent St-Amour
495e734b95 Add sponsors to RacketCon page. 2014-08-08 15:27:32 -04:00
Vincent St-Amour
4deeab0177 More titles and abstracts for RacketCon. 2014-08-08 15:27:32 -04:00
Matthew Flatt
fab77bb28c fix SRFI-62 link
Closes PR 14673
2014-08-08 06:24:51 +01:00
Matthew Flatt
8d3fd26c6a fix broken doc link to R5RS
There's no good way to fix the link, right now. Since the Guide and
R5RS packages depend on each other, though, we can expect that they're
installed at the same time and a relative reference will generally work.
2014-08-08 06:24:51 +01:00
Matthew Flatt
e6423b7610 meta/pkg-build: support version for pkg catalog query 2014-08-08 06:24:50 +01:00
Robby Findler
ac248006f9 use path->relative-string/library's cache argument to
make the 'Open Require Path...' dialog more responsive
2014-08-07 08:38:15 -05:00
Robby Findler
1fd9959a61 add examples directly to judgment-holds docs
(as well as a pointer to other examples elsewhere)
2014-08-07 03:08:49 -05:00
Robby Findler
a4fbb4ee4c fix bug in names that begin with _r 2014-08-07 03:08:49 -05:00