[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.2 Wish list item: stable API between versions
- From: askok@...
- Date: Mon, 13 Nov 2006 09:36:53 +0200
Without taking stand as to the API question itself, the
gluax module interfacing allows modules to be immune to
this change. The same binary can be loaded into Lua 5.0,
5.1, and any foreseeable versions.
Personally, I think binary compatibility is not so
essential, though. It suffices to be able to recompile,
without changes in the source. Also in this gluax does
The technology was in use in LuaX, and is coming "out" in
the new LuaX2 next year. As a new thing, modules can be
compiled into standard Lua n.n modules as well, which
should lower the bar for most people to try it out. I'm
planning to roll this out in larger scale alongside the
LuaRocks initiative (note: LuaRocks is in no way gluax
Tried to make this clear, but... it's easier to show the
samples, really. :) I will.
Think of it as a higher level "bindings API", above the
kitchen-door level Lua/C API.
On Mon, 13 Nov 2006 00:37:06 -0500
"Jérôme VUARAND" <email@example.com> wrote:
That's a key specificity of Lua that its API is not
stable. Lua is an
evoluting language. You just have to look at Lua 4
manual to figure
the heavy changes that have happened. Maybe you should
Lua version as a different language.
This may be a source of troubles for people having a
relying on a specific API. For long term project you
should stick to a
specific version of Lua. But according to that page
(http://www.lua.org/news.html), Lua 5.0 first alpha/beta
already 4 years old, and Lua 5.0 is still maintained and
the mailing list. I think it's quite a long time
Lua 5.1 has a lot of optionnal compatibility features
that helps make
the transition smoother. And Lua releases become more
and more distant
from each other. Lua 5.2 may take several years to come
(the graph on
that page looks like a reassuring exponential
My 2 (or 3) cents.
2006/11/12, Mike Kreuzer <firstname.lastname@example.org>:
Just noticed some other 5.2 wish list items, and, well,
coming up. :-)
My wish: a stable API between versions. Every time Lua
version all the Lua DLL (and equivalent) users have a
lot of back-end
re-writing to do. Some is sometimes inevitable, but
less would be
If a project takes several years to develop, and it's
hoped that it'll
be useful for several years after it's finished, that's
two lots of
several years worth of stable API to aim for.