<div dir="ltr">Good news! I am sure there will also be a simple and efficient API for message passing between the VMs, similar to the one we currently have with threads.<div><br><div>Recently I tried to integrate nanomsg (<a href="http://nanomsg.org/">http://nanomsg.org/</a>) into Gambit. My goal was to create a cluster of Gambit VMs connected over a high-performance messaging library. But nanomsg itself is in alpha and the integration did not go as smoothly as I expected. (I do not want to use ZeroMQ because of the C++ dependencies). Anyone else here tried something similar before? <div>
<br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 6:31 PM, Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On Feb 10, 2014, at 1:51 AM, Vijay Mathew <<a href="mailto:vijay.the.lisper@gmail.com">vijay.the.lisper@gmail.com</a>> wrote:<br>
<br>
> C API macros like CHARSTRING_to_SCMOBJ takes a processor state as first argument. What is the purpose of this?<br>
><br>
> Thanks,<br>
><br>
> --Vijay<br>
<br>
</div></div>I have been gradually adding multicore support to Gambit over the past few months.  In the past there was just one “processor” (where the term processor means an OS thread that is executing Scheme code).  The goal is to support multiple processors, each with their own heap section where they allocate memory.  So the “processor state” parameter of CHARSTRING_to_SCMOBJ, and other C interface functions that can allocate Scheme objects, indicates in which processor’s heap to do the allocation.  The special case of a NULL pointer indicates the allocation of a “permanent” object (in a separate area which is never deallocated).<br>

<br>
Just this weekend I got multiple Gambit VMs running in the same OS process.  The support for this is still alpha quality and there are issues to solve, but its moving in the right direction!<br>
<span class="HOEnZb"><font color="#888888"><br>
Marc<br>
<br>
</font></span></blockquote></div><br></div>