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)?<div><br></div><div><div class="gmail_quote">On Mon, Sep 24, 2012 at 5:09 PM, Matthew Flatt <span dir="ltr"><<a href="mailto:mflatt@cs.utah.edu" target="_blank">mflatt@cs.utah.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">At Mon, 24 Sep 2012 15:10:08 -0700, Dan Liebgold wrote:<br>
> Does anyone have an example of embedding 3m Racket (5.3) in a C++ program<br>
> without overriding main? I have a legacy C++ app that wants to eval some<br>
> Racket code but I'd like to be minimally invasive. Might need to shell<br>
> out...<br>
<br>
</div>One strategy is to start a separate OS-level thread for Racket. The<br>
rest of the C++ program would send expressions to the Racket thread<br>
evaluation via a pipe or some kind of semaphore-based communication.<br>
<br>
On Windows, you could also try using MzCOM, which is sort of half-way<br>
between managing your own thread and starting a separate process.<br><br></blockquote></div>-- <br>Dan Liebgold [<a href="mailto:dan.liebgold@gmail.com">dan.liebgold@gmail.com</a>]<br>
</div>