Python, Lua, and ruby-large script P. K.

Source: Internet
Author: User

So which of the three ages is the best to use on your project? That depends a great deal on what you want to accomplish. to wrap up the book, I 've outlined some of the pros and cons of each language in this section. which of the three languages is more suitable for your project? It depends largely on what you want to achieve. At the end of this book, I will describe their respective advantages and disadvantages.Python pros and consAdvantages and disadvantages of PythonThe pros of Python are as follows: Python has the following advantages: · Python has more extension modules than the other extensions ages. · Python has more extension modules than other languages. · Publish online Python tutorials exist. there are also plenty of English books and reference materials, please sample scripts exist online, and there is a wealth of introductory material. the python.org website is a good place to start looking for these because it has sections for beginners, tutorials, guides organized by topic, and lists of links and references. · many Python tutorials can be found online. In addition, there are a lot of books and materials in English. Python.org provides many topic-based materials, tutorials, and programming guides for beginners. There are also many links and references. · Most folks really enjoy the syntax of the Python language because it appears clean and is easy to read .. many people like the syntax of the Python language because it is clear and easy to read. · Python has an edge where libraries are concerned. there are reading libraries, and, for the most part, they are well known ented. · python is dominant in support libraries because it has many libraries and most of them have comprehensive documentation support. · Lots of tools that tie into Python are available, and they are often easier to find than the tools for Lua and Ruby. · many tools can be used in Python, but it is difficult to find applicable tools for Lua and Ruby. The cons of Python are as follows: Python deficiency: · existing Python debuggers are considered quirky and slow. debugging support on Macintosh and between Les is even weaker. · The existing Python debugger is strange and inefficient. Debugging on the Macintosh (Apple Computer) and console is a nightmare. · It can be difficult to bundle Python with other ages. there are lots of binary DLLs, and Python has (compared to the other versions) a large standard distribution. · python is difficult to integrate with other languages. It has too many binary DLL files, and Python carries a huge standard release package. · Lots of folks really dislike the white space sensitivity of Python syntax .. similarly, many people do not like the syntax of Python that is sensitive to margin characters. · Python can be quite slow at times, as everything is an object on the heap. · because everything on the stack is an object, python is sometimes quite slow.Lua pros and consAdvantages and disadvantages of LuaThe pros of Lua are as follows: Advantages of Lua: · Lua is probably the fastest of the three versions and usually uses the least amount of runtime memory. · Lua is the fastest and least running language in these three languages. · Lau has the smallest memory footprint for bundling. · integrated Lua only increases memory usage by a very small amount. · The Lau c api is very well known ented and has good examples for integrating with C. · Lua's c API has complete documentation and good examples, and can be easily integrated into the software through C. The cons of Lua are as follows: Lua deficiency: · The documentation has improved but is still a bit sketchy overall. of the three versions, Lua it is probably the least has ented (the API being the exception), with the least amount of code comments. this makes for the largest ramp-up time to learn, and there isn't much in the way of introductory Lua material. · although the Lua documentation has been improved a lot, there are still some shortcomings. Among the three languages, Lua may have the least documentation (the API is an exception), because there are very few comments in the Code, which also increases the learning difficulty. In addition, there is no introduction to the nature of Lua. · There isn' t a lot of built-in functionality for Lua. there is little support if you need to create a large, complex application. · Lua has few built-in functions and does not provide sufficient support for creating large and complex applications. · Lua cocould use a better garbage collectorthe current development is moving towards that now. right now, Lua GC uses a very simple and traditional simple mark and sweep. · Lua should use a better garbage collection mechanism. Lua's current GC still uses a very simple and traditional "mark and clear" method.Pros and cons of RubyRuby advantages and disadvantagesThe pros of Ruby are as follows: Ruby advantages: · Ruby possesses fairly good advanced debuggers. · Ruby has an excellent advanced debugger. · Ruby is object oriented from the ground up, and programmers who are OOP enthusiasts or who are used to the OOP paradigm will find the language extremely comfortable. · Ruby is the most thorough object-oriented language. For OOP enthusiasts and programmers who are used to the OOP paradigm, they will find Ruby is the most suitable language for them. · Ruby has arguably the simplest syntax, with no real rules exceptions. especially true for OOP enthusiasts. · Ruby syntax is extremely simple, without unexpected rules, especially suitable for the habits of OOP experts. The cons of Ruby are as follows: Ruby's shortcomings: · Lack of English documentation. · the lack of English documentation is extremely high. · Fewer existing works and samples for games than with the other programming ages. · compared with other languages, there are much less work and instances in gaming.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.