[gambit-list] Gambit linking

Marc Feeley feeley at iro.umontreal.ca
Thu Nov 7 12:57:29 EST 2013

On Nov 7, 2013, at 11:04 AM, Mikael <mikael.rcv at gmail.com> wrote:

> Hm, interesting:
> Independent of whether Gambit will not have or will have a dep loader built-in, it will be greatly practical that on creation of a new VM, the user can specify code that will be taken in use as main module for interpreted execution by the newly created VM i.e. something like
> (create-vm! '(begin (load/preload-module/alike "otherdep.o1") (hello-world) etc.))

Communicating some information to a new VM would be nice.  However, there are technical problems... the source VM and the target VM don't share the same address space, so it isn't possible to just pass a reference to the new VM (except for symbols, which I intend to make unique over all VMs).  So some copying would be involved.  But what to do about cyclical data, or data with sharing, or with unserializable data (continuations? foreign pointers?).  Passing a string would be easy enough, but it is very limitative and doesn't feel schemey.


More information about the Gambit-list mailing list