Live data from Hacker News

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

wired.com

221–230 of 347 posts

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

#221
post #190
post #78

Earlier quoted context omitted.

> "([A-Z][a-z]+){7,} lang:java Yeah this one was my favorite of the code search examples, there are some really good ones in there.

Can you explain this? It looks to me like a regexp that searches Java source for words 7+ characters that start with a capital letter?

This searches for camelcase identifiers with at least 7 words.

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

#222

Is this article saying that all developer employees have access to the "holy" search algorithm internals? I can hardly believe that to be true, given the fact that SEO is a complete industry.

Once upon a time it was all in one repository. Shortly after I started there in late 2005, the "HIP" source code (high-value intellectual property, I think it stood for) was moved to its own source tree, with only precompiled binaries available to the rest of the company.

Looks like there is a Quora question that mentions this too: https://www.quora.com/How-many-Google-employees-can-read-acc...

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

#223
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…

And they probably didn't count all of the test crap and IDW tools that nobody's used since Bill Gates was there, but still get built every time.

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

#224
post #220
post #218

Earlier quoted context omitted.

Sarcasm son....

You'd be surprised at how many people assume these bigcos are open to doing the right thing when they're shutting down.

Hey, I've still got my complimentary MySpace zip file kicking around somewhere.

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

#226
post #158
post #134

Earlier quoted context omitted.

That's the same as saying "the same order of magnitude"

But while "1" and "9" are the same order of magnitude, so are "1" and "0.1". To say something is within an order of magnitude of netflix, you cover a possible range from 0.1 to 10 times the Netflix catalog, a range which is ten times bigger if you consider the minimum and maximum sizes...

You seem to live in a base-tenny world. Many nerdies train themselves to do hex mental math in kindergarten, and the geekies do it base-36 because those extra letters "are there". So perhaps a 256 to 1296 multiplication ratio (those 2 numbers there are in base 10).

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

#227
post #117
post #95

Earlier quoted context omitted.

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…

Yep, this is the key factor, you get to shorten your deprecation cycle to little or none. In contrast, with multiple repos, even for small projects, you will get a few days up to a month of lag time.

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

#228

Earlier quoted context omitted.

Windows is slow? Compared to what? In what task? Running a game? Boot time? Opening Firefox? I have problems with Windows, but it's the fastest desktop os I think, mostly because it's graphics stack is way the best of all. Running a number crunching C code is exactly the same on Windows or Linux. (See all the benchmarks on the Internet.)

It's really not that fast. The filesystem is a total dog (MFT contention) to the point that manipulating lots of small file is up to two orders of magnitude slower than ext4. This is made bearable thanks to SSDs being on the market. Also the amount of friction getting stuff built and running and maintaining it is detrimental to general productivity meaning you piss execution time out of the window regularly just fixi…

  Note: windows programmer for 19 years now. Only because of the cash.
You know why there's cash? Because Windows works for a lot of people.

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

#229
post #97

Its interesting that they compare LoC with Windows. I suppose that this article wants us to be amazed at those numbers. However, my experience with Google's products indicates a gradual decline in performance and a simultaneous gradual increase in memory bloat (Maps, Gmail, Chrome, Android). Which ironically, FWIW, hasn't been the case with Windows. I have noticed zero difference in performance going from Windows 7 t…

[deleted]

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

#230
post #157

Earlier quoted context omitted.

Well, you're the one here teasing everyone about it. Seems like it gives you a hard-on knowing something secret-ish. Pretty typical, I suppose. But please stop acting like you're the shit because you may know a number.

I agree. The corporate policy is to not disclose that number, so all that the parent comment translates to is an appeal to authority. "You're wrong because I work for Microsoft and I know better!". But we're not told what the correct number is, and we have no way of assessing the validity of the claim anyway, so the whole discussion is completely vacuous.

I would agree in the sense that LOC isn't an informative metric at all since there is surely a lot of auto-generated and copy & paste code in there, likely superlineraly more than a medium sized software project. It doesn't matter whether it's off by some orders of magnitude as it's beyond imagination and comparison anyway.
Post reply on HN