-
Notifications
You must be signed in to change notification settings - Fork 205
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
Plain Lua Version #128
Comments
99% of Terra goes through the LuaJIT FFI interface. The only thing that I On Sat, Oct 24, 2015 at 6:40 AM, Alex Wiltschko [email protected]
|
It seems that develop branch includes some work towards PUC Lua compatible version of Terra. LuaJIT is slowly floating to oblivion (no active maintainer, no new features, no perf improvements), plain Lua version might make sense long term. @zdevito, could you please shed some light on the game plan here? What are your long-term objectives/plans for Terra regarding the Lua part? Dropping LuaJIT and moving towards 5.3 compatibility? |
Yes, I've made the first step for a plain Lua version using a hacked up On Mon, Nov 21, 2016 at 12:56 PM, Konstantin A. Olkhovskiy <
|
Thanks so much! On Mon, Nov 21, 2016 at 10:56 AM, Zachary DeVito [email protected]
|
@Lupus Just because LuaJIT didn't see new features, I don't think it would be wise to drop support for it. It remains a good, fast Lua implementation. |
@bananu7 I'm not suggesting to drop it right now, furthermore we have large codebase which is LuaJIT dependant. We just don't believe it will survive, and adding support for PUC Lua in terra makes us more confident about the future of terra. |
I'd like to suggest you prioritize this issue higher. Obsolescence of LuaJIT is not a theoretical worry, it's a very real problem right now. LuaJIT's garbage collector has an internal limit of no more than 2 Gb of total allocations per process. This makes LuaJIT basically unsuitable for use in serious 64-bit programs. Since LuaJIT is abandoned it will likely never get proper 64-bit support at all. |
I've cleaned up the develop branch and put this into a PR here: #320 The main thing is, all of the existing pure-Lua FFI implementations were non-portable. So for the moment, my "solution" has been to just cut out any functionality that can't be done in a portable way. At least for me this matters because my main reason for using non-LuaJIT Lua is to support PowerPC. The current solution is enough to build Terra code and call If anyone here is interested in helping that effort, there is still more to do, and we've got ideas for how to do full FFI support in a portable way. It just requires time that I don't have right now. |
With a plain-Lua FFI released, will Terra work with plain Lua? Asked another way, do any of Terra's internals depend on any LuaJIT internals, or does it just talk with LuaJIT via the FFI interface?
The text was updated successfully, but these errors were encountered: