Live data from Hacker News

Which programming language is used for making Windows 10?

quora.com

91–100 of 124 posts

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

#91

That’s a little surprising. I would have figured that outside the kernel/drivers, it’d be all C++.

I'd have expected much more to be in C#.

There's no reason to write OS components in a language that will inherently give you a performance hit before you do any real work.

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

#92

Makes me wonder if there exists an OS that is truly written from scratch designed for only modern hardware and devoid of all backward compatibility and bloat (like the JS frameworks ditching support for msie). It would be certainty a very interested side project I guess.

Redox OS? Written in Rust.

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

#93
post #87

Earlier quoted context omitted.

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

This is a fantastic book. Software is written and rewritten over thousands of years, layer upon layer, powering interstellar vessels and their “automation”. It makes you wonder what Windows will look like 100 years from now, if it’s still around. Will it be easier to just write another layer on top or dig down into the original source and modify?

History seems to suggest that it will eventually get bogged down with too much junk but its too hard to rewrite and keep compatibility so eventually some fresh project without the legacy will be able to become the technically superior product and everyone will move over to that.

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

#94
post #80

Earlier quoted context omitted.

Oh come on. Be honest. I can tell just from the tone of this post that you'd _never_ switch to Windows.

That's not true. It is difficult for humans to estimate how they spend their time, but my guess is that I've spent at least 35 hours recently exploring Windows 10: Changing various settings, installing software, asking Windows-specific questions of Google Search. And I'm writing this on Windows. (Except for the Windows-specific questions, I'm not counting web use in the estimated 35 hours because of course the web mo…

Windows 10 with WSL has enough Ubuntu features built in now that there's really no reason to use a Mac, since the "it has a Unix shell" comment doesn't work anymore. Your choices for applications are much larger on Windows.

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

#96

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.

The Unix Heritage Society has a fun wiki where they delve into some older code bases: https://wiki.tuhs.org/doku.php

Here's a paper of theirs where they dig into a 'first edition Unix': https://www.tuhs.org/Archive/Documentation/Papers/1eUnix_cre...

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

#97

I'm actually surprised they use GIT internally. I would have thought they have their own custom VCS. It says a lot about the success of GIT.

They used to have their own VCS, but moved away fairly recently, 1-2-3 years ago

> They used to have their own VCS, but moved away fairly recently, 1-2-3 years ago

TFS? https://en.wikipedia.org/wiki/Team_Foundation_Server

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

#98

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…

When I worked on Azure we had some access to the windows team data and documentation, and used an integrated build environment for some services. There are some interesting things going on under the hood mostly around building components in isolation against the spec of other libraries/services. Also I'm a little shocked their using GIT instead of source depot in their workflow, apparently they switched in 2017. Who…

[deleted]

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

#99
post #60

Earlier quoted context omitted.

I'd have expected much more to be in C#.

From what I know for a long the OS division who writes Windows has been at war with the developer division who writes .NET and refused to use .NET. I think it has gotten a bit better recently.

I thought so, but not so much.

https://kennykerr.ca/2019/01/25/the-state-of-cpp-on-windows/

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

#100

Earlier quoted context omitted.

I'd have expected much more to be in C#.

There's no reason to write OS components in a language that will inherently give you a performance hit before you do any real work.

Sure, unsafe all the way.

As note, Midori did power part of Bing during its existence.

And Microsoft security is now advising to move new development into a mix of C#, Rust and constrained C++ (Core Guidelines).

Post reply on HN