[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaffi vs luajit ffi
- From: Cosmin Apreutesei <cosmin.apreutesei@...>
- Date: Wed, 23 May 2012 01:14:34 +0300
On Tue, May 22, 2012 at 11:39 PM, Miles Bader <miles@gnu.org> wrote:
> Cosmin Apreutesei <cosmin.apreutesei@gmail.com> writes:
>> Right, so now we have 3 platforms (5.1, 5.2 and lj2) with notable
>> differences between them: can't use setfenv in 5.2, can't use _ENV
>> in 5.1 and lj2, can't use 64bit numbers in 5.1 and 5.2, can't
>> compare pointers to nil with luaffi etc.etc.
>>
>> If one writes a binding nowadays it's easy to get locked in. I'm
>> currently locked in big to lj2 :)
>
> Writing code that runs under 5.1 / 5.2 / non-FFI-LuaJIT is generally
> very easy, because differences are quite minor.
I have 60 modules starting with setfenv(1, require'winapi') so that
everything goes in the same namespace. What would be a reasonable
migration option to 5.2 for this?