<div dir="ltr">Thanks Bill. Right, I guess I had just assumed they were running separate interpreters, but I suppose there&#39;s no reason they would need to be. I don&#39;t think Max objects get separate threads, but I do know that different parts of your c external run in at least separate dsp and event threads. <div><br></div><div>thanks!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 24, 2019 at 11:58 AM &lt;<a href="mailto:bil@ccrma.stanford.edu">bil@ccrma.stanford.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; is it possible to have these separate calls to scheme share data<br>
&gt; and affect each others runtimes, including function definitions?<br>
<br>
I don&#39;t think this will work -- you can share constant data, but<br>
not anything in the heaps.  I don&#39;t see why you&#39;d need a separate<br>
interpreter for every object.  Are Max objects separate threads<br>
in C?  I have done very little work in JavaScript, but I think<br>
jS objects are similar to s7 lets (i.e. a collection of names+values,<br>
and if the value is a function, it&#39;s considered a &quot;method&quot;).<br>
So you just need to map between those (or some facsimile thereof), all<br>
within one s7 interpreter.  s7&#39;s object-oriented stuff is very close<br>
to JavaScript (I think -- I&#39;m no expert).<br>
<br>
<br>
</blockquote></div>