4 ms·
This is really cool, I'd love to write frontends in Lua. For side project backend development, I've been using Apache and mod_lua[1] (Openresty is Lua for nginx
by marktangotango 9y ago
This is really cool, I'd love to write frontends in Lua. For side project backend development, I've been using Apache and mod_lua[1] (Openresty is Lua for nginx[2]) for a couple of years now. In particular Lua with Luajit is such a kick ass platform, I've always wondered why it hasn't gotten more attention than it has. There are at least two high quality event loop http servers written with it [3][4] and some quite mature web application frameworks [5][6]. Really seems like the Lua backend story is set to explode.
[1] https://httpd.apache.org/docs/trunk/mod/mod_lua.html https://httpd.apache.org/docs/trunk/mod/mod_lua.html
[2] https://openresty.org/en/ https://openresty.org/en/
[3] https://luvit.io/ https://luvit.io/
[4] https://github.com/daurnimator/lua-http https://github.com/daurnimator/lua-http
[5] http://leafo.net/lapis/ http://leafo.net/lapis/
[6] http://sailorproject.org/ http://sailorproject.org/
- mmjaa 9y agoFront ends in Lua? Say no more: http://github.com/moai/moai-dev/
- chc4 9y agoLearning that itch.io is powered by Lua was pretty cool. There's a [write-up] about how they leveraged coroutines for async programming which is super nice to read. iirc, Cloudflare uses mod_lua for a lot of its packet filtering stuff because Luajit is basically magic. write-up: http://leafo.net/posts/itchio-and-coroutines.html http://leafo.net/posts/itchio-and-coroutines.html
- a_imho 9y agoI really like 'plain' Openresty and Lua and use it to power my backend. It is very straightforward and minimal. Nginx is always in the mix and using homogenous technology in the stack simplifies things even further. Also experimented with using it as a websockets server and worked quite pleasantly out of the box. There is a very nice collection of libraries with pretty much everything one can think of https://github.com/bungle/awesome-resty https://github.com/bungle/awesome-resty