Introduction to the hot discussion of the Python language in the development community

Source: Internet
Author: User

After a long period of development, many users are familiar with Python's actual application operations. Here I will share my personal understanding and discuss it with you. I hope you will gain some gains by reading the following articles. The application and development community of the following Python language is a hot topic.

Collin Winter is an influential developer in the Python community. He was one of the core developers of the CPython project and the core developer of Unladen Swallow, participated in the development of many Python projects. Recently it is rumored that Google will restrict the use of Python in its new project. For this reason, some developers expressed in K) publicly asked Collin Winter in the Google forum, collin Winter answered many acute questions. This post also attracts many high-quality posts.

Google will limit the use of Python in its new project, which will undoubtedly greatly reduce the support for Python code and Python. Is it true or is it just rumor?

Collin Winter: indeed, Google will restrict the application of the Python language because Python is not as fast as Java and C ++, And the thread occupation and memory usage are very high when developing a new system using Python, we know what the system will do if the load is increased by 10 times or 100 times, and how bad the developed service will be. I think Python has developed into a slit, therefore, we should weigh the advantages and disadvantages of the choice. Maybe developers can use Python very efficiently, but as the system grows, there will be many platform-level performance restrictions.

  • How to Implement Python in C
  • Effect of Python environment Initialization
  • Python string operation manual in practice
  • Three application solutions in Python logic operations
  • Describes the operability of the Python Programming Language

Will Unladen Swallow change all of this? What are your expectations?

Collin Winter: Unladen Swallow aims to use Python in as many places as possible that it is not currently involved, and Unladen Swallow is not a panacea. If no one has invested in Python, Python will still be slower than C and Java, occupying more memory and threads. I hope that the developer's attention to Python will form a virtuous circle: the more developers are interested and the more companies are interested, the more investment is injected, to develop more Python resources.

I think the best thing about Python and other dynamic languages is that many developers work on different subsystems, but they all work on the same code base. The C or C ++ languages are different. The more developers participate, the more fragmented the code base. From this perspective, dynamic languages are easier to operate in sandbox. This agility and flexibility are important features of the Python language.

Python is indeed slower than C and Java, But it compares v8 JavaScript Engine, is it a competitor of the latter?

Collin Winter: I think applications like CPython cannot be as fast as V8 or SquirrelFish Extreme. After all, the latter two are designed for speed. We have also encountered some high-speed performance optimizations, but it is difficult to configure them in CPython, so we can only give up. As an open-source project, CPython and V8 have different focuses: CPython emphasizes simplicity, that is, a simple and slightly slow kernel for people to maintain in their spare time.

I have a high expectation for another Python project, PyPy, and hope it can get rid of the limitations of C-level backward compatibility and provide long-term performance solutions. But this wish may take ten years.

Why does Python take care of people's maintenance in their spare time?

Collin Winter: CPython developers are rarely paid, and almost all of them are volunteers, while Ruby developers can obtain funds from sponsors such as EngineYard, so when they realize that the MRI servo web application is slow, they can better develop their VMS. This also determines that the things we develop take care of the needs of most people.

A Leon Sit developer adds here: I think CPython is not doing well in the aspect of digital code when the system grows. CPython depends on the C editor, but Windows does not have the C editor. To speed up CPython, print information needs to be added, and the syntax involved is not the standard syntax of Python.

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.