Commit Graph

32401 Commits

Author SHA1 Message Date
Robby Findler
09e6f7178d Add in let-poly bugs
also, misc clean ups of let-poly
2014-03-29 22:36:15 -05:00
Robby Findler
72b5010744 fix a very very old bug in Redex uncovered by the new enumerator
The new test case in this commit shows the bad behavior;
the fix was to replace the regexp #rx".*[^0-9]([0-9]+)$"
with #rx"([0-9]+)$", ie make the regexp work properly in
the empty case (since regexps promise to find longest matches
anyway).

Also, Rackety
2014-03-29 22:36:14 -05:00
Matthew Flatt
d722fa42df racket/gui gtk: fix -singleInstance for paths that don't work as strings
Just in case a relative path turned into an absolute path doesn't
work as a string, add support for a bytes encoding.
2014-03-29 15:17:56 -06:00
Matthew Flatt
facaba6794 racket/gui gtk: fix -singleInstance mode and relative paths 2014-03-29 10:43:58 -06:00
Robby Findler
af46f203cc add ref cells and make primitives behave polymorphically and some general cleanup 2014-03-28 21:31:03 -05:00
Matthew Flatt
3e3829c2b9 ffi/unsafe/com: fix VT_BOOL representation
A VT_BOOL isn't a _bool; it's a 16-bit #xFFFF or #x0000.

Closes PR 14425
2014-03-28 15:11:08 -06:00
Robby Findler
9a455ccc12 a start on a system to explore that classic "let polymorphism+ref cells" bug
so far, we've got the buggy let rule and polymorphism going
still need to do ref cells, tho
2014-03-28 15:52:38 -05:00
Asumu Takikawa
98abb8eb90 Remove unused require in class-prims 2014-03-28 16:19:04 -04:00
Asumu Takikawa
e9f7f3de93 Fix for commit dd239f3
Forgot to commit the edits to the tests for the
reorganization in the last commit.
2014-03-28 16:19:01 -04:00
Asumu Takikawa
dd239f3d4f Cut out class dependencies for typed/racket/base
Use (require typed/racket/class) for classes when
using #lang typed/racket/base
2014-03-28 14:01:23 -04:00
Robby Findler
1effcac706 Revert "avoid calling pkg->path from DrRacket's manager-skip-file-handler"
The reverted commit assumed that all pkgs were in either (get-pkgs-search-dirs)
or (find-user-pkgs-dir), which is a bogus assumption

