The Racket repository
![]() have any holes, hide-holes, or names and, in that case, just combining booleans instead of building of mtch structs. This does seem to work on a simple benchmark. The code below gets about 6x faster. But on the r6rs test suite, there is no substantial change (possibly because the caching obviates this optimization?) lang racket/base (require redex/reduction-semantics) (caching-enabled? #f) (define-language L (e (+ e e) number)) (define t (let loop ([n 100]) (cond [(zero? n) 1] [else `(+ 11 ,(loop (- n 1)))]))) (define f (redex-match L e)) (time (for ([x (in-range 1000)]) (f t))) |
||
---|---|---|
collects | ||
doc | ||
man/man1 | ||
src | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
README |
The Racket programming language =============================== Important executables: * DrRacket: Racket's integrated development environment (start here!). * Racket: the main command-line entry point for running racket programs and scripts. * GRacket: the GUI-mode Racket executable. * raco: Racket's command-line toolset. More Information ---------------- Racket comes with extensive documentation: use DrRacket's `Help' menu, or run `raco docs'. Also, visit us at http://racket-lang.org/ for more Racket resources. Instructions for building Racket from source are in src/README. License ------- Racket Copyright (c) 2010-2012 PLT Scheme Inc. Racket is distributed under the GNU Lesser General Public License (LGPL). This means that you can 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 means that you must release the source code for the modified software. See doc/release-notes/COPYING.txt for more information.