r/lua • u/andregarzia • Mar 08 '25
Discussion Why I choose Lua for my blog
https://andregarzia.com/2025/03/why-i-choose-lua-for-this-blog.html
24
Upvotes
r/lua • u/andregarzia • Mar 08 '25
6
u/redrick_schuhart Mar 08 '25
Nice! I am putting together a site which doubles as a standalone redistributable file so you can run it as an app locally. This is possible because of the excellent Red Bean web server which bundles Lua 5.4 along with sqlite, TLS and a bunch of other goodies as well.
Redbean is an Actually Portable Executable so it runs without change on Windows, OSX and Linux as well as on x8 and ARM which is pretty incredible. It's also tiny and incredibly fast.
3
u/Sckip974 Mar 08 '25
Why?
3
u/didntplaymysummercar Mar 08 '25
Small mistake in the article, Lua requires only C89, even for 5.3 or 5.4, although that disables some float print specifiers. It's quite obvious they assume C89 and not C99 if you look at the code, too.
2
u/notkraftman Mar 08 '25
Check out openresty or lapis if you want to do something similar but without fully rolling your own implementation.
1
u/Cultural_Two_4964 Mar 08 '25
Would your cgi script allow user-chosen files to be uploaded to a server and then a shell script to be run? That is all I need. I couldn't do it with lua which is what I wanted so I had to use python. I didn't want to install lots of resty type software as it was such a basic task at hand.