Commit Graph

25083 Commits

Author SHA1 Message Date
Robby Findler
11ca461bf0 covered a missing case in the oc-status state machine 2013-02-12 16:50:34 -06:00
Eric Dobson
67c6d7804d Add tests for subtyping -poly. Closes PR13510. 2013-02-12 17:07:02 -05:00
Matthew Flatt
7f5b295308 fix problem with the initial continuation prompt
(Got it wrong in 2f7d4b5e.)

Closes PR 13494
2013-02-12 14:17:57 -07:00
Matthew Flatt
5c896395cd racket/gui: fix some contracts in docs 2013-02-12 14:17:57 -07:00
Robby Findler
d1357f2294 avoid a wrapper on callbacks that get stored in a weak table
This fixes a bug in DrRacket where by changing the font size
would cause the line numbers to encroach on the space allotted
to the main text of the definitions window (or, if the font size
is getting smaller, make a large gap)
2013-02-12 13:46:20 -06:00
Robby Findler
53853d696a add increase/decrease font size menu items (ala browsers) 2013-02-12 13:46:19 -06:00
Danny Yoo
61ddb91815 Correct Help Desk Search so it handles keywords and hash-colon-keyword lexemes.
Closes PR 13470.
2013-02-12 12:25:11 -07:00
Eli Barzilay
49ab87eadc "PLT Scheme Inc" -> "PLT Design Inc" 2013-02-12 08:06:30 -05:00
Eli Barzilay
2f4183242e Some shuffling of text, and a `-wiki' for all wiki links. 2013-02-12 06:45:30 -05:00
Eli Barzilay
4f13b3f1d5 More code therapy. 2013-02-12 04:49:12 -05:00
Eli Barzilay
08174ec5e4 Misc code improvements, help text typo. 2013-02-12 02:34:48 -05:00
Patrick Mahoney
894d7267fb Changes to move all games to Racket from Mzscheme.
Signed-off-by: Patrick Mahoney <paddy.mahoney@gmail.com>
2013-02-12 02:07:43 -05:00
Eli Barzilay
0ded7e4e26 Typo in error message 2013-02-12 01:52:03 -05:00
Robby Findler
89a2ff451e add long-missing space 2013-02-11 22:08:02 -06:00
Robby Findler
8edd010bec improve ->'s source location tracking
closes PR 13514
2013-02-11 20:37:15 -06:00
Danny Yoo
97005589e4 Add links to the Wiki from the Community page. 2013-02-11 18:42:39 -07:00
Vincent St-Amour
0bccf6b0b0 Forbid singleton types for integers whose type is platform-dependent.
Closes PR13501.
2013-02-11 14:30:19 -05:00
Danny Yoo
b9d1194225 Correct hyperlinks to 2htdp/image. 2013-02-11 08:43:43 -07:00
Jay McCarthy
2e7f4ba54a Allowing github URLs from PNRs to use illegal package names 2013-02-11 06:10:58 -07:00
Robby Findler
1420ce4ed2 clarify colorer docs
Also, some cleanups of the code and
make the syntax-color/ library docs
point to color:text<%> instead of
color:text% (as the interesting information
is attached to the interface, not the class)
2013-02-10 10:30:28 -06:00
Matthew Flatt
2fc7cad446 racket/enter: fix for `enter!' related to submodules
The load handler didn't obey the protocol with respect to a second
argument that is a list starting with #f.

Closes PR 13096
2013-02-10 05:57:25 -07:00
Danny Yoo
f1e7051652 Override readline's getc function to use Racket's read-byte.
Eliminates the busy-polling behavior observed in Mac OS X when
xrepl is required at the regular repl.

Closes PR 13350.
2013-02-10 05:54:52 -07:00
Robby Findler
246939f781 tighten up the checks in the place where the framework receives
values from the lexer (for syntax coloring)
2013-02-09 20:42:34 -06:00
Asumu Takikawa
59eb1ad13c Use up-to-date struct syntax in example 2013-02-09 19:42:21 -05:00
Robby Findler
2c35a98ad8 Adjust keybinding code to fall back from
get-active-canvas to get-canvas

Unclear if this is a bug in get-active-canvas or not

