[racket-dev] embedding racket without overriding main?

From: Dan Liebgold (dan.liebgold at gmail.com)
Date: Mon Sep 24 20:32:26 EDT 2012

Is there any reason the scheme_main_setup trampoline can't be done later in
the program (i.e. only at the point I want to invoke Racket stuff)?

On Mon, Sep 24, 2012 at 5:09 PM, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> At Mon, 24 Sep 2012 15:10:08 -0700, Dan Liebgold wrote:
> > Does anyone have an example of embedding 3m Racket (5.3) in a C++ program
> > without overriding main?  I have a legacy C++ app that wants to eval some
> > Racket code but I'd like to be minimally invasive. Might need to shell
> > out...
>
> One strategy is to start a separate OS-level thread for Racket. The
> rest of the C++ program would send expressions to the Racket thread
> evaluation via a pipe or some kind of semaphore-based communication.
>
> On Windows, you could also try using MzCOM, which is sort of half-way
> between managing your own thread and starting a separate process.
>
> --
Dan Liebgold    [dan.liebgold at gmail.com]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20120924/97246c8a/attachment-0001.html>

Posted on the dev mailing list.