5 ms·
I've had great results using OpenResty in combination with the Lapis[0] framework. Screaming fast and pretty easy to work with. [0] http://leafo.net/lapis/ ht
by erikcw 11y ago
I've had great results using OpenResty in combination with the Lapis[0] framework. Screaming fast and pretty easy to work with.
[0] http://leafo.net/lapis/ http://leafo.net/lapis/
- Cyph0n 11y agoYep Lapis is a work of art, just like the rest of leafo's work [1]. Lapis and OpenResty (?) are actually used to power the online indie game store run and built by leafo [2]. [1]: http://leafo.net http://leafo.net [2]: https://itch.io https://itch.io
- rarestblog 11y agoYeah, it's pretty awesome. If anyone wants to play with it - I've created an simple example to showcase it along with some benchmarks. It has some hardcoded stuff for Postgresql example, which you may want to change. https://github.com/slava-vishnyakov/lapis-example https://github.com/slava-vishnyakov/lapis-example It is impressively simple to code: https://github.com/slava-vishnyakov/lapis-example/blob/master/src/app.moon#L24 https://github.com/slava-vishnyakov/lapis-example/blob/maste...
- user237 11y agoI've really enjoyed poking at OpenResty and I found Lapis to be the most mature framework working with it. However, I find the use of Moonscript for its examples sites and the obvious preference for it in the documentation to be quite maddening. Using moonc to compile things down to Lua doesn't really make tracing through code any better when trying to gain a full understanding of the stack. I've got very little desire to go out of my way to learn Moonscript since I will not get company approval to work in it and I cannot train my coworkers on it just so they can learn to use Lapis. Already it was a stretch adopting Lua where I am and to be quite honest, I really haven't liked what I saw of Moonscript anyway. I don't want or need classes and its associated machinery, I particularly do not want semantic whitespace. I really hope to see more focus placed on making Lua proper a first-class citizen for the framework, including provided examples. Otherwise, Lapis does look like the right tool for the job and I liked many of the other decisions made over it.
- rudolf0 11y agoI use Moonscript and like it, but do not use the classes (partly for "leaky abstraction" and debugging reasons, partly performance concerns). I'm a fan of significant whitespace and most of the rest of its syntax sugar. The only part I dislike is the odd choice to use backslashes instead of colons for method calls. (I know leafo explained his reasoning many times in GitHub issues, but I still think there are some better alternatives.) I also like Coffeescript though. If someone doesn't like Coffeescript, they probably will not like Moonscript either.
- aviv 11y agoI'm really liking the results on my end as well. I currently use this same setup for the web/API side of things for a Freeswitch-based project with a large Lua codebase and the reusability factor is a great plus.