closes PR 13507
2013-02-09 14:58:21 -06:00
Robby Findler
5c21ab0e42 try to make the bug report form more robust when the
attempt to get the (nonexistent) captcha fails
2013-02-09 11:45:40 -06:00
Robby Findler
916f5d8ede add a test case
related to PR 13505
2013-02-09 11:45:40 -06:00
Matthew Flatt
dd50ac8652 catch module-not-available mimatches earlier 2013-02-08 22:57:37 -06:00
Matthew Flatt
d73ae88220 test case for `for' repair
Provided by Ryan to go with a85a71984d.
2013-02-08 22:57:37 -06:00
Danny Yoo
c19b8a4f7c Correct the contract in Example 3 to use and/c.
Closes PR 13486.
2013-02-08 14:05:46 -07:00
Neil Toronto
670efed007 Increased timeout for matrix tests 2013-02-08 12:18:48 -07:00
Sam Tobin-Hochstadt
4797173e58 Properly unquote in error message.
Fixes PR 13505.
2013-02-08 12:30:31 -05:00
J. Ian Johnson
469a69772c For/product treated like for/sum for special annotation. Also allowed no annotation to be consistent with the docs. 2013-02-08 11:32:21 -05:00
Eric Dobson
40a9794c8f Add missing pure functions. 2013-02-08 11:19:10 -05:00
Eric Dobson
19241c0979 Make overlap more precise. 2013-02-08 11:19:10 -05:00
Eric Dobson
c2b8671169 Fix :print-type. Closes PR13503. 2013-02-08 11:19:09 -05:00
Jay McCarthy
cd202f5411 Supporting headers and stateless in web-server/test 2013-02-08 07:01:36 -07:00
Robby Findler
995d4a4704 adjust test cases for recent changes to the lexers 2013-02-07 21:25:02 -06:00
Vincent St-Amour
830db3c908 Add extra tests and warning about -PosIntNotFixnum. 2013-02-07 15:19:42 -05:00
Eric Dobson
9030da217b Make static single flonum checks correct.
Closes PR13499.
2013-02-07 15:19:42 -05:00
Asumu Takikawa
9636a70f8b Add a test for PR 13490
The bug itself was already fixed by Eric Dobson
2013-02-07 13:49:50 -05:00
Robby Findler
4b9d43ce00 unbreak plai random mutator tests 2013-02-07 11:16:04 -06:00
Robby Findler
86b1f276eb tweak raco test output, yet again 2013-02-07 10:16:16 -06:00
Robby Findler
6c93cfea56 move dir-chars.rkt to unstable/2d to unbreak dependencies 2013-02-07 10:16:10 -06:00
Robby Findler
7750cf9800 change raco test's announcements to say "raco test" 2013-02-07 06:58:11 -06:00
Robby Findler
642ef7f136 dont use raco test for encode.rkt (as it expects command-line
arguments and doesn't have a test submodule)
2013-02-07 06:56:26 -06:00
Ryan Culpepper
a85a71984d preserve lexical context, src, etc for sequence syntax expansion
The previous version of the code replaced the implicit #%app with
the kernel #%app (ie, #%plain-app), causing sequence functions
that take keyword arguments to fail.
2013-02-06 18:01:59 -05:00
Vincent St-Amour
117c81e2a6 Increase timeout for TR random testing. 2013-02-06 17:28:13 -05:00
Robby Findler
bb216d142c 2d 2013-02-06 15:55:20 -06:00
Matthew Flatt
0aaf6b8086 make raco test' more like racket'
Instad of `(dynamic-require .. #f)', use `(dynamic-require .. 0)', which
has the effect of making compile-time code "available" (see docs) in
case the loaded module uses `eval' on syntax objects that refer to
non-kernel syntax.
2013-02-06 18:09:03 +01:00
Robby Findler
e7e64f4006 a better version of deac3fa2b3
This time with test cases, and also without changing the
semantics of unhighlight-range

related to PR 13488
2013-02-05 20:52:35 -06:00
Danny Yoo
c6775cc060 Fix to inflate: treat EOF as a character, as in the C code.
closes PR 13489.

In the C code, inflate is allowed to peek at least one character
beyond the extent of a deflated byte sequence.  The thread related to
the bug report of PR 13489 documents that deflate can peek beyond EOF.
2013-02-05 17:02:36 -07:00
Danny Yoo
31b66484b3 Add test case to show bug with inflate.
related to PR 13489.
2013-02-05 17:02:21 -07:00
Vincent St-Amour
bf2768f2c5 Allow cast in typed/racket/no-check. 2013-02-05 16:57:42 -05:00
Vincent St-Amour
83413e4704 Fix docs for text-based TR optimization logging.
Closes PR13493.
2013-02-05 16:57:41 -05:00
Robby Findler
deac3fa2b3 fix a bug in highlight-range exposed by the contour window
closes PR 13488
related to PR 13491
2013-02-05 15:38:31 -06:00
Robby Findler
12ebfa2cf4 make #:keywords have different color prefs in DrRacket
closes PR 13492
2013-02-05 12:32:48 -06:00
Robby Findler
014abe64c0 Rackety 2013-02-05 12:32:48 -06:00
Robby Findler
76cc599ff9 fix bug in check syntax introduced when adding the
new green, mouse-over, which-identifiers-are-the-same bubbles
2013-02-05 12:32:48 -06:00
Robby Findler
405e51bb05 adjust contour to track edit sequences better
Specifically when there is no delegate and an edit
sequence is started, track that differently in case
a delegate is set before the edit sequence ends
(in which case we don't want to end the edit
sequence in the delegate since we didn't start it
there)

related to PR 13491
2013-02-05 12:32:48 -06:00
Jay McCarthy
fb915825e9 Allowing PNR to decide which github checksum is used 2013-02-05 07:25:31 -07:00
Jay McCarthy
fa4548f401 Using raco test by default, differently 2013-02-05 07:25:31 -07:00
Jay McCarthy
78a69de14f Undo this for now 2013-02-05 07:25:31 -07:00
Jay McCarthy
0f6a5195b3 Add login link 2013-02-05 07:25:31 -07:00
Jay McCarthy
7f6d85f734 Use raco test by default 2013-02-05 07:25:31 -07:00
Matthew Flatt
6c58cde2aa repair for snip% change
Fixes a problem with 755377ca82.
2013-02-05 15:22:29 +01:00
Matthew Flatt
d0cfc34a77 racket/gui/base: fix menu-bar%' get-frame' to return 'root
Return 'root istead of exposing the (hidden) root frame for
a menu bar that is shown when no frames are visible.
2013-02-05 11:44:38 +01:00
Matthew Flatt
660fc4d7b3 racket/gui: add doc cross-reference 2013-02-05 11:44:38 +01:00
Matthew Flatt
755377ca82 racket/snip: make text snips accomodate height changes via substitution
Instead of assumning that the snip's text will match a font's height
metrics, check and remember the actual metrics if its doesn't match,
which accomodates font substitions (e.g., when using #\u2144 under
Windows).
2013-02-05 11:44:38 +01:00
Matthew Flatt
c17c7cd1b0 dc<%>: fix baseline for slow-path non-combined text drawing
For example, fix baseline when drawing "a\u2144" with the
default fonr under Windows, where #\u2144 is subtituted from
another font.
2013-02-05 11:44:38 +01:00
Matthew Flatt
442f6eaaae fix `regexp-match' variants given a long string and an output port
... again; commit d194fa6245 turned out to be incomplete.
2013-02-05 11:44:38 +01:00
Robby Findler
2b7c6e32a9 adjust raco test so it test the command-line
arguments to the empty vector before running anything
2013-02-04 20:38:34 -06:00
Robby Findler
f749ab1538 minor cleanup 2013-02-04 20:38:26 -06:00
Vincent St-Amour
b42034f98b Exclude the right zeroes when checking for equality. 2013-02-04 14:32:44 -05:00
Vincent St-Amour
568f401bdc Don't special case typechecking of =.
Its type is more useful than the special typing rule.
2013-02-04 14:32:44 -05:00
Eric Dobson
9e8cc6af3c Add types for imaginary numbers and fix type of exact? and inexact?. 2013-02-04 14:32:44 -05:00
Vincent St-Amour
ec04467282 Add extra tests for contract generation and float zeroes. 2013-02-04 14:32:44 -05:00
Eric Dobson
e656bdb1c5 Make generated contracts for Floats include NaN.
Closes PR13464.
2013-02-04 14:32:44 -05:00
Danny Yoo
ab3c69ceaa Correct the test case so it executes the error path we want. 2013-02-04 11:24:26 -07:00
Danny Yoo
7146289c34 PR 13471: Add cycle-detection during lex-abbrev expansion to raise appropriate syntax error.
Also add test cases for lex-abbrev cycle detection.
2013-02-04 11:24:26 -07:00
Robby Findler
042ec40a7b adjust class/c to compute projections once, instead of once per
use of the resulting contract
2013-02-04 07:13:00 -06:00
Robby Findler
44e91ea961 change printouts from raco test to be slightly more informative 2013-02-03 15:31:40 -06:00
Robby Findler
9fd4698be9 adjust raco test so that it accepts multiple -s arguments on the command-line
This is, afaict, a completely backwards compatible way to add this
functionality in the sense that any of the non-error command-line
arguments passed to raco test before still do precisely the same
things
2013-02-03 13:14:55 -06:00
Robby Findler
efb3bf0684 Spelling error
Also, Rackety
2013-02-03 13:14:54 -06:00
Robby Findler
ab55d43312 give up on the "find the close paren strategy that doesn't
edit the buffer" attempt

In other words, go back to (a rackety version of) the old
implementation of the get-close-paren method
2013-02-03 11:22:46 -06:00
Robby Findler
af61f1b98e change the default test coverage colors
After some consultation with my class this quarter,
it seems clear that the previous defaults and nearby
variations are completely hopeless for colorblind people
(there are at least 3 in this class). So go with the
defaults used in the HtDP languages, which have been
vetted by saidsame 3 people.
2013-02-03 09:25:24 -06:00
Robby Findler
9c3afd455a fix find-seconds error reporting to say "find-seconds" instead
of "find-secs"
2013-02-03 07:29:07 -06:00
Matthew Flatt
573924e3ac fix doc typo
Closes PR 13483
2013-02-02 19:41:59 -08:00
Matthew Flatt
1995b2ffd5 fix doc mistake
Closes PR 13482
2013-02-02 19:41:59 -08:00
Robby Findler
25f92f8e9e fix a problem with the way that check syntax's interval map
tracks information about the program
2013-02-02 19:35:09 -06:00
Sam Tobin-Hochstadt
2e8ffe7400 Fix sequence-lift for multiple valued sequences.
Also minor fixups of the rest of `unstable/sequence`.
2013-02-02 18:16:35 -05:00
Robby Findler
8aa3e1d473 another close-paren insertion repair
(this one causes runtime errors, not
bad behavior)
2013-02-02 09:10:17 -06:00
Matthew Flatt
4c98570fb6 reference: fix typo and terminology for `with-continuation-mark'
Closes PR 13478
2013-02-02 05:58:42 -08:00
Matthew Flatt
404e884cd5 racket/gui: doc clarifications on refreshes and edit sequences 2013-02-01 18:23:29 -08:00
Robby Findler
a90434b080 avoid a deadlock introduced in recent identifier highlighting commit 2013-02-01 19:17:51 -06:00
Matthew Flatt
0583616dd7 racket/date: change current-date', add date*->seconds' 2013-02-01 15:00:24 -08:00
Matthew Flatt
f8c7a79b36 fix `raco link' test 2013-02-01 15:00:23 -08:00
Matthew Flatt
318c45a772 Scribble: fix docs on Latex commands for parts and part references 2013-02-01 11:00:14 -08:00
Matthew Flatt
09d4aa3d79 Scribble: add scribble/book' and scribble/report' languages
These languages set the default class for Latex rendering, and also
adjust Latex commands so that top-level sections are chapters, etc.
2013-02-01 10:15:53 -08:00
Matthew Flatt
c0c2eda628 Scribble: add 'grouper and 'hidden-number part style properties
Also, clean up documentation and implementation of 'unnumbered and
'hidden.
2013-02-01 10:15:53 -08:00
Eli Barzilay
86bff2fa13 v5.3.2 installers info 2013-01-31 22:56:35 -05:00
Robby Findler
8aadc03719 more close paren adjustment repairs 2013-01-31 21:11:11 -06:00
Matthew Flatt
6f99bfb801 More: clarify how to use DrRacket instead of plain `racket' 2013-01-31 15:37:36 -08:00
Danny Yoo
74a0252b24 Fix typo. 2013-01-31 14:27:22 -07:00
Robby Findler
219f9dc358 fix close paren correction code 2013-01-31 15:07:20 -06:00
Robby Findler
9d10a33e43 make the online check syntax error message font
size match the user's preferred font size

(useful in a classroom / talk setting)
2013-01-31 11:23:21 -06:00
Robby Findler
74c97cfc90 Rackety 2013-01-31 11:23:20 -06:00
Robby Findler
a3cde5fb42 adjust check syntax so it highlights all identifiers with the same
binding site (with a green/yellow bubble) when the mouse moves over
any one of them

This change comes about because of the recent fixes to the
interactivity wrt to the rename menu. Basically, in order to fix the
bug (but still preserve the interactivity optimization), check syntax
changed from sending the information "here is a place to offer a
rename for these identifiers" to "here is a set of identifiers that
are all free-identifier=?" (the difference being that the latter does
not imply you got them all (which enables the optimization) and that
the information is slightly less rename-menu specific (which enables
the change in this commit))
2013-01-31 10:58:04 -06:00
Robby Findler
b4ec1de386 unbreak drr 2013-01-30 21:48:22 -06:00
Robby Findler
f9f6c4c3a1 fix some bugs in union-find
(thanks to random testing)
2013-01-30 20:47:55 -06:00
Robby Findler
afb61944db bring back the syncheck:add-rename-menu method in a way
that preserves backwards compatibility for the
drracket/check-syntax library
2013-01-30 20:47:55 -06:00
Robby Findler
dc4a74ddf3 fix bug in commit 4c4161ce2b 2013-01-30 15:11:28 -06:00
Matthew Flatt
6f2ff6af49 web page: videos link and other small changes 2013-01-30 11:11:07 -07:00
Robby Findler
4c4161ce2b guard a call to invalidate-bitmap-cache in
check syntax so it only happens when something
would draw differently
2013-01-30 11:54:47 -06:00
Robby Findler
5a55f64444 fix the random property; sadly still doesn't find the bug Danny found 2013-01-29 19:24:54 -06:00
Robby Findler
8013ccf60e improvements to union find suggested by Sam and Danny 2013-01-29 19:02:57 -06:00
Robby Findler
f0450d716b fixes the responsiveness optimization disabled in
c8bee5acf7
2013-01-29 19:02:32 -06:00
Robby Findler
33747ec9ab added union-find to the data collection 2013-01-29 15:48:41 -06:00
Vincent St-Amour
5efaa004f0 Fix test for invalid fixnum quotient optimization.
The test depended on fixnum width, which is not portable.
2013-01-29 16:15:00 -05:00
Vincent St-Amour
0bc60a77c8 Improve type of exact? and exact->inexact.
Adapted from a pull request by Eric Dobson.
2013-01-29 12:35:29 -05:00
Vincent St-Amour
32b3dfc528 Fix type of quotient on fixnums.
Closes PR13466.
2013-01-29 12:35:29 -05:00
Robby Findler
32529d89c0 adjust randomized racket machine tests to print to
stderr on failure and to not print anything on success
2013-01-29 06:57:07 -06:00
Matthew Flatt
28493dcc88 repairs to extflonum changes 2013-01-29 05:53:30 -07:00
Eric Dobson
10655a8373 Fix syntax/c. Closes PR13447. 2013-01-29 06:34:51 -06:00
Michael Filonenko
17b8092641 extflonums
An extflonum is like a flonum, but with 80-bit precision and
not a number in the sense of `number?': only operations such as
`extfl+' work on extflonums, and only on platforms where extflonums
can be implemented by hardware without interefering with flonums
(i.e., on platforms where SSE instructions are used for
double-precision floats).

[Patch provided by Michael Filonenko and revised by Matthew.]

The compiler tracks information about bindings that are known to
hold extflonums, but the JIT does not yet exploit this information
to unbox them (except as intermediate results).
2013-01-28 18:17:06 -07:00
Neil Toronto
aed3b39546 Added flexp2', fllog2', `fllogb'; refactored and documented flonum testing
Note: With this refactoring, `math/utils' no longer depends on `rackunit'.

* (flexp2 x) computes (flexpt 2.0 x) but in about 1/3 the time for integer
  `x' using a lookup table. Written for exact argument reduction in `fllog2'
  after discovering that (flexpt 2.0 x) was the main performance bottleneck.

* (fllog2 x) computes (/ (fllog x) (fllog 2.0)) with near perfect accuracy.
  Invented an algorithm to compute it with at least 8 extra bits before
  final rounding; quite pleased with the result. Needed `fllog2' to ensure
  (fllogb 2.0 x) would be exact when `x' is a power of two.

* (fllogb b x) computes (/ (fllog x) (fllog b)) with better accuracy, and
  also handles limit values in a way that's consistent with the mathematical
  limits. When those are ambiguous, it's consistent with `flexpt', which
  follows IEEE 754 and C99. Otherwise returns +nan.0. See docs for details.

* `bflogb' is currently just for testing `fllogb'.

* Refactored FPU testing and documented it. So far, the only documented way
  to do it is by calling `test-floating-point', which runs a comprehensive
  deterministic+randomized suite of tests and returns a list representing
  failed tests. I'll document individual tests after I document flonum
  expansions and result/error functions like `fl+/error'.

* Added `fllog2' and `fllogb' to the flonum tests.
2013-01-28 17:44:33 -07:00
chrdimo
e0a7329d86 Merge branch 'master' of pltgit:plt 2013-01-28 19:36:45 -05:00
chrdimo
7223c503f2 adding docs entry for blame update 2013-01-28 19:36:36 -05:00
chrdimo
b00810360b fixing backwards compatibility problems for blame-positive and blame-negative 2013-01-28 16:56:32 -05:00
chrdimo
5348a4d2de fixing docs and tests for maybe/c (old option/c) 2013-01-28 16:55:33 -05:00
Eric Dobson
3c02bb1abb Type check with expected type when checking recursive loops.
Closes PR12678.
2013-01-28 16:03:01 -05:00
Eric Dobson
13ff5883fe Do not update subtype and resolve caches when subtyping.
Closes PR13412.
2013-01-28 15:35:56 -05:00
Robby Findler
c8bee5acf7 disable a broken responsiveness optimization 2013-01-28 10:30:46 -06:00
chrdimo
5808b0c4a0 adding option contracts in unstable 2013-01-28 01:09:05 -05:00
chrdimo
5231e15a78 renaming unstable/contract's option/c to maybe/c 2013-01-28 01:08:17 -05:00
chrdimo
17e419e700 support for multiple blame parties 2013-01-28 01:07:03 -05:00
Robby Findler
3e5a9ca3cd unbreak check syntax
get-current-tab may not be the right tab to replay the trace,
now that online expansion runs other tabs when the current tab
is up to date.
2013-01-27 07:31:34 -06:00
Sam Tobin-Hochstadt
295bb1e85e Switch to pkg.racket-lang.org. 2013-01-26 15:59:33 -05:00
Stephen Chang
15d41a787e add examples for make-struct-info in docs 2013-01-26 14:06:04 -05:00
Robby Findler
2d2b3bee2f fix a bug in executable creation
The code used eq? to check to see if a given language was in
an list of allowed-to-create-executables languages. But the
language object was passing thru TR and so eq? didn't hold and
thus the check was buggy.
2013-01-26 10:47:59 -06:00
Robby Findler
aaf4a2e16d adjust find-next-outer-paren to avoid editing the buffer
related to PR 13454
2013-01-26 09:05:28 -06:00
Robby Findler
54fad8546a an attempt to change get-close-paren to not edit the buffer
related to PR 13454
2013-01-26 08:08:34 -06:00
Robby Findler
f90eb33d67 only when when there is something to undo
They hypothesis behind this change is that the undo is
undoing an edit that came before, not the temporary edit
that appears in insert-close-paren. So, when there are
no edits happening (ie when fixup? is #f) then don't
undo. This is only a hypothesis because we were not able
to find a small code sequence, outside of DrRacket to
cause the bad behavior, so possibly there is really more
going on here.

Thanks to Nadeem Abdul Hamid for finding this fix.

Closes PR 13454
2013-01-26 07:49:14 -06:00
Robby Findler
e43583c444 make sure the framework tests run with the proper environment 2013-01-26 07:49:14 -06:00
Robby Findler
88404f3b1f adjust dists to move picts into the mr distributions
This move moves a library from the plt distribution into the
mr distribution, which is a direction we do not generally
like to go, but the pict library is more core than slideshow
and the dependency that triggered this change is that the
2htdp/image library now interoperates with picts (hopefully
2htdp/universe will also work with them at some point).

So this teases out the pict part of slideshow (mostly,
but not completely the texpict collection) and moves only
that part to the mr distribution.
2013-01-25 19:07:50 -06:00
Matthew Flatt
e22977667d racket/gui gtk: fix canvas/panel border drawing
The code to draw a border has to determine the widget's position
within the drawing window. Gtk 3.0 has a function to provide that
transformation, but Gtk 2.0 doesn't seem to have one, and it seems
that the transformation implemented in `racket/gui' wasn't right.

Closes PR 13453
2013-01-25 14:21:57 -07:00
Danny Yoo
86203467a4 Restore functionality of quiet? argument for link-extension.
This appears to be artifact from a debugging session; the quiet? flag was being ignored.
2013-01-25 13:22:14 -07:00
Philippe Meunier
6927923580 update, plus some typos and punctuation fixed 2013-01-26 03:32:19 +09:00
Jay McCarthy
49e517d362 Fixes PR13450, thanks Matthew 2013-01-25 08:11:26 -07:00
Jay McCarthy
8ce9b4eb10 Adding failing test for submodules in web-server lang 2013-01-25 07:42:05 -07:00
Jay McCarthy
3a69fb9191 Preserve exact stx obj for identifiers (and thus preserve properties like protected) 2013-01-25 07:42:05 -07:00
Jay McCarthy
74429db650 Ignoring submodules in web-server lang 2013-01-25 07:42:05 -07:00
Jay McCarthy
545009a48a Catching contract violation error discovered by Danny Yoo 2013-01-25 07:42:05 -07:00
Matthew Flatt
9210437b3f fix internal-definition expansion
The code added to handle expressions mixed with definitions was
not introduced in the right way; fix it to be like macro-introduced
code.

Closes PR 13452
2013-01-25 05:08:46 -07:00
Matthew Flatt
79266fcf36 ffi/com: improve handling of `type-described'
Use a type description when an automation-supplied type
is just 'any.
2013-01-25 05:08:46 -07:00
Matthew Flatt
0742424093 ffi/com: doc correction 2013-01-25 05:08:46 -07:00
Sam Tobin-Hochstadt
492bda2305 Avoid using unsafe structure access.
Moral: a little temporary speed should never be bought at the cost of safety.
2013-01-24 23:15:06 -05:00
Sam Tobin-Hochstadt
e75e494e6a Fix contracts and expected computation for tc-any-results. 2013-01-24 23:15:06 -05:00
Robby Findler
27442fa44c make contracts slightly more readable for
the get-location arguments to make-input-port
and make-output-port
2013-01-24 22:04:47 -06:00
Asumu Takikawa
a80830ab1d Error message typo 2013-01-24 09:28:03 -05:00
Matthew Flatt
8862a44f14 scriblib/figure: overhaul
Clean up the use of styles for alignment and the generated instances
of style names. In the process, remove some padding for HTML output,
and make the rendering more configurable (especially for Latex, based
on suggestions by Keven Tew).

The way that nested flows are generated can be different than before,
so these changes risk breaking some existing uses of `scriblib/figure'.
The changes especially likely break uses of `scriblib/figure' with
output configured through overiding .css/.tex definitions. But
the old pile of styles/macros was inconsistent and broken in various
ways, so hopefully the changes are an improvement overall.
2013-01-24 06:43:11 -05:00
Matthew Flatt
17865bfa84 scribble/latex-properties: add `command-extras'
This style property is a way to add to the Latex output that is
ignored for HTML and other output.
2013-01-24 06:43:10 -05:00
Matthew Flatt
21c8ef6e91 doc clarification on readtable procedures 2013-01-24 06:43:10 -05:00
Matthew Flatt
9e0fce224b paser-tools: doc clarifications
Nothing in the docs said that `parser-tools/yacc' is for LALR grammars
--- although I guess that it implied for most reader by the name "yacc",
but it doesn't hurt to say so explicitly. Meanwhile,
`parser-tools/cfg-parser' is useful for non-ambigious (non-LALR) grammars.

Also, from the style guide:
 * Section Titles Should be In Titlecase, Like This
 * Don't start a setence with an uncapitalized identifier.
2013-01-24 06:43:10 -05:00
Matthew Flatt
780fc2100a fix log-event propagation in `compiler/cm' 2013-01-24 06:43:10 -05:00
Matthew Flatt
b38036f36d doc clarification
Based on Tobias's text from the PR.

Closes PR 13441
2013-01-24 06:43:10 -05:00
Matthew Flatt
00362a273f fix `string-normalize-nf[k]c' when composed is much smaller then decomposed
For composed normalization, space is initially allocated based on the
decomposed length. The clean up step to avoid wasted space was wrong.
2013-01-24 06:43:10 -05:00
Asumu Takikawa
14c970b490 Fix contract name of parameter/c
Made it more backwards compatible
2013-01-23 21:20:29 -05:00
Eric Dobson
a2f33f17e9 Remove tc-results? and other minor improvements. 2013-01-23 18:15:21 -05:00
Eric Dobson
5a43a5c730 Made tc/exprs check its non final terms with the correct type.
Closes PR12974.
2013-01-23 16:41:09 -05:00
Eric Dobson
05e53a0de5 Add tc-any-results as new result-type. 2013-01-23 16:41:09 -05:00
Eric Dobson
aac25b42c9 Make AnyValues but don't actually start using it yet. 2013-01-23 16:41:09 -05:00
Asumu Takikawa
4b279eaf6a Use new parameter/c argument for contract generation
Closes PR 13446
2013-01-23 14:45:59 -05:00
Asumu Takikawa
3ddde6a7e9 Equip parameter/c with separate in/out contracts 2013-01-23 14:45:59 -05:00
Sam Tobin-Hochstadt
c3dcf823cb Add tick limit to this test so that it exits cleanly. 2013-01-23 14:45:07 -05:00
Burke Fetscher
2a9d42216e redex-generator: determine bound order automatically
also, fix a bug where continuations in thunks returned
by redex-generator weren't being shuffled
2013-01-23 13:03:07 -06:00
Sam Tobin-Hochstadt
c1e54419eb Serialize these two tests to fix DrDr concurrency issue. 2013-01-23 10:35:18 -05:00
Ryan Culpepper
d5fe602131 added #:datum-literals, like #:literals but for ~datum patterns 2013-01-22 21:35:53 -05:00
Sam Tobin-Hochstadt
40d2fd65b0 Add OrderedAnd patterns, and use them in ? patterns.
This guarantees that patterns like (? pred pat) will
always check `pred` before matching any of `pat`.
However, `and` patterns are not required to match left-
to-right.
2013-01-22 14:59:41 -05:00
Matthias Felleisen
c02dab0516 typo fixed 2013-01-22 10:37:07 -05:00
Jay McCarthy
62b8c7a894 Typo 2013-01-22 07:50:05 -07:00
Jay McCarthy
d071dc4387 Clarify http/response docs re: Norman 2013-01-22 07:23:52 -07:00
Jay McCarthy
7b33298b66 Adding no-cache to the Web server's default index 2013-01-22 07:23:52 -07:00
Matthew Flatt
c298062259 racket/match: add doc note on `for-syntax' exports 2013-01-22 09:12:00 +01:00
Neil Toronto
f42cc6f14a Fixed major performance issue with matrix arithmetic; please merge to 5.3.2
The fix consists of three parts:

1. Rewriting `inline-matrix*'. The material change here is that the
   expansion now contains only direct applications of `+' and `*'.
   TR's optimizer replaces them with `unsafe-fx+' and `unsafe-fx*',
   which keeps intermediate flonum values from being boxed.

2. Making the types of all functions that operate on (Matrix Number)
   values more precise. Now TR can prove that matrix operations preserve
   inexactness. For example, matrix-conjugate : (Matrix Flonum) ->
   (Matrix Flonum) and three other cases for Real, Float-Complex, and
   Number.

3. Changing the return types of some functions that used to return
   things like (Matrix (U A 0)). Now that we worry about preserving
   inexactness, we can't have `matrix-upper-triangle' always return a
   matrix that contains exact zeros. It now accepts an optional `zero'
   argument of type A.
2013-01-21 22:04:04 -07:00
Robby Findler
a0f910c3dc more adjustments to the c:x;r;a keystroke
The goal is to better handle situations like this one:

╔═══╗
║ - ║
╚═══╝

where the hyphen should not change.
2013-01-21 20:25:40 -06:00
Robby Findler
5301646baf fix a bug in recently added display-changed method 2013-01-21 13:47:43 -06:00
Kevin Tew
c553ce9fa3 Added rmpi-make-remote-config 2013-01-20 20:35:35 -07:00
Neil Toronto
ed01f70872 Bumped error bounds up a bit more 2013-01-19 19:01:24 -07:00
Neil Toronto
ddec613dc9 Fixed type error in "bernoulli.rkt"
If you merge e1b6e84089, please merge this as well (or math won't
compile)
2013-01-19 18:56:37 -07:00
Neil Toronto
564f589601 Fixed some limits and accuracy issues with flonum expansions 2013-01-19 18:09:44 -07:00
Mike Sperber
57f233cff1 Synch German string constants with latest. 2013-01-19 10:35:04 +01:00
Robby Findler
ccbedb652f make 2htdp/image images convertible to picts 2013-01-18 20:15:36 -06:00
Vincent St-Amour
193bff7a2b Fix collatz typed benchmark for fix to odd? and even?. 2013-01-18 18:25:19 -05:00
Vincent St-Amour
091e26cde8 Fix TR optimizer tests for TR info logging. 2013-01-18 18:25:18 -05:00
Asumu Takikawa
e1b6e84089 Fix filters on odd? and even?
Closes PR 13233
2013-01-18 18:25:18 -05:00
Vincent St-Amour
1b48b5049f Add pointer to make-log-receiver from start-recording docs. 2013-01-18 18:25:18 -05:00
Asumu Takikawa
688511aec5 Fix year day for srfi/19-produced date*s
srfi/19's `date-year-day` indexes from 1 and Racket
indexes from 0.
2013-01-18 15:48:11 -05:00
Matthew Flatt
1744a78738 mach-o: fix problems related to code signing
Strip any code signing when generating an executable from
Racket or GRacket. Also, place the __LINKEDIT segment in
virtual memory after the __PLTSCHEME segment, so that
the in-memory layout order matches the file layout order,
which in turn makes the code-signing tool's update of the
__LINKEDIT segment's size not create a virtual-memory
overlap with __PLTSCHEME.
2013-01-18 11:03:46 -06:00
Matthew Flatt
a229f2924d mach-o: handle some new load commands 2013-01-18 11:03:46 -06:00
Matthew Flatt
48e0509381 add `file-truncate' 2013-01-18 11:03:46 -06:00
Matthew Flatt
a605452b0f minor doc repair 2013-01-18 11:03:46 -06:00
Asumu Takikawa
7e679597f1 Update srfi/19 for latest leap seconds
Closes PR 13390
2013-01-18 10:44:58 -05:00
Asumu Takikawa
15a73e2c00 Example for with-handlers 2013-01-18 10:39:36 -05:00
Jay McCarthy
850069ec83 Adding test for lex-name change 2013-01-18 06:35:52 -07:00
Jay McCarthy
2fc1f84f5b Removing optimizations from sgml-reader that do not work for UTF-8 2013-01-18 06:15:02 -07:00
Neil Toronto
ecd43f7579 Fixed erroneous raised exception when plotting outside the bounds of
a 2D contour plot

Please merge to 5.3.2
2013-01-17 21:30:07 -07:00
Robby Findler
22d1619058 Oops, sorry.
This reverts commit 8ccd1a2172.

This reverts commit ded6cb1da1.

This reverts commit 7df363c523.

This reverts commit 6349f85b08.
2013-01-17 20:43:03 -06:00
Neil Toronto
24561e25e4 Finished matrix documentation, attendant fixes; please merge to 5.3.2
* Narrowed type of `submatrix' to only sensible argument types

* `matrix-invertible?' now returns #f when given a non-square matrix
  instead of raising an error

* Allowed `matrix-diagonal' to operate on non-square matrices
2013-01-17 19:08:11 -07:00
Robby Findler
8ccd1a2172 more tests 2013-01-17 15:39:36 -06:00
Robby Findler
ded6cb1da1 more test cases ... 2013-01-17 15:39:35 -06:00
Robby Findler
7df363c523 progress on 2d 2013-01-17 15:39:35 -06:00
Robby Findler
6349f85b08 2d cond reader (not yet done) 2013-01-17 15:39:35 -06:00
Robby Findler
fce4cbad3a loosen slightly the requirements for changing existing chars
in the c:x;r;a keystroke
2013-01-17 15:39:35 -06:00
Neil Toronto
f40ad2ca9d `math/matrix' fixes; please merge to 5.3.2.
* Fixed type of `matrix-expt'

* Made matrix functions respect `array-strictness' parameter (mostly
  wrapping functions with `parameterize' and return values with
  `array-default-strictness'; reindentation makes changes look larger)

* Added strictness tests
2013-01-16 16:40:43 -07:00
Danny Yoo
7e3d5987ff Delegate the pattern matching directly to dispatch-rules. 2013-01-16 14:00:25 -07:00
Danny Yoo
4dfe409772 Strip the copy-and-paste for cfg-parser, keeping the delta vs. parser. 2013-01-16 11:17:15 -07:00
Matthias Felleisen
7afcda8b02 doctored the description of event handler results; MERGE 2013-01-16 12:52:21 -05:00
Burke Fetscher
2f61d04073 ASCII art box - don't search past extra +x space 2013-01-15 21:43:33 -06:00
Danny Yoo
7627e4c47e Add tests for regexp match to check for word break. 2013-01-15 16:05:43 -07:00
Danny Yoo
2051d42034 Add more JSON tests for embedded quotes, backslashes, and errors. 2013-01-15 15:59:18 -07:00
Danny Yoo
aa3f44dffa Replace non-greedy regexp with a char-complement to improve matching performance.
Measurements show a runtime improvement of about 10% for string-heavy
JSON documents.  http://lists.racket-lang.org/users/archive/2013-January/055953.html
2013-01-15 15:59:17 -07:00
Burke Fetscher
8562310f38 ACII art boxes keybinding - look a little harder for the box 2013-01-15 16:53:41 -06:00
Danny Yoo
8d00037372 Remove paragraph about multiple start symbols, since cfg-parser doesn't support it. 2013-01-15 15:24:57 -07:00
Danny Yoo
e9c5c78468 Add documentation for cfg-parser. 2013-01-15 15:20:35 -07:00
Danny Yoo
3d1f8b4406 Modify cfg-parser's treatment of error function so it can consume both arity-3 and arity-5 error functions.
Meant to match the interface provided by parser-tools/yacc's parser.
2013-01-15 15:19:28 -07:00
Danny Yoo
7ab7d97f01 Move cfg-parser from the algol60 collection to parser-tools.
Discussed in: http://lists.racket-lang.org/dev/archive/2013-January/011416.html

A stub library in algol60/cfg-parser will re-export the contents of
parser-tools/algol60 for backwards compatibility.
2013-01-15 14:19:15 -07:00
Neil Toronto
986e695bd5 Made arrays strict by default; please merge to release
* Added parameter `array-strictness', default #t

* Added `array-default-strict!' and `array-default-strict', which act
  like the functions without "default" in the name when
  `array-strictness' is #t; otherwise they do nothing

* Lots of small changes to existing array functions, mostly to ensure
  computations are done using nonstrict arrays, but return values are
  strict when `array-strictness' is #t

* Added strictness tests

* Added tests to ensure untyped code can use `math/array'

* Rewrote `array-map' exported to untyped code using untyped Racket

* Rearranged a lot of `math/array' documentation
2013-01-15 13:53:28 -07:00
Robby Findler
131af9955d fix bug introduced in f315f08dc3
closes PR 13435

Also cleaned up one more threading problem (this one was
probably innocuous, but it is hard to be sure and the
rewrite is easier to see that it isn't problematic)
2013-01-15 14:47:52 -06:00
Asumu Takikawa
28d46105c9 Add tests for PR 13094.
The bug itself was fixed already when ordinary
type variable scoping was fixed.

Closes PR 13094
2013-01-15 15:44:34 -05:00
Eric Dobson
5fe004cd9b Make TR compile with contracts enabled again. 2013-01-15 12:36:42 -05:00
Eric Dobson
f315880b50 Replace uses of Type? with Type/c?. 2013-01-15 12:23:42 -05:00
Matthias Felleisen
fbb3145f39 fixed a bug that prevented universe from restarting on some occasions 2013-01-15 10:10:18 -05:00
Matthias Felleisen
7df831feec universe restart test, bug from Marco 2013-01-15 10:10:18 -05:00
Robby Findler
1edec6a33e move the ╬ char and friends into a separate file
do not merge to 5.3.2
2013-01-15 09:08:02 -06:00
Robby Findler
c8a1ec8c9c fix bug in online check syntax's save file notification
Before this commit, the files that are loaded during expansion
were discarded when an error during expansion occurs. This commit
saves them: unless the program is something like

  (begin-for-syntax (kill-thread (current-thread)))

the handling that deals with that kind of situation (as opposed
to just an exception being raised) doesn't try to save them

Do not merge to 5.3.2: this bug isn't serious and the new code
is not as well tested as the old
2013-01-15 09:07:42 -06:00
Eric Dobson
a5daacd747 Fix register-struct-bindings! to meet correct contract.
Please merge to 5.3.2.
2013-01-14 17:30:29 -05:00
Carl Eastlund
5130abf2dd Wrote documentation for quote-srcloc-string and quote-srcloc-prefix. 2013-01-14 17:17:10 -05:00
Carl Eastlund
860cc3cbed Added quote-srcloc-string and quote-srcloc-prefix to syntax/location.
Also cleaned up implementation; only generates syntax for requested part(s) of
source location, and is more intelligent about calculation of relative paths.
2013-01-14 17:17:10 -05:00
Carl Eastlund
b03450c7b0 Clarified the purpose of quote-module-name and quote-module-path in the Scribble docs. 2013-01-14 17:17:10 -05:00
Sam Tobin-Hochstadt
230172cf94 Use syntax-procedure-alias-property with struct constructor procedures as well.
This uses a new `racket/private/procedure-alias` module
which provides the relevant symbol via `protect-out`.
2013-01-14 14:27:33 -05:00
Sam Tobin-Hochstadt
b6564980ab Typed modules as languages doesn't currently work. 2013-01-14 14:27:33 -05:00
Asumu Takikawa
3e3303156d Replace copyright notice with correct one
This is the copyright notice that is provided in
the official SRFI implementation rather than the SRFI
document license.
2013-01-14 10:35:44 -05:00
Asumu Takikawa
1ae216ec94 Delete trailing whitespace 2013-01-14 10:35:44 -05:00
Asumu Takikawa
8d1c56cb6f Rackety 2013-01-14 10:35:44 -05:00
Asumu Takikawa
d406e2db57 Make srfi/19 compatible with date* structs
- srfi/19 functions now produce and accept date*s
 - some functions produce lax-dates for backwards compat.
2013-01-14 10:35:43 -05:00
Eli Barzilay
df850724e1 Very simple job server.
Kept here in case it's useful for other things.
2013-01-13 19:27:05 -05:00
Matthew Flatt
2adf0bdf2e ffi/unsafe/objc docs: clarification on `import-class'
Merge to v5.3.2
2013-01-13 15:33:48 -07:00
Eli Barzilay
368ee6d8b5 Lots of improvements to DMG creation.
* Remove lots of sudoing, and instead use one to change the contents (of
  non-simple DMGs).  Perhaps that's not needed too.  (I think that there
  used to be some problem when the owner was a specific user in the
  installer script days, perhaps it caused some mess in the pre/post
  flight scripts.  Maybe it's safe to not do this anymore.)

* There was a fundamental weakness in the Finder script -- it tweaks the
  DMG by openning its mount, but the way to specify a disk is via its
  displayed name which is not unique.  This can be problematic if there
  is already a mount that has the same name, and given that the DMG
  machine can be used by PLT people, it's even likely to happen.  It is
  tricky to solve this, since there is no way that I see to refer to the
  disk by its mount point or device in the Finder, and no way to find
  out the name in the shell.

  I spent a ton of time searching the webs for a solution, but it seems
  that practically nobody is concerned (or even aware of this problem).
  Eventually, the hack I did is to mount the image onto a randomly named
  directory, then iterate over all disks and look for one whose `name'
  property is that directory name (apparently the `name' property is the
  name of the last component of the mount point).  For safety, throw an
  error if no such disk is found, or if more than one is found.

  Incidentally, using a known mount point also simplifies things since
  there is no need to know the device name of the mount.

* Use UDBZ instead of UDZO for the compressed image.  The savings are
  not as big as I expected them to be for some reason, but the
  compatibility issues should be all gone now (UDBZ works only from 10.4
  and up).

* Unset $LD_LIBRARY_PATH to avoid some 10.8 bug.

* Switch the build to happen on dublin, running 10.8.  At least
  code-signing is broken on the 10.5.8 machine, and possibly also the
  osascript to identify the desired image disk.
2013-01-13 16:52:08 -05:00
Ryan Culpepper
1109e0f86d fix rounding in ~r, docs
Merge to 5.3.2.
2013-01-13 15:52:08 -05:00
Eli Barzilay
ffbdaf0667 Added an optional hook script to run on the to-be-distributed directory. 2013-01-13 11:21:27 -05:00
Eli Barzilay
c8615a37b1 Saner dmg code organization.
"dmg" is now the layout-enabled usual DMGs, since they will soon have
more functionality around them (signed applications).  "sdmg" is for the
simple (or "source") DMGs, which are just plain containers for a
directory.  Also use a flag to avoid the stupid dynamic scope hack.
2013-01-13 11:21:27 -05:00
Robby Findler
f315f08dc3 make the planet2 info in the bug report form have multiple lines
in the GUI
2013-01-13 09:19:34 -06:00
Matthew Flatt
d2ce3f714b bug report GUI: guard against `raco pkg show' errors
Various things can go wrong with `raco pkg show', including
permission errors or lock conflicts.

Merge to v5.3.2
2013-01-13 07:56:58 -07:00
Matthew Flatt
b5d874e35d raco pkg: allow read operations on read-only package data
In particular, `raco pkg show' should work when the user does not
have write access to the installation directory or installation-wide
package database.

Merge to v5.3.2
2013-01-13 07:56:46 -07:00
Robby Findler
708395d51c clarify when drracket creates executables 2013-01-13 07:59:54 -06:00
Mike Sperber
f332092f58 Synch German string constants with latest. 2013-01-13 14:57:45 +01:00
Eli Barzilay
a2207e6f33 Make only binary distributions use laid-out DMGs.
This is done by adding an "ldmg" type for laid-out DMGs, and "dmg"
produces a plain container image as before.
2013-01-12 04:11:44 -05:00
Eli Barzilay
b5618b7d13 Do the conventional DMG layout.
Note that this requires a running Finder.  Note also that the process
involves attaching the created DMG which means that it might be
problematic with a machine that might have a volume by the same name
already attached (since the applescript uses the volume name, which is
not required to be unique).
2013-01-12 04:11:44 -05:00
Eli Barzilay
a3a47128de Remove "internet-enabled" dmg creation.
Robby says that they're no longer recommended and rarely used by
browsers, and with a better dmg layout the contents should not be copied
automatically anyway.
2013-01-12 04:11:44 -05:00
Robby Findler
2067534431 add #:extra-srclocs argument to raise-read-error
Also, modernize the error checking to use raise-argument-error
and generally Rackety
2013-01-11 23:09:38 -06:00
Asumu Takikawa
2ac6615da9 Use correct parent for date* in makeexn
Please merge to 5.3.2
2013-01-11 21:22:20 -05:00
Asumu Takikawa
d95be2ed4d Fix error typo
Please merge to 5.3.2
2013-01-11 21:22:12 -05:00
Vincent St-Amour
2c8e5f9acb Move Optimization Coach to PLaneT 2. 2013-01-11 18:40:23 -05:00
Vincent St-Amour
54c8394280 Call inner when augmenting methods. 2013-01-11 18:40:23 -05:00
Vincent St-Amour
903eec448e Document profiler support. 2013-01-11 18:40:23 -05:00
Vincent St-Amour
65bd79b003 Improve UI for profiling support. 2013-01-11 18:40:23 -05:00
Vincent St-Amour
09683d4441 Don't prune cold inlining successes. 2013-01-11 18:40:23 -05:00
Vincent St-Amour
8202de8f4a Log ill-formed log entries instead of erroring. 2013-01-11 18:40:23 -05:00
Vincent St-Amour
6480addbd1 Distinguish between different kinds of inlining failures. 2013-01-11 18:40:23 -05:00
Vincent St-Amour
8e9f21b181 Make inliner log parsing more robust.
Relies less on regular expressions and more on a custom reader.
2013-01-11 18:40:22 -05:00
Vincent St-Amour
6f6a95fdaa Don't reverse accumulated logs.
Not necessary anymore.
2013-01-11 18:40:22 -05:00
Vincent St-Amour
50777aaca4 Refactor arithmetic hidden cost logging. 2013-01-11 18:40:22 -05:00
Vincent St-Amour
e82a0ee608 Clean up checks for profile information.
It is now always available when reporting about inlining.
2013-01-11 18:40:21 -05:00
Vincent St-Amour
3da04201cd Move Typed Racket-specific processing to its own file. 2013-01-11 18:40:21 -05:00
Vincent St-Amour
96078c9da6 Don't track provenance at the log entry level.
Not necessary anymore.
2013-01-11 18:40:21 -05:00
Vincent St-Amour
928ea23a12 Have separate checkbox for hidden costs. 2013-01-11 18:40:21 -05:00
Vincent St-Amour
8ffbaabfa6 Have hidden cost reporting produce report entries directly.
Since I'm more likely to do locality than causality merging for them,
there's no reason to produce log entries instead of report entries.
2013-01-11 18:40:21 -05:00
Vincent St-Amour
e4f3d8e73c Only show inlining reports when profiling information is available.
Without profiling information, pruning is not good enough.
2013-01-11 18:40:21 -05:00
Vincent St-Amour
6d7f1627b8 Have inlining reporting produce report entries directly. 2013-01-11 18:40:21 -05:00
Vincent St-Amour
4933d9f00f Separate TR optimization and info logs. 2013-01-11 18:40:21 -05:00
Vincent St-Amour
677550cbe2 Major refactoring. 2013-01-11 18:40:21 -05:00
Vincent St-Amour
ebf25a3cdb Prune inlining recommendations more aggressively. 2013-01-11 18:40:21 -05:00
Vincent St-Amour
defa1b96ff Refactoring. 2013-01-11 18:40:21 -05:00
Vincent St-Amour
a2f1e33d00 Scale badness using profile data. 2013-01-11 18:40:21 -05:00
Vincent St-Amour
4271675f69 Report potential exact rational arithmetic in hot code. 2013-01-11 18:40:20 -05:00
Vincent St-Amour
6e9ed24eae Implement TR pruning. 2013-01-11 18:40:20 -05:00
Vincent St-Amour
9c73563705 Report struct constructors used in hot code. 2013-01-11 18:40:20 -05:00
Sam Tobin-Hochstadt
696583582b Add struct constructor table. 2013-01-11 18:40:20 -05:00
Vincent St-Amour
a474eb9838 Report hidden parameter accesses. 2013-01-11 18:40:20 -05:00
Vincent St-Amour
cc168d148d Log operations with hidden costs from TR.
Currently only implicit parameter dereferences.
2013-01-11 18:40:20 -05:00
Vincent St-Amour
8170eda45c Keep reports for functions that contain hot functions.
Helps for curried functions.
2013-01-11 18:40:20 -05:00
Vincent St-Amour
48a55f7e74 Revert "Recommend turning "hot" higher-order calls into first-order calls."
This reverts commit bb0c20ce6eff2112a25eb1f98d394b36da0128f8.

Was never useful in practice.
2013-01-11 18:40:20 -05:00
Vincent St-Amour
89948b2954 Recommend turning "hot" higher-order calls into first-order calls. 2013-01-11 18:40:20 -05:00
Vincent St-Amour
db6b0df526 Adjust definition of interesting call sites to not rely on inlining info.
That information may not be available.
2013-01-11 18:40:20 -05:00
Vincent St-Amour
bba3d66fb1 Factor out the concept of interesting callers. 2013-01-11 18:40:19 -05:00
Vincent St-Amour
c66654e9c8 Allow producing multiple inliner report entries per function.
This also allows reporting one function while traversing another.
2013-01-11 18:40:19 -05:00
Vincent St-Amour
fa01a5304a Recognize "interesting" call sites.
These are call sites where one of the callees accounts for a large portion
of the total time of its caller.

When such call sites are considered inlining failures, we can refine
recommendations.

The concept of interesting call site is also useful as a building block
for higher-level patterns.
2013-01-11 18:40:19 -05:00
Vincent St-Amour
bb9f4e4634 Report "bridgehead" inlinings as successes, even if further inlinings fail. 2013-01-11 18:40:19 -05:00
Vincent St-Amour
28d4eb4d22 Use the right version of the log to determine misses. 2013-01-11 18:40:19 -05:00
Vincent St-Amour
e02333a3c8 Fix handling of self out-of-fuel. 2013-01-11 18:40:19 -05:00
Vincent St-Amour
d1a2815197 Refactoring. 2013-01-11 18:40:19 -05:00
Vincent St-Amour
b751907e24 Keep TR and mzc logs separate.
Simplifies post-processing.
2013-01-11 18:40:19 -05:00
Vincent St-Amour
8ace14bad9 Refactoring. 2013-01-11 18:40:19 -05:00
Vincent St-Amour
9f415ecd8a When we have profiling information, prune inlining reports about cold code. 2013-01-11 18:40:19 -05:00
Vincent St-Amour
c8d3aea6dd Rethink profiler integration.
Requires the program to manually call the profiler. This dumps the results in
a separate file.
2013-01-11 18:40:18 -05:00
Vincent St-Amour
5bf52e9663 Keep profile entries that come from other files.
Otherwise, hot function set is only populated from the current file.
2013-01-11 18:40:18 -05:00
Vincent St-Amour
c7f8eff883 Prune profile info to only keep hot functions. 2013-01-11 18:40:18 -05:00
Vincent St-Amour
f6b60b2f90 Propagate profile information to inlining analysis. 2013-01-11 18:40:18 -05:00
Vincent St-Amour
a1c93f466c Only keep profile reports from the relevant file. 2013-01-11 18:40:18 -05:00
Vincent St-Amour
9fd9638252 Refactoring. 2013-01-11 18:40:18 -05:00
Vincent St-Amour
4c7e319cd2 Put sandbox management in its own file.
To avoid circular dependencies.
2013-01-11 18:40:18 -05:00
Vincent St-Amour
18e4cbbb40 First stab at hooking the profiler up to OC.
Profiling is done from inside the eval, to minimize noise.

Use samplers directly, to get access to the profiler's data structures.
2013-01-11 18:40:18 -05:00
Vincent St-Amour
5d4bbfaf6c Abstract out right file filtering. 2013-01-11 18:40:17 -05:00
Vincent St-Amour
a65d7532f2 Log output generated when OC expands/runs programs.
To be consistent with Check Syntax.
2013-01-11 18:40:17 -05:00
Vincent St-Amour
fa2cba1c5b Abstract out OC sandboxing. 2013-01-11 18:40:17 -05:00
Sam Tobin-Hochstadt
1a678bd5de Fix parsing of maybe-optimize result.
Merge to 5.3.2.
2013-01-11 18:15:53 -05:00
Sam Tobin-Hochstadt
2a1f70264c Fix XREPL logging printer to handle new logger name field.
Merge to 5.3.2.
2013-01-11 18:15:34 -05:00
Ryan Culpepper
9b1b15d110 fix missing argument
closes PR 13429

Merge to 5.3.2
2013-01-11 16:14:58 -05:00
Danny Yoo
69ae77a253 Gracefully handle the case where the token stream just contains the END token and an error occurs. 2013-01-11 14:00:24 -07:00
Jay McCarthy
3312a8064d Working with links in collection testing 2013-01-10 10:45:54 -07:00
Tobias Hammer
0f6a5833fc readline/readline: add readline-newline' and readline-redisplay'
mzrl.rkt:
  Add and provide readline-newline and readline-readisplay.

readline.scrbl:
  Documentation and example code.
2013-01-09 19:12:22 -07:00
Matthew Flatt
5134bc0888 scribble doc corrections
Merge to v5.3.2
2013-01-09 18:52:16 -07:00
Matthew Flatt
5ab048bb5c scribble/decode: fix contract on `decode-compound-paragraph'
Add a test suite that at least tries each export of `scribble/decode'.

Merge to v5.3.2
2013-01-09 18:52:16 -07:00
Greg Hendershott
4d3a5bad04 Use Racket lexer for code blocks.
Had been specifying Scheme lexer for code blocks, while waiting for
new Racket lexer to wend its way from Pygments to Pygments.rb to
Linguist to GitHub.

That day is almost here: Linguist will soon update and deploy to
GitHub.  And Racket 5.3.2 is about to release.  As a result, I think
this is the correct time to switch to the Racket lexer: It should be
live on GitHub by the time people are using Racket 5.3.2.

/cc @rmculpepper -- I think this commit should go into the 5.3.2
release.
2013-01-09 18:52:16 -07:00
Asumu Takikawa
c5c6280d87 Change exception predicate for a test
For some reason, the other predicate breaks on some
test setups, even though it usually succeeds.

Please merge to 5.3.2
2013-01-09 18:12:45 -05:00
Asumu Takikawa
f577b49a4d Fix polydots
- parsing of polydots values was fixed
 - certain polydots error cases are now reported
 - the custom application rule for values was fixed

Closes PR 13365

Please merge to 5.3.2
2013-01-09 18:12:45 -05:00
Neil Toronto
441ad6eff4 MPFR custodian shutdown procedure tries to clear the constants cache
even when MPFR isn't loaded; this should close PR 13423
2013-01-09 11:21:58 -07:00
Danny Yoo
6e21e34ec7 Correct location calculations for non-terminals.
The prior code constructed the location of nonterminal maches out of
the the state of the stream after parsing.  This isn't right for a few
reasons:

    1.  It doesn't get starting location correctly.

    2.  It doesn't behave when the non-terminal production did not
        actually consume tokens for its parse.

This patch modifies the parsers to also pass along a
"last-consumed-token"; it, along with a few other changes, provides
the parsers enough information to accurately construct the locations,
even when no tokens have been consumed during the parse.  We
synthesize a sentinel last-consumed-token token to take location from
the head of the stream.
2013-01-09 10:46:18 -07:00
Jay McCarthy
9015c15eec test - Supporting packages in raco test 2013-01-09 08:12:56 -07:00
Jay McCarthy
3e0fff7dff Extending raco test to work on collections 2013-01-09 07:59:47 -07:00
Jay McCarthy
7cddc64e5a pkg - Improving error message on bad github urls 2013-01-09 07:34:56 -07:00
Jay McCarthy
f3a3c64720 pkg - Adding explanation of github supporting tags 2013-01-09 07:34:35 -07:00
Jay McCarthy
9d4e47a96e Update URLs again to r-l.o domain 2013-01-09 06:31:02 -07:00
Eli Barzilay
79b9acd444 2012 -> 2013 2013-01-09 01:17:26 -05:00
Asumu Takikawa
83766e1b11 Doc fix
Closes PR 13420

Please merge into 5.3.2
2013-01-08 19:45:15 -05:00
Asumu Takikawa
27d3042ad6 Use correct contract for Procedure type
The only problem with this contract is that it does
not produce a very good error message
2013-01-08 20:03:16 -05:00
Matthew Flatt
3e8b6b9866 scribble: add +m' / ++main-xref-in' flag
The `+m' flag is a long-overdue shorthand for `++xref-in setup/xref
load-collections-xref', which links to installed documentation in
the same way as DrRacket's "Scribble HTML" button.

That is, use `+m' to link to installed documentation,

  scribble +m mine.scrbl

instead of the previously recommended

  scribble ++xref-in setup/xref load-collections-xref mine.scrbl

Merge to 5.3.2
2013-01-08 16:25:28 -07:00
Asumu Takikawa
9c0a611b59 Disallow duplicate type variable declarations
Closes PR 13416

Please merge to 5.3.2
2013-01-08 14:50:08 -05:00
Jay McCarthy
b0f3f03412 Removing exotic ports for PNRs 2013-01-08 07:42:51 -07:00
Robby Findler
3e3283aeba adjust drracket so check syntax can add its preferences itself
closes PR 13419
2013-01-08 01:01:40 -06:00
Ryan Culpepper
929f37df62 fix db test script 2013-01-07 19:52:51 -05:00
Ryan Culpepper
c0543e8f65 updated docs for new simple-result info
Most changes are due to unrelated serialization improvements,
but there's one example with a different result.
2013-01-07 19:52:51 -05:00
Ryan Culpepper
681558328e add last inserted row, # changes to simple-result info
The info keys are 'insert-id, 'affected-rows, as for mysql.
2013-01-07 19:52:51 -05:00
Ryan Culpepper
a6f03ee38f use popcount table 2013-01-07 19:52:51 -05:00
Ryan Culpepper
139c0ca6c7 improve popcount 2013-01-07 19:52:51 -05:00
Vincent St-Amour
057a2bd0d2 Extend type of min to preserve fixnumness. 2013-01-07 17:00:32 -05:00
Robby Findler
6b681f04c4 add planet2 info to the bug report system 2013-01-07 11:04:24 -06:00
Robby Findler
84c0208d99 add check for number of result values in ->i (that signals blame)
closes PR 13417
2013-01-07 11:04:24 -06:00
Jay McCarthy
b02d8af305 Fixing PR13409 2013-01-07 08:27:26 -07:00
Asumu Takikawa
5e78aa7d9e Add examples & slight fix for stxparam docs 2013-01-06 16:26:02 -05:00
Asumu Takikawa
470a8c8892 Minor rewording 2013-01-06 16:26:02 -05:00
Robby Findler
4e95220d97 speed up tab switching
I belive this should only be noticeable at the human timescale level
when the tabs have been switched to already and, in that case, seems
to go from 3-400 msec to 50-60 msec on my machine

Essentially all of that time is in redrawing the buffer, so that 50-60
msec is proportional to the height of the DrRacket window, roughly.

(The commit just makes drracket do a single redraw instead of about 4
or so of them per switch ...)
2013-01-06 19:48:14 -06:00
Robby Findler
0b332a1761 add deprecation notice to mrlib/cache-image-snip 2013-01-06 19:48:14 -06:00
Matthew Flatt
05837fac1b planet2: installation-wide config of default `raco pkg' scope
With either
  configure --enable-pkgscope=installation
or
  raco pkg config -i --set default-scope installation
the default scope of `raco pkg' actions can be changed from
user-specific to installation-wide.

We considered trying to guess when someone building Racket would prefer
installation-wide package scope by default. In particular, someone
building from source for in-place use seems likely to want
installation-wide scope by default. Then again, we don't want to
discourage in-place builds for Unix installations that are intended
for multiple users. So, no guessing for now.

Also, add a `--scope' argument to `raco pkg' commands, which is more in
line with other options, but keep `-i', etc., as shorthands.
2013-01-06 11:17:22 -07:00
Robby Findler
dd161bb821 allow multiple string constants to be in a single "line"
also enforce some spacing requirements to avoid the problem
where you forget to put a space in a message that is broken
across string constants.
2013-01-05 20:25:06 -06:00
Robby Findler
4f22b3b680 fix traditional/simplified initial choice 2013-01-05 19:46:57 -06:00
Robby Findler
12d670b5a3 add missing inner call 2013-01-05 17:31:07 -06:00
Robby Findler
c907368e0f try to make the colorer more friendly when there is an unclosed
edit sequence

(ie make it not take over the cpu)
2013-01-05 17:31:07 -06:00
Matthias Felleisen
510e74fa1c added stdin and stdout as alternatives 2013-01-05 14:35:30 -05:00
Matthias Felleisen
f78e4c7142 added defthing as a doc feature; Closes PR13414 2013-01-05 14:35:30 -05:00
Robby Findler
23fec98cbb move a literal string that should be translated into the string-constants library 2013-01-05 12:22:37 -06:00
Robby Findler
cce6f28d4d remove 'create executable' functionality from drracket for all
langauges except The Racket Language and the HtDP and DMdA languages
2013-01-05 12:19:26 -06:00
Robby Findler
89373c7850 re-enable autosave only if a save is successful, not just attempted
when combined with 94b54db118,
closes PR 13359
2013-01-05 11:35:13 -06:00
Robby Findler
0c76c692ac guard call to file-or-directory-permissions
related to PR 13359
also, Rackety
2013-01-05 11:35:13 -06:00
Matthew Flatt
e66cd6f9c7 raco exe: yet another submodule repair
Closes PR 13410
2013-01-05 09:12:47 -07:00
Matthew Flatt
a496404411 setup/configtab: prevent cross-module inlining of configuration
The intent is that the configuration module can be rewritten without
recompiling code that uses it, so don't let the compiler inline
configuration values.
2013-01-05 07:33:41 -07:00
Robby Findler
d228790ed9 change chat noir so that 'h' toggles help
(instead of requiring it to be pressed down all
the time, as that generates lots of extra events)
2013-01-04 21:39:11 -06:00
Robby Findler
87d25ba02a adjust scribble/lp language so drracket syntax colors it properly
Also fix a spelling mistake (now that spell checking works) and Rackety
2013-01-04 21:39:11 -06:00
Matthias Felleisen
69800aa580 batch io functions now accept 'standard-[in,out] in lieu of file name 2013-01-04 19:06:13 -05:00
Robby Findler
d53d3c3528 try to make this test's timing better behaved 2013-01-04 16:59:00 -06:00
Matthew Flatt
cd73a8b02a math/matrix: fix some duplicate documentation tags 2013-01-04 08:12:47 -07:00
Matthew Flatt
67f0af387b fix problems with single-flonum (versus flonum) results
The problems were with

 * `sqrt' and `expt' on single-flonum complex numbers
 * `asin' and `acos' on single-flonum arguments and complex results
 * `atan' on mixtures of single-flonum and exact arguments
 * `gcd' on mixtures of single-flonum and flonum arguments
2013-01-04 08:00:24 -07:00
Jay McCarthy
c07ff948ee Fixes PR13406 2013-01-04 05:45:05 -07:00
Robby Findler
aa5f2e7875 adjust the framework to avoid
calling the error-display-handler when reporting
problems saving files

closes PR 13403
2013-01-03 20:47:19 -06:00
Robby Findler
94b54db118 clean up autosave a little
guard more of the filesystem manipulations with
handlers and log errors instead of letting them
be raised and show up as internal errors

related to PR 13403
2013-01-03 20:47:17 -06:00
Jens Axel Søgaard
69d7cb2e82 More matrix documentation 2013-01-03 18:03:28 +01:00
Robby Findler
12a288f135 add a checkbox to disable online expansion in the preferences dialog
(it controls the same state as clicking in the circle in
the bottom right corner of the drracket window)
2013-01-03 11:00:23 -06:00
Matthew Flatt
42c77d6290 planet2 docs: move and tweak expanation of package-library `require' 2013-01-03 07:34:33 -07:00
Matthew Flatt
e98c308e66 bundle script: fixes for "README" munging 2013-01-03 07:04:29 -07:00
Asumu Takikawa
3885ea7cdd Fix doc typos 2013-01-03 02:27:30 -05:00
Matthias Felleisen
1b07cb4ff9 fixed a @file-is mistake, race? 2013-01-02 18:32:35 -05:00
John Clements
5a4098ffec added docs on requiring planet2 modules 2013-01-02 14:23:42 -08:00
Vincent St-Amour
81cccb4c8f Fix fixnum comparisons to prove more bounds. 2013-01-02 16:55:28 -05:00
Jens Axel Søgaard
9465bc0196 Documentation for inner product space operations 2013-01-02 22:44:39 +01:00
Neil Toronto
cfa9bd9a81 Exported `matrix-basis-cos-angle' with a contractable type 2013-01-02 13:20:42 -07:00
Jens Axel Søgaard
69406bf156 Documentation on basic matrix operations and matrix-qr. 2013-01-02 19:28:05 +01:00
Vincent St-Amour
18389532e7 Move define-inline to racket/performance-hint.
Move begin-encourage-inline to racket/private for dependencies.
2013-01-02 12:18:36 -05:00
Jens Axel Søgaard
715b0a7be7 Documentation for polymorphic matrix functions 2013-01-02 18:02:03 +01:00
Robby Findler
ad579d07d6 put the racket version number in the title bar for the splash screen 2013-01-02 10:19:38 -06:00
Matthew Flatt
43e01d7f4e rename test file
":" is not allowed in a file name on Windows.
2013-01-02 06:33:10 -07:00
Robby Findler
836ce95343 added section on alpha blending to 2htdp/image guide 2013-01-01 23:13:13 -06:00
Robby Findler
0d0503bda7 adjust sync pattern to avoid cross-thread set! 2013-01-01 23:13:13 -06:00
Robby Findler
0f26aafd1f Adjust DrRacket to not use on-demand to populate the
teachpack menu.

Instead DrRacket explicitly changes the menu items when
the language changes or when a teachpack is added/removed

Also, Rackety.

Closes PR 13395
2013-01-01 23:13:00 -06:00
Neil Toronto
e5eb9751f0 Initial `math/matrix' documentation, and some changes
* At least stubbed out all (or almost all) `math/matrix' exports; many
  have complete documentation (e.g. types, predicates, accessors,
  constructors, for loops, conversion, much of "Comparing Matrices")

* Moved `matrix-zero?' and fixed to use (matrix-error-norm) as its norm

* Added `matrix-basis-cos-angle' (currently a stub; should return smallest
  singular value of a certain matrix multiplication)
