lua-users home
lua-l archive

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


Hi,

Roberto Ierusalimschy wrote:
> Maybe 'lua5_1.dll'? (Otherwise there may be some confusion between
> future DLLs for Lua 5.11 and for Lua 51.1. We must think big :)

Surely Microsoft has a solution based on UUIDs or something like
that ready for us with Longhorn:

  lua{4f99f13c-9493-40d4-b374-0fcbcec88495}.dll

Ain't that pretty?

Antonio Scuri wrote:
>   Will Lua 5.1 be backward compatible with Lua 5.0?

Lua source: Yes, almost 100%. Some 4.x compatibility stuff was dropped.
C source:   Mostly. There are compatibility macros for some 5.0 APIs.
C binaries: No! You definitely need a recompile.

Lua generally provides API stability, but not necessarily ABI
stability across minor versions.

[
http://en.wikipedia.org/wiki/API
http://en.wikipedia.org/wiki/Application_binary_interface
]

One consequence: Lua DLLs on Windows must have different names for
different minor Lua versions since the ABI does not match.

Another consequence: Shared libraries on ELF platforms must not
use the same major .so-version (*.so.Maj.Min.Rel) for minor Lua
versions. Preferrably use a different base name, e.g.:
liblua50.so -> liblua50.so.0 -> liblua50.so.0.0.2
liblua51.so -> liblua51.so.0 -> liblua51.so.0.0.0

Bye,
     Mike