Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于lua版本的问题 #1

Open
nirvanazc opened this issue Nov 27, 2019 · 1 comment
Open

关于lua版本的问题 #1

nirvanazc opened this issue Nov 27, 2019 · 1 comment

Comments

@nirvanazc
Copy link

尝试编译了一下,发现awtk-lua\3rd\lua是使用了lua5.4的测试版本
而由于历史原因,lua在5.1的时候分裂了,luajit定在了lua5.1
而官方继续前进版本到5.2,5.3
由于lua每个版本之间都不兼容,所以一般选定一个版本后就不动了.升级一般需要调整代码的.
luajit提供了ffi的方式绑定外部c函数.以及jit的方式运行lua,性能比官方lua要好很多.
luajit也建议使用ffi来调用外部c函数
所以能不能给lua5.1.5开发绑定使得luajit也能调用,当然能开发ffi的绑定就更好了.
另外我下载了lua-5.4.0-beta.tar.gz,简单比较了lua.h,发现有大量不同.
在5.4还没稳定的时候,建议不要用5.4来开发绑定.

@xianjimli
Copy link
Member

好的,谢谢,我了解一下。lua版本貌似没多少人感兴趣。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants