Re: [racket] Build hanging on Debian ARM

2014-06-30 Thread Matthew Flatt
I don't have a great idea, but can you use gdb to attach to the spinning "racketcgc" process (that's running "xform.rkt") and get a stack trace? My guess is that something goes wrong in communicating with the subprocess that created by "xform.rkt" to run the C preprocessor, and we should be able t

Re: [racket] General-purpose "hash-consing"

2014-06-30 Thread Matthew Flatt
You may already know that `datum-intern-literal` is implemented similarly, but `datum-intern-literal` hashes only certain kinds of values. The `canonicalize` function below accepts arbitrary values, so the `equal-hash-code` and `equal?` operations by the hash table can call arbitrary code. Running

Re: [racket] Question #3 from Realm of Racket

2014-06-30 Thread Marco Morazan
> However, (I’m guessing) using world or w makes it clear that the functions > are meant to be used with big-bang. This is on the right track. You are programming using the universe API. This API manipulates what changes in a game which it calls a world. What a world actually is depends on the gam

[racket] General-purpose "hash-consing"

2014-06-30 Thread Tony Garnock-Jones
Hi all, I'd love any comments on the following as a general technique for "hash-consing" - that is, making (equal?) imply (eq?). (Corollary: two canonicalized values will be (eq?) iff they are (equal?).) Is it worth considering this as something to push into the C runtime for speed? #lang rack

Re: [racket] Question #3 from Realm of Racket

2014-06-30 Thread Alexander D. Knauth
In this program, a world is just an interval. All of those w s could be replaced with ivl s, because a world is an interval, and the value of the parameter will always be an interval. However, (I’m guessing) using world or w makes it clear that the functions are meant to be used with big-ba

[racket] Question #3 from Realm of Racket

2014-06-30 Thread Steve Graham
In Guess My Number I see the following definitions: (define (smaller w)   (interval (interval-small w)     (max (interval-small w) (sub1 (guess w) (define (bigger w)   (interval (min (interval-big w) (add1 (guess w)))     (interval-big w))) (define (guess w)   (quotient (+ (int

[racket] Build hanging on Debian ARM

2014-06-30 Thread Deren Dohoda
I have not had a lot of experience building Racket from source, but I downloaded the minimal racket source and followed the instructions on the readme. The configure step seems to encounter no problems, but when I run make afterwards, it gets to the step of "Compiling xform support... Done making x

Re: [racket] Contract for function with vararg

2014-06-30 Thread Roman Klochkov
Thank you very much! This is it. Sun, 29 Jun 2014 20:39:33 -0500 от Robby Findler : >Yes, I believe this is what you want: > >#lang racket > >(define (chaperone-f f) >  (chaperone-procedure >   f >   (λ (fst . more) > (printf "fst arg: ~s\n" fst) > (apply values fst more > >((chapero

Re: [racket] Package conflict while attempting to install Whalesong

2014-06-30 Thread Jens Axel Søgaard
Hi, 2014-06-30 3:26 GMT+02:00 Jay McCarthy : > Hi Jens, > > On Sun, Jun 29, 2014 at 8:39 AM, Jens Axel Søgaard > wrote: >> Hi All, >> >> I am attempting to install the git version of Whalesong. >> There is a conflict with already existing installed module - but which one? >> I can't see anything