[racket] Writing parallel racket benchmarks

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Sun Sep 25 21:21:30 EDT 2011

This past week, I wrote some parallel Racket versions of benchmarks
for the Computer Language Shootout.  It was fun to do, and I wrote a
little bit about what I learned:
http://scriptstoprograms.wordpress.com/2011/09/25/benchmarketing/

One unfortunate bit -- it's hard to combine the `place' form and
handling command line arguments.  The `place' form re-loads the module
it's in, but with a different version of
`current-command-line-arguments', so something like this won't work:

#lang racket
(define input (command-line #:args (x) (parse x)))
(define (do-stuff arg) ...)
(place ch (do-stuff input))

Other than it, using places and futures both worked very nicely.
-- 
sam th
samth at ccs.neu.edu


Posted on the users mailing list.