As mentioned above, Lua is a do-it-yourself, a kind of environment. In addition, it is very fast and efficient compared to Perl / PHP / Python / Ruby, especially if you use LuaJIT. And it is very easy to integrate with C / C ++ code. Typically, these points are not related to a typical web application, where performance is usually limited by the database. In addition, where you do not really like the C / C ++ integration, and where you really do not want to do something yourself, but rather want to build on top of existing frameworks. For this reason, I do not think Lua is suitable for typical web applications. At the same time, there are some niche applications where Lua shines. For example, our company specializes in creating high-performance HTTP servers used for advertising. So we use our own HTTP server, written from scratch in C ++, which integrates Lua as a scripting language for our business logic. This allows us to quickly customize the business logic in Lua compared to what we had to do if it was pure C ++. At the same time, we always have the ability to make critical components in C ++. If we used any other scripting language, we would be sure that it would be slower, it would use more memory and, as a rule, it would be more difficult to integrate with C ++ code. At the same time, we donβt really care about the loss of extensive library support if we use other scripting languages, since the domain in which we work is quite specialized, therefore, in any case, these libraries have nothing to do with it.
Ilya Martynov
source share