<div dir="ltr">Thanks Bill. Right, I guess I had just assumed they were running separate interpreters, but I suppose there's no reason they would need to be. I don'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 <<a href="mailto:bil@ccrma.stanford.edu">bil@ccrma.stanford.edu</a>> 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">> is it possible to have these separate calls to scheme share data<br>
> and affect each others runtimes, including function definitions?<br>
<br>
I don't think this will work -- you can share constant data, but<br>
not anything in the heaps. I don't see why you'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's considered a "method").<br>
So you just need to map between those (or some facsimile thereof), all<br>
within one s7 interpreter. s7's object-oriented stuff is very close<br>
to JavaScript (I think -- I'm no expert).<br>
<br>
<br>
</blockquote></div>