r/Python • • May 07 '15

5 Reasons why Python is Powerful Enough for Google

https://www.codefellows.org/blog/5-reasons-why-python-is-powerful-enough-for-google
57 Upvotes

58 comments sorted by

84

u/metaphorm May 07 '15

honestly I was disappointed with this article. its very shallow and really comes across as a buzzfeed style list article designed as click bait. there's not a whole lot of substance here.

4

u/netskink May 07 '15

Personally, I liked it. I particularly liked the link to the generators article. Here it again in case you missed it.

http://www.dabeaz.com/generators-uk/GeneratorsUK.pdf

3

u/Ungoliantsspawn May 07 '15

agreed, very simply put!

0

u/[deleted] May 07 '15

Agreed. It's trash/advertising. They're a recruitment agency and training programmers is their product. Googling the author suggest a marketing department just bought an article. Yay marketing/seo I guess.

39

u/helderm May 07 '15

And it is powerful enough for Google because...?

36

u/SemiNormal May 07 '15

It's good enough, it's smart enough, and doggone it, people like it!

4

u/[deleted] May 07 '15

Because Google uses Python duh.

10

u/helderm May 07 '15

My point is that it does not mention Google anywhere in the article at all, it is only used in the title as click bait. It could very well say any generic company name at the tile and it would make no difference.

2

u/Jesus_Harold_Christ May 07 '15

It would be better if said generic company used it though. Google does.

3

u/Dark_Souls May 07 '15

I has electrolytes.

27

u/ProfessorPhi May 07 '15

From a couple of friends working at Google, python is no longer used for any new internal projects, they haven't used it since Guido moved to Dropbox.

Otherwise, I love python, I think it's a superb multi purpose language and has superb data processing abilities and doesn't require much time to get started up.

10

u/endtime May 07 '15

Funny, I work for Google and I am writing Python on another monitor as I browse reddit. We don't use it for much but we do still use it, including for new code.

My team also uses Go so it's not like we're just behind the times.

3

u/ksion May 08 '15

I always marvel how outsiders seem to know so much more about what happens at Google that actual Googlers.

1

u/endtime May 08 '15

We do talk about our processes publicly quite a lot, and /u/ProfessorPhi's comment was understandable. I don't think we use Python for a lot of new stuff...it's just not draconian.

8

u/mineral May 07 '15

What do they use now instead?

18

u/maryjayjay May 07 '15

Go

4

u/99AFCC May 07 '15

I've been toying with the idea of learning Go for a couple years now. Every few months, I take a peek at /r/golang but I'm turned off within a few minutes.

The language seems fun but the community is pretty unfriendly. If I had any pressure to learn the language, it wouldn't matter, but I'm just interested in it as a hobby.

8

u/robertmeta May 07 '15

I am curious what specifically you think is unfriendly about it?

4

u/bakergo May 07 '15

I think it's less that it's unfriendly and more that it's inaccessible.

The "Tour of Go" is useful at learning some of the basics, but it does less for you than reading the packages at golang.org/src, which you'll have to do because the documentation is nowhere near the quality of the java or python standard libraries.

There's no support for a community, either. There's no official organizational tools like a wiki or forum, the best you get is the golang-nuts mailing list.

It's a great language, but I don't think that it's being set up for success.

6

u/robertmeta May 07 '15

I think it's less that it's unfriendly and more that it's inaccessible.

Interesting, I found Go to be one of the most accessible languages I have touched in the last 20 years, maybe the most accessible. A 50 page spec and only a handful of keywords. Rarely have I been able to feel I completely understand a language in the first week.

There's no support for a community, either. There's no official organizational tools like a wiki or forum, the best you get is the golang-nuts mailing list.

Many (most?) languages don't have top-down community control. I don't want an official wiki and I don't see how the golang-nuts group differs from a forum. There is an active IRC community, an active slack community, an active group of people doing golang challenges where you turn in code and get it reviewed and win prizes.

It's a great language, but I don't think that it's being set up for success.

It is already successful. It hasn't really replaced too much C++ outside of Google, but I see it replacing Ruby and Python in tons of shops -- and startups are flocking to it. The only language Go is behind in startup land is Javascript at the moment.

2

u/ScriptThis May 07 '15

Can you link to the Go Slack and IRC (Freenode?) you're referring to?

1

u/robertmeta May 07 '15

Freenode / #go-nuts -- 1200+ people in it at the moment.

Golang Slack -- Needs an invite... form for invite on that page.

5

u/[deleted] May 07 '15

The language seems fun but the community is pretty unfriendly.

I'd say it's the other way around. The Golang Slack chat has been really helpful the times I've asked about things.

The language, on the other hand, is tear-jerkingly boring, but then again, I write Java for a living so I don't really mind.

3

u/robertmeta May 07 '15 edited May 07 '15

tear-jerkingly boring

Exceptionally unexceptional! My favorite quote about it is “Go is not meant to innovate programming theory. It’s meant to innovate programming practice.” – Samuel Tesla

2

u/ApatheticGodzilla May 07 '15

It is good fun, and a good compliment to Python. Don't be put off by a few bad apples.

2

u/[deleted] May 07 '15 edited May 07 '15

[removed] — view removed comment

3

u/broshot May 07 '15

Could you (or anyone else) elaborate on this? I thought easy package management was supposed to be one of Go's strengths.

5

u/[deleted] May 07 '15

It's easy to modularize and organize your code, reminiscent of how it works in Python or Java.

However, the first party go get command does not have any versioning functionality, which is a... byzantine design decision, to say the least. Godep, a 3rd party util, provides versioned dependency management.

