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

625

u/khaki0 Dec 05 '15

This is not the Microsoft I grew up with. Stop open sourcing.

But in all seriousness, I like it.

102

u/Himrin Dec 05 '15

If only we got more traction on VS on multiple platforms.

109

u/adolfojp Dec 05 '15

I don't see that happening. Microsoft realized that they lost the fight on web and application servers so they made their server stuff cross platform. But they know that they're still dominant on the desktop so it makes sense for them to promote Windows as a platform for cross platform development. The day that Microsoft releases a cross platform version of Visual Studio is the day that Windows is no longer profitable. Besides, they want people on Windows because they need people to write Universal Apps for their mobile platforms which can't be done in Mac or Linux.

105

u/StrangeWill Dec 05 '15

I'd argue it's simply because of the stupidly large codebase, it's simply a huge undertaking even if Microsoft wanted to do it especially when portability is not a concern the first 7 times around ;)

I'd like to see them see about fleshing out VS Code into something more robust though.

46

u/badcookies Dec 05 '15

Til that windows 7 is less than half the size of osx 10.4

37

u/ironnomi Dec 06 '15

Having seen both code bases extensively, I can say there can be NO direct code comparisons between the two.

In general, Apple's ObjC code easily takes up 4x the space as the typical Windows C++ code.

1

u/[deleted] Dec 06 '15

Interesting, as someone who'd love to know what happens in the little black box, is there anything you're allowed tell us that's interesting or quirky about either codebase? From some of the odd behaviours I've seen from windows over the years, I've often wondered just WTF is really going on.

4

u/tetroxid Dec 06 '15

If you're interested in the implementation of an operating system (which is actually hugely complex and awesome) I recommend reading about the Linux kernel, and the kernel's source code.

7

u/[deleted] Dec 06 '15

I've read many components, (worked a little on radeon FOSS driver support). Linux makes sense to me, and I'd say I have a decent grasp of what's going on there (at least in my own, self-assembled system). But when I use windows, I usually come away horrified by the degree to which basic functions don't seem to be encapsulated and isolated from one another (I suppose the best recent example is the discovery of how the scrollbars have a hook deep within the kernel). Id love to know what on earth is going on there. It seems to work like a house of cards, which gets progressively more antiquated as it gets deeper towards the core.

10

u/tetroxid Dec 06 '15

Yes, that was my experience as well. For example, the GUI runs in kernel space (insane, right?). I imagine it was done for performance reasons.

There is huge debt in the codebase. Bad decisions were made (hey, it happens) but they were never cleaned up. My favourite example is NTFS. The performance degradation over time is so sad it's almost funny. I also like how it allocates space for the master file table but doesn't free it once the table shrinks again, effectively occupying space even when nothing's saved there.

Another good one is that if for some reason the system tray icon for windows update cannot be displayed, windows update stops working. Yep you read that right.

Oh, and on the topic of windows update: I would love to find out what the system is actually doing while it's saying "searching for updates" for 30 minutes or longer. In my mind all it has to do is send a list of local patches and versions and compare that to a remote version. Should take seconds, like running apt-get update. But no, it takes forever. I want to know why.

→ More replies (0)

2

u/ironnomi Dec 06 '15

Sorry, for the most part I was only validating the code paths that our code followed. This was for a security architecture review for some code that that Japanese government was using that was deemed to be security critical.

→ More replies (11)