On Thu, Nov 25, 2010 at 4:04 AM, Tom Lippincott
<thomas.lippinc...@cl.cam.ac.uk> wrote:
> Hello,
> I was wondering if anyone is actively working on making the scripting
> interface more comprehensive.  I've had some luck using SWIG to

Unfortunately, we just tend to add functions when we need them.
Usually this is me or Rob or someone needing functions for Lua
tests/scripts/vault definitions.

> auto-generate a Python API, and since its also capable of generating

That sounds interesting. I'm not sure what the side-effects of
requiring Python would be, and the majority of our external scripts
are written in Lua.

> Lua, it might be a good way to get access to more internals (and produce
> better documentation as a side-effect), but I don't want to duplicate

I'm honestly not experienced enough to comment on how well SWIG works
for generating Lua code. The issue that I can foresee with automatic
generation basically revolve around the fact that we have two Lua
"virtual machines" (I forget the proper term here), one for
user-accessible Lua (macros, etc), which has to be locked down tight
in order to avoid leaking information, and the dungeon-accessible Lua.

There usually aren't any issues with the latter having full access to
all functions, and I agree that it would be awesome if we could
automatically generate wrappers via SWIG for the majority of this
code.

> effort.  I couldn't find much relevant discussion in the mailing list
> archives, so thought I'd ask: I'd be happy to work on this, and send a
> detailed plan, if it sounds promising.  Thanks,

It does sound interesting. Others are likely to comment on the
proposal who have a better grasp of everything than me. :-)

You may also find discussion about Lua in the ##crawl-dev archives, or
you might be able to start conversations there about it.

> -Tom Lippincott (a CS grad student with some free time)

-Jude

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Crawl-ref-discuss mailing list
Crawl-ref-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/crawl-ref-discuss

Reply via email to