This reverts commit b600dcc7bc.
2014-03-28 07:36:04 -05:00
Robby Findler
b600dcc7bc avoid calling pkg->path from DrRacket's manager-skip-file-handler 2014-03-27 23:10:47 -05:00
Matthew Flatt
709ff43174 unboxing improvement in the JIT
Improve the "can unbox test" to include patterns that were already covered
by the more restrictive "can unbox without disturbing N registers" test
(which is always tried first, but the weaker test recurs within patterns
that the stronger test does not recognize).
2014-03-27 14:30:03 -06:00
Vincent St-Amour
ba9bcf5e0e Reorder profiler docs. 2014-03-27 16:28:15 -04:00
Vincent St-Amour
3a273bd2b0 Make profile and profile-thunk return the value of the profiled expression.
Closes PR14404.
2014-03-27 16:28:15 -04:00
Eric Dobson
4e51b1d737 Make domain-mismatches have a more sensible default value. 2014-03-27 09:17:56 -07:00
Eric Dobson
2bb3fa9138 Fix misuse of expected in tc-keywords. 2014-03-27 09:17:56 -07:00
Eric Dobson
eaafd418d9 Fix misuse of expected in tc-funapp. 2014-03-27 09:17:56 -07:00
Robby Findler
d66d6eacc5 fix dumb mistake in 093fba97d9 2014-03-27 10:34:17 -05:00
Robby Findler
093fba97d9 make DrRacket cache path->pkg calls within a single 'Run' 2014-03-27 07:43:28 -05:00
Eric Dobson
41ea8f3358 Add test cases for fixed PRs.
Closes PR 13191.
Closes PR 13290.
2014-03-26 23:33:40 -07:00
Eric Dobson
917fa3aeb7 Make TR work with contracts enabled. 2014-03-26 23:33:39 -07:00
Eric Dobson
ca3411155f Make tc-error/expr return (ret -Bottom). 2014-03-26 23:33:39 -07:00
Eric Dobson
ef98a582cb Replace tc-error/expr with tc-error/delayed where appropriate. 2014-03-26 23:33:39 -07:00
Robby Findler
2cf652eccf fix handling of un-enumerable patterns to avoid
signalling erros in redex-check (we just bail
out to the ad hoc random generator if we can't
enumerate)
2014-03-26 23:52:11 -05:00
Neil Toronto
c9aba4de94 Defer building tables; drops 600ms from (require math) on my machine 2014-03-26 18:59:41 -06:00
Neil Toronto
cd2632c186 Added HPD interval estimates and Monte Carlo variance 2014-03-26 18:59:41 -06:00
Neil Toronto
970eed82af Made `real-dist-hpd-interval' return type more precise; documented 2014-03-26 18:59:41 -06:00
Neil Toronto
32e8ec76b0 Added Brent-Dekker floating-point root finder 2014-03-26 18:59:41 -06:00
Neil Toronto
8069a9be54 Reorganize some code, fix beta PDF for a,x = 1,0 and b,x = 1,1 2014-03-26 18:59:41 -06:00
Vincent St-Amour
958b9fdc02 Reimplement shapes with borders to deal with transparency better. 2014-03-26 17:18:54 -04:00
Matthew Flatt
6af65ee19a avoid compiler warnings 2014-03-26 12:46:01 -06:00
Matthew Flatt
cdce954128 configure: test for large page sizes
Intended to fix PPC64 builds.
2014-03-26 12:30:33 -06:00
Vincent St-Amour
dd943c8754 Make TR random tester more robust against special values. 2014-03-26 14:16:36 -04:00
Vincent St-Amour
35f7a9a0e7 Refactor testing grammar. 2014-03-26 14:16:36 -04:00
Vincent St-Amour
a9504825ea Avoid division by 0 when there are no contract samples. 2014-03-26 14:16:35 -04:00
Eric Dobson
a662f72c9e Add invert-filter and use it in -imp. 2014-03-26 09:15:28 -07:00
Robby Findler
2fda610c54 fix performance problem in list-machine test suite
this was uncovered by the recent change to redex-check's
default strategy
2014-03-26 09:40:06 -05:00
Eric Dobson
b9e7d087ba Make let correctly implement the TC-Let rule from the paper. 2014-03-25 23:07:50 -07:00
Eric Dobson
4876d7d320 Remove unused clause arguments in tc-let-unit. 2014-03-25 23:00:27 -07:00
Robby Findler
375f85598d note redex-check change in redex history 2014-03-26 00:40:09 -05:00
Robby Findler
494f32084a change redex-check's default strategy to do both
enumeration and random generation in a manner
supported by our study
2014-03-26 00:35:06 -05:00
Robby Findler
89ef6f831e adjust #:enum arg to redex-check to be back like 6.0,
add #:uniform-at-random argument and #:in-order argument
2014-03-26 00:35:06 -05:00
Eric Dobson
55cb28168e Add test case for PR12985.
Closes PR 12985.
2014-03-25 21:25:50 -07:00
Asumu Takikawa
862d58a2f4 Avoid a parameter for controlling resolve caching
The parameter dereference slowed down type-checking
new-metrics.rkt to about 28s from 16s on DrDr.

Instead of the parameter, explicitly remove items from the
cache during type alias setup.
2014-03-26 00:18:33 -04:00
Eric Dobson
e4716bd68a Add test case for PR 11747.
Closes PR 11747. This was fixed at some point.
2014-03-25 19:24:06 -07:00
Eric Dobson
b09ced6a0c Fix tc-let for mutable variables.
Closes PR 14415.
2014-03-25 18:52:57 -07:00
Matthew Flatt
316fc0dbf5 scribble/base: add #:{column,row,cell}-properties arguments to tabular
The new arguments greatly simplify adding properties such as alignment
and (HTML) background colors to table cells. For example, to make a
table with 'right alignment for the left-hand column, 'center alignment
for the second column, and 'left alignment for all remaining columns:

 (tabular cells
          #:sep (hspace 1)
          #:column-properties '(right center left))

Also, make `color-property` and `background-color-property` recognized
as table-cell style properties.

Finally, implement horizontal alignment for text rendering.
2014-03-25 14:23:22 -06:00
Robby Findler
16d8f6c3ba adjust plot so that it uses "rvm" for the verification model 2014-03-25 14:52:43 -05:00
Robby Findler
0b852ed312 fix type comment
(thanks, Sam!)
2014-03-25 14:18:09 -05:00