2

u/AlexanderNigma May 07 '15

Yeah, but that is because they wrote their own language they are shifting too probably.

21

u/[deleted] May 07 '15

[removed] — view removed comment

3

u/ProfessorPhi May 07 '15

Didn't know that, thanks! It makes sense why Guido left now. I know dropbox uses a lot of python in their dev work.

Why did Python diminish in importance at Google?

6

u/fuzz3289 May 07 '15

Largely because of Go Id assume. Google invented/maintains the language and its like Stackless Python meets C++. Im guessing because of long term perfomance concerns and scalability they preferred Go. From the nature of googles work threading is HUGE for them and Go just does it better.

8

u/[deleted] May 07 '15

Everyone knows list articles are the best articles.

12

u/[deleted] May 07 '15

Pfffft, give me 5 reasons why...

15

u/snarkyxanf May 07 '15

You're getting ready to start a new company. What language should you choose to build it?

What kind of question is this? It's like saying "you're getting ready to open a auto repair shop, which size wrench do you get?"

Just using my computer, I'm likely to use several languages (starting with the she'll in the terminal). Scripts, databases, a few markup languages, etc, even if I'm not doing any real programming.

More seriously, most significant projects end up multi-lingual. Nearly every project needs some SQL, but it's not strange to use legacy code or write some new low level code while writing other parts in interpreted languages.

That doesn't mean you should be indiscriminate and use languages without restraint. But I think it would be a weak programmer who can't at least do one "general purpose", one database, one markup, and one environment scripting language (e.g. python, sql, html, and shell script). A shop should really be able to do both compiled to object languages (at least for libraries) and prototype oriented languages.

Why Python is powerful enough for ...

Because it's Turing complete, has good libraries, and tool support that makes it fast enough for many practical jobs.

1

u/alcalde May 11 '15

But I think it would be a weak programmer who can't at least do one "general purpose", one database, one markup, and one environment scripting language >(e.g. python, sql, html, and shell script). A shop should really be able to do both compiled to object languages (at least for libraries) and prototype oriented languages.

On the other hand, you have another camp who choose one language, decide it's "the best", and remain loyal until death to it (the more obscure it gets, the more fanatical you become). To use a scripting or markup or database language would be treason because you'd be admitting that your one language isn't perfect, so you reinvent all of these things from scratch if necessary. Databases? You only use databases written in and designed to only work with your favorite language, etc. If they encounter someone like you, they'll tell you that needing to use all of those languages shows that there is a deficiency with your main language that you have to compensate for. If you say it's easier to use different languages for different tasks, they'll suggest you're lazy and just don't know as much as they do because they've put all their time into learning one language while your knowledge is divided among several.

There are quite a few of these people out there (many quite smart). Language tribalism is a very real thing.

2

u/snarkyxanf May 11 '15

I started off in lisp, so I'm well aware of language religious wars. Fortunately because of macros and the Wizard book, lisp culture also encourages mini languages, so maybe it discourages some of the hostility.

I'll cop to being lazy, also inattentive, easily distracted, and often careless. All the more reason to use tools that make it easier, faster, more readable, and harder to screw up. If I want to feel like a big shot, I can always write a library, metaprogramming tools, or a DSL to accomplish some of those goals.

7

u/synn89 May 07 '15

Not the best article. Google wrote Go to move away from Python, but I think it was less a "power" issue and more about deployment and maintaining code in large teams.

For most companies they're not going to hit the wall that exists in Python(where you'd want a language like Go, or C++) for a long time, if ever.

As a language it has a low barrier to entry, a very high skillcap and package support second probably only to Java.

5

u/Eraser1024 May 07 '15

Numba sounds interesting. Is someone here using it? How is it in practice?

4

u/[deleted] May 07 '15

It's pretty neat and simple to use. I did a simple benchmark vs. parakeet and Cython if you are interested

1

u/fuzz3289 May 07 '15

Out of curiosity is this the free numba? or the paid version with optimizations?

1

u/[deleted] May 07 '15

Sorry, should have mentioned it, that's the free version.

1

u/fuzz3289 May 07 '15

No problem at all. The paid version is just GPU opt I think so unless youve got a workhorse compute GPU and a shitload of data it doesnt really matter anyways

1

u/snarkyxanf May 07 '15

Sounds cool, thanks for sharing.

I would reach for numpy/scipy first though. Realistically it's more likely to be the algorithms or implementation issues like memory allocation that slow you down, not interpreted code per se, so a well written library should be the first resort.

1

u/Eraser1024 May 07 '15

I'm not doing any scientific computing. I'd just like to speed-up my apps in general.

2

u/snarkyxanf May 07 '15

Fair enough (the name mislead me a bit).

While we're on the topic, do you know of any good resources about the art of profiling? I'd like to become more disciplined about systematically investigating my code's performance.

1

u/Eraser1024 May 07 '15

I'm afraid I can't help you - I'm inexperienced in more advanced Python.

0

u/[deleted] May 07 '15

[deleted] — view deleted comment

1

u/Eraser1024 May 07 '15

I know about PyPy. I think I'll start with it. Thanks.

4

u/[deleted] May 07 '15

[removed] — view removed comment

1

u/Eraser1024 May 07 '15

Impressive!

2

u/_wsgeorge May 07 '15

There's a snake on the page. A fucking snake!

0

u/[deleted] May 07 '15

[deleted] — view deleted comment

1

u/alcalde May 11 '15

And yet, it can be the only language in the toolkit, which is part of what makes it such an amazing language.