On Sunday, 8 December 2013 at 22:32:17 UTC, qznc wrote:
On Sunday, 8 December 2013 at 17:12:06 UTC, Kelet wrote:
On Monday, 2 December 2013 at 03:32:52 UTC, Kelet wrote:
I am aware of Jakob Ovrum's most excellent Lua binding and
wrapper[5] and recommend that anyone considering using D with Lua
checks it out.

What is the reason you picked Derelict-Lua instead of LuaD for dub-packaging?


there are a few technical differences which present different
advantages and disadvantages depending on their situation:

* DerelictLua uses the Lua dynamic library during run time rather
than load time, which I prefer.

* LuaD targets Lua 5.1, DerelictLua targets Lua 5.2. Some prefer
Lua 5.1 because LuaJIT is a drop-in replacement.

* LuaD is both a binding and a wrapper. Optimally, this would
represent 2 packages instead of one. DerelictLua is more of a
direct binding.

* I think Jakob will eventually add a DUB package himself and
maintain his own project.

Ideally, the best path (IMO) is making both the LuaD and
DerelictLua bindings support both Lua 5.1 and Lua 5.2. Then
having the LuaD wrapper work with the LuaD or DerelictLua
bindings (or 'backend'). I've talked to Jakob about this and it
could be a possibility in the future. For now, I might spend some
time targeting Lua 5.1 in a new DerelictLua branch. From there, I
may be able to get Jakob's wrapper to work with it nicely. It
seems like the major stopper here.

Reply via email to