Hacker News new | ask | show | jobs
by int_19h 1368 days ago
It's all a single process, and native modules are just shared libraries, so how would it allocate multiple instances for different interpreters?
1 comments

Does anyone know of a way to load multiple instances of a DLL in the same process on Linux? A few months ago I was googling for a solution and didn't find anything ready-made. I guess the dynamic linker wants to have a unique address for each symbol, but in principle you should be able to load another DLL instance, initialize it and call its functions indirectly by using function pointers.
How would you find said function pointers?
dlsym and RTLD_LOCAL ?