A toy webserver written in lua: httpd.lua – using a small shared library to implement bind(), accept(), connect(), read(), write(), and close().
Well it killed an hour or two, and could be useful. Possibly. Maybe?
I think I’m falling in love – Lua is the new perl.
Update: Now supporting virtual hosts, binary files, and sending appropriate MIME types.