[racket] Evaluation at compile time

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Jun 8 16:04:59 EDT 2011

At Wed, 08 Jun 2011 13:28:49 -0400, Tony Garnock-Jones wrote:
> On 2011-06-08 1:23 PM, Tony Garnock-Jones wrote:
> > I would like to read in a JSON file at compile time, converting it to
> > SJSON, to avoid doing so at runtime. Here's what I've come up with so
> > far. Is there a more elegant way? Perhaps an (at-compile-time <expr>)
> > form? -- Tony

Your implementation looks fine to me.

> And for extra bonus points, how might I add uci-descriptions.js to the 
> list of dependencies of uci_rkt.zo, so that raco make knows uci.rkt 
> needs recompiling if either uci.rkt or uci-descriptions.js changes?

See `compiler/cm-accomplice'.



Posted on the users mailing list.