lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 18/02/17 11:45 AM, Viacheslav Usov wrote:
I would like my application to host multiple Lua versions, so that multiple Lua versions could execute simultaneously in one process. Has this been done before? Any ideas and pointers are much appreciated.

I am primarily interested in having multiple versions statically linked, but will consider dynamic linking (shared lbs) if that is beneficial.

Cheers,
V.

On Windows it's trivial, on Linux you can use dlmopen, on OSX you're hosed AFAIK. Do you need to be able to load libraries? If not, a custom VM might be your best option. (Altho, a VM written in pure assembly could be used to detect which version of the C API a library is trying to use, based on the arguments given... but I wouldn't want to write/maintain such a VM :P)

--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.