Commit Graph

33550 Commits

Author SHA1 Message Date
Asumu Takikawa
2d81c9667c Check function kws against expected before tc-expr
This checks that the given lambda has the right keywords
wrt to the expected type. Doing this should avoid the bad
arity errors that result from the kw protocol encoding.

Closes PR 13898
2014-06-19 17:12:06 -04:00
Matthew Flatt
9c05eff875 make installers: give MSVC setup "x86_amd64" instead of "x64" by default
The "x86_amd64" mode seems to work more often, especially with
Visual Studio Express installations.
2014-06-19 15:09:26 +01:00
Matthew Flatt
92f76764c7 optimizer: recognize that arguments to void are ignored 2014-06-19 15:09:26 +01:00
Matthew Flatt
780a825d34 optimizer: boolean conversion on app of predicate-matching primitives 2014-06-19 15:09:26 +01:00
Gustavo Massaccesi
50ef3a8295 optimizer: optimizes the argument of not in a Boolean context
This enables more reductions, for example: (not (if x y 2)) => (not (if x y #t))
2014-06-19 15:09:26 +01:00
Matthew Flatt
23f6d1a651 optimizer: reorganize & generalize dropping of ignored operations
The optimizer was willing to convert `(pair? (cons w (random)))` to
`(begin (random) #t)`, but not `(car (cons w (random)))` to
`(begin (random) w)` because the `(car (cons ....))` transformation
required simple ignored arguments. Put the treatment of ignored,
non-omittable arguments of a dropped operation in one place. Also,
recognize expressions within `begin` whose results will be ignored.
2014-06-19 15:09:26 +01:00
Matthew Flatt
2faed269f3 windows: add test for links with foward slashes 2014-06-19 15:09:26 +01:00
Sam Tobin-Hochstadt
8d78fc2573 Update web page news. 2014-06-19 09:38:48 -04:00
Matthew Flatt
5b028396df unbreak build
I have no idea whether the change is generally right, but it allows
the build to complete and DrRacket to start.
2014-06-19 06:21:27 +01:00
Matthew Flatt
54c9057e1d distro-build: allow any string for #:vc 2014-06-19 05:28:16 +01:00
Matthew Flatt
9fed5b585a windows: fix symbolic link handling to match the OS
Windows parses relative-path links with yet another set of rules ---
slightly different from the many other existing rules for parsing
paths. Unfortunately, a few OS calls don't provide an option for
having the OS follow links, so we have to re-implement (our best guess
at) the OS's parsing of links.
2014-06-19 05:28:16 +01:00
Matthew Flatt
e1c735f66f win64: fix fixnum-to-extfl conversion 2014-06-19 05:28:16 +01:00
Matthew Flatt
3e3cb71680 win32: support symbolic links
Windows supports symbolic links in Vista and later.
2014-06-19 05:28:16 +01:00
Matthew Flatt
c8c0972fec ignore .sl.cache files
Created by `msbuild`?
2014-06-19 05:28:15 +01:00
Matthew Flatt
2193d2ad87 optimizer: add missing "else"
Thanks to David Vanderson
2014-06-19 05:28:15 +01:00
Eric Dobson
3831cb135e Make TypeFilter and NotTypeFilter have a Path as a subcomponent.
This changes Filters to have a Path as a subcomponent instead of having
the list of Path-Elems and name-ref/c separately. This is part of the
rework to have better object support.
2014-06-18 20:09:26 -07:00
Vincent St-Amour
aab724de35 Make type of make-vector more precise.
Before that, ((inst make-vector Natural) 10) would return a (Vectorof
Integer) which is bad.

Thanks to Alexander Knauth for the suggestion!
2014-06-18 18:48:55 -07:00
Patrick Mahoney
0df8f39914 Readline-to-Racket: Rename file to mzrl.rkt to rktrl.rkt 2014-06-18 20:26:07 -04:00
Burke Fetscher
b10f178e98 redex: adjust benchmark contracts and provides 2014-06-18 16:21:28 -05:00
Burke Fetscher
ae23c070f1 adjust render-metafunction docs 2014-06-18 16:21:27 -05:00
Robby Findler
a3370be15d fix bitmap rotate/flip interaction
closes PR 14585
2014-06-18 01:27:12 -05:00
Burke Fetscher
f347af3c98 redex: refactor benchmark plotting
- add sane interface for points plot
- add the line plot
2014-06-17 15:01:08 -05:00
Matthew Flatt
6a1ace3522 optimizer: unwrap let and begin around constant test in if
Takes advantage of Gustavo's improvements
2014-06-17 12:41:23 +01:00
Gustavo Massaccesi
2063511bfd optimizer: local known to satisfy predicate => #t in a boolean context
For example, `(if (pair? x) (if x e1 e2) e3)` => `(if (pair? x) e1 e3)`.
2014-06-17 12:41:23 +01:00
Gustavo Massaccesi
7cb37d1bc8 optimizer: reduce constants to #t/#f in boolean contexts
While something like `(if 7 e1 e2)` was already reduced to `e1`,
this improvement makes `(if (let ([x (random)]) 7) e1 e2)`
reduce to `(if (let ([x (random)]) #t) e1 e2)`.
2014-06-17 12:41:23 +01:00
Robby Findler
e658e48b01 improve drracket to offer spelling suggestions and to jump to next misspelled word 2014-06-17 03:27:14 -05:00
Robby Findler
9423007652 add to the framework's spell checking support
the ability to determine if specific spots in the editor correspond to
misspelled words
2014-06-17 03:27:13 -05:00
Matthew Flatt
36aaf3dd7b bitwise-bit-field: repair fixnum overflow problems
Bug reported by Roman Klochkov
2014-06-17 07:17:16 +01:00
Matthew Flatt
f3c8638366 raco test: add --heartbeat flag
Useful when running many tests in parallel to keep track of a test
that is running especially long (and maybe stuck).
2014-06-17 07:17:16 +01:00
Matthew Flatt
034acfa514 raco test: handling of spurious files
A `--drdr` run shouldn't stop because a discoevered file
disappears (such as one generated temporarily by a test).

Also, use new style for some errors.
2014-06-17 07:17:16 +01:00
Matthew Flatt
ad34e983f2 move some test-generated files to temp dir 2014-06-17 07:17:16 +01:00
Matthew Flatt
1c9db0d07c avoid re-generating some bitmaps on test 2014-06-17 07:17:16 +01:00
Eric Dobson
fecaf5127d Correctly instantiate poly dots during inference.
This removes the need for the cache of type variables for instantiating
dotted variables, because we instantiate the uses at once.

Closes PR 14576.
Closes PR 14577.
Closes PR 14579.
Closes PR 14580.
2014-06-16 23:01:39 -07:00
Eric Dobson
6d975ea6bb Make cgen/seq for lists be used more often. 2014-06-16 21:51:24 -07:00
Eric Dobson
050c1022c9 Replace abstract-results with replace-names.
Also moves large comment over to with replace names since it is now
doing the heavy lifting.
2014-06-16 21:08:00 -07:00
Eric Dobson
1ec00bb602 Correctly add scopes to incoming objects in replace-names. 2014-06-16 21:08:00 -07:00
Eric Dobson
2ba070c6b3 Make tc-results->values not drop filters. 2014-06-16 21:07:59 -07:00
Eric Dobson
bb25a2332c Add test requiring filters on AnyValues. 2014-06-16 21:07:59 -07:00
Eric Dobson
2f39323b8c Simplify values->tc-results.
Also fixes a bug in subst-tc-results not substituting into the dotted
type.
2014-06-16 21:07:59 -07:00
Eric Dobson
577b00a170 Merge open-Values and values->tc-results. 2014-06-16 20:57:53 -07:00
Eric Dobson
8d7f12a793 Remove bad branch it tc-lambda, and support code in values->tc-results.
The branch was bad because Values is not a valid Type/c.
2014-06-16 20:24:00 -07:00
Eric Dobson
911b3ee8ee Substitute into the dotted type of tc-results. 2014-06-16 20:07:19 -07:00
Eric Dobson
385729260f Make the filter actually be opened up in the AnyValues case. 2014-06-16 20:07:18 -07:00
Eric Dobson
8e63b65fa2 Add a bunch of unit tests for open-Values. 2014-06-16 20:07:18 -07:00
Eric Dobson
2922440fdd Move to open-Values instead of open-Result. 2014-06-16 20:07:18 -07:00
Matthew Flatt
1407e0cc9f win32-in-place: fix prep of libraries needed by raco setup 2014-06-16 11:41:00 +01:00
Matthew Flatt
6778604bd2 Makefile: improve DESTDIR support 2014-06-16 11:41:00 +01:00
Matthew Flatt
4f96f6fe62 Windows: long double fix for MSVC 2013 2014-06-16 10:25:34 +01:00
Matthew Flatt
cee00a1c6e Windows build: use msbuild instead of devenv or vsexpress 2014-06-16 10:25:34 +01:00
Robby Findler
64fd649ee5 add keyboard shortcuts to unsaved dialog warning on mac os x
closes PR 12927
closes PR 10708
closes PR 8996
2014-06-15 04:16:02 -05:00