On Aug 30, 9:44 am, Jason Orendorff <[EMAIL PROTECTED]> wrote: > - Create a library to facilitate interop among multiple > language runtimes in a single process, with distributed garbage > collection, etc. Like SWIG, only much better. Implement it for > Tamarin, XPCOM, CPython, and Java. > > If the last option sounds crazy, it should, but I'll go ahead and > point > out that we've done interop at least 3 times already (LiveConnect, > XPConnect, PyXPCOM), and we're about to do it 2 more times > (ScreamingMonkey needs Tamarin/MSCOM interop; ActionMonkey > needs Tamarin/XPCOM interop). Maybe it's time to do it in a generic > form that other open source projects can use.
It sounds slightly crazy but I think it's doable. We had a project related to this at IBM --- Parley, that Brendan mentioned --- although it didn't get anywhere, partly because I left. The basic idea was to add a distributed mark and sweep phase that multiple runtimes can plug into. Even generational and copying collectors can participate; VMs that do generational collection need to temporarily root references that escape the VM, and copying collectors need to add wrappers that don't move, or support pinning (which I believe most real copying collectors do). Rob _______________________________________________ dev-tech-xpcom mailing list dev-tech-xpcom@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-xpcom