Closed wangqr closed 4 years ago
I have spoken to some colleagues and they sent me a bunch (183) of Lua scripts they use. Is it fine if I attach here a zip file with them?
Sure. But this issue is low priority on my list
Sure, it's not critical. The scripts: https://github.com/wangqr/Aegisub/files/3596042/scripts.zip
Thanks for the scripts. Is there any documentation for them somewhere online?
The scripts: https://github.com/wangqr/Aegisub/files/3596042/scripts.zip
A lot of scripts in this archive are outdated. For example, the last versions for unanimated scripts can be found here http://unanimated.hostfree.pw/ts/scripts.htm . And there are link for other authors scripts https://github.com/TypesettingTools . I think, that lua should be updated to the latest version, and the authors should be responsible for the performance of the scripts. I will update all my scripts (https://yadi.sk/d/DPu3_GT23Zi9vz) myself, after the lua upgrade.
Yutils use the ffi.* which is LuaJIT only. https://github.com/facebookarchive/luaffifb looks like an alternative.
No further plan to upgrade lua, close for now.
Lua is a script language designed to be embedded in another program. In our case, Lua is embedded as the automation engine for aegisub (see
libaegisub/lua
). So lua is small, easy integration with other code, and NOT version compatible. It is designed not to be upgraded over time.But, older versions will eventually die out, and no longer maintained. There is no clear timeline when a version of lua is supported and will get security fix, and we need to figure it out and make our decision.
Here's some useful informations:
lua versions still used by some maintained distros:
In 2cb92a5f74634764ff5aac7e3ad0d647f98142af we are using LuaJIT-2.0.4 with
LUAJIT_ENABLE_LUA52COMPAT
enabled (yes this also breaks compatibility and not much distros enable this in their shipped version of LuaJIT). So a low risk thing we can do is to upgrade the bundled LuaJIT to luajit-2.1 and still build it withLUAJIT_ENABLE_LUA52COMPAT
. To move forward, we might want to migrate back to lua itself.Lua libraries used by Aegisub:
And we also have
re
andunicode
, which are wrapper for boost functions.The whole thing that prevents us from upgrading Lua is we do not know what functions are used by people in their code, and whether upgrading Lua will break it. We might want to check if upgrading Lua (say, to lua53 or lua54) will break anything in the
automation
folder first, and search for scripts and see if them break.Providing download links to Aegisub Lua plugins in this issue would be really helpful.