My Opinion on "Google restricts Python"

Source: Internet
Author: User
I should have learned the style of perreman's predecessors as a diligent codoon. "perreman repeatedly said that he has withdrawn from the field of mathematics and no longer considered himself a professional mathematician. "

However, since Gtalk jumps out of many friends -- writing PHP and writing JAVA -- I am very happy to tell me that there is a news on the great csdn:
[Exclusive] Google will limit the Python language application development community hot discussion http://news.csdn.net/a/20091116/214803.html

In addition, many cainiao wrote in ignorance that "my heart is broken. "

I can't be calm for a long time.

Write something.

But first make an advertisement and I am selling Python space http://stdyun.com/vhost.

Small-scale sales began in November 11. Currently, 11 products have been sold, and a few have been reserved. It is still far from the target of selling 50 machines, however, it is very close to selling 30 new servers in the second data center :)

Since csdn editing and translation is very, very, very bad-it is out of context, and the word is not righteous. In addition, it does not understand python.

Let's take a look at the original post http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e

The original post is on the unladen swallow forum. Unladen swallow is a branch of Python and is composed of a group of developers from Google.

Let me translate a short article:

KgN
I'm told that Google employees are being discouraged from using python for new projects,
Which seems silly given how much Python code and Python support comes out of Google.
I 've hunted for more information but haven't found any.
Do you know any details, or is this just a rumor?

I heard that Google does not encourage employees to use python in new projects.
It sounds silly for Google to move so many Python code and Python support.
I want to gossip about it again. Unfortunately, I didn't find any news.
Do you know more details, or just rumors.


Collin winter

Well, simple common sense is going to limit Python's applicability when operating at Google's scale:
It's not as fast as Java or C ++, threading sucks, memory usage is higher, etc.
One of the design constraints we face when designing any new system is,
"
What happens when the load goes up by 10x or 100x?
What happens if the whole planet thinks your new service is awesome?
"
Any technology that makes satisfying that constraint harder -- and I think Python falls into this category -- * shocould * be discouraged if it doesn't have a very strong case made in its favor on other merits.

You have to balance Python's strengths with its weaknesses:
Your engineers may be more productive using python,
But if they have to work around und more platform-level performance/scaling limitations as volume increases, do you come out ahead?
Etc.

Well, obviously, some defects will limit Google's use of python in large-scale projects:

Not as fast as Java or C ++, bad threads, high memory usage, and so on.

When we start designing any new system, we need to face the following problems:

What will happen when the load is increased by 10 times or 100 times?

What will happen when the world is amazed at your new applications?

In the face of such a difficult challenge, it would be hard to satisfy any technology-and I think Python also belongs to this type-if there are no special application scenarios, "Should" be "not encouraged to use it in other ways.

You need to weigh the advantages and disadvantages of Python:

Your engineers use python for higher productivity.

However, as the pressure expands, can you take the lead (problem) when you have to face more performance/scalability at the platform level?

And so on.

--------------------------------------------------------------------

Comments:

So far, we can see that these two people are talking about it-the general idea is that python is not omnipotent, everything is worth balancing-it has nothing to do with the title of the title party.

This is just nonsense-No pythoner ever thinks python is omnipotent-python is our great glue-but many cpper and javaer think their gods are omnipotent.

--------------------------------------------------------------------

Then, read the following email. The csdn editor does not understand python, cython does not understand what cython is, and it is confused with cpython.

Cpython is the official interpreter of Python.

Cython uses Python-like syntax to write c extensions to Python.

Cython is a language that makes Writing C extensions for the Python language as easy as Python itself. cython is based on the well-known Pyrex, but supports more cutting edge functionality and optimizations.

Cython is a language that makes it as easy to use C to write extensions to python as to write python. Cython evolved from the widely known Pyrex, but it has more conversion functions and optimizations.

In fact, Python + cython is a great combination, as Tom machinski said

"""
Specifically, if an engineer wishes to pursue a performance-intensive
Project in Python, why not tell him to use cython (or Python with some
C extensions) rather than force him to a completely different language
Like java or C ++.

An engineer who picks python as his first choice is probably familiar
Enough with the language to utilize cython/C-extension extends tively,
And wowould probably rather do that than use any of those completely
Different versions. As a bonus, Google gets a tool that's probably
Easier to maintain than your common C ++ codebase.

Specifically, if an engineer wants to pursue performance in a python project, why not tell him how to use cython (or Python and some C extensions ), instead of forcing a completely different language, such as Java or C ++.
  
A pythoner programmer is familiar with the use of cython/C extension to pursue efficiency. In addition, this may be more appropriate than other completely different languages.

At the same time, Google can also get a tool that is easier to maintain than the C ++ code library.
"""

Of course, in general, cython optimization does not have much effect, so you can use it to encapsulate some bottleneck functions. More often, it is used to convert the C library into a python library.

============================================

Okay, let's stop talking about it.

Chuang Tzu's Xiaoyao game has the cloud:

And the accumulation of water is not thick, the boat is also powerless.

When a cup of water is covered above the bucket, the mustard will be the boat;

Set the cup to glue, and the water is light and the boat is big.

The accumulation of the wind is not thick, then its negative wings are also powerless.

Therefore, wind is down for 90 thousand miles,

Then it is the current training; bear the Qingtian and Mo's neighborhood, and then it is the southern part of the map.

If you are qualified to design such a large application, you can give your finger at it. If you write a website in Python, the website's PV is several kw a day.

How does Google do it? It's just about bragging about resources. What's more, the father of python is still Google.

Now -- what should we do.

I criticized csdn and misled me to study c ++ template, wasting a year and a half.

Alas, I wasted my youth again in the war of words...

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.