2013-01-01 18:19:43 -07:00
Neil Toronto
5981535686 Made Gaussian elimination faster (half the scaled additions) and more
accurate (always produces zeros in the lower half)
2013-01-01 18:19:43 -07:00
Matthew Flatt
3c5135fc7a `expt' repair, again
Previous repair wasn't general enough; negative powers can also
go wrong.
2013-01-01 18:05:37 -07:00
Vincent St-Amour
678451f8c4 Fix tests. 2013-01-01 18:14:52 -05:00
Vincent St-Amour
4137eb9e73 Make let: annotations optional. 2013-01-01 18:14:52 -05:00
Matthew Flatt
1f8370d2d6 revise README and "Getting Started" info
Addresses PR 13356
2013-01-01 15:55:44 -07:00
Matthew Flatt
b67ca6350c fix doc typo
Closes PR 13353
2013-01-01 15:55:44 -07:00
Matthew Flatt
55f98a15d4 racket/gui gtk: make `on-demand' for menus work better
There appears to be no way to make `on-demand' work right for the
Unity window manager's global menu bar, since there's no notificiation
when the menu bar is clicked. We approximate the correct behavior
by calling `on-demand' when a containing frame loses the keyboard
focus, which might be because the menu bar was clicked; that may be
too late (because the menu has already been shown), but it should
work most of the time.

