Is the intention simply that it be possible to use modules
which aren't available locally?

If so, you could do something like:

 - use request is passed to module server
 - module server "require"s module (will do nothing if it's already
    been required. That's a good thing)
 - server serialises module stash (including subs) and passes it
   back to client
 - client deserialises stash, calls import()
 - client can now use module without actually having it.

Major problems:

 1. (de)serialisation would be hard, but not impossible
    (the hard bit, code, can be done with B::Deparse)
 2. XS won't work


(2) is the killer, I fear.

 .robin.

Reply via email to