Georges Dupéron
33ae2e7fce
Fix the source location for vector access optimizations, so that raco cover
sees them as covered.
2016-02-04 01:00:27 +01:00
Sam Tobin-Hochstadt
0bfaa75bcf
Add test for test-case
from typed/rackunit
.
2016-02-02 08:21:02 -05:00
Sam Tobin-Hochstadt
23bda72953
Add missing function to typed/rackunit
implementation.
...
Repairs 10dc53375
. Found by the "semver" package.
Merge to 6.4.
2016-02-01 21:34:10 -05:00
Sam Tobin-Hochstadt
5f35f447b5
TR History
2016-02-01 14:43:16 -05:00
Vincent St-Amour
32d0a97058
Add contract profiling instrumentation to combinators defined by TR.
2016-01-27 16:01:07 -06:00
Stephen Chang
2e7a045012
bump version to support extra hash-iterate ops
2016-01-27 10:32:55 -05:00
Stephen Chang
3a245a27e0
fix type of hash-iterate-key+value
2016-01-26 17:06:33 -05:00
Stephen Chang
c35716d461
add hash-iterate-pair and hash-iterate-key+value
...
closes #299
2016-01-26 10:21:05 -05:00
Sam Tobin-Hochstadt
9ba130976c
Fix hash iteration types for HashTableTop.
2016-01-23 11:56:51 -05:00
Asumu Takikawa
0308a229ed
Ensure define-typed-struct/exec has a Procedure
...
Fixes issue #293
2016-01-22 13:43:03 -05:00
Vincent St-Amour
f53314a21c
Fix optimizer tests for nw, optimized hash iteration (in Racket).
2016-01-19 15:40:31 -06:00
Sam Tobin-Hochstadt
8ca2af0f8c
Fix simple-result-> when passed a keyword-accepting procedure.
2016-01-17 17:55:46 -05:00
Asumu Takikawa
bad5a35291
Fix type of file-position
...
Closes issue #297
2016-01-17 16:38:21 -05:00
Sam Tobin-Hochstadt
838431c176
Add the simple-result->
combinator to Typed Racket.
...
This is used for functions with a single argument imported with
`require/typed`, and avoids unneccessary checks. This produces a
3x speedup on the following benchmark:
#lang racket/base
(module m racket/base
(provide f)
(define (f x) x))
(module n typed/racket/base
(require/typed
(submod ".." m)
[f (-> Integer Integer)])
(time
(for ([x (in-range 1000000)])
(f 1) (f 2) (f 3) (f 4))))
(require 'n)
on top of the previous improvment from using `unsafe-procedure-chaperone`
and `procedure-result-arity`.
2016-01-16 22:27:18 -05:00
Asumu Takikawa
7217e2e531
Fix name argument for dtsi/exec
...
Looks like this got typoed in commit a3ca5aeefc
Closes issue #291
2016-01-15 11:58:38 -05:00
Asumu Takikawa
1f5c5144f9
Fix type of make-brush
...
Closes issue #104
Closes PR 14931
2016-01-13 07:56:01 -05:00
Sam Tobin-Hochstadt
1d367003e9
Add some additional clarification on unsafe-provide
.
2016-01-09 22:31:17 -05:00
Matthew Flatt
67d989462b
adjust doc extfvector
example
...
Make the example typeset in a Racket build that does not support
extflvectors.
2016-01-09 09:11:03 -07:00
Vincent St-Amour
f6bb11c1d5
Fix test for removed missed opt logging.
2016-01-06 12:42:20 -06:00
Vincent St-Amour
319e6fd4e1
Stop tracking struct constructors.
...
Was only used by OC, for a now-defunct recommendation.
2016-01-05 15:51:19 -06:00
Sam Tobin-Hochstadt
6fb0fa04e7
Merge pull request #285 from florence/update-pict
...
add new pict function to typed/pict
2016-01-03 13:42:19 -05:00
Sam Tobin-Hochstadt
1e761f2d8a
Setof
is immutable.
2016-01-02 14:00:32 -05:00
Sam Tobin-Hochstadt
84d26b91ca
Avoid generating definitions for contracts that are identifiers.
...
This reduces the number of pointless definitions, and re-enables
some contract system optimizations.
2016-01-02 11:46:51 -05:00
Sam Tobin-Hochstadt
a0d6ed954d
Clarify docs for Setof
.
2016-01-02 11:01:09 -05:00
Matthew Flatt
cd7d347051
update types of find-files
and pathlist-closure
2016-01-02 07:59:32 -07:00
Spencer Florence
2139c776d8
adding new pict function
2016-01-01 16:22:31 -06:00
Vincent St-Amour
2dafb04587
Fix type of dup-output-port.
2016-01-01 16:05:41 -06:00
Vincent St-Amour
91b78dd9d9
Fix doc example.
2016-01-01 14:46:15 -06:00
Vincent St-Amour
607649c742
Improve link to OC docs.
2016-01-01 11:45:00 -06:00
Vincent St-Amour
40e7c969ab
Refine type of min
.
...
Closes PR14896.
2015-12-31 14:32:41 -06:00
Sam Tobin-Hochstadt
32fb50b4ce
Merge pull request #283 from bennn/patch-1
...
typo: remove outdated comment
2015-12-31 14:36:48 -05:00
Benjamin Greenman
8f0f57a187
typo: remove outdated comment
2015-12-31 14:21:21 -05:00
Sam Tobin-Hochstadt
730a72709e
Increase memory limit to avoid spurious failures.
2015-12-31 11:34:23 -05:00
Sam Tobin-Hochstadt
3be139b9b5
Merge branch 'opaque'
2015-12-31 10:53:30 -05:00
Robby Findler
d58d7487e8
port typed-racket contracts to late-neg projections
2015-12-31 08:58:32 -06:00
Alexis King
a3ca5aeefc
Allow the types created for structs to be specified manually
...
This allows the types generated by the struct form, as well as #:struct
clauses of require/typed, to be specified explicitly using a #:type-name
option. This allows the name of a struct and the type it is assigned to
be different.
Closes #261
2015-12-30 13:12:05 -08:00
Sam Tobin-Hochstadt
d3fac7c24a
Revise handling of #:opaque types, and Any.
...
Guard opaque predicates with an (-> Any Any) contract. This uses the
contract generation infrastructure to avoid wrapping struct predicates.
Also, relax `any-wrap/c` (the contract used for `Any` in positive
position) to allow opaque structures. This also requires an enumeration
of all the other kinds of values that TR understands, so that they are
not confused with opaque structures.
Joint work with @bennn.
Closes #202 .
Closes #203 .
Closes #241 .
2015-12-30 12:33:15 -05:00
Sam Tobin-Hochstadt
6c4e584946
Revise Travis tests for 43a8cce3f
.
2015-12-29 17:58:00 -05:00
Sam Tobin-Hochstadt
43694bf595
Merge pull request #250 from jsmaniac/improve-error-messages
...
Improving error messages, by providing more context.
2015-12-29 17:36:58 -05:00
Georges Dupéron
ce4a2b3d36
Improved error messages given by typed/racket, by always including the type name and arguments in the error message.
...
When a typing error is located inside macro-expanded code, a message such as “wrong number of arguments to polymorphic type: expected 1 and got 2” does not help much in locating which instantiation is wrong.
2015-12-29 17:35:32 -05:00
Sam Tobin-Hochstadt
3a7e616f97
Merge pull request #278 from AlexKnauth/flatten
...
add type for flatten
2015-12-29 17:24:43 -05:00
Sam Tobin-Hochstadt
43a8cce3fc
Reorganize the TR testing files, and add progress output.
...
`typed-racket-test/main` is now the file to run for almost everything.
`typed-racket-test/run` continues to exist so that DrDr preserves the
timing history.
Integration tests now print a progress meter, which should fix the
Travis timeouts.
2015-12-29 16:43:25 -05:00
AlexKnauth
96fd22a7a3
add type for flatten
...
fixes https://github.com/racket/typed-racket/issues/277
Can’t make it polymorphic, settle for `Any -> (Listof Any)`
2015-12-24 10:09:23 -05:00
Sam Tobin-Hochstadt
10dc533751
Succcessfully typecheck new rackunit test-begin
expansion.
2015-12-21 19:46:21 -05:00
Sam Tobin-Hochstadt
b00f74dad2
Avoid local-expand in typed/rackunit
.
...
Fixes build problem.
2015-12-21 15:36:56 -05:00
Asumu Takikawa
b4489012a7
Temporarily disable examples until #264 is fixed
2015-12-20 17:04:55 -05:00
Asumu Takikawa
8791bdcdfc
Remove evaluation imports that aren't needed
2015-12-20 17:04:55 -05:00
Asumu Takikawa
f08f3d07d4
Convert TR docs to use scribble/example
2015-12-20 17:04:55 -05:00
Asumu Takikawa
b18d940f1a
Fix GH issue #271
...
Propagate syntax properties when opening up begins at the top-level
so that ignore properties will get transferred.
2015-12-18 18:10:48 -05:00
Vincent St-Amour
beb517c9c8
Ugh, typo.
2015-12-18 17:09:58 -06:00