Re: [racket] CGI headers

2010-11-09 Thread Everett Morse
You may want to check out the documentation here: http://docs.racket-lang.org/guide/scripts.html?q=script which discusses running Racket in scripts. Also, as suggested by other people, you should try running this from the command line first. Thanks, -Everett On 11/09/2010 10:09 AM, Sam Ph

Re: [racket] Lisp game development on Reddit

2010-11-09 Thread Everett Morse
I made the example from the free chapter (ch 8, the Hunt the Wumpus game) work in Racket last week by writing macros and function definitions to get the LISP code running under Racket with minimal modifications. I haven't gotten to rewriting it in Universe yet, but I did wonder if it would hav

Re: [racket] Are there any functional structs in Racket

2010-10-20 Thread Everett Morse
On 10/20/2010 09:05 AM, Stephen Bloch wrote: On Oct 20, 2010, at 3:16 AM, Nikita B. Zuev wrote: I'm looking for a way to use Raket's structs in a functional way. Example: (define-struct person (name age)) ... (define (person-age-set p proc) (make-person (person-name p) (pr

Re: [racket] A list of vectors

2010-10-18 Thread Everett Morse
Update to my previous post, I missed a ` character (just ran it to make sure I was sane). The line is actually: (list `#(,(regexp-replace* a-string (vector-ref (first T) 0) (string-append "<<" a-string ">>") Thanks, -Everett On 10/18/2010 03:23 PM, scouic wrote: Hi all, here more than

Re: [racket] A list of vectors

2010-10-18 Thread Everett Morse
On 10/18/2010 03:23 PM, scouic wrote: this is the function : (define (rush! T super-list a-string) (if (empty? T) super-list ;; here is the problem (rush! (rest T) (append super-list (list (regexp-replace* a-string (vector-ref (

[racket] Fast Fourier Transform

2010-10-14 Thread Everett Morse
Does anyone know a good FFT implementation in Racket? Or bindings to something like FFTW would work. All I've found in 30 min of Googling is toy examples of 1D FFT. The Larceny project's benchmark fft is also 1D and I haven't quite figured out how to use it anyway. I will need both 1D and 2D.

[racket] a little macro exercise

2010-10-11 Thread Everett Morse
Here's mine, probably not a very good way to implement this, but it works and it uses the alt-exp syntax I've been playing with recently. #lang alt-exp #| Spec: define a case construct syntactically just like that of Racket. In terms of semantics: - each branch automatically falls through to