2 ms·
I don't question that Lua is a nice language, but it seems to be repeatedly implied in this thread that it is not possible to do this with other languages, alth
by slurgfest 14y ago
I don't question that Lua is a nice language, but it seems to be repeatedly implied in this thread that it is not possible to do this with other languages, although there doesn't appear to be any evidence for that.
Embedding Python in a web server is quite doable and has nothing to do with having libraries available.
I'm really not seeing why everyone should switch to Lua for these tasks. That is quite different from saying that people who like Lua shouldn't use it.
- justincormack 14y agoThe libraries thing is just you dont need the libraries, which are the main advantage. Python is a 3MB binary, while Lua is 175k, for a start. This is for Nginx which is 960k. Embedding something three times the size of the host is not really an embed... Lua is embedded in all sorts of stuff, Nginx, Apache, Redis in web space for example. Python is a great language, but just not a good choice for that. But feel free to give a Python embed a go.