Live data from Hacker News

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

wired.com

131–140 of 347 posts

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

#131
post #120
post #119

Earlier quoted context omitted.

I can't say. I work here, but I don't speak for the company.

[deleted]

Not sure I understand your point. The source the article refers to claims Windows XP is ~45 million LOC, not me. I myself didn't give any specific numbers about the size of the codebase.

Now, I don't think anyone would come for my head if I did give you a number -- what harm could it do, after all? But, personally, the line I draw is that I don't get too specific about internal data beyond a general order of magnitude, because I'm not here to speak for the company.

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

#132
post #119
post #114

Earlier quoted context omitted.

So, how many lines of code does it have?

I can't say. I work here, but I don't speak for the company.

Well, you just said what it doesn't have, so I guess you speak for the company after all.

Anyway, let me guess. Judging by how the size of all binaries shipped with Windows varied between releases, I'd be inclined to think Windows 10 does not have significantly more lines of code than Windows Vista.

So I'd guess at most 100 million lines of code?

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

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

> single-digit _multiple_ of the entire Netflix movie catalog Strange unit of comparison, although I may start using it.

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

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

#135

Earlier quoted context omitted.

FWIW, apart from the previously mentioned sensitive stuff, we give engineering interns the same level of access we give full-time engineers. We keep things open because it makes things faster; we have an excellent code search tool that's great for navigating through the Piper repo (e.g. finding subclasses, finding uses of an API) which really speeds up dev time. When we're not talking about the sensitive stuff, there…

How are changes that affect sensitive code handled? Are the owners of that code on the hook for making any API updates that the person pushing the change can't make?

Having never worked on the secret sauce, I honestly don't know. There is a small team of people who tend to do many of the global refactors, I might expect that they are given special permission.

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

#136
post #125
post #119

Earlier quoted context omitted.

I can't say. I work here, but I don't speak for the company.

And why is that number a corporate secret?

I doubt it is, and I don't think I'd get in trouble for sharing it.

But, it's not my job to decide whether or not that information should be shared, because it's not my job to speak for the company.

I'm having a hard time understanding why people think this is not a reasonable position.

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

#137
post #122

Earlier quoted context omitted.

I'd have to disagree with this. First the baseline: windows is very slow. Second I found later versions slower. Third (and most maddening) every version of windows I've ever used has gotten slower over time (including not installing new s/w and defragmenting).

I know that people have had experiences similar to yours. It's fine to disagree, but AFAIK pretty much all benchmarks show that there is no noticeable difference in performance from 7 to 8 to 10 and this matches with my own experience. I refuse to upgrade unless I get similar or better performance. But then again, I'm not really interested in researching every single benchmark. Windows is fast, stays fast, and that's…

>Windows is fast, stays fast, and that's pretty much all I care about.

are you in CO?

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

#138
post #130
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…

> the numbers Wired quotes for the lines of code in Windows are not even close to being correct OTOH you can't blame them for being incorrect if you (as in, Microsoft, not you personally) are being so secretive about the figures. I'm pretty sure everyone would love to see how Microsoft works internally, especially now that you teased us with that Windows build system.

Yes you can blame them for being incorrect. If they don't have a correct and relatively up-to-date figure, they should be clear about that. "Microsoft declined to comment on how many lines of code Windows has now" or "Windows XP used 45 million lines of code, but that was 14 years ago so it's not a very good comparison to anything".

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

#139

What are the best practices to follow in a single-repo-multiple-projecrs world? Some people recommend git submodule, others recommend subtree. How do you guys manage alerts and messages - does every developer get a commit notification,or is there a way to filter out messages based upon submodule. How does branching and merging work? I'm wondering what processes are used by non-Google/FB teams to help them be more pro…

Generally branching isn't really a thing at Google. Work is done at the code review level per change list ("CL"). Most changes happen through incremental submission of reviewed CLs, not by merging in feature branches. Every CL must run the gauntlet of code review, as well as can not usually be submitted without passing tests. There are rare cases where branching is used, but not commonly.

As for notifications, the CL has a list of reviewers and subscribers. If you want to see code changing, you watch those CLs. Most projects have a list where all submitted CLs go.

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

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

> single-digit _multiple_ of the entire Netflix movie catalog Strange unit of comparison, although I may start using it.

Facebook gets a Flickr worth of photos every few days.
Post reply on HN