Live data from Hacker News

Google Is 2B Lines of Code, All in One Place

wired.com

111–120 of 347 posts

Re: Google Is 2B Lines of Code, All in One Place

#111
post #38

Earlier quoted context omitted.

I don't think I'm leaking anything by saying that that article about Google is incorrect. Mercurial isn't used at Google, not anywhere I've seen. Probably that article has something to do with the now-defunct Google Code site, which did in fact use Mercurial.

Google devs are working (with some help from Facebook) on getting hg into Google, but they're not there yet. Look at all the work that Google has been putting into hg. It's not purely out of the goodness of their hearts: https://selenic.com/hg/log?rev=@google.com&revcount=200 I always see a lot of Google and Facebook at the Mercurial sprints.

I can't comment on what Google might be doing in the future with RCS. Well, I can't comment but also don't know. I personally like hg.

But if I were to take a poll of the informed and opinionated engineers sitting around me, they would almost all likely take git over hg.

In any case, git is in actual widespread use _now_ at Google, for Android and Chrome, and other open source stuff (some of which was moved recently from code.google.com to github).

Re: Google Is 2B Lines of Code, All in One Place

#112
post #4

Comparing "Google" to Windows isn't really a fair comparison. I'm sure all of the code that represents products that Microsoft has in the wild far exceeds 2B lines.

Note that this is just the monolithic repository. Google also has other non-piper repositories containing hundreds of millions of lines too :P For example, android and chrome are git based. Note also that when codesearch used to crawl and index the world's code, it was not actually that large. It used to download and index tarballs, svn and cvs repositories, etc. All told, the amount of code in the world that it coul…

I'm still trying to figure out why having everything dumped in one big pile is something worth bragging about. I'd far rather have code sorted well into proper repositories.

Re: Google Is 2B Lines of Code, All in One Place

#114
post #109

Just because people are talking about it: I work at MSFT, and the numbers Wired quotes for the lines of code in Windows are not even close to being correct. Not even in the same order of magnitude. Their source claims that Windows XP has ~45 million lines of code. But that was 14 years ago. The last time Windows was even in the same order of magnitude as 50 million LOC was in the Windows Vista timeframe. EDIT: And, r…

So, how many lines of code does it have?

Re: Google Is 2B Lines of Code, All in One Place

#115
post #104
post #100

Earlier quoted context omitted.

Google has been around for 17 years and employees roughly 10,000+ software developers. I think it's reasonable to assume that the 2B LOC metric is accurate...

Windows has been around for 35 years and Microsoft had 61,000+ employees (ok, that’s not only software developers and they don’t work only on Windows) in 2005; and it’s only ~50M LOC. I don’t think the number of years + developpers really show something; you don’t write new code everyday.

You pointed it out yourself, but I think you underestimated its importance: Microsoft works on many other things. Office, XBox, Windows Phone, Exchange, SQL Server, .Net, etc. I suspect Microsoft's total line count is similar to Google's. The difference, however, is that it's not one codebase.

Re: Google Is 2B Lines of Code, All in One Place

#116
post #60

Earlier quoted context omitted.

Do you have a source for the easter egg security issue? Haven't read about it anywhere, and can't seem to find anything either.

Here is one: http://arstechnica.com/security/2015/04/no-joke-googles-apri... The issue was that they wanted to load the page – with the user logged in, etc – on com.google. For this they implemented an explicit URL parameter that would allow this.

> Attackers could have seized on the omission of the X-Frame-Options header to change a user's search settings, including turning off SafeSearch filters

The horror!

Re: Google Is 2B Lines of Code, All in One Place

#117
post #95
post #90

Earlier quoted context omitted.

Being able to make sweeping changes to a shared piece of code, and ensure that everyone's up to date (Hi, Rosie!) and not broken by your change (yay TAP train!) is phenomenal as well.

How is this a side effect of it being in the same repository/

Say I make a change to a commonly used library (let's say deprecating a function, and replacing it with another):

* I can see literally _every use_ of the old function.

* I can run the tests for everyone who uses that function.

* * this is automated; the build/test tooling can figure out the transitive set of build/test targets that are affected by such a change.

* I can (relatively) easily update _every use_ of the deprecated call with the new hotness

* I can do that all within the same commit (or set of commits, realistically)

---

None of this is impossible with multiple repos, it's just a lot more difficult to coordinate

Re: Google Is 2B Lines of Code, All in One Place

#118
post #95
post #90

Earlier quoted context omitted.

Being able to make sweeping changes to a shared piece of code, and ensure that everyone's up to date (Hi, Rosie!) and not broken by your change (yay TAP train!) is phenomenal as well.

How is this a side effect of it being in the same repository/

If it's in the same repository, and you update a library, you can update all of the uses of that library in the same commit.

Re: Google Is 2B Lines of Code, All in One Place

#119
post #114
post #109

Just because people are talking about it: I work at MSFT, and the numbers Wired quotes for the lines of code in Windows are not even close to being correct. Not even in the same order of magnitude. Their source claims that Windows XP has ~45 million lines of code. But that was 14 years ago. The last time Windows was even in the same order of magnitude as 50 million LOC was in the Windows Vista timeframe. EDIT: And, r…

So, how many lines of code does it have?

I can't say. I work here, but I don't speak for the company.
Post reply on HN