Commit Graph

38582 Commits

Author SHA1 Message Date
Matthew Flatt
654e846720 namespace-attach-module: fix namespace for declaration callback 2018-02-27 06:46:55 -07:00
Matthew Flatt
f691d4b68c fix incorrect variable reference in the compiler 2018-02-27 06:07:41 -07:00
Matthew Flatt
ada6b8c5d1 reader: handle port whose position moves backwards 2018-02-27 05:46:59 -07:00
Matthew Flatt
586feb6df0 expander: fix problems with cross-phase persistence 2018-02-26 20:29:22 -07:00
Matthew Flatt
9fec456335 fix tests that relied on a specific internal hashing function 2018-02-26 19:46:33 -07:00
Matthew Flatt
cf60eb2715 reader: fix #reader 2018-02-26 19:24:52 -07:00
Matthew Flatt
5ba83c6340 expander: fix cross-module reference to gensymed name 2018-02-26 19:18:58 -07:00
Matthew Flatt
95333f6fe8 avoid a compiler warning 2018-02-26 18:46:58 -07:00
Matthew Flatt
8f77775cf5 JIT: fix 32-bit x86 problem 2018-02-26 18:14:02 -07:00
Matthew Flatt
6757a202d5 reader: fix/unbreak reading of here strings
The repair in 55a27e01a6 wasn't right.
2018-02-26 17:36:07 -07:00
Matthew Flatt
55a27e01a6 expander: fix tracking of MPIs for cross-submodule inlining 2018-02-26 17:18:54 -07:00
Matthew Flatt
40219b88f3 adjust expected error message in test 2018-02-26 15:54:57 -07:00
Matthew Flatt
283b8ad788 fix interning of chars read from bytecode 2018-02-26 15:42:01 -07:00
Matthew Flatt
62b7ff6f84 syntax-source-module: use second argument
The implementation still lacks a way to find the original source name,
though, in case of a ".ss" to ".rkt" conversion.
2018-02-26 15:30:04 -07:00
Matthew Flatt
014441bceb reader: fix parsing of here strings 2018-02-26 14:59:25 -07:00
Matthew Flatt
61fffa4646 avoid a compiler warning 2018-02-26 14:48:05 -07:00
Matthew Flatt
59ef254318 switch to a new, Racket-implemented expander & module system
This commit merges changes that were developed in the "racket7" repo.
See that repo (which is no longer modified) for a more fine-grained
change history.

The commit includes experimental support for running Racket on Chez
Scheme, but that "CS" variant is not built by default.
2018-02-26 13:19:53 -07:00
Leandro Facchinetti
00211413a5 Fix typo in error message 2018-02-26 10:18:16 -06:00
Robby Findler
d56eb03432 attempt to improve the evt guide section 2018-02-22 17:37:58 -06:00
Vincent St-Amour
606ec2955c Fix contract in docs.
Closes #1960.
2018-02-22 12:04:41 -06:00
Matthew Flatt
38d717e98e fix "foreign-test.rktl" to work on Windows 2018-02-21 13:15:04 -07:00
Paulo Matos
1ea340144a Fix typo
'suitiable' should read 'suitable'
2018-02-21 13:19:25 -06:00
Matthew Flatt
32b274dee1 make syntax/moddep more useful
This tool seems misplaced, but improve it a little to be practical for
larger module hierarchies.
2018-02-19 07:03:52 -07:00
Matthew Flatt
11e81f8776 add variable-reference-from-unsafe?
For now, the result is always #f, but this is a bridge to slightly
more useful functionality in the racket7 branch.
2018-02-19 07:03:52 -07:00
Robby Findler
8393f0b2f6 fix opt/c for flat-contract?
Thanks to Philip McGrath for spotting the problem

Also, along the way, discover the setup for chaperoneness for opt
contracts was bogus, so fix that up too
2018-02-17 19:52:58 -06:00
Hashim Muqtadir
95dab07e47 Update port-lib.scrbl (minor typo) 2018-02-16 12:28:23 -06:00
Daniel Feltey
26ed4b246c Use the thread-cell strategy for recursive-contracts that are list contracts 2018-02-15 19:00:58 -06:00
Philip McGrath
670f89a85b Fix source of package catalog server
`(collection-file-path "pkg-catalog" "meta")` raises an exception.
2018-02-14 15:11:37 -05:00
Matthew Flatt
55ffc24011 JIT: fix bug with call-with-values
Handling of runstack overflow wasn't right for platforms
with a distinction between short and long jumps --- which
includes x86_64, but only after enough code has been
allocated.
2018-02-14 08:24:16 -07:00
Milo Turner
2e1a81b345 for/stream can use #:break as advertised (fixes #1910) 2018-02-11 18:59:18 -05:00
Milo Turner
390977c1de Linkify split-for-body in syntax/for-body docs 2018-02-11 18:59:18 -05:00
Matthew Flatt
ecde607a62 fix expander tracking of unbound phase-1 identifiers
Thanks to Mitchell McLean and Jacob Ginspark for the report.
2018-02-11 14:14:17 -07:00
Matthew Flatt
60b6b43485 pretty-print: order hash keys in common cases 2018-02-11 14:14:17 -07:00
Sam Tobin-Hochstadt
9fe03ff6d9
Tell Typed Racket about the initial error continuation. (#1950)
Closes racket/typed-racket#660.
2018-02-10 17:38:08 -05:00
Leif Andersen
dd2a0dceb3
define-simple-macro now works with an ~or macro. (#1949)
The previous definition of define-simple-macro would fail (with
a very poor error message) if the user made a simple macro like:

(define-simple-macro (~or a b)
  (let ([tmp a])
    (if tmp tmp b)))

While the define-simple-macro form does allow syntax-parse patterns,
this should not be enabled for the initial head pattern, as described
in the define-simple-macro documentation.
2018-02-09 10:41:27 -05:00
Ben Greenman
82d3dba913 doc: 'test' -> 'get-first-order'
Fix mistake in previous commit,
 the argument for `build-contract-property` is different than
 `make-contract`
2018-02-07 22:46:45 -05:00
Ben Greenman
c7739a14fd doc: notes about permutations
1. limited to lists with <=256 elements
2. add index, so searches for 'rearrangements' go to 'permutations'
2018-02-07 22:21:29 -05:00
Ben Greenman
c00340c5f0 doc: change input/output contracts for 'current-command-line-arguments'
The parameter accepts a vector of string & converts the input to a
vector of immutable strings.
2018-02-07 22:21:11 -05:00
Ben Greenman
24f4de4dea doc: fix some contract combinators links
Fix some out-of-date argument names in the descriptions of contract
combinators.

E.g. 'get-late-neg-projection' => 'late-neg-proj'
2018-02-07 20:10:51 -05:00
Ben Greenman
f871e1c08c typo: 'outp' -> 'out'
Change the prose to match the parameter name
2018-02-04 23:59:04 -05:00
Alexis King
02f6162283 Add splicing-parameterize to racket/splicing 2018-02-01 10:28:20 -08:00
Kashav Madan
9981a15901 fix typo in FORCE_MAJOR_AFTER_COUNT comment
"arbitraily" -> "arbitrarily"
2018-02-01 09:08:39 -06:00
Juan Francisco Cantero Hurtado
c173b629d5 aarch64 is now an OpenBSD supported platform 2018-02-01 06:22:24 -07:00
Andrew M. Kent
7b61fa5f7a docs: fix delimiter typo in for's scribblings 2018-01-31 15:05:10 -05:00
Ben Greenman
367e703c32
typo: local-redirect 'page that is' => 'page is' 2018-01-30 23:14:59 -05:00
Robby Findler
ad0a47c570 use an absolute require to avoid an error in the sandbox test suite 2018-01-29 07:47:37 -06:00
Robby Findler
551db6c1ef corret c98b0e6 so that empty? is not provided by racket/base
also do the same treatment with cons? as with empty?
2018-01-28 15:04:41 -06:00
Matthew Flatt
32e12fded4 ffi/objc: improve caching for objc_send foreign-procedure variants
Reduce the generation of foreign-function wrappers by `ffi/objc`
by caching type vectors when all of the types refer to module-level
constant bindigs.

Includes an optimizer-validation repair, where improved generation
creates a reference to a variable that would normally be replaced
by constant propagation.
2018-01-28 09:01:37 -07:00
Robby Findler
c98b0e6e1e add empty? to the list of known-good-contracts 2018-01-26 16:51:05 -06:00
Matthew Flatt
b8171611aa fix initial peek on file that attempts jump past the end
Closes #1938
2018-01-25 20:08:10 -07:00