• entropicdrift@lemmy.sdf.org
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      Originally Windows was written in assembly and ran on top of DOS, but since Windows 2000 and XP, it’s been exclusively running on the NT kernel, which is written primarily in C, with some C++ in there as well.

      The actual userspace is mostly C++ and C#.

      • Skull giver@popplesburger.hilciferous.nl
        link
        fedilink
        arrow-up
        0
        ·
        6 months ago

        Microsoft is quickly writing more and more Rust code these days. They rolled out Rust kernel components even before Linux, and their efforts actually include rewrites rather than making the API available to developers.

        There’s decades of code in Windows, but the successful conversion for DirectWrite font parsing is probably a sign of things to come. MS seems to even be porting some COM modules to Rust, which would be the last thing I would start to port (so many pointer pointers!).

    • wreckedcarzz@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 months ago

      Well, you know those claims that Java runs on 18 trillion devices? How do you think they got there, hmmmmm?

      • Skull giver@popplesburger.hilciferous.nl
        link
        fedilink
        arrow-up
        0
        ·
        6 months ago

        Windows actually came with a Java runtime for a short while. Then Microsoft got sued, the Java VM was killed, and C# was created (which looks, feels, and behaves very similar to Java) as an alternative.

        Just imagine what would’ve happened if Microsoft and Sun worked together. Java would be in everything on Windows now, not just as a basis for modded Minecraft.