6 ms·
Google still does primarily use C++.
by marssaxman 13y ago
Google still does primarily use C++.
- cbsmith 13y agoGoogle is so huge now, I'm not sure if that is really something that you can state unequivocally. The search engine and a lot of the plumbing that everything is built on top of is written primarily in C++, but there is a TON of both Java and Python code there (and that's not counting things like Go and specialized languages like the infamous Sawzall). Back in the day (particularly before they started doing ads), almost everything was C++.
- tonyedgecombe 13y agoNot only that but the scale of Google drives decisions that may not make sense for the rest of us.
- pjmlp 13y agoIf you ever worked in the enterprise environment of Fortune 500 companies, they are actually quite understandable.
- acchow 13y agoOnly tools, one-offs, and small internal products at Google can use Python. In general, for production it is disallowed (with exception of YouTube). They learned with YouTube that Python doesn't scale well to hundreds or thousands of developers. Even Mondrian, the code review system started by Guido and written in python, was replaced by something more scalable.
- cbsmith 13y ago> Only tools, one-offs, and small internal products at Google can use Python. Also YouTube (you may have heard of it). > with exception of YouTube Oh, you have. ;-) You didn't mention java though... there's a TON of stuff in Java at Google.
- acchow 13y agoYeah, I'd say Java and C++ are about equally prevalent at Google. A lot of the older products and core infra is still C++, and a ton of new stuff is Java (See: Android).
- pjmlp 13y agoGiven the choice C++ is way better than C, given that it allows to use higher level abstractions and replace all unsafe C heritage by library based safe constructs. Of course, the best option would be to replace them by other languages with native compilers. However at the level these languages are used, it will only happen when OS vendors push new languages for their OS. So it will never happen in UNIX land or Mac OS X land. In Windows land, Microsoft is pushing for C++ and C++/CX, maybe C# if they ever decide to offer a full native compiler, like the Bartok one. The embedded market OS vendors are all about Ada, C and C++. A few do offer Basic, Pascal and Oberon, but are very small niche. So there isn't any OS vendor left that would push new system programming languages for their OS. For business programming, there are already plenty languages to chose from.
- cbsmith 13y ago> Given the choice C++ is way better than C, given that it allows to use higher level abstractions and replace all unsafe C heritage by library based safe constructs. You may have noticed that C++ is not always deemed universally better than C. What language are all the top web servers implemented in? C has library based safe constructs as well, and C++ still has all of C unsafety. You just get to exercise those bugs at a higher level of abstraction. > Of course, the best option would be to replace them by other languages with native compilers. I think that is anything but clear. Certainly the option of doing so has been around. You just don't see a ton of big moves that worked out well. > However at the level these languages are used, it will only happen when OS vendors push new languages for their OS. Most OS's actually have a pretty small API footprint (Windows being the obvious outlier). If it were really just about the language bindings, it would not be a real impediment. A language runtime can abstract out the OS (as the C runtime does). > So there isn't any OS vendor left that would push new system programming languages for their OS. I'm going to claim this could well be a function of Darwinian forces.
- pjmlp 13y ago> You may have noticed that C++ is not always deemed universally better than C. What language are all the top web servers implemented in? Apache and nginx => C Tomcat, Jetty => Java IIS => C++/C# > Most OS's actually have a pretty small API footprint (Windows being the obvious outlier). If it were really just about the language bindings, it would not be a real impediment. A language runtime can abstract out the OS (as the C runtime does). If developers aren't forced to use it, then they won't use it, even if made available. > I'm going to claim this could well be a function of Darwinian forces. That is my hope, after all we only need a few generations of developers and then the issue is taken care of by itself.