Commit Graph

34602 Commits

Author SHA1 Message Date
Jay McCarthy
fd8676d50f Add some TLC 2014-11-17 23:05:11 -05:00
Robby Findler
26af633b1f fix incorrect fix from 5495595535 for #:generate default arg 2014-11-17 06:57:40 -06:00
Robby Findler
5495595535 generalize the random contract generation APIs to allow
a more dynamic notion of failure

use that to try harder with and/c contracts. In particular,
the contract system now tries to generate the arguments
on their own and then uses the other arguments to filter
(when they are all flat contracts, of course)

closes PR 14832
2014-11-16 20:48:41 -06:00
Robby Findler
43229abf05 rewrite (and/c pair? (listof ...)) into (non-empty-listof ...)
related to PR 14832
2014-11-16 20:44:58 -06:00
Asumu Takikawa
18c1f095fc Memoize static contracts and resulting contracts
This commit uses memoization not just for Name types
but for static contracts for all types. It also adjusts
how Name contracts are generated to increase sharing
across multiple type->contract calls.
2014-11-14 15:25:37 -05:00
Asumu Takikawa
4d46985e58 Remove dependency field from Name types
This was used for the old method of generating contracts
for these types but is no longer necessary.
2014-11-14 14:55:13 -05:00
Asumu Takikawa
49ba06b583 Simplify construction/matching on Name types 2014-11-14 14:08:59 -05:00
Asumu Takikawa
4b05d835f4 Minor optimizations in type-alias-helper 2014-11-14 13:43:57 -05:00
Asumu Takikawa
8978212588 Add tests for two closed TR PRs 2014-11-14 10:41:21 -05:00
Leif Andersen
b38c81139a Fix a few edge cases for raco pkg new
Also fix typos/indentation
2014-11-13 17:29:40 -05:00
Leif Andersen
bfbce31382 Add raco pkg new utility for creating new packages 2014-11-13 14:57:18 -05:00
Matthew Flatt
80a7ff831f read: reject non-Latin-1 characters in byte-string literals
This is a backward-incompatible change, but the old behavior (truncate
the character value to 8 bits) was never intended and seems clearly bad.
2014-11-13 09:46:27 -07:00
Ryan Culpepper
7ed82a5f15 db: even more error information for sqlite3 errors 2014-11-13 11:19:48 -05:00
Ryan Culpepper
395eee7598 macro-debugger: fix #%top in local-expand
closes PR 14822
2014-11-13 11:19:33 -05:00
Asumu Takikawa
7725262771 Don't print the type at the REPL for Bottom
Closes PR 14829
2014-11-12 17:55:14 -05:00
Matthew Flatt
1681126ed5 add {impersonate,chaperone}-procedure*
The new variants pass a "self" argument to the wrapper procedure in
the same way that `{impersonate,chaperone}-struct` provides a "self"
argument to redirection procedures.
2014-11-12 10:10:23 -07:00
Matthew Flatt
50a8863169 fix places-GC trigger when a large message is pending
A large message that hasn't been delivered can trigger a inter-place
GC. The intent is to force a GC to avoid messages piling up that can
never be delivered, but the GC didn't adjust to a state where messages
stay both undelivered and uncollected, and it would continuosly
trigger GCs. Trigger a GC only if the pending-message size has grown
relative to the previous GC.
2014-11-12 09:30:30 -07:00
Asumu Takikawa
16678aef6a Add base-env type for symbol<? 2014-11-12 01:01:06 -05:00
Robby Findler
4c77742a14 add test case for 5ef7568 2014-11-11 10:03:24 -06:00
Sam Tobin-Hochstadt
731a98de64 Avoid creating impersonators/chaperones when not required in struct/dc. 2014-11-11 09:26:54 -05:00
Asumu Takikawa
b56eb43022 Add struct inheritance in type-environment
Use it to start adding types for a subset of
typed/racket/sandbox
2014-11-10 17:29:34 -05:00
Robby Findler
4e7f44b24c explain the indentation preferences 2014-11-10 09:27:50 -06:00
Matthew Flatt
28b98beb6c move raco make test to a more sensible place 2014-11-09 08:47:18 -07:00
Matthew Flatt
de65bb5586 parallel-compile-files: fix docs and argument check for the handler callback 2014-11-09 08:39:41 -07:00
Matthew Flatt
c5a130454d fix doc typos 2014-11-09 08:25:38 -07:00
Eric Dobson
37232a90fe Fix error handling of parallel-compile-files.
Related to PR 14809.
2014-11-09 08:10:17 -07:00
Tony Garnock-Jones
b1c700dffc Fix doc for dynamic-rerequire 2014-11-09 08:09:07 -07:00
Tony Garnock-Jones
9fb5346652 Keep track of (and return) a list of modules (re)loaded during dynamic-rerequire 2014-11-09 08:09:05 -07:00
Matthew Flatt
012e08cd74 fix docs for install-collection "info.rkt" field
Closes PR 14831
2014-11-09 08:09:00 -07:00
Matthew Flatt
6d9c49485b add tests for prefix-in, etc. 2014-11-09 07:50:29 -07:00
Gustavo Massaccesi
06d76961e5 Fix prefix-out for identifiers with spaces 2014-11-09 07:34:35 -07:00
Matthew Flatt
9c7c8e1b49 fix expt test
I think that the sign on `(expt -0.1 -100000000000000000001/3)` depends
too much on the precision of `expt` to be a good test, so just check
that the result is a complex number with infinite parts.
2014-11-09 07:30:08 -07:00
Jens Axel Søgaard
b7d2722d7d Mention that the Von Mangoldt function is not multiplicative 2014-11-08 14:10:10 +01:00
Eric Dobson
8f238fe9e2 Add event logging to caching-managed-compile and parallel compile.
This allows for understanding where time is spend during a compile.
2014-11-07 22:52:54 -08:00
Vincent St-Amour
517e22eee8 Fix interaction between early exits, filters and the optimizer.
Closes PR14828.
2014-11-07 15:55:49 -05:00
Vincent St-Amour
629b3119b8 Document surprising control flow. 2014-11-07 15:11:47 -05:00
Vincent St-Amour
424e896da5 Fix comment. 2014-11-07 15:11:05 -05:00
Vincent St-Amour
547d52fe27 Document another TR optimizer bug found via random testing. 2014-11-06 13:47:27 -05:00
Robby Findler
ec6bb1b8c0 fix control-paren-keys keybindings for altgr keys 2014-11-06 09:39:41 -06:00
Jay McCarthy
7c9b16b59f fixing doc typo 2014-11-05 17:52:01 -05:00
Jay McCarthy
336938d29f convert data correctly 2014-11-05 17:52:01 -05:00
Asumu Takikawa
c51a87dc36 Remove an unnecessary syntax-parse expression
Not sure why this was there
2014-11-05 17:03:52 -05:00
Asumu Takikawa
8137163b7f Fix expected type in test 2014-11-05 16:28:32 -05:00
Asumu Takikawa
54dfd50b89 Unbreak TR's top-level
A recent change I made broke optimizations at the top-level
2014-11-05 16:28:32 -05:00
Ryan Culpepper
18bad4ce6e net/win32-ssl: adjust protocol handling like openssl 2014-11-05 13:40:59 -05:00
Ryan Culpepper
4d2dce8de4 remove unnecessary protocol args in tests 2014-11-05 13:40:59 -05:00
Ryan Culpepper
2422218dd9 replace 'sslv2-or-v3 with 'auto in net libs 2014-11-05 13:40:59 -05:00
Ryan Culpepper
96cefe88c4 update typed/openssl protocol type 2014-11-05 13:40:59 -05:00
Ryan Culpepper
b7c1a65d16 db: use default SSL protocol 2014-11-05 13:40:58 -05:00
Ryan Culpepper
933a71ce71 openssl: disable old SSL protocols by default
Add 'auto alias for 'sslv2-or-v3, both of which now mean
"negotiate a reasonably secure protocol version", where
"secure" excludes SSL 2.0 and 3.0 (since POODLE).
2014-11-05 13:40:58 -05:00