Hacker Newsnew | past | comments | ask | show | jobs | submit | more xt's commentslogin

The community for Lua in general, and specifically for Lapis is much smaller.


If someone is eager to try Lapis I have a Dockerfile available here:

https://github.com/torhve/lapis-docker

it includes a readme for getting started with Openresty in general.


For plain openresty you can try https://github.com/3scale/docker-openresty It does not have fancy readme, but has batteries included. Luarocks works, supervisor is set up, cron is there...


And also sexy web frontends for existing IRC client WeeChat: http://cormier.github.io/glowing-bear/

Source: http://cormier.github.io/glowing-bear/


Open source weechat web frontend:

http://torhve.github.io/glowing-bear/


I'm involved in a weechat web frontend which solves some of the problems.

If anyone's curious, here it is: http://torhve.github.io/glowing-bear/


The openresty mysql driver is in pure lua. It has a very efficient socket/pooling mechanism, using sockets from nginx.


It would be even more (much more?) effective to use preconfigured https://github.com/chaoslawful/drizzle-nginx-module location and 'ngx.location.capture' I suppose

And http://leafo.net/lapis/ is missing again.


I benchmarked the pure postgresql lua driver to be ˜3 times as fast as the nginx-postgresql-c driver. When you use the nginx drivers from a lua context you have to use an internal nginx request to that location, so there's some overhead.

If you want to improve even further on the lua drivers, LuaJIT FFI is probably the right answer.


>˜3 times as fast as the nginx-postgresql-c driver

That's interesting..

>LuaJIT FFI is probably the right answer

Do you mean calling nginx internal functions (DB driver or location capture, like ngx_eval module does in that case) via FFI (I doubt if that is safe in any way) or just use libpq from LuaJIT directly?


I haven't benchmarked the mysql drivers, so results might be different there.

There's some work being done by openresty author w.r.t. ffi for openresty itself, it might yield interesting results. And yes, I think both the option you listed are viable. But the lua drivers already perform very well.


I asked leafo about adding Lapis and he sounded interested. Since then I haven't harassed him. I figure he will get to it when he can.


LuaJit (or optionally Lua)


A little too generalized, LuaJIT is winning some of the benchmarks


I would love to see Openresty tested, for simple json and databases Openresty is a magnificent tool.


It's an alternative to puppet. Biggest difference is built-in remote execution.


Not exactly, it doesn't have the same goal at all.

From the first line of the script: "stack.sh is an opinionated OpenStack developer installation". It doesn't provide nearly the flexibility of Puppet (or Chef).

Devstack does one thing, and one thing (almost) only: get a simple installation of OpenStack up and running as fast as possible (predominantly for developers to test their modifications against).

Puppet can handle much more complex scenarios, and is really meant to deploy production.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: