Busy making things: github, links, photos, @mc.

Q&A With Greg Stein

Posted: March 25th, 2005 | Author: Matt Croydon | Filed under: Python | 34 Comments »

My notes on the Q&A after the keynotes are a bit rougher, so I’ll summarize.

Guido asked when they would open source their (really cool sounding) built system. Greg said that the build system, like a lot of the stuff they use doesn’t make a whole lot of sense if you aren’t running on top of their google platform. Later in the Q&A Greg noted that when they perpare bits of code for release as open source the software usually gets better in the process. They also have some people working on untangling some bits from the google platform for release, so keep an eye on code.google.com

Someone brought up Boost.Python, which is said to handle templated C++ code better. Greg was unaware of it, but they seem quite happy with SWIG for exposing C++ code to Python.

Someone else wanted to know if they used Python for network monitoring and SNMP. Greg said that the ops guys keep a close watch on the traffic and that he usually has to inform them in advance when he needs to transfer “big” files.

Alex Martelli, who starts working at Google in 3 days, wanted to know how SWIG dealt with templated code. It’s not great, but there are ways to get around simple templating.

Another audience member wanted to know what Greg thought was missing from Python and what could be done about it, and how google dealt with programmers that feel more comefortable in c++ or Java. The first question was answered by the fact that they hired Alex. It was also interesting to learn that they run Python 2.2 on their servers. They would like to upgrade to 2.3, but that’ s a non-trivial task. Each engineering team decides what language they work in, and that’s not a huge problem because they make use of SWIG to cover the C++/Python bridge and they make extensive use of RPC so that it doesn’t matter what language each little bit is written in.

When asked about how many engineers work at Google, Greg pointed to the public numbers, but wasn’t able to break it down further. A couple hundred perhaps.

Google uses a derivative of Bugzilla for their bug tracking, but they would like something better, and are investigating other options.

Everyone seems to equate Python with slow, but that hasn’t really been a problem with Greg or Google. When eShop got bought by Microsoft a lot of Python code was rewritten in ASP/COM and the resulting code was slower than Python.

When asked about the total number of lines of code written in various languages, Greg reckoned that there were probably more lines of C++ than anything else, followed by Python and then Java (Blogger is written in Java).

David Asher asked Greg about a patch to Python 1.4 a few years back and how that might be useful in the future with multiprocessors becoming so popular. Back in 1996 Greg patched Python 1.4 to remove the global interpreter lock and keep track of things that needed to be locked in other ways. His patches worked great on a single processor machine, 2 processors was a bonus, but once you got to 3-4 processors it was slower. He hasn’t run in to trouble with the global interpreter lock at google.

Google doesn’t have debugging tools per se, but they do extensive logging (Greg likes “print”) and have good tools to analize those logs.

Greg’s work projects include code.google.com as well as some internal stuff. For fun he works on Subwiki (in Python of course) along with the ton of other projects that he’s worked on over the years.

They didn’t use an off the shelf web application framework for code.google.com, they built on top of the Google http server written in c++. GMail was written in C++ not Python.

When asked how they stage, Greg said that they can route a small amount of traffic (say 1%) to “Canary Servers”. If these servers don’t fall over, they can slowly pump more traffic to the new version but can easily and quickly set a previous version as the live version.


34 Comments on “Q&A With Greg Stein”

  1. 1 e28a6fba6989 said at 5:18 pm on May 15th, 2008:

    e28a6fba6989…

    e28a6fba698925ea81f5…

  2. 2 Ellan Denes said at 2:53 pm on November 8th, 2010:

    This weblog seems to get a great deal of visitors. How do you get traffic to it? It offers a nice unique twist on things. I guess having something useful or substantial to give info on is the most important thing.

  3. 3 Aaron Gullo said at 9:21 am on November 13th, 2010:

    This may be the other point you shouldn’t notice touching on if this was not important to me.

  4. 4 hardtail mountain bike said at 11:29 am on November 15th, 2010:

    I have to point out that I don’t agree with some of the things you say however I have to come to terms with and agree that you have built a terrific info site!!!

  5. 5 ecig said at 4:30 am on November 18th, 2010:

    Thanks for the helpful info! I would not have discovered this myself!

  6. 6 full oyun indir said at 9:44 am on November 20th, 2010:

    very good \o/

  7. 7 Christoper Esche said at 5:15 am on November 30th, 2010:

    hey this is awesome and then again here is another great resource, please check it out and lmk your feedback when you can,thanks a lot. i appreciate ya.

  8. 8 Bridgette Roderman said at 10:51 am on December 16th, 2010:

    More good stuff!

  9. 9 asian wedding photographer said at 4:19 pm on December 24th, 2010:

    I should say it is my first time viewing your site. Now this is the kinda of stuff i like to read about. Good website. I just finished mine and i was looking for some ideas and you gave me a few. Great read!

  10. 10 Alejandro Hummons said at 10:35 pm on January 22nd, 2011:

    You made a number of nice points there. I did a search on the topic and found the majority of persons will consent with your blog.

  11. 11 propecia said at 4:43 pm on January 24th, 2011:

    Really and as I have not realized earlier

  12. 12 tutoring jobs said at 6:26 am on January 27th, 2011:

    Is there something wrong with the sidebar? Looks wrong to me.

  13. 13 Lillie Gail said at 12:39 am on January 30th, 2011:

    For most people experiencing a divorce, the weight of emotional concerns can blur the practical issues that surface in every marriage dissolution. Finding the RIGHT attorney is vital in this process.

  14. 14 HpZAQa said at 12:45 pm on February 1st, 2011:

    pUZVaK

  15. 15 Oliver Flato said at 11:03 pm on February 1st, 2011:

    This weblog seems to recieve a great deal of visitors. How do you promote it? It gives a nice individual spin on things. I guess having something real or substantial to post about is the most important factor.

  16. 16 diamond earrings said at 1:05 am on February 6th, 2011:

    can u trade me that rotom from greatencounters i have ever rotom ever made except that one

  17. 17 all saints dress said at 4:09 pm on February 7th, 2011:

    glorious work man, preserve writing the identical manner

  18. 18 Dell said at 5:21 pm on February 8th, 2011:

    Unquestionably fascinating concept for me .
    Will you post some far more ? coz i need to follow ur twitter or facebook

  19. 19 Justin Bieber said at 5:49 pm on February 8th, 2011:

    Keep up the great job bro.Your content is basically tremendous and i honestly loved browsing it.Waiting for some additional fine posts like this from you with the coming days.

  20. 20 Beyonce said at 6:09 pm on February 8th, 2011:

    I’m tech savvy but shoot i didnt even know about this! solid information.

  21. 21 Hilario Blomme said at 2:37 pm on February 9th, 2011:

    WONDERFUL Post.thanks for share..more wait .. …

  22. 22 budapest reseguide said at 12:51 pm on February 10th, 2011:

    continue with the the good work on the site. I appreciate it. Could use some more frequent updates, but i’m sure you got more or better stuff to do like we all do. =p

  23. 23 Paketresorna said at 5:41 pm on February 10th, 2011:

    kinda liked the article you published . it just isn’t that easy to find great posts toactually read (you know.. really READ and not simply browsing through it like a zombie before going somewhere else), so cheers mate for not wasting any of my time! ;)

  24. 24 Lady Gaga said at 8:36 am on February 11th, 2011:

    I agree with your article. Can I quote this piece of writing on my blog?

  25. 25 Lady Gaga said at 9:24 am on February 11th, 2011:

    Thanks for the new blog sharing. It can be honestly a time made version. I love the content material shared.

  26. 26 Steven Seagal said at 2:01 pm on February 11th, 2011:

    Not every person will agree, but I presume you make a decent point.

  27. 27 dell coupons said at 4:19 pm on February 12th, 2011:

    Seriously? Is post an attempt at a joke? I must be missing a thing right here…

  28. 28 zero friction marketing said at 5:49 am on February 13th, 2011:

    You made a few good points there. I did a search on the matter and found most folks will consent with your blog.

  29. 29 kids-tory-burch-flats said at 4:22 am on February 14th, 2011:

    cheap tory burch shoes …

    Saletoryubrchon.com provide good quality and best price for cheap tory burch shoes products, there offer tory burch boots,tory burch sandals,tory burch flats,tory burch handbangs sale, tory burch wallets for free shipping. …

  30. 30 tory-burch-new-arrival said at 4:31 am on February 14th, 2011:

    cheap tory burch shoes …

    Tory Burch is developing faster and faster.Tory Burch Boots become more and more fashional.More and more people prefer to wear shoes like this.Tory Burch is an attainable, luxury, lifestyle brand defined by classic American sportswear with an eclectic …

  31. 31 Paris Reseguide said at 10:16 am on February 14th, 2011:

    i’ve checked this site a couple of times now and i have to tell you that i find it quite great actually. it’ll be nice to read more in the future! =)

  32. 32 Randi Books said at 12:34 pm on February 14th, 2011:

    Magnificent site. Lots of useful information here. I’m sending it to some friends ans also sharing in delicious. And certainly, thanks for your sweat!

  33. 33 Resor said at 5:24 pm on February 15th, 2011:

    really enjoyed the post you wrote actually. it just isn’t that easy to find good posts to read (you know really READ and not just browsing through it like a zombie before going to yet another post to just ignore), so cheers mate for really not wasting any of my time! :D

  34. 34 Harold Kermes said at 12:49 pm on February 21st, 2011:

    I have been examinating out some of your posts and i must say pretty clever stuff. I will definitely bookmark your website.