lua-users home
lua-l archive

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

It should be mentioned in that context, that LuaJIT targets Lua 5.1
and has no intention to be fully 5.3 compatible in the future:

So if you want extra speed, you have to stick with 5.1 for the time being.


On 8 February 2018 at 17:40, Viacheslav Usov <> wrote:
On Thu, Feb 8, 2018 at 4:04 PM, Luiz Henrique de Figueiredo <> wrote:
> If you embed Lua in C, I suppose you will get symbol conflicts, so you will
> have to modify the source of one of the versions to prefix exported symbols.

I have done this once or twice with success. I can dig up the tools
I've used if there is any interest.

The following suggestion/request has been sitting in my drafts for some time.

A make-time option to include Lua API pointers in the Lua state structure, so that, for example, lua_absindex could be alternatively called as, for example, L->api->absindex(L, -1) and a related make-time option that defines all API functions as macros such that, for for example,  lua_absindex(L, -1) expands into  L->api->absindex(L, -1). The purpose of this is manifold, including (1) a possibility to host Lua as a statically linked library while loading external C-language Lua libraries and (2) eventually a possibility to host multiple versions of Lua.

Is that just a wild fantasy?


Dr. Heinrich Hartmann
Am Bökel 3
32351 Stemwede Levern

Mobile: +49 1525 363 8134
Landline+49 5745 9200511