Closing and reloading compiled extensions

N

Nimai Carsten

I would like to be able to do the following:

1. Write and compile a C extension containing nothing but singleton
methods defined on "self".
2. Load the extension multiple times, attaching these methods to
different objects.
3. Make changes to the extension, rebuild it, and replace the defined
methods on select objects.

#1 is easy, #2 can be done by linking multiple singletons to the same
method.

But #3 cannot be done, because I can't dlclose() extensions.

Why not?

I know I could just create new instances of the interpreter.
I don't want to do this - I want to be able to create a unified,
persistent object model that avoids the hassle of IPC, but still has the
ability to load and unload dynamically compiled machine code.

Do I need to create my own extension loading/unloading library? Or is
there an obscure feature or upstream patch I'm not aware of?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top