Live data from Hacker News

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

wired.com

321–330 of 347 posts

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

#321
post #174

Earlier quoted context omitted.

Every feature has a flag that you can turn on/off to your heart content. Releases are cut at head. No need to use the version control hammer to screw all the zippers.

Would that be analogous to, every feature is it's own git branch? and you choose which branches to merge when building? How are conflicts managed?

Every feature is in HEAD, behind a flag. Precisely because managing conflicts cannot be automated, relying on branching is unwise. With HEAD based development, you manually solve conflicts exactly once, when submitting to HEAD, then you never have to think about them again.

Local branches for development, a single HEAD for merging code.

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

#323

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.)

> Windows is slow? Compared to what? In what task? I dual booted a laptop for a while with Vista. (I can't speak to anything later, because I use Linux now, and haven't looked back, so take the appropriate grain of salt.) So with Vista / Gentoo on exactly the same hardware (a Lenovo T61): - boot time on Linux was orders of magnitude faster - WiFi AP connect was significantly faster[1], esp. on resuming from suspend-t…

To be fair, comparing vista to anything is hugely irrelevant at this point.

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

#324

Earlier quoted context omitted.

8.1 and 10 run incredibly well even on very old hardware. I will agree a given Windows install may feel slower over time, and it makes sense to rebuild the PC occasionally, though that may, again, be less so with 8.1 and 10.

Or if you are a non-techie it means forced upgrade is built into your product.

I think Microsoft has tried to address this with 8/10, which have a "refresh" feature, which tries to clean out everything besides Modern apps and your personal data.

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

#325
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 reason Google developed Piper was basically that Perforce couldn't scale beyond a single machine, and our repo was getting too large to even be usable on the biggest, beefiest x86 server that money could buy (single machines with terabytes of ram and zillions of cores).

If Microsoft has close to the same amount of code in a single repository, then they must have also written their own version control service that runs on more than one machine.

The last rumors I heard is that Microsoft bought a license to the Perforce source code, and created their own flavor to host internal code ("Source Depot" ?), which presumably still runs on a single machine.

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

#326

I am unable to believe that Google has 2B lines of original code written from scratch at Google. Maybe they are counting everything they use. Somewhere among those 2B lines is all the source code for Emacs, Bash, the Linux kernel, every single third-party lib used for any purpose, whether patched with Google modifications or not, every utility, and so on. Maybe this is a "Google Search two billion" rather than a conv…

most of the non-google code is stored in a special subdirectory, and AFAICT, it's less than 10% of the total.

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

#327
post #158

Earlier quoted context omitted.

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...

Um, 0.1 and 1 are not considered the same order of magnitude.

I was abbreviating. We're talking about an open end of the interval right?

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

#328

Earlier quoted context omitted.

Well it's been two months and I haven't heard any complaining other than one ActiveX based drum scanning thing doesn't work. Turns out the scanner's direct descendant has a web API so we're integrating that. To be fair they are financial point of sale machines so it's all process driven and they're not general purpose computers.

I'm just saying I'd like to see how it goes long-term. Particularly in terms of TCO. Google, AFAIK, doesn't have any vendors making Toughbook-style Chrome OS machines yet.

Same. For the price of a toughbook you just buy 5 Chromebooks and throw them away.

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

#329
post #158

Earlier quoted context omitted.

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...

He didn't say "within an order of magnitude", he said, "the same order of magnitude." There is a difference.

So you think he meant within a factor of 3 and 1/3? That's not what the original netflix comment said.

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

#330
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...

> 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

"is same order of magnitude as" is not a transitive relationship.

Post reply on HN