On Fri, Jun 3, 2011 at 9:18 AM, Matthew Flatt wrote:
> You can now set the PLTDISABLEGC environment variable before startup to
> disable GC.
For my own amusement, I went and found a program that behaves worse
when the GC is disabled. Here's what I got (I ran my timings under
windows 7):
with GC
Oops. Thanks.
In addition to a closure pass, you can also ask to generate two values: a
symbolic representation, ready for printing, and a closure. It's just a couple
of lines extra. In plain Racket, I'd use values to do dit. In *SL you have to
use lists of pairs.
This is indeed a nice exam
[ I think Matthias probably meant to lift
(generate-expression (sub1 i))
out of the (lambda (x y) ...). ]
Robby
On Tue, Jun 7, 2011 at 8:31 AM, Matthias Felleisen wrote:
>
> Why don't you teach them how closure compilers work:
>
> #|
> EXPR = x |
> y |
Why don't you teach them how closure compilers work:
#|
EXPR = x |
y |
(,sinpi EXPR) |
(,cospi EXPR) |
(,* EXPR EXPR) |
(,avg EXPR EXPR)
|#
;; N -> EXPR
;; g
On Jun 7, 2011, at 10:27 AM, Robby Findler wrote:
> Put the call to eval outside and add the wrapper `(lambda (x y)
> ,code-with-x-and-y-free). Then just call that function each time,
> instead of calling eval each time.
Duh! That works nicely, and doesn't require anything I don't already know
Put the call to eval outside and add the wrapper `(lambda (x y)
,code-with-x-and-y-free). Then just call that function each time,
instead of calling eval each time.
Robby
On Tue, Jun 7, 2011 at 7:19 AM, Stephen Bloch wrote:
> I was looking at href="http://nifty.stanford.edu/2009/stone-random-ar
I was looking at http://nifty.stanford.edu/2009/stone-random-art/";>this Nifty
Assignment, which of course lends itself very nicely to my
picturing-programs teachpack.
The random-expression generator to produce random trees over the algebra
EXPR = x |
y |
Hi Thomas again,
for time reasons, I'm answering the second (or rather, first) part of your mail
separately :-;
Just wanted to say that your code suggestion
>
>
> (define (string-list->fixed-width-array width items)
>(string-join (map (cut string-pad-right <> width #\null) items)))
was
8 matches
Mail list logo