lua-users home
lua-l archive

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




On 18/02/17 12:49 PM, Viacheslav Usov wrote:
On Sat, Feb 18, 2017 at 3:24 PM, Soni L. <fakedme@gmail.com <mailto:fakedme@gmail.com>> wrote:

> On Windows it's trivial

I assume you meant shared Lua.

Any ideas about statically linked Lua?

I did not understand what you meant by "custom VM" and how that could be helpful.

Any way I think about this, shared or static, it seems inevitable that I would need to have some wrappers on top of or at least version-decorated Lua API types and functions. And macros, because they are heavily used. That seems rather messy to maintain even for one Lua version, and for multiple it can become a problem in itself. Any ideas here?

Cheers,
V.

With shared it's trivial on windows and linux, altho there's no cross-version communication. With a custom VM it's trivial everywhere altho you won't be able to use C modules, but you do get cross-version communication (a la `require "5.3".load('return require "5.1".loadstring("return 1")()')()`).

--
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.