apache / opendal

Apache OpenDAL: access data freely.
https://opendal.apache.org
Apache License 2.0
3.16k stars 440 forks source link

bindings: lua multi-version support for luarocks build #2575

Open oowl opened 1 year ago

oowl commented 1 year ago

https://github.com/apache/incubator-opendal/pull/2558#issuecomment-1613570958

Xuanwo commented 1 year ago

I have limited knowledge about Lua. Are Lua packages incompatible between different minor versions of Lua?

For example, if I built a package with lua 5.2, can it be used under lua 5.4?

oowl commented 1 year ago

@Xuanwo Yeah, 5.2 share library package can not be used under 5.4. , Lua is a language with poor compatibility. From https://www.lua.org/versions.html

Different versions are really different. The API is likely to be a little different (but with compatibility switches), and there is no ABI compatibility: applications that embed Lua and C libraries for Lua must be recompiled. The virtual machine is also very likely to be different in a new version: Lua programs that have been precompiled for one version will not load in a different version.