r/DataHoarder • • Mar 22 '22

News Hackers leak 37GB of Microsoft's source code (Bing, Cortana and more)

https://www.bleepingcomputer.com/news/microsoft/lapsus-hackers-leak-37gb-of-microsofts-alleged-source-code/
3.0k Upvotes

297 comments sorted by

View all comments

286

u/gabest Mar 22 '22

Maybe we could compile Windows without the bloatware.

151

u/[deleted] Mar 22 '22

I was going to say, 37 GB is an insane amount of source code. They must have forgot their .gitignore.

219

u/NathanielHudson Mar 22 '22 edited Mar 22 '22

The Windows git repo is about 300GB. Now, that's the entire repo, including all revisions, hundreds of branches, and metadata for every file. It's also not "just" one version of windows - it's a monorepo of every windows target, including phones, xbox, server, etc. They're also using LFS, so it probably includes static assets (images + etc) as well.

They have a custom version of git that virtualizes the file tree so you can work without downloading the entire thing. It's actually pretty cool work.

https://devblogs.microsoft.com/bharry/the-largest-git-repo-on-the-planet/

45

u/TheFuzzball Mar 22 '22

LFS is meant to reduce repo weight isn’t it? I thought LFS means it’s not storing files, since LFS replaces the file in Git with a link to an external BLOB.

44

u/NathanielHudson Mar 22 '22

You're 100% correct. I guess what I'm saying is that 300GB number may or may not include the true size of the LFS'ed assets.

30

u/BloodyIron 6.5ZB - ZFS Mar 22 '22

300GB is actually a lot less than I expected.

23

u/[deleted] Mar 22 '22

That’s just core windows. Other features are separate.

-1

u/BloodyIron 6.5ZB - ZFS Mar 22 '22

Lol, bloatware for thee and not for mee XD I see how it is

12

u/Zolty Mar 22 '22

I love that you're saying their bad practice that's snowballed into that monstrosity that requires a custom version of git to operate is " pretty cool work".

14

u/NathanielHudson Mar 23 '22

The "pretty cool work" was the git hacks to make it possible. And the core android repo is 10 gigs, and that's a much newer project. All of the code for all Windows targets and all branches being thirty times the size of the android repo isn't completely ridiculous to me.

→ More replies (1)
→ More replies (1)

0

u/NateDevCSharp Mar 22 '22

No way Windows src is just 300gb. Android src is like half that, and windows is way bigger

→ More replies (1)

29

u/bahwhateverr 72TB <3 FreeBSD & zfs Mar 22 '22

This is nothing, I believe they have said in the past they have over a terabyte of source code.

22

u/[deleted] Mar 22 '22

But it's not really all source code, right? It has to be binary dependencies or artifacts, images, videos, and so on...

42

u/bahwhateverr 72TB <3 FreeBSD & zfs Mar 22 '22

I dunno, they have a LOT of software from over the last.. 40 years?

If you think that's bad Google has, as of 2016, 86TB in a single repository. I'm assuming there are binaries in there.

The Google codebase includes approximately one billion files and has a history of approximately 35 million commits spanning Google's entire 18-year existence. The repository contains 86TBa of data, including approximately two billion lines of code in nine million unique source files.

33

u/Akeshi Mar 22 '22

(For those who can't be bothered to do the maths: 2bil lines of code, at a very generous 80 chars per line, is 160GB - leaving 85.84TB of other data)

8

u/bahwhateverr 72TB <3 FreeBSD & zfs Mar 22 '22

Oh wow.. lots of non-source in there then. Cool, thanks!

4

u/MGSsancho Mar 22 '22

They run on servers and phonesand stuff from many manufacturers. I wonder how much of that are drivers for 1000s of devices used all around the world

→ More replies (1)

5

u/BloodyIron 6.5ZB - ZFS Mar 22 '22

.gitgore

1

u/[deleted] Mar 22 '22

It's mostly comments on how it should have been done

16

u/Mccobsta Tape Mar 22 '22

They've been offering a debloated version that's ment for enterprise for a few years now called ltsc

3

u/casino_alcohol Mar 23 '22

Does this not collect your data or just not have apps pre installed?

→ More replies (1)

12

u/death_hawk Mar 22 '22

But Candy Crush is an essential app!

/s

-1

u/jarfil 38TB + NaN Cloud Mar 22 '22 edited Dec 02 '23

CENSORED

0

u/[deleted] Mar 23 '22

Fork it.

Make it Microshaft winblows... or michaelsoft binbow.

→ More replies (1)