lua-users home
lua-l archive

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


The dependencies for dub are:

1. a good xml parser (Hpricot)
2. some regexp (not too much)
3. an easy to use templating language
4. a good unit testing framework

Porting it to Lua should not be a great pain, but it is not a trivial
piece of code so don't expect such a rewrite to take less time then
learning how to install ruby and gems...

Cheers,

Gaspard

On Thu, Dec 16, 2010 at 11:14 PM, Tim Mensch <tim-lua-l@bitgems.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 12/16/2010 2:59 PM, Gaspard Bucher wrote:
>> And when I use "Dub" to create Python bindings, I write it in Python ? ;-)
>
> Nah, Lua's good for that too. ;)
>
> Seriously, Lua is a much lighter dependency than Ruby or Python, though
> there is the downside of needing to get any necessary add-ons bound to a
> Lua executable, so it may just be a toss-up.
>
> LuaForWindows is a good batteries-included distribution on Windows, but
> I used that recently on a project and my client had trouble because they
> were running on Mac. That's what I get for contracting with an iPhone
> shop. :)
>
> I'm sticking with tolua++ for now, simply because I've already burned
> too much time on this investigation. I'll take a look at Dub at the
> point that I'm ready to generate my own bindings, because I think that's
> inevitable at this point -- tolua++ will hold me for now, but eventually
> I'll want custom bindings. And I do like your approach.
>
> But I may end up porting it to Lua to banish the additional dependency.
> I do like Ruby, and I totally understand why you wrote your tool in
> Ruby, but I hope to be distributing my library at some point, and I
> don't want to either distribute Ruby with it (adding ~10Mb to the
> library download?) or require that people install yet-another-tool.
>
> Not even thinking of the various Ruby versions that they may already
> have installed, and path issues, and ... well, yeah, it makes things
> more complicated to bring in an entirely different language.
>
> Tim
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJNCo9bAAoJENSbqLBCyKKsw60H/R7ONpi2Zlwclt1BlU3XsNxj
> gT2P+6iDOt7oogsG+DvhpWho4aNYVUSNscTxYno2RAbT1f/rBrXJLhgN/15ErVf1
> 9Tar6pxBThlnD5iXKa9Pv0svfTjALVTSiXcuj7h0GG/wB0PJLoIkmzIElgJe1xVa
> hxWhOR5T/4AM7uFW2O1BDHGVuD2CBpefHQb2QbbdYgYp27N7g0J2uwGSoM+CzaIw
> Ap7fEXzi+2MsUlnR4WNd/BFi+jAZpKr1znQLjhRia+BRdCx4BvniiQ5WBPrwpSGe
> bjpXYfrKhlkOkX/xeaUtUc67g5oUBk8GAwDa38zhth7T57wbxoWn4Hzt6NHIwPU=
> =Ib8W
> -----END PGP SIGNATURE-----
>
>