Managing GNOME shell extensions
Posted Sep 23, 2011 11:02 UTC (Fri) by
nix (subscriber, #2304)
In reply to:
Managing GNOME shell extensions by ebassi
Parent article:
Managing GNOME shell extensions
no, you cannot mix different virtual machines with different garbage collectors within the same process.
What? Yes you can. I do it all the time. Lots and lots of processes link against both libpython and libperl, which have their own independent virtual machines with their own different GCs. There are even bridges permitting e.g. Python and Lua to talk to each other (both VMs with their own independent GCs). What you have to do is ensure that no piece of data ever ends up traversed by more than one GC, which just means designing the FFI right. (Lua's is designed right for this: I don't know about other languages.)
(
Log in to post comments)