[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaffi vs luajit ffi
- From: Miles Bader <miles@...>
- Date: Wed, 23 May 2012 05:39:19 +0900
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.
Unless you use FFI. Then you're f*cked...
That's why I'm not gonna touch FFI with a 10-foot pole, neat idea may
it be.
-miles
--
魔力を持った謎の石仏
苔地蔵様に近づいて