3 ms·
Kinda curious why you did not go with OpenResty?
by curiousss 1y ago
Kinda curious why you did not go with OpenResty?
- nmz 1y agoWhy not go with redbean?
- indigodaddy 1y agoCan the redbean webserver dynamically parse markdown?
- soapdog 1y agoon the very early releases, I couldn't get it work well. I know it works well now and may take it for a spin again.
- deleted 1y ago[deleted]
- rweichler 1y agoI guess it provides less freedom/flexibility on the dev side. You're forced to use LuaJIT, and you're forced to buy into OpenResty's coroutine paradigm where global variables act weird, and stuff like that. Also I bet it doesn't play super nice with LuaRocks. Totally valid choice to make, but in my opinion OP is missing out. OpenResty is state of the art and has a ton of great libraries embedded in it. It's "batteries included" so to speak, and the batteries are well designed. Yichun Zhang is one of the GOATs, along with Mike Pall. And Roberto, obviously.
- soapdog 1y agoWhile everything you said there is true, it is a matter of taste for me. I prefer working with PUC Lua over LuaJIT. The speed improvement of LuaJIT doesn't matter for me, the only thing I miss from it is the FFI. I wish PUC Lua had the same FFI interface tbh.
- rweichler 1y agoIt does. https://github.com/q66/cffi-lua https://github.com/q66/cffi-lua One of these days I'll port OpenResty to use PUC Lua and this FFI.
- soapdog 1y agoI am more familiar with Caddy and The way OpenResty uses Lua was never very clear to me in my cursory 40 minutes attempt to use it.