Comments on: X-Plane 10.22: LuaJIT Memory for Windows and Linux https:/2013/06/x-plane-10-22-luajit-memory-for-windows-and-linux/ Developer resources for the X-Plane flight simulator Thu, 20 Jun 2013 14:49:37 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Ben Supnik https:/2013/06/x-plane-10-22-luajit-memory-for-windows-and-linux/#comment-7507 Thu, 20 Jun 2013 14:49:37 +0000 http://xplanedev.wpengine.com/?p=4970#comment-7507 In reply to Wigry.

Sort of. The LuaJIT developers are working on a new garbage collector that will let them use 4 GB of space, but they are not planning on changing the 64-bit code gen to allow for a full-size memory arena.

]]>
By: Ben Supnik https:/2013/06/x-plane-10-22-luajit-memory-for-windows-and-linux/#comment-7506 Thu, 20 Jun 2013 14:48:44 +0000 http://xplanedev.wpengine.com/?p=4970#comment-7506 In reply to Tom Knudsen.

Everything that is known about and fixed is described in the release notes and this blog post.

There are no remaining LuaJIT issues with X-Plane – 10.22b1 fixes everything on our end.

]]>
By: Wigry https:/2013/06/x-plane-10-22-luajit-memory-for-windows-and-linux/#comment-7502 Thu, 20 Jun 2013 07:27:18 +0000 http://xplanedev.wpengine.com/?p=4970#comment-7502 Hi,

Is it expected that the ridiculous 2GB limit will be lifted at some point in the future. I believe that as long as that limit exists, the problem is still there. In todays 64-bit systems the 2 GB limit is such a ridiculous excuse for bad architecture that I cannot find the words ti describe my surprise and disbelief.

]]>
By: Tom Knudsen https:/2013/06/x-plane-10-22-luajit-memory-for-windows-and-linux/#comment-7500 Thu, 20 Jun 2013 05:20:48 +0000 http://xplanedev.wpengine.com/?p=4970#comment-7500 In reply to Ben Supnik.

Thank you Ben

In reference to the bug: I keep seeing talks on the forums of x-plane.org that there is a memory bug in 64bit that has something to do with SALS. An thing that is supposedly going to get fixed in 10.30. Not sure what it is but nevertheless the new Ramzess 757 is supposedly on hold untill this is fixed in 10.30.

Not sure, but I think it has something to do with why 64bit SALS is crashing the sim with planes that uses the SALS plugin

Anyway, thanks for explaining in detail Ben, love to learn!

]]>
By: Ben Supnik https:/2013/06/x-plane-10-22-luajit-memory-for-windows-and-linux/#comment-7499 Thu, 20 Jun 2013 03:38:51 +0000 http://xplanedev.wpengine.com/?p=4970#comment-7499 In reply to Ropeless.

Hi Barry,

Everything you need is here!

http://www.xsquawkbox.net/xpsdk/mediawiki/LuaJIT

]]>
By: Ropeless https:/2013/06/x-plane-10-22-luajit-memory-for-windows-and-linux/#comment-7498 Thu, 20 Jun 2013 03:10:07 +0000 http://xplanedev.wpengine.com/?p=4970#comment-7498 Hi Ben,
I’m writing a LuaJIT plugin presently. Can you point us to some doc on how to correctly do the memory allocation for X-Plane. If it’s just a custom allocator, is the code available somewhere?

Cheers,
Ropeless

]]>
By: Ben Supnik https:/2013/06/x-plane-10-22-luajit-memory-for-windows-and-linux/#comment-7495 Thu, 20 Jun 2013 02:04:18 +0000 http://xplanedev.wpengine.com/?p=4970#comment-7495 In reply to Tom Knudsen.

Lua is a programming language used for scripting.
LuaJIT is a C library that runs Lua scripts very quickly.
SASL is one of several X-Plane plugins that contains LuaJIT (to run scripts) and also provides extra functionality to plugins.

X-Plane allocates memory with malloc.

Re: SASL bugs, I do not know what SASL bugs you are referring to; the question doesn’t make a ton of sense. A bug in SASL will be fixed by the SASL developers, a bug in X-Plane will be fixed by X-Plane.

]]>
By: Tom Knudsen https:/2013/06/x-plane-10-22-luajit-memory-for-windows-and-linux/#comment-7493 Wed, 19 Jun 2013 23:04:13 +0000 http://xplanedev.wpengine.com/?p=4970#comment-7493 Could you please describe the difference between LUA and SALS..
Are both programming languagues or libraries for c? Do you allocate memory with malloc or calloc and finally are the SALS bug still beeing fixed in 10.30?

]]>
By: Markus https:/2013/06/x-plane-10-22-luajit-memory-for-windows-and-linux/#comment-7492 Wed, 19 Jun 2013 22:45:41 +0000 http://xplanedev.wpengine.com/?p=4970#comment-7492 Thanks for fixing the OSX crash!

]]>