![]() Adjust list and stream handling as sequences so that during the body (for ([i (in-list l)]) ....) then `i` and its cons cell in `l` are not implicitly retained while the body is evaluated. A `for .... in-stream` similarly avoids retaining the stream whose head is being used in the loop body. The `map`, `for-each`, `andmap`, and `ormap` functions are similarly updated. The `make-do-sequence` protocol allows an optional extra result so that new sequence types could have the same properties. It's not clear that using `make-do-sequence` is any more useful than creating the new sequence as a stream, but it was easier to expose the new functionality than to hide it. Making this work required a repair to the optimizer, which would incorrectly move an `if` expression in a way that could affect space complexity, as well as a few repairs to the run-time system (especially in the vicinity of the built-in `map`, which we should just get rid of eventually, anyway). |
||
---|---|---|
pkgs | ||
racket | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
.travis.yml | ||
appveyor.yml | ||
INSTALL.txt | ||
Makefile | ||
README.md |
This is the source code for the core of Racket. See "INSTALL.txt" for full information on building Racket.
To build the full Racket distribution from this repository, run make
in the top-level directory. To build the Minimal Racket, run make base
.
The rest of the Racket distribution source code is in other repositories under the Racket GitHub organization.
Contribute to Racket by submitting a pull request, joining the development mailing list, or visiting the IRC channel.
License
Racket Copyright (c) 2010-2016 PLT Design Inc.
Racket is distributed under the GNU Lesser General Public License (LGPL). This implies that you may link Racket into proprietary applications, provided you follow the rules stated in the LGPL. You can also modify Racket; if you distribute a modified version, you must distribute it under the terms of the LGPL, which in particular states that you must release the source code for the modified software.
See racket/src/COPYING_LESSER.txt for more information.