[racket] Cross compiling Racket projects (to stand alone executables)

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Apr 18 16:17:14 EDT 2013

At Thu, 18 Apr 2013 14:58:31 -0400, JP Verkamp wrote:
> Is there documentation / a list of steps that one can follow to set up a
> cross compiling build process for Racket where one can build (on one
> system) stand along executables? [...]
> If such a thing doesn't exist right now, is it possible? What would be
> necessary?

It doesn't exist right now.

The main obstacle is that the libraries that build executables and
distributions are not currently parameterized over the platform. The
libraries dispatch on the result of `system-type' and other functions
that provide information about the current platform. The libraries
should instead take the platform configuration as arguments.

That's the basic idea, anyway; I'm sure there will be some other
details to work out. Fortunately, `raco exe' and `raco distribute' are
completely implemented in Racket and do not themselves rely on any
platform-specific executables, I think.

Posted on the users mailing list.