r/programming • • Dec 05 '15

Microsoft Edge’s JavaScript engine to go open-source

https://blogs.windows.com/msedgedev/2015/12/05/open-source-chakra-core/
1.6k Upvotes

504 comments sorted by

View all comments

Show parent comments

6

u/SomeNetworkGuy Dec 05 '15

Am I reading that right? 50 million lines of code? How is that even possible?

23

u/agocke Dec 06 '15

Roslyn (C# & VB compilers + IDE) alone is 3 million lines. Could I believe that there are 16 Roslyns in VS (think C++, JS, TypeScript, F#, Intellitrace, etc)? Definitely.

16

u/[deleted] Dec 05 '15

I doubt those numbers are accurate. Obviously open source projects we can easily verify the number.

I heard the 50M included all dependencies, including things like the operating system and such.

But I wouldn't trust some random number for proprietary codebases, it's impossible to verify.

3

u/Danthekilla Dec 06 '15

Well a very small portion is open source "Roslyn" and that is 3 million lines of very nice code. It seems very plausible that there is 15 times that in the rest of the suite.

12

u/speedisavirus Dec 06 '15 edited Dec 06 '15

Its incredibly mature, complex, and has tons of backwards compatibility. Think about everything it does out of the box and has for like a decade now. It's monumentally complex. Now, if they make a clean cut I bet its size would drop down to around 25 million.

The real wtf in all this is that the healthcare.gov site has 500,000,000 lines of code. No wonder why it was such a piece of shit. Whoever was in charge of that...well...should never run a project again.

9

u/[deleted] Dec 06 '15 edited Dec 06 '15

*500 Million lines of code for healthcare.gov according to the graph.

How the hell is that possible ?

19

u/tornato7 Dec 06 '15

I saw the code for healthcare.gov, I'll paste some of the it here:

Healthcare.giveHealthcare(citizens[0]);
Healthcare.giveHealthcare(citizens[1]);
Healthcare.giveHealthcare(citizens[2]);
...
Healthcare.giveHealthcare(citizens[297000000]);

Apparently they were getting paid per line of code.

10

u/Throwaway_Kiwi Dec 06 '15

....I seriously hope you're kidding.

2

u/cr42yh17m4n Dec 06 '15

Lol, the developers might have created a sub program to only do that.

2

u/[deleted] Dec 06 '15

I sincerely hope that is a joke.

→ More replies (1)

7

u/speedisavirus Dec 06 '15 edited Dec 06 '15

I know. I can't possibly comprehend how that is possible. They had to have hired an enormous amount of the most incompetent people on the planet for that to happen. Definitely a fuck ton of people to write 500,000,000 lines in that time period regardless of how shitty they were.

7

u/OMG_Ponies Dec 06 '15

welcome to government contracting.

7

u/[deleted] Dec 06 '15

Not to be that guy, but:

500,000 = 500 thousand
500,000,000 = 500 million

You keep writing 500,000. It's 500,000,000 ( 500 million ) lines of code, which I can't even fathom.

2

u/speedisavirus Dec 06 '15

I don't know why. 500,000 isn't that big of a project. I swear I was saying 500,000,000 in my head. Not sure why I wasn't typing it. Probably because I'm replying between breaks while working on a project.

→ More replies (1)

1

u/Thought_Ninja Dec 06 '15

I would argue that such a figure is highly improbable... Maybe if they're counting JSON objects or some other generated "code," but 500,000,000 simply doesn't make sense.

Source: web developer

→ More replies (7)

3

u/dpgaspard Dec 06 '15

That whole project was stupid from the beginning. It's 50 state ran health-care systems, not 1 universal system. They should have made every state responsible for their site, not try to make a site that does everything, for groups it can't govern

1

u/jangxx Dec 06 '15

Wait, I thought this 500,000,000 loc was a joke. Are you telling me that this is an actual estimation?

1

u/speedisavirus Dec 06 '15

It doesn't sound like it is. Now, the question comes to whether they are counting the web components, the glue code, and the code of all the separately developed systems that they integrate with. I couldn't fathom how any web system could reach even a 5th of this side unless is was a complete shit system...which it was...so maybe it is true?

Slate says it is 500,000,000 as well. Apparently they thought 5,000,000 had to be rewritten. No idea how they even did it in that time.

http://www.slate.com/blogs/future_tense/2013/10/21/healthcare_gov_problems_why_5_million_lines_of_code_is_the_wrong_way_to.html

EDIT: sorry updated to match what I meant.

If the site really contains 500 million lines of code, they say, that’s a strong hint that the programmers involved are doing something wrong.

No shit, yo

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

1

u/mickey_kneecaps Dec 06 '15

I simply don't believe that it is accurate.

→ More replies (1)

2

u/[deleted] Dec 05 '15

Decades of work and no time for proper refactoring.

1

u/[deleted] Dec 06 '15

Should be much less by using functional approach as possible :P

1

u/1337Gandalf Dec 06 '15

Never overestimate a programmars ability to write a fuck ton of useless code.