6 ms·
Really impressive feature additions since the first time I heard of it. Is Lua backend-able? I've been looking for a langage since PHP, the node ecosystem seems
by mysterydip 4y ago
Really impressive feature additions since the first time I heard of it. Is Lua backend-able? I've been looking for a langage since PHP, the node ecosystem seems too volatile to me.
- deleted 4y ago[deleted]
- paulclinger 4y ago> Is Lua backend-able? I'd say yes; I've been using it to develop https://github.com/pkulchenko/fullmoon https://github.com/pkulchenko/fullmoon, which is a redbean-based webframework written in Lua.
- ifyouhate 4y ago
- tomcam 4y agoFullmoon looks impressive and your README.md is very well written.
- paulclinger 4y agoThanks tomcam! There are still several sections that need to be completed (mostly around template processing), but getting feedback like this is always encouraging.
- jay_kyburz 4y agoThank you for ZeroBrane! I am a Love2D user!
- VWWHFSfQ 4y ago> Is Lua backend-able? Yes and some of the largest web infrastructures in the world run on it! I'm not sure if it's still true, but it's my understanding that CloudFlare runs it at the edge globally. I personally know of several other _very large services_ running it at massive scale. In my experience Lua in nginx is such a pleasure to work with. It's all transparently async using nginx's event loop. You just write regular procedural code in Lua and the runtime handles yielding/resuming for you automatically. There's no special async/await stuff. Just write your Lua code and the runtime figures out the yield points internally. It's a breath of fresh air. [0] https://openresty.org https://openresty.org [1] https://en.wikipedia.org/wiki/OpenResty https://en.wikipedia.org/wiki/OpenResty Edit: This was from several years ago, but CloudFlare built their WAF product on nginx/Lua: https://blog.cloudflare.com/cloudflares-new-waf-compiling-to-lua/ https://blog.cloudflare.com/cloudflares-new-waf-compiling-to...
- formerly_proven 4y agoLikely more because of Mike Pall's LuaJIT instead of the traditional reference implementation.
- adolph 4y agoIs Kong still OpenResty based?
- VWWHFSfQ 4y agoYes Kong is a custom distribution of OpenResty
- oliwary 4y agoLua also powers itch.io! [0] Leafo, the creator, has also built Moonscript [1], a language that compiles to lua, and Lapis [2], a web-framework for Lua and Moonscript. I am always fascinated by his productivity. [0] https://leafo.itch.io/ https://leafo.itch.io/ [1] https://moonscript.org/ https://moonscript.org/ [2] https://leafo.net/lapis/ https://leafo.net/lapis/
- christoph 4y agoYou're not alone. Maybe it's lack of knowledge on my part... but too much around node / npm, still seems like copy/pasting random incontations into the command line to try and solve whatever problem I have at a specific time. There is lot's of good in there, but somethings just don't work how you think they will. For instance, we've been building a totally static site recently in node/npm/js/posthtml and posthtml has a concept of "local variables". A project called posthtml-expressions in theory allows you to put "expressions" into "HTML" modules (if's, loops, etc.), but it only works with "globally" defined variables. i.e. you can't define a variable locally to a component, you need to define it "globally" in the project, which IMO defeats the whole purpose of the project. Nowhere is this easily explained or defined in their documentation. The first thing I want to do is define a property/attribute inline to a component, otherwise I end up with word soup of global variables - $page_1_title, $page_2_title, etc., rather than <component title="xxx">. Bizarre. No idea what the point is if I can't declare variables "locally" to said component? And this is the feeling I've got of lots of NPM packages - there is just no cohesion between things. I love the work people have done, it's literally saved me hundreds of man hours, but I've also spent untold hours wrestling with things that seem obvious to me, that should work, which frankly just don't work how I expect. Maybe it's me?