lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Oct 21, 2011 at 1:23 AM, Miles Bader <miles@gnu.org> wrote:
> Patrick Donnelly <batrick@batbytes.com> writes:
>>>  - write it in pure Lua? first is the speed, maybe LuaJIT may fast,
>>> then, using Lua to do actually render?
>>
>> Yes! Use LuaJIT 2.x with FFI. I believe plenty of people have already
>> have opengl FFI bindings written. Just google around. With the FFI, it
>> should be lightning fast...
>
> The annoying problem though, is that LuaJIT+FFI, however great (and it
> is great!), isn't really a portable solution.  Maybe some people don't
> care, but I do.  I want to gain the benefits when possible, but still
> have the _ability_ to run with normal Lua (which is portable).

Someone recently ported FFI to regular Lua IIRC [1]. This may be acceptable?

[1] http://lua-users.org/lists/lua-l/2011-07/msg00467.html

-- 
- Patrick Donnelly