Linked by Thom Holwerda on Fri 7th Sep 2007 13:34 UTC, submitted by anonymous
General Development "Lua is a powerful, light-weight programming language designed for extending applications. Coupled with it being relatively fast and having a very lenient license, it has gained a following among game developers for providing a viable scripting interface. It has been used in games such as World of Warcraft and Far Cry, and in applications such as Adobe Photoshop Lightroom and Snort."
Thread beginning with comment 269572
To read all comments associated with this story, please click here.
Interested
by rycamor on Fri 7th Sep 2007 15:57 UTC
rycamor
Member since:
2005-07-18

For any Lua users out there: I'm very interested in using Lua for configuration and small services on headless servers. I would love it if anyone could point me to their favorite implementations of the following:

1. Httpd server - some sort of small stateful httpd server, in the mode of Ruby's Webrick or Mongrel, or Python's TwistedWeb. The point is not for high-traffic web serving but for complex web-based config apps serving one person at a time. Thus, I am looking for something that allows me to keep state across HTTP requests, but for the most part let me craft my own MVC system (NOT looking for a complete Ruby-on-Rails style framework).

2. IPC framework - again something small and simple that allows me to send messages back and forth over TCP/IP, handling one-to-one, one-to-many, and many-to-many relationships.

3. Fast XML/HTML processing - Is there anything similar to Python's ElementTree, or PHP's DOM library? Specifically, I'm looking for something that will let me import 'dirty' documents such as HTML, manipulate and fix them (PHP includes an option to import badly-formed HTML into DOM, not sure about ElementTree).

-tia

RE: Interested
by axel on Fri 7th Sep 2007 17:53 in reply to "Interested"
axel Member since:
2006-02-04

well for servers there's http://www.keplerproject.org/xavante/
not sure if it meets you're needs
as for the other stuff the kepler project might have that stuff too, not sure.

Reply Parent Bookmark Score: 1

RE: Interested
by skx2 on Sat 8th Sep 2007 07:49 in reply to "Interested"
skx2 Member since:
2005-07-06

I wrote this socket extension a while back, and using it could create a simple HTTP server:

http://www.steve.org.uk/Software/lua-httpd/

As for the other extensions I'm not sure, but if you've the patience it's mostly trivial to bind C + lua together. I wrote this small introduction to the subject here:

http://www.debian-administration.org/articles/264

Reply Parent Bookmark Score: 3

RE[2]: Interested
by rycamor on Sat 8th Sep 2007 23:51 in reply to "RE: Interested"
rycamor Member since:
2005-07-18

Thanks!

I find small implementations like this very helpful in grokking a language.

Reply Parent Bookmark Score: 1