xiaona han
2011-Mar-19 06:33 UTC
[Xapian-devel] A question about project " Lua bindings for Xapian"
Hello all, I am interested in the project "Supporting another language(Lua)". It difficulty is medium-hard. Then my question is: How many lines of code does it need to implement this project? I found some code in other languages binding is generated by SWIG. Then what part of code do we need to write, and what part of code are generated by SWIG? Best Regards, Xiaona -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20110319/e1aaa220/attachment.html>
Olly Betts
2011-Mar-19 10:38 UTC
[Xapian-devel] A question about project " Lua bindings for Xapian"
On Sat, Mar 19, 2011 at 02:33:13PM +0800, xiaona han wrote:> I am interested in the project "Supporting another language(Lua)". It > difficulty is medium-hard. Then my question is: How many lines of code does > it need to implement this project? I found some code in other languages > binding is generated by SWIG. Then what part of code do we need to write, > and what part of code are generated by SWIG?If you look at the code in the version control system (either svn, or the git mirror) it should be clearer as none of the generated files are checked in (whereas the tar files we distribute include the generated files for convenience). If you look at one of the languages where the wrapping has been done in a natural way, you should see the sort of thing to aim for. Python is probably the best example of this (but ignore the *3.py files which are mostly generated from the *2.py files by the Python 2to3 tool, with some manual tweaks to work around issues with that tool). Cheers, Olly