The pros and cons of Python, Lua, and Ruby
Python
Advantages of Python:
1. Python has more extension modules than other languages.
2. Many Python tutorials can be found on the web. Not only that, but also a large number of English books and materials. Python.org has a lot of information, tutorials and programming guides for beginners, as well as many links and references.
3. Many people like the syntax of the Python language because it is legible and easy to read.
4. Python has a big advantage in supporting libraries because it has many libraries, and most of them have well-documented support.
5. Many tools can be used in Python, but it is difficult to find a suitable for Lua and Ruby.
The lack of Python:
1. The existing Python debugger is weird and inefficient. Debugging under the Macintosh (MAC) and console is a nightmare.
2, Python is difficult to integrate with other languages, it has too many binary DLLs, and Python with a huge standard release package.
3. Similarly, there are many people who do not like Python-sensitive syntax for whitespace characters.
4, because anything on the stack is an object, Python is sometimes too slow to tolerate.
Luain
Advantages of Lua:
1. Lua is the fastest running time in these three languages and accounts for the least intrinsic
2. The integration of LUA will only increase the memory usage.
3. Lua's C API has a complete documentation and good examples that can be easily integrated into the software via C.
The lack of Lua:
1. Although Lua's documentation has improved a lot, it still has some shortcomings. In three languages, Lua may be the least documented (an exception to the API), because the code is rarely commented, which adds to the difficulty of learning. In addition, there is little introduction to the nature of Lua.
2. Lua has built-in features that are rare and do not provide sufficient support for creating large, complex applications.
3. Lua should use a better garbage collection mechanism, and LUA's current GC still uses a very simple and traditional "mark and purge" approach.
Rudy
Benefits of Ruby:
1, Ruby has an excellent advanced debugger.
2, Ruby is the most thorough object-oriented language, for OOP enthusiasts and programmers accustomed to using the OOP paradigm, they will find that Ruby is the most appropriate language for them.
3, ruby syntax is very simple, no unexpected rules, especially suited to the habits of OOP experts.
Ruby's weaknesses:
1, the English document is extremely lacks.
2, compared with other languages, the game has done a lot less work and examples.
The pros and cons of Python, Lua, and Ruby