Closes PR 13347.

Relevant to PR 13395, but DrRacket will have to change to work
around the remaining limitations of `on-demand'.
2013-01-01 15:55:36 -07:00
Robby Findler
0e763f5b01 check the result of find-ls in the one place it wasn't being checked
probably closes 13404
2013-01-01 15:01:13 -06:00
Matthew Flatt
07d5a9e385 fix `expt' on small negative number and large positive odd
The pow() function apparently gets it wrong on some platforms.

Closes PR 13391
2013-01-01 12:33:59 -07:00
Robby Findler
974350472c whoops, fix a bug introduced in 0f9674e1dd 2013-01-01 13:12:34 -06:00
Neil Toronto
c29c4056a1 Added back partial pivoting to Gaussian elimination 2013-01-01 12:12:07 -07:00
Robby Findler
0f9674e1dd adjust drracket window size and position preferences to use a different key
This will make switching back and forth between 5.1.3 and the latest
not lose the frame size and position preferences (since the format
of the data is different now that the current release remembers
the position on a per-monitor-configuration basis)
2013-01-01 11:26:05 -06:00
Robby Findler
0f64a0ae0d fix handin server error on bad password 2013-01-01 10:58:11 -06:00
Danny Yoo
c70f7d2ed2 Disambiguate sentence on custodian shutdown.
See:
http://lists.racket-lang.org/dev/archive/2012-December/011373.html

