Live data from Hacker News

Which programming language is used for making Windows 10?

quora.com

41–50 of 124 posts

Re: Which programming language is used for making Windows 10?

#41

The real question is: is it compiled with the same msvc compiler that ships in the SDK? If so, they don’t even use C99. C89 all the way. That especially means no variable declaration anywhere in the function body.

The future of systems programming on Windows is C++.

ISO C support has been improved to the extent required by ISO C++ compatibility requirements to ISO C.

Re: Which programming language is used for making Windows 10?

#42
post #3

500 GB strikes me as quite small. The entire Git repository (it sounds like Microsoft uses Git internally) must be a whole heck of a lot larger than this if there are over 60,000 commits every few weeks. Still, it’s a mammoth project, which makes it all the more impressive that it works (most of the time).

Keep in mind that to manage the insane scale, Microsoft internally hides git behind a custom virtual file system: https://vfsforgit.org/ https://github.com/Microsoft/VFSForGit

Whoa, they actually changed its name from GVFS (which clashed with GNOME)? I didn't expect that. Cool!

Re: Which programming language is used for making Windows 10?

#43
post #6

There was Prolog in the network stack configuration system. At least there was way back when.

"The Microsoft NT 4.0 kernel network driver contained a small Prolog interpreter to help puzzle out network interface cards"

Using Prolog in Windows NT Network Configuration

http://web.archive.org/web/20040603192757/research.microsoft...

Re: Which programming language is used for making Windows 10?

#44
post #32

Earlier quoted context omitted.

Cutler certainly did not write the whole first kernel alone, although the initial size of the NT team was quite small, at least at the very beginning. The story of the development (until the at least the first release, IIRC) is in the book "Show Stopper!"; quite interesting.

Show Stopper is a wonderful book if you're interested in the historical development of large systems. It's second only to The Soul of a New Machine . I highly recommend it. https://www.amazon.com/dp/1497638836

Two of my very favorites!

Re: Which programming language is used for making Windows 10?

#45
post #35

Earlier quoted context omitted.

> so there wasn't room for a lot of bloat That's not how NT was seen at the time. It was quite bloated relative to other PC OSs. Of course modern OS features required a bit more overhead than the crazy world of windows 3.0.

I guess I should have said "a lot of bloat by today's standards"... My first experience with NT was NT 3.51 on a 32 MB machine. If I remember well, it didn't feel much slower than Windows 3.1. But finally having a PC operating system that didn't crash all the time really made development much more pleasant and productive.

32MB was a lot of memory back then. Typical machines at the time had 8. 16 was extravagant.

Re: Which programming language is used for making Windows 10?

#46
post #5
post #4

This post is kind of dramatic. Windows is much more than a simple kernel: it is a collection of drivers, tools, a desktop envinroment, a network stack, user base applications (like Paint), etc, etc. If you compare it to the entire Ubuntu project, you will se a project of similar dimensions.

I don't know about Ubuntu specifically but some distro's do ship sources with their installation media and it usually fits on 1 DVD. When I say "sources" I am talking about kernel, user land and desktop applications too. However that would be compressed tarballs and doesn't include git history - the latter being where I suspect most of the disk space is being used in that screen shot.

A better example would be one of the BSDs, where the kernel and userland are all developed together in a single source tree.

Re: Which programming language is used for making Windows 10?

#47

A project of such scale and longevity always seems to pique my interest. I bet there are some interesting historical artifacts in that codebase. Why is old code so fascinating? Decades ago someone as insignificant as you wrote this code. I find it especially interesting to come across comments in code, which allow developers to express themselves outside the confines of the language. I feel like a historian in this c…

I do actually think code archaeology may one day be a sub discipline of the field, perhaps in another hundred years.

In Vinge's "A Deepness in the Sky" [0] one of the characters is a Programmer-at-Arms, and one of his roles is essentially software archaeology - not for the fun of it, but to keep the deeply layered software of a starship functional.

[0] https://en.wikipedia.org/wiki/A_Deepness_in_the_Sky

Re: Which programming language is used for making Windows 10?

#48
post #9

> You can spend a year (seriously) just drilling down the source tree, more than a half million folders containing the code for every component making up the OS workstation and server products and all their editions, tools, and associated developement kits, and see what’s in there, read the file names and try to figure out what does what. This makes me really want to know how they manage to document everything to mak…

[deleted]

Re: Which programming language is used for making Windows 10?

#49

A project of such scale and longevity always seems to pique my interest. I bet there are some interesting historical artifacts in that codebase. Why is old code so fascinating? Decades ago someone as insignificant as you wrote this code. I find it especially interesting to come across comments in code, which allow developers to express themselves outside the confines of the language. I feel like a historian in this c…

>Who was this person?

...oh it was me.

Re: Which programming language is used for making Windows 10?

#50

A project of such scale and longevity always seems to pique my interest. I bet there are some interesting historical artifacts in that codebase. Why is old code so fascinating? Decades ago someone as insignificant as you wrote this code. I find it especially interesting to come across comments in code, which allow developers to express themselves outside the confines of the language. I feel like a historian in this c…

Mark Lucovsky, one of the original Windows NT kernel developers, gave a talk called "Windows: A Software Engineering Odyssey" at USENIX 2000 talk with a lot of historical details about the Windows code history and development processes:

https://www.usenix.org/legacy/events/usenix-win2000/invitedt...

Post reply on HN