Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python vs Lua for embedded scripting/text processing engine

Tags:

People also ask

Is Lua better than Python?

The Lua is better for game development but python does not provide good support for mobile games and applications. Lua is easier than the Python language but Python is popular and demanding language than the Lua language for beginners.

Why is Lua not more popular?

While Lua is still used fairly often in gaming and web service, it performed poorly in terms of community engagement and job market prospects. That being said, in spite of its age, Lua's growth has flat-lined rather than declined, which means that although it's not popular, it's not dying either.

Is Lua an embedded language?

Lua is a general-purpose embedded programming language designed to support procedural programming with data-description facilities.

Is Python embedded scripting language?

Disadvantages: Python has a large footprint; it was not designed as an embedded scripting language and it is not possible to forbid the interpreter from calling file system and process creation APIs.


For a project I'm currently working on, I'm looking to embed a scripting engine into my C++ code to allow for some extensibility down the line. The application will require a fair amount of text processing and the use of regular expressions within these scripts.

I know Lua is generally the industry darling when it comes to embedded scripting, but I also know it doesn't support regular expressions (at least out of the box). This is causing me to lean toward python for my language to embed, as it seems to have the best support behind Lua and still offers powerful regex capabilities.

Is this the right choice? Should I be looking at another language? Is there a reason I should give Lua a second look?