<br><br>On Monday, January 13, 2014, Jason A. Donenfeld wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Jan 14, 2014 at 3:37 AM, Andrew Starks <<a href="javascript:;" onclick="_e(event, 'cvml', 'andrew.starks@trms.com')">andrew.starks@trms.com</a>> wrote:<br>
><br>
> I don't have LuaJit installed and would not install it (and migrate<br>
> everything I do over to it) just to use a library. By way of example, your<br>
> library may as well have been written for Python, for as much good as it<br>
> would be to me.<br>
><br>
> By contrast, if you stick to the subset of 5.2 that 5.1 supports, and / or<br>
> use a bit of the luacomp library, then anyone with lua 5.1, luajit or Lua<br>
> 5.2 can use it.<br>
><br>
> The question, from a user's perspective is: what benefit are you giving me,<br>
> in exchange for locking me into luajit, as a dependency?<br>
><br>
> Even if I am using Luajit, that doesn't mean that I don't need to support<br>
> the current, mainline distribution and straight 5.1. So, I can't use your<br>
> library as a dependency, if this were the case.<br>
><br>
> It's easier for you if you like what the FFI gives you. Supporting the<br>
> common subset and using luacompat, as necessary, is the simplest, for the<br>
> user.<br>
><br>
> IMHO, of course<br>
<br>
That's a fairly compelling opinion. The only thing against it is the<br>
temptation of using FFI in the default scripts that we ship with cgit.<br>
But I suppose for the sake of giving users choice later on, it might<br>
be best, as you've said, to continue to support both, and let the user<br>
choose.<br>
</blockquote><div><br></div><div>Jason,</div><div><br></div><div>I also just remembered this:</div><div><br></div><div><a href="https://github.com/jmckaskill/luaffi">https://github.com/jmckaskill/luaffi</a></div><div><br>
</div><div>Which is a luajit compatible FFI extension for Lua 5.1 and Lua 5.2, but 5.2 is listed as beta. It might be worth a shot, if it lets you gain some of those conveniences and keep a broad support base.</div><div><br>
</div><div>-Andrew<span></span></div>