Motivated by Sgeo's question in:
http://racket-lang.org/irc-logs/20121229.txt at 22:10.
2013-01-01 00:48:50 -08:00
Matthew Flatt
8e8cc301e4 fix dist spec 2012-12-31 17:29:45 -07:00
Neil Toronto
c8e3b45e38 Added QR decomposition tests (mostly a pretty thorough randomized test);
fixed error in `matrix-cols-orthogonal?' revealed by testing
2012-12-31 15:20:25 -07:00
Neil Toronto
f5fa93572d Moar `math/matrix' review/refactoring
* Gram-Schmidt using vector type

* QR decomposition

* Operator 1-norm and maximum norm; stub for 2-norm and angle between
  subspaces (`matrix-basis-angle')

* `matrix-absolute-error' and `matrix-relative-error'; also predicates
  based on them, such as `matrix-identity?'

* Lots of shuffling code about

* Types that can have contracts, and an exhaustive test to make sure
  every value exported by `math/matrix' has a contract when used in
  untyped code

* Some more tests (still needs some)
2012-12-31 14:17:17 -07:00
Neil Toronto
e06f31c94e More precise return type for `magnitude' (it always returns nonnegative) 2012-12-31 14:17:17 -07:00
Matthew Flatt
cdfc4912ad racket/base: add exn:fail:filesystem:errno and exn:fail:network:errno
Provide raw error codes when available, which is mostly from filesystem
and networking primitives.
2012-12-31 12:04:03 -07:00
Robby Findler
a948f1b40d fix commit c818eb3ca3
related to PR 13394
2012-12-31 11:52:36 -06:00
Robby Findler
2a83c2147c add some color to the image guide's fractals
and use local instead of internal define to
be more HtDP friendly
2012-12-31 11:42:33 -06:00
Robby Findler
8f300b9e73 add rotary dial to the image guide 2012-12-31 10:29:28 -06:00
Sam Tobin-Hochstadt
0d01db8543 Fix type of log-message. 2012-12-30 22:14:44 -05:00
Robby Findler
9b6272674e tweak the latex rendering of ╔ and company 2012-12-30 21:11:38 -06:00
Matthew Flatt
8b7379a7ad docs: clarification for `immutable?' 2012-12-30 20:30:20 -06:00
Matthias Felleisen
ede0e3c625 at JPR's request: modified memq to return boolean and added memq? to teaching languages
the symmetry to member/member? suggested he is correct
2012-12-30 14:38:32 -05:00
Asumu Takikawa
4041e3c841 Fix sandbox doc example 2012-12-30 01:55:44 -05:00
Robby Findler
c818eb3ca3 Fix the new lexer interaction when some of the lexer states were
finished, but not all. Don't re-do them the next time around

closes PR 13394
2012-12-29 23:56:38 -06:00
Robby Findler
022e252f45 add support for ╔ ═ ╗ ║ ╚ and ╝ to the latex renderer
Also, Rackety
2012-12-29 11:31:17 -06:00
Mike Sperber
99301c15ff Synch German string constants with latest. 2012-12-29 15:16:30 +01:00
Matthew Flatt
0a708b040a setup/link: fix collection-root results for version regexps 2012-12-28 11:57:34 -07:00
Matthew Flatt
480ae5e262 doc repair 2012-12-28 12:53:48 -06:00
Robby Findler
7b9879c0e6 some edits to nitty-gritty section and fix up the koch curve names
(and actually draw the snowflake)
2012-12-28 10:53:10 -06:00
Matthias Felleisen
e212c1c279 a few more definitions to avoid re-typing for BSLers 2012-12-28 10:47:36 -05:00
Matthias Felleisen
dc7df5b9f1 choose decent variable names, until Robby says 'use new evaluator' 2012-12-28 10:40:35 -05:00
Matthias Felleisen
c2c2a1b485 make first interaction more BSL-ish, take 2 2012-12-28 10:01:23 -05:00
Matthias Felleisen
7a6054e2ba make first interaction more BSL-ish 2012-12-28 10:00:21 -05:00
Robby Findler
6ff9910874 add a little bit to the image guide 2012-12-28 08:54:35 -06:00
Robby Findler
5f838f8ff5 add more agressive notes with pointers to the nitty gritty section 2012-12-28 08:54:35 -06:00
Neil Toronto
7ac8e1bbce Slightly more `math/matrix'
* Moved to-do list in "matrix-operations.rkt" to the wiki

* Added more mutating vector ops

* Added "matrix-basis.rkt" (unfinished)
2012-12-27 17:30:04 -07:00
Neil Toronto
e55a31480e Precise flonum tests (error usually must be <= 0.5 ulp), and prerequisite
additions/changes

* More accurate `flulp-error'

* Added `flonum->fields', `fields->flonum', `flonum->sig+exp',
  `sig+exp->flonum' (currently undocumented)

* Correctly rounded, robust `bigfloat->fl2' and `fl2'

* Correctly rounded, robust `fl+/error', `fl-/error', `fl*/error',
  `flsqr/error', `fl//error'

* Much faster but slightly less accurate fl2 ops (shamelessly stolen from
  crlibm, which is LGPL)

* Added `fl2ulp', `fl2ulp-error', `fl2?' (which detects overlap),
  `+max-fl2-subnormal.0' (which was tricky), `fl2abs'

* Added deterministic and randomized flonum op tests (against MPFR)

* Added deterministic and randomized flonum/error op tests (against MPFR)

* Added deterministic and randomized fl2 op tests (against MPFR)

* Exposed FPU tests in `math/utils' (currently undocumented)
2012-12-27 17:30:04 -07:00
Neil Toronto
fc02d40a66 Faster LU decomposition 2012-12-27 17:30:03 -07:00
Matthias Felleisen
01bb5c400a added a potentially useful macro 2012-12-27 19:01:34 -05:00
Matthias Felleisen
6243a928fb space management for figures 2012-12-27 19:01:34 -05:00
Matthias Felleisen
4833f9d839 added a function for parsing contest files more easily, fix doc typo 2012-12-27 19:01:34 -05:00
Matthias Felleisen
602a5a38f3 added a function for parsing contest files more easily, plus data 2012-12-27 19:01:34 -05:00
Matthias Felleisen
cdcbdfaf8c added a function for parsing contest files more easily 2012-12-27 19:01:33 -05:00
Matthias Felleisen
a15ae19d46 warn programmers that the key event specification is incomplete; Closes PR13168 2012-12-27 19:01:33 -05:00
Matthias Felleisen
1ad88436ff documenting the folder 2012-12-27 19:01:33 -05:00
Matthew Flatt
f2d870859a logging: allow name in `log-message', report it in a log-receiver evt
The synchronization result of a log receiver is now a vector of four
values, instead of three, where the last one reports the name.

Also, an optional argument to `make-logger' provides a notification
callback for each event sent to the logger.

These changes enable more control over loggers and events. Suppose
that you have processes A and B, and you want all log events of A
to be visible to B, but not vice-versa. Furthermore, you want the
log events to appear at B in the right order: if A logs an event
before B, then A's event should arrive at a log receiver's before
B's. Now that a log receiver gets the name associated with the
original event, and now that the name can be re-sent in a
`log-receiver', it's possible to give A and B separate loggers and
send all of the events from A's logger to B's logger. Furthermore,
you can use the notification callback so that when an event is logged
in B, you can make sure that all available events from from A's
logger have been transferred to B's logger.
2012-12-27 14:12:40 -06:00
Matthew Flatt
a39004241e fix dist spec 2012-12-27 14:12:40 -06:00
Matthew Flatt
3f6b30a569 scibble: repair related to recent `scribble/tag' contracts 2012-12-27 12:49:30 -06:00
Robby Findler
353da62843 added make-module-language-tag and use it and make-section-tag
in a few places
2012-12-27 11:10:40 -06:00
Robby Findler
a412ab8411 add a basic test of the logger GUI 2012-12-27 10:23:48 -06:00
Matthew Flatt
ca3b712871 minor doc edits
consistent capitalization of section titles
2012-12-27 09:24:15 -06:00
Matthew Flatt
2d12431c0d move and fixup docs for the "help" collection 2012-12-27 09:24:15 -06:00
Matthew Flatt
f29230f8f2 add `scribble/tag' and clean up some tag-related documentation and functions
Includes the addition of `make-section-tag' and `taglet?' to
`scribble/base'.
2012-12-27 09:24:14 -06:00
Robby Findler
cbeb846043 logger GUI bug
when a tab is created, the logger gui controls may not
have been created, so in the case don't try to update them
2012-12-27 09:06:18 -06:00
Robby Findler
d2d1ac2f2c Improve the logger GUI in DrRacket
One drawback to the current situation (after this commit) is that all
log messages are sent into the user's logger, even messages that come
about as part of DrRacket's implementation. It isn't clear how to fix
this without enumerating all of the possible messages to share and
explicitly forwarding them (both of which are suboptimal things).

On the plus side, the GUI now uses the "debug@GC" notation in a text
field, and when the logger pane is not open, there is no extra work
going on. Plus other, minor GUI improvements.
2012-12-26 22:38:42 -06:00
Robby Findler
f6805ea0c2 remove fancy delay dance around load-collections-xref 2012-12-26 22:37:45 -06:00
Robby Findler
8a3f662d51 git rid of thread unsafe use of load-collections-xref
This was there, I believe, to avoid latency when clicking
on the [docs] links in the language dialog. But now that
we're using a database anyways, loading the xrefs is fast.
2012-12-26 21:20:46 -06:00
Robby Findler
10137dc679 fix bug in help/search docs 2012-12-26 21:18:53 -06:00
Matthew Flatt
18a538050a guide: improve explanation of transformer procedures and identifier macros 2012-12-26 12:15:03 -06:00
Robby Findler
0a6d8822b0 adjust DrRacket logging support following comments from Neil Van Dyke
- use the same font/size as the definitions/interactions window
- add a checkbox to control scrolling behavior and,
- when scrolling, scroll to the begining of the line, not the end
2012-12-26 09:03:43 -06:00
Robby Findler
fa85d30773 adjust the search bubbles so they flicker less when typing 2012-12-25 17:40:32 -06:00
Matthew Flatt
b69573277c reference: rerrange docs on synchronizable events
Put the details consistently with event datatypes, instead
of trying to put them all in `sync', which better reflects
the extensibility of the set of synchronizable events.
2012-12-25 07:20:58 -06:00
Matthew Flatt
c162657685 racket/class: fix interaction of class/c' and send-generic' 2012-12-25 07:20:57 -06:00
Robby Findler
1298c11d2f adjust find-string in text% so it doesn't allocate as many temporary strings
Also, Rackety
2012-12-24 23:35:12 -06:00
Asumu Takikawa
3fc8ce0709 Refactor f3fa5d1669 2012-12-24 17:56:08 -05:00
Asumu Takikawa
f3fa5d1669 More precise syntax errors for let and friends 2012-12-24 16:50:58 -05:00
Robby Findler
6a69da76e2 adjust ascii-box => unicode-box algorithm so that
it only looks left and right at hyphens and only
up and down at pipes, etc. This better handles the
case where you have something like this:

  +--------------+
  | (<= a-x b-y) |
  +--------------+

Before this commit, it would have adjusted the hypens
inside the identifiers
2012-12-24 13:49:32 -06:00
Robby Findler
7041ea1d80 adjust online expansion's internals to call set-dirty only at
the end of an edit sequence instead of on every edit inside
the edit sequence
2012-12-24 12:31:55 -06:00
Robby Findler
a504f77d54 adjust line number mixin so it postpones recomputation of
sizes until the end of an edit sequence (when appropriate)
2012-12-24 12:30:54 -06:00
Robby Findler
5a9c5f681b clean up ascii art => unicode a little
adjust the way it changes characters so it
doesn't change them when they are already the right
thing (this means set-modified is not always called
and also improves performance in the case that little
changes in a big diagram)
2012-12-24 12:29:57 -06:00
Robby Findler
042bbbefe7 add an ASCII art rectangle => unicode rectangle keybinding to drracket 2012-12-24 11:38:54 -06:00
Matthew Flatt
4a57db4448 add (system-type 'word)
Returns 32 or 64 to indicate whether Racket is running as a
32-bit program or a 64-bit program.
2012-12-24 06:38:53 -07:00
Robby Findler
fc2f931755 fix language dialog tooltip positioning code for mac os x 2012-12-23 12:37:53 -06:00
Robby Findler
0fecdaddf7 avoid showing/re-hiding tooltip when it wouldn't move
More mouse events seem to come in under windows than
mac os x, leading to the bad flashing behavior described
in PR 13384

closes PR 13384
2012-12-23 09:52:57 -06:00
Robby Findler
ccae98777a fix a switchable button / discrete-sizes panel interaction bug
also clean up the code a bit (make sure the h? argument to
set-label-visible is really a boolean and make some of the
long lines narrower)
2012-12-23 09:52:55 -06:00
Matthew Flatt
24725f8366 props: matthias responsible for `realm' 2012-12-23 06:43:54 -07:00
Matthew Flatt
0e2a917bda fix printinf of `(class->interface object%)' 2012-12-23 06:42:36 -07:00
Matthew Flatt
27a1121869 racket/draw: fix race in setting up pre-multiply tables for bitmap ops 2012-12-23 06:35:36 -07:00
Matthias Felleisen
6f40e86037 first complete draft of the Realm of Racket code, with todo list 2012-12-22 19:27:59 -05:00
Matthias Felleisen
b09fbf8b38 compiliation allowed, typo 2012-12-22 19:27:59 -05:00
Matthias Felleisen
4111379982 hungry henry game 2012-12-22 19:27:58 -05:00
Matthias Felleisen
b06f938fb8 graphics for hungry henry 2012-12-22 19:27:58 -05:00
Matthias Felleisen
1fd37e98a8 todo list; typo in 10 2012-12-22 19:27:58 -05:00
Matthias Felleisen
1621af2aab lazy version of dice of doom 2012-12-22 19:27:58 -05:00
Matthias Felleisen
b940e4fc19 made it truly strict, organized data defs 2012-12-22 19:27:58 -05:00
Matthias Felleisen
092e48a981 more uncompilables 2012-12-22 19:27:58 -05:00
Matthias Felleisen
b78d251c70 prevent compilation for files with images 2012-12-22 19:27:58 -05:00
Matthias Felleisen
613bb3e16c dice of doom 2012-12-22 19:27:58 -05:00
Matthias Felleisen
17d3d9e3f4 graphics for dice of doom 2012-12-22 19:27:58 -05:00
Robby Findler
58e15cc2c7 fix tests for the "class:"-less object-name results 2012-12-22 18:25:43 -06:00
Robby Findler
b112a7ef0a adjust object-name on classes and interfaces to drop the prefix
Before this commit, things like this:

  (define c% (class object% (super-new)))
  (object-name c%)

would produce

   'class:c%

but now classes and interfaces will be more like procedures and, in
the example above, just produce:

   'c%

The underlying goal is to make error messages generated from contracts
like

  (is-a?/c frame%)

have "(is-a?/c frame%)" in the message, instead of "(is-a?/c
class:frame%)"
2012-12-22 15:00:54 -06:00
Robby Findler
3ab14bbafe initialize the delegate text for a new frame
related to PR 13379
2012-12-22 11:47:30 -06:00
Matthew Flatt
bdaf823aee skip compilation of "realm" file that contains an image 2012-12-22 09:55:29 -07:00
Matthew Flatt
f4285e4e86 JPEG decoding: remove extra allocation 2012-12-22 09:43:20 -07:00
Matthew Flatt
1545ed42c8 racket/draw: fix problem with concurrent PNG read and write
Same memory-management mistake as for the JPEG binding.
2012-12-22 09:43:20 -07:00
Matthew Flatt
a09c8f1857 Revert "racket/draw: fix another problem with the JPEG binding"
This reverts commit c2468f1f9a.

The libjpeg documentation claims that it has no static state,
so atomic mode shouldn't be necessary. Also, the stress test is
still failing on some platforms, so there must be a different
problem than I thought.
2012-12-22 09:43:20 -07:00
Matthew Flatt
22d94193ed libjpeg, win64: fix `_size_t' 2012-12-22 09:43:20 -07:00
Matthew Flatt
853f959622 raco pkg: improve command-line checking and error reporting
For example, complain if both `-u' and `-i' are specified,
or if a bad `--deps' mode is provided.
2012-12-22 09:43:19 -07:00
Matthew Flatt
61e0610b2a raco pkg show: add -v'/--version' argument for selecting a Racket version
This is sortof a step toward `raco pkg migrate'.
2012-12-22 09:43:19 -07:00
Matthew Flatt
fdcd030e54 raco pkg show: tweak output format 2012-12-22 09:43:19 -07:00
Robby Findler
118e961cee Revert ufo changes at Matthias's request
Revert "do a little bit better job compressing the bytes"

This reverts commit 099a35881e.

Revert "adjust file to use the literal bytes for the ufo image"

This reverts commit fdd9344b27.
2012-12-22 10:35:24 -06:00
Mike Sperber
a4f0158716 Synch German string constants with latest. 2012-12-22 15:38:54 +01:00
Robby Findler
d7e6f35b97 guard against spurious status messages 2012-12-22 08:30:54 -06:00
Neil Toronto
1aebd171c5 Moar matrix review/refactoring
* Consolidated Gauss and Gauss-Jordan elimination

* Fixed Gaussian elimination to return all indexes for pivotless columns,
  not just those < m

* Consolidated `matrix-row-echelon' and `matrix-reduced-row-echelon'

* Specialized row reduction for determinants; removed option to not do
  partial pivoting (it's never necessary otherwise)

* Added `matrix-invertible?'

* Removed `matrix-solve-many'; now `matrix-solve' solves for multiple
  columns

* Gave `matrix-inverse' and `matrix-solve' optional failure thunk arguments

* Made some functions that return multiple columns return arrays instead
  (i.e. `matrix-column-space')

* Added more tests
2012-12-21 22:59:59 -07:00
Neil Toronto
3bc4c1ffdc More efficient Gaussian elimination using vectors of vectors (non-strict
arrays can't help an inherently sequential algorithm)
2012-12-21 22:59:59 -07:00
Robby Findler
099a35881e do a little bit better job compressing the bytes 2012-12-21 23:04:24 -06:00
Robby Findler
fdd9344b27 adjust file to use the literal bytes for the ufo image
this may not be suitable code for RoR, I'm not sure, but it
avoids the compilation problem and was fun to try out
(at least for me)
2012-12-21 22:32:53 -06:00
Robby Findler
7cad346cf8 add a preference to disable the arrows in online check syntax (and regular check syntax too) 2012-12-21 22:08:51 -06:00
Robby Findler
84057ce3d5 export preferences:add-check 2012-12-21 22:07:57 -06:00
Robby Findler
f4f7833531 move some literal strings into the string constants
(they should have been there ages ago ...)
2012-12-21 21:35:09 -06:00
Robby Findler
200ec130a0 drracket's online compilation now tracks files loaded during expansion
use these files to determine if a file is dirty (and thus needs
to be recompiled) when another file is saved.

closes PR 13307
2012-12-21 21:20:23 -06:00
Matthias Felleisen
a567de9a48 distributed server game 2012-12-21 21:11:41 -05:00
Matthias Felleisen
a354195ae4 purpose statements 2012-12-21 21:11:41 -05:00
Matthias Felleisen
49a62fd285 orc game 2012-12-21 21:11:41 -05:00
Matthias Felleisen
ca8c21f43c graphics for orc game 2012-12-21 21:11:40 -05:00
Matthias Felleisen
02a3736d84 source and readme for snake game 2012-12-21 21:11:40 -05:00
Matthias Felleisen
a9db702a76 graphic elements for snake game 2012-12-21 21:11:40 -05:00
Matthias Felleisen
6f9296882f read me 2012-12-21 21:11:40 -05:00
Matthias Felleisen
55ab9b4562 read me 2012-12-21 21:11:40 -05:00
Matthias Felleisen
53ac65c877 typos 2012-12-21 21:11:40 -05:00
Matthias Felleisen
ff701abe7b typos 2012-12-21 21:11:40 -05:00
Robby Findler
19d6f7a15a Rackety 2012-12-21 19:22:59 -06:00
Robby Findler
2fced5d7d6 drracket tracks the frame position and size on a
per-monitor-configuration basis and (possibly) moves/resizes
the frame when it changes
2012-12-21 19:22:59 -06:00
Robby Findler
3f9e60a908 add display-changed method 2012-12-21 19:22:59 -06:00
Robby Findler
8d4dac318c hold onto all frames weakly 2012-12-21 15:43:12 -06:00
Matthew Flatt
5259f159af planet2: include the Racket version number in a PNR request
The version number is included as the query part of the constructed
URL, so it is easily ignored by a server. The intent is that the
PLT PNRs will eventually support version-specific results.
2012-12-21 11:51:09 -07:00
Matthew Flatt
0e140a8173 planet2: versions for dependencies 2012-12-21 11:51:08 -07:00
Matthew Flatt
bfe9548aa6 planet2: "package name service" => "package name resolver" 2012-12-21 11:51:08 -07:00
Matthew Flatt
b644bb2901 planet2: remove "METADATA.rktd" compatibility 2012-12-21 11:51:08 -07:00
Matthew Flatt
0c91930965 mingw32: make no-futures, no-places build work 2012-12-21 11:43:42 -07:00
Neil Toronto
8d5a069d41 Moar `math/matrix' review/refactoring
* Split "matrix-constructors.rkt" into three parts:
 * "matrix-constructors.rkt"
 * "matrix-conversion.rkt"
 * "matrix-syntax.rkt"

* Made `matrix-map' automatically inline (it's dirt simple)

* Renamed a few things, changed some type signatures

* Fixed error in `matrix-dot' caught by testing (it was broadcasting)

* Rewrote matrix comprehensions in terms of array comprehensions

* Removed `in-column' and `in-row' (can use `in-array', `matrix-col' and
  `matrix-row')

* Tons of new rackunit tests: only "matrix-2d.rkt" and
  "matrix-operations.rkt" are left (though the latter is large)
2012-12-20 17:32:16 -07:00
Neil Toronto
155ec7dc41 Reviewing and refactoring `math/matrix', part 1
* Finally added `array-axis-expand' as a dual for `array-axis-reduce'
  in order to implement `vandermonde-matrix' elegantly

* Better, shorter matrix multiply; reworked all matrix arithmetic

* Split "matrix-operations.rkt" into at least 5 parts:
 * "matrix-operations.rkt"
 * "matrix-basic.rkt"
 * "matrix-comprehension.rkt"
 * "matrix-sequences.rkt"
 * "matrix-column.rkt"

Added "matrix-constructors.rkt"

Added `matrix', `row-matrix', and `col-matrix' macros

A lot of other little changes

Currently, `in-row' and `in-column' are broken. I intend to implement
them in a way that makes them work in untyped and Typed Racket.
2012-12-20 17:32:16 -07:00
Matthew Flatt
c2468f1f9a racket/draw: fix another problem with the JPEG binding
JPEG reading and writing involve callbacks that need to be
atomic, since the stack-swapping games that a Racket thread
switch plays may not be ok with the JPEG library (as exposed
by the stress test). So, the JPEG reading and writing code
must read/write a string port, instead of directly from/to
the source/destination port, since a string port can be
used in atomic mode.
2012-12-20 06:21:24 -07:00
J.C. Whittier
1bcb984266 reduce dependencies of `games/ginrummy/ginrummy' 2012-12-19 19:46:47 -07:00
J.C. Whittier
1f3b9d39b6 fix some status messages in the Rummy game
Changes set-status-text to set-status so that status messages are displayed to user.
Also, changed lang to `racket/gui' from `mzscheme'.
2012-12-19 19:45:59 -07:00
Greg Hendershott
faeba879e2 Fix bug with pound signs used to mark sections.
Also update tests/scribble/markdown-docs files accordingly.
2012-12-19 19:32:00 -07:00
Greg Hendershott
a3800cdc94 Render Scribble margin-note as Markdown block-quote.
More precisely, do this for nested flows with the "refcontent" style.

For instance this Scribble:

    @margin-note{Note: This is a note. Let's make it long enough that the
    markdown output will have to line-wrap, to make sure the > mark starts
    each line properly.}

Will render as this Markdown:

    > Note: This is a note. Let's make it long enough that the markdown output
    > will have to line-wrap, to make sure the > mark starts each line
    > properly.

A site like GitHub.com will render this in a block-quote style
suitable for notes:

> Note: This is a note. Let's make it long enough that the markdown output
> will have to line-wrap, to make sure the > mark starts each line
> properly.
2012-12-19 19:31:15 -07:00
Matthew Flatt
35744a7632 racket/draw: switch bitmap% accounting to phantom bytes
Avoids doubling the actual amount of memory used for a bitmap.
2012-12-19 18:42:14 -07:00
Matthew Flatt
aa08a68424 add phantom byte strings
A phantom byte string is a small object that the memory
manager treats as an arbitrary-sized object, where the
size is specified when the phantom byte string is created
or or when size is changed via `set-phantom-bytes!'.
2012-12-19 18:42:14 -07:00
Vincent St-Amour
67af968a73 Add failing test case for instantiation and special typing rules. 2012-12-19 13:45:49 -05:00
Asumu Takikawa
acda049f7d Add define: form variant for polymorphic non-function values 2012-12-19 13:08:41 -05:00
Matthew Flatt
c5c5e6959d racket/draw: fix memory-management problems with JPEG binding 2012-12-19 11:07:48 -07:00
John Clements
d54f51ab79 added 1e-10 floor to prevent div-by-zero 2012-12-19 09:42:37 -08:00
Robby Findler
938959611e rework online compilation's internals
Things should now generally be set up to work better --
for example online check syntax is smarter now about
what happens when switching tabs/frames and this also
makes it easier to add new ways for a window to become
dirty (that is, for it to be known that it needs to
be recompiled)
2012-12-19 10:50:01 -06:00
Robby Findler
e19243329c adjust drracket to track an lru order on tabs and use it
when closing one to pick the next one to show

added the touched and get-last-touched methods to tab<%>
2012-12-19 10:50:01 -06:00
Matthew Flatt
4fc71951ee change subprocess handling to avoid waitpid(0, ...)
Keep track of whether any Racket-managed subprocesses are pending,
and use waitpid(0, ...) only if there is one, to better cooperate
with an embedding environment.

Also, add a chapter to the "Inside" manual to explain the issues.
2012-12-19 08:54:32 -07:00
Matthew Flatt
dc3f142f31 planet2: log errors that are otherwise ignored
For example, log an error for an ill-formed "info.rkt".
2012-12-18 08:05:33 -07:00
Matthew Flatt
d88e26d7a1 racket/date: fix 'iso-8601 formatting
Closes PR 13372
2012-12-18 06:39:59 -07:00
Matthew Flatt
0f909af765 ffi/com: add `com-get-property*'
Accesses a "parameterized property", which is like a method call
but for a name that is categorized as a property.
2012-12-18 06:39:59 -07:00
Kevin Tew
ae97ae0fcc Fix rmpi alltoall and remove eli-tester dependency 2012-12-17 19:00:45 -07:00
Neil Toronto
2657d8f96b Plots whose functions raise errors now have an empty spot instead of
failing
2012-12-17 16:59:30 -07:00
Jay McCarthy
d120286f89 More informative HTTP reading error message 2012-12-17 16:28:46 -07:00
Jay McCarthy
921456f3ad Fixing PR13374 2012-12-17 16:28:46 -07:00
Jay McCarthy
1b41456c7f Adding a test case for post bindings and improving error message 2012-12-17 16:28:46 -07:00
Neil Toronto
44d8ebb2c6 Enabled optional non-keyword arguments in `plot/typed' 2012-12-17 16:15:20 -07:00
Neil Toronto
e06ba39b0c Added note about `plot/typed/utils' 2012-12-17 15:54:30 -07:00
Neil Toronto
b8efd58aca Array changes in response to user feedback (and my personal neuroses)
* `list->array' now accepts an optional shape argument, and always returns
  an immutable array

* `vector->array' now accepts an optional shape argument, and always
  returns a mutable array

* Removed `make-mutable-array' because `vector->array' does its job now (I
  never liked the name anyway)

* Renamed `unsafe-mutable-array' to `unsafe-vector->array'

* Added optional type annotation to `array' macro to match `mutable-array'

* Reworded error messages in array broadcasting functions

* Made minor array doc fixes
2012-12-17 15:54:29 -07:00
Vincent St-Amour
8c66be33e7 Fix contract generation for functions with optionals and keyword arguments.
Closes PR13354.
2012-12-17 13:57:32 -05:00
Vincent St-Amour
b715a6fed5 Add define-inline.
Drop-in replacement for define that guarantees inlining.
2012-12-17 13:57:31 -05:00
Vincent St-Amour
ec673fd58d Allow #:unless' in for:'.
Also allow `#:break' and `#:final' in all the `for:' macros.

Unfortunately, the expansion of `#:break' and `#:final' cannot be
typechecked at the moment.
2012-12-17 13:57:31 -05:00
Neil Toronto
009293885b Renamed typed/plot' to plot/typed' 2012-12-17 11:52:24 -07:00
Neil Toronto
60dd8d065f Fixes for errors Pierpaolo Bernardi found by reviewing the docs; also,
renamed `partition-count' to `partitions' to be consistent with
`permutations', and gave better examples in `multinomial' docs

 * (flulp-error +inf.0 +nan.0) was returning +nan.0 instead of +inf.0

 * Type of `multinomial' didn't match its docs or `flmultinomial'

 * Reworded docs for `diagonal-array'

 * Reworked/reordered quite a few things in docs for `math/bigfloat'

 * Fixed first identity given in `gamma-inc' docs

 * Fixed descrption for `+max.0', etc.
2012-12-17 11:40:37 -07:00
Matthew Flatt
130c989888 scribble: encode URLs in 'unreserved mode 2012-12-17 07:09:27 -07:00
Matthew Flatt
b8b8260379 net/url: add `current-url-encode-mode'
Changing `current-url-encode-mode' from 'recommended to 'unreserved
causes `url->string' to encode !, *, ', (, and ) using %, which
can avoid confusing some parsers.

See also https://github.com/plt/racket/pull/198
2012-12-17 06:56:38 -07:00
Matthew Flatt
3d1f1289ef net/uri-codec: added `uri-path-segment-unreserved-encode' 2012-12-17 06:32:59 -07:00
Matthew Flatt
148a1d4387 set-argb-pixels: lift tests for mode out of loop
This change by itself provides only a small performance improvement.
2012-12-17 05:45:40 -07:00
Michael Wilber
e6c1e73452 Speed up set-argb-pixels by using unsafe operations.
Presumably, values shouldn't ever wrap and the bytestring is already
assured to be long enough, so using safe operations isn't strictly
necessary. This dangerous improvement yields speedup factor of ~1.86.
2012-12-17 05:45:40 -07:00
Michael Wilber
6308f3011d Speed up set-argb-pixels by using local references to b&w? and alpha-channel?
In set-argb-pixels, the critical loop for each pixel tests the value
of a boolean that was defined at the top level of the class. Forcing
these to be local variables gives a speedup of 1.5.
2012-12-17 05:45:40 -07:00
Chen Xiao
a04ae51f64 A tiny bug in documents of ftp 2012-12-17 05:45:40 -07:00
Ryan Culpepper
a2ae813739 replace db's sql-bits with data/bit-vector 2012-12-16 22:39:02 -05:00
Ryan Culpepper
a565f9eca9 changed bit-vector rep to bytes, made serializable
Also removed unused word-size field.
2012-12-16 22:29:43 -05:00
Ryan Culpepper
714eba684a fix docs for raise-range-error 2012-12-16 22:29:43 -05:00
Ryan Culpepper
810d07d8d5 added bit-vector <-> {string,list} operations 2012-12-16 22:29:43 -05:00
Ryan Culpepper
e4da3edeec fix popcount bug in bit-vector 2012-12-16 22:29:43 -05:00
Ryan Culpepper
28f1d4ff5d make argument order of heap-sort consistent with sort
Old order is also accepted for backwards compatibility.
2012-12-16 22:29:43 -05:00
Ryan Culpepper
462132515c added gvector->list
closes PR 13370
2012-12-16 22:14:46 -05:00
Ryan Culpepper
dfc33f851f add thread-unsafe warnings to data docs
closes PR 13367, closes PR 13369
2012-12-16 22:14:46 -05:00
Kevin Tew
ff9dcb62e8 Improved place/distributed error reporting 2012-12-16 16:47:09 -07:00
Kevin Tew
6d9740fcf1 Added rmpi-split-comm 2012-12-16 16:47:09 -07:00
Kevin Tew
e30fdf0db6 Fixed broadcast and reduce from nodes other that 0. Added gather and allgather 2012-12-16 16:47:09 -07:00
Kevin Tew
0876466a08 Fixed broadcast and reduce for non powers of 2. Added alltoall and alltoallv 2012-12-16 16:47:09 -07:00
Kevin Tew
b6a4a48474 [Distributed Places] uncomment tests 2012-12-16 16:47:09 -07:00
Matthew Flatt
22f9c8509f fix optimizer bug, again
Corrects ef824351a1.
2012-12-16 16:04:19 -07:00
Matthew Flatt
ef824351a1 fix optimizer bug
Moving an expression that is referenced through a level of copy
propagation did not fix up a nested static distance correctly.

Closes PR 13355
2012-12-16 13:11:57 -07:00
Matthew Flatt
bbfded59bf fix doc typo
Closes PR 13362
2012-12-16 13:11:56 -07:00
Matthew Flatt
59c693ddb2 fix docs on scheme_malloc_fail_ok
Closes PR 13363
2012-12-16 13:11:56 -07:00
Matthew Flatt
fb7cbcfeb1 date struct: improve docs
Closes PR 13371
2012-12-16 13:11:56 -07:00
Matthew Flatt
d3e4fbe7a7 make scheme_check_threads() run at least on thread quantum
As long as some thread is ready to run, and in case the threads
synchronize after very little work, keep checking threads for
at least one thread quantum.
2012-12-16 13:11:56 -07:00
Neil Toronto
5a2aa226fb Initial commit for `typed/plot' module
I also made some minor changes to `plot' so that its functions would
type more easily. In particular, everything that used to take a list
of vectors now accepts a (Sequenceof (Sequenceof Real)). The 3D
discrete histogram renderers now also accept lists as well as vectors
in the sequence of categories.

For now, in typed/plot functions, optional non-keyword arguments are
required. As soon as Vincent closes PR 13354, I should be able to
uncomment part of a macro in "typed/plot/syntax.rkt" to make them
correctly optional.
2012-12-15 21:22:50 -07:00
Robby Findler
0b095382ca improve the performance of typing a close paren 2012-12-15 15:13:26 -06:00
Asumu Takikawa
2676beaa7c Make integer-sets implement generic interfaces
Supports gen:stream, gen:equal+hash, gen:custom-write
2012-12-14 16:21:07 -05:00
Asumu Takikawa
891ee1b19e Fix missing set-integer-set-contents!
Closes PR 13368

This was a MzScheme -> Racket transition issue. Also
added tests and fixed some docs as well.
2012-12-14 10:56:29 -05:00
Matthew Flatt
5baf63f821 syntax-local-get-shadower: fix interaction with marked bindings
Getting a shadower should not drop module context if the context
determines a binding that has marks.
2012-12-13 19:34:32 -07:00
Danny Yoo
be49c6731c Documentation example for string-copy. 2012-12-13 19:05:45 -07:00
Asumu Takikawa
0c11601fdf Fix documented name of unsafe-cons-list 2012-12-13 18:25:29 -05:00
Asumu Takikawa
57268c2fc9 Explain scope of type variables in docs 2012-12-13 17:54:58 -05:00
Asumu Takikawa
ece218fc85 Rackety 2012-12-13 17:54:58 -05:00
Asumu Takikawa
13b831f0ec Fix unsound type variable scoping
Closes PR 13123
2012-12-13 17:54:58 -05:00
Asumu Takikawa
6c716759d7 Simplify expansion of pdefine: and define: 2012-12-13 17:54:58 -05:00
Asumu Takikawa
28108884ab Fix tests where type variable scoping is wrong 2012-12-13 17:54:58 -05:00
Asumu Takikawa
5c80743ed5 Refactor to use syntax/id-table 2012-12-13 17:54:58 -05:00
Asumu Takikawa
5286e5016e Minor doc fix 2012-12-13 17:54:58 -05:00
Matthew Flatt
6eef00a312 raco setup: fix problem with doc index database
When a tag is serializable but not `write'--`read' invariant,
then it needs to be serialized and deserialized.

Also, clarify and check in `tag?' that a tag should be
serializable.
2012-12-13 15:45:48 -07:00
Danny Yoo
f374cb184d Add separate section to avoid conflict at scribble time. 2012-12-13 13:00:06 -07:00
Danny Yoo
db280d0941 Add scribble/doclang2 with keyword support for customization, and documentation. 2012-12-13 12:50:27 -07:00
Danny Yoo
4ff4c677bd Modernize cfg-parser from mzscheme to Racket libraries. 2012-12-13 11:58:40 -07:00
Matthew Flatt
e0de33a005 net/ftp: make progress proc keyword, change progress protocol
The revised protocol for a progress procedure doesn't create
the thread automatically, and it provides an event to indicate
when the progress count changes.
2012-12-13 07:45:26 -07:00
Chenxiao
4cc287f7e5 Improve ftp client. Add upload, progress monitor and something else. 2012-12-13 07:09:04 -07:00
Greg Hendershott
00a5bf63b1 Render italic and bold in Markdown.
Scribble => Markdown
  @bold{text}    **text**
@italic{text}     _text_
2012-12-12 20:58:44 -07:00
Matthew Flatt
dd5b999c64 fix `quasisyntax' to better preserve syntax properties
Closes PR 13357
2012-12-12 08:34:19 -07:00
Greg Hendershott
dbffc840a9 Render @hyperlink in Markdown.
Render Scribble like

    @hyperlink["url" "content"]

as Markdown like

    [content](url)

Note that this only works for `@hyperlink`. The motivation is to
preserve content the author has explicitly written. (Previously,
`markdown-render.rkt` was discarding this; `text-render.rkt` still
does so.)

This does _not_ attempt to handle everything that `html-render.rkt`
would automatically generate and render as `<a>`. It simply can't --
things like hotlinked Racket keywords in code blocks simply won't work
in Markdown.
2012-12-11 12:40:54 -07:00
Jens Axel Søgaard
e5016951d0 Improved performance of prime? for small numbers 2012-12-11 19:45:39 +01:00
Jay McCarthy
9a0e948a58 Fixing regression re path restriction patch 2012-12-11 10:47:54 -07:00
Matthew Flatt
5d57f6e497 ffi/unsafe/custodian: fix weak-reference problem
Also fix a related problem in the `math' MPFR binding (which was
masked by the `ffi/unsafe/custodian' bug).
2012-12-11 09:30:15 -07:00
Neil Toronto
764f6930ce Minor `math/statistics' doc fixups 2012-12-10 18:25:40 -07:00
Neil Toronto
9865182df4 Fixes, docs, and API changes for `math/statistics'
* Fixed and added tests for `quantile' and `median', documented them

* Added `sort-samples', documented it

* Removed `real-quantile' and `real-median' (too many design choices
  right now; will revisit when implementing Kernel Density Estimators)

* Documented `absdev' and `absdev/median'

* Fixed `update-statistics*': now uses O(1) space as advertised (if the
  sequences of values and weights both use O(1) space)

* Changed types of binning functions: allows using #:key in the future
  (when TR supports function type cases that differ only by keyword
  argument types better), places optional weights at the end like other
  statistics functions

* Clarified binning docs about sort stability and half-open intervals
2012-12-10 16:45:18 -07:00
Asumu Takikawa
9c70f3373d Expand on quote-syntax docs 2012-12-10 18:05:29 -05:00
Asumu Takikawa
2bc1528630 Add type for xor 2012-12-10 15:49:51 -05:00
Asumu Takikawa
77e687579a Doc typo 2012-12-10 15:49:50 -05:00
Jay McCarthy
b843a45cd8 Fixing in an error in how paths that went outside the filesystem to
URL map were handled.

Previously, only ".." at the beginning of the URL were checked; now it
looks at the entire URL for a path that ultimately leaves the base.
2012-12-10 11:54:31 -07:00
Robby Findler
c627f9e734 Add in more shortcuts, following Matthew's recent commit
Also, rackety
2012-12-10 11:42:32 -06:00
Matthew Flatt
490a474e0e fix comments
I had it all backwards: DrRacket went from "increment" to Greek
capital delta (which makes a lot more sense).
2012-12-10 10:27:44 -07:00
Matthew Flatt
fc112ccd46 scribble: render "incremement" and some other chars for Latex/PDF
This change was prompted by the change to DrRacket's "\Delta"
to produce the Unicode "increment" character.
2012-12-10 10:20:32 -07:00
Greg Hendershott
6aa6dc0400 Add a Markdown rendering mode to Scribble.
Uses "Github flavored markdown". Specifically, code blocks are opened
using ```scheme so that Github will lex and format them as Scheme code
rather than generic monospace.

Note: I would have used ```racket, but we are still waiting for the
pygments.rb project to pull again from pygments-main -- to which I
contributed a Racket lexer back in August. After pygments.rb pulls,
can update this to use ```racket instead.
2012-12-09 15:17:36 -07:00
Matthew Flatt
5b016b4c32 win32: support MinGW build
A MinGW build is the same shape as a MSVC build (but without
MzCOM), unlike a Cygwin build.
2012-12-09 11:26:02 -07:00
Robby Findler
8907daf65f make the queue-callback/res function queue low-priority callbacks
This should have been like this all along; I think it can lead to
race-conditions with high-priority events. In particular, something
might be pending in the event queue and then the test suite might
queue a high-priority event to check for it, which could happen before
the event that actually does the work that's being checked for!
2012-12-09 08:55:09 -06:00
Neil Toronto
04fbb02f63 Changed argument order of binning functions for consistency with other
math/statistics functions
2012-12-08 22:50:13 -07:00
Neil Toronto
af8d02146d Documented correlation and covariance 2012-12-08 22:36:11 -07:00
Neil Toronto
73395eed94 Finished and documented counting and binning functions in `math/statistics' 2012-12-08 22:11:41 -07:00
Jonathan Schuster
6babc9ec56 Updated Delta TeX mapping with correct Unicode character 2012-12-08 21:48:17 -06:00
Jay McCarthy
0ede891de9 Lazily reading Github API keys 2012-12-08 12:07:00 -07:00
Jay McCarthy
9b9a2f4280 Make simplified P2 index to remove dep on meta 2012-12-08 09:09:40 -07:00
Jay McCarthy
1b6c4f0e72 Disabling the other screen->client call on X, re: DrDr 2012-12-08 09:09:40 -07:00
Jay McCarthy
1d36492f51 Remove build location from the test zo to satisfy zo-path 2012-12-08 09:09:40 -07:00
Jay McCarthy
0845e74d27 This way of exporting broke with git 1.8.0 2012-12-08 09:09:39 -07:00
Jay McCarthy
8d1dbdd9ad Cleaning up offical PNS server re: Danny 2012-12-08 09:09:39 -07:00
Mike Sperber
dff9728350 Synch German string constants with latest. 2012-12-08 14:37:40 +01:00
Burke Fetscher
92c5025ef1 add some random generation tests 2012-12-07 17:40:21 -06:00
Burke Fetscher
cde226c6d3 redex-generator: correctly drop failure continuations 2012-12-07 17:29:05 -06:00
Neil Toronto
fff521212f Fixed infinite printing loop
When libmpfr wasn't available, the function created by `make-not-available'
would try to print any _mpfr arguments, which would call the custom _mpfr
printer, which would try to use a libmpfr function, which would call the
function created by `make-not-available', which would try to print...
2012-12-07 11:48:46 -07:00
Sam Tobin-Hochstadt
8fc0aedb6b Increase another timeout. 2012-12-07 12:58:31 -05:00
Sam Tobin-Hochstadt
f7d7bf0aa4 Increase some DrDr timeouts. 2012-12-07 11:53:31 -05:00
David Van Horn
0dfcf634ed Change latex render units from px (pdflatex specific) to bp (tex).
The px unit is a pdflatex specific adjustable unit that is 1 bp (big
point = 1/72in) by default.  This commit changes the latex renderer to
use bp which is a standard TeX unit equivalent to the default px
value.  This change allows .tex files generated by scribble to work
with other latex engines such as xelatex.

http://nwalsh.com/tex/texhelp/Plain.html#dimensions
http://tex.stackexchange.com/questions/41370/what-are-the-possible-dimensions-sizes-units-latex-understands

Here is a small test of using scribble and xelatex:

$ cat try.scrbl
@(require scriblib/figure redex/reduction-semantics redex/pict)
@(define-language L)
@(render-term L (term 1))

$ scribble --latex try.scrbl ; xelatex try
2012-12-07 06:53:45 -06:00
Jon Zeppieri
8489448e42 ffi: fix prop:cpointer so that it works with a procedure value 2012-12-07 06:43:30 -06:00
J. Ian Johnson
a193cd9efb Peephole optimization for iterating over an empty set (no allocation). 2012-12-07 06:39:27 -06:00
Matthew Flatt
4721a79c8f define-logger: make (define-logger X)' define X-logger' 2012-12-07 06:36:31 -06:00
Matthew Flatt
ea79cc4417 benchmark noise
Remove an unnecessary manual unrolling
2012-12-07 06:36:31 -06:00
Matthew Flatt
a6eb219305 avoid spurious arity mismatch in {s,n}boyer benchmarks 2012-12-07 06:36:31 -06:00
Neil Toronto
769e8b47ec Added `array->list-array'
Cleaned up expected value code a little

Refactored running statistics objects (hid private fields, added
`update-statistics*')

Documented expected value functions and running statistics

Removed `bfpsi0' from bigfloat tests (DrDr's libmpfr doesn't have it)

Commented out custodian shutdown callback that frees MPFR's cache
(something's broken)
2012-12-06 22:52:22 -07:00
Neil Toronto
f607a3b061 Added stress test: libmpfr C struct accessor vs. Racket struct accessor 2012-12-06 22:52:22 -07:00
Vincent St-Amour
cc8bd4f294 Make srclocs serializable. 2012-12-06 17:53:04 -05:00