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

22

u/ironnomi Dec 06 '15

Both OSes are written in multiple languages. Some of OSX is written in ObjC.

At least the parts I've seen were written in C, C++, ASM and ObjC (actually some of the ObjC might have been ObjC++, but my memory isn't that good.)

Windows 7 however was all either C or C++, nothing I was looking at was C#, but I'm sure parts of Win7 were written in it.

You realize of course that those lines of code are not the kernels only right? Any time you see those LoC things they mean everything that they consider part of the OS. It's going to include the kernel, the boot code, the libraries, the utilities, the interfaces, the included apps, everything.

3

u/brobits Dec 06 '15

[project singularity is a C# windows kernel by microsoft research](https://en.wikipedia.org/wiki/Singularity_(operating_system))

2

u/ironnomi Dec 06 '15

Very interesting stuff, sadly if you've read about it, the project's evolution was dismantled about 15 months ago now. :(

They were actually building the ENTIRE system using managed code.

1

u/brobits Dec 06 '15

yup, sad stuff

1

u/ironnomi Dec 06 '15

I know one of the people on the later team (thankfully he moved to Azure development) and he said that while there were some successes, the performance issues massively outweighed a lot of the protection.

0

u/badcookies Dec 06 '15 edited Dec 06 '15

I realize that, you made it sound like most of OS X was written in Objective C.

5

u/1337Gandalf Dec 06 '15

Darwin is open source, that's everything but user space (like Cocoa, and AppKit for example)

Download it and see for yourself.

0

u/badcookies Dec 06 '15

And is it written in Objective C or C / C++?

1

u/1337Gandalf Dec 06 '15 edited Dec 06 '15

It's basically FreeBSD and Mach, so C.

Apple's proprietary frameworks are probably written in Objective-C, based on the headers.

0

u/badcookies Dec 06 '15

So why am I getting downvoted when it's written in c... Not to mention downvotes are for on topic or not