• 0

What Language Is Windows Written In?


Question

Recommended Posts

  • 0
Ya, there's many different "layers" of the OS. C# is usually used as an upper layer language today (although MS could make it do more in OS's after Longhorn). That's the whole benefit of .Net. It doesn't need to get as messy as C++ so you can code more a lot faster and easier. C# just happens to be the super language that can tell the framework it wants to talk to memory/hardware in specific parts of code, so it's the best of both worlds (Java and VB.NET can't do this).

"C# just happens to be the super language that can tell the framework it wants to talk to memory/hardware in specific parts of code, so it's the best of both worlds (Java and VB.NET can't do this)."

What do you mean by that?

  • 0
And what the hell are you being so loud about anyway. Avalon is still a pipe dream in some architect's head in Redmond and is not planned for release until what? 2005.? Maybe 2006 given prior track record. How the hell are you so sure it is going to be all written in CLR languages?
Avalon a pipe dream? Take a freakin' closer look into current Longhorn leaks, first tracks are visible! Or do you have an explanation why the namespace is called Microsoft.Avalon.*?!?!
OH I JUST CANNOT RESIST: according to your post the "****ing core" will "mainly just consist out of kernel, drivers and the freakin' CLR".

Wow that sounds like a pretty freaking large core to me. You are only talking about all the software responsible for hardware devices like drives, keyboards, mice, printers, display adapter, sound cards etc... drivers>), all the memory management, CPU process scheduling and process threading kernel>), and then the main API framework CLR>) of the OS too. If you boil down the definition of an OS that could be a whole OS all by itself, and then some.

The Windows embedded core takes like goddamn 20megs only, that includes all core services needed for an OS. All the rest of your goddamn 500megs that Windows uses as harddrive space can be rewritten in any way you want since it's not critical code in kernel coding sense! And even in these 20megs is lotsa ballast to be thrown away!

Now bite me!

--edit: add. info

Edited by Tom Servo
  • 0
Avalon a pipe dream? Take a freakin' closer look into current Longhorn leaks, first tracks are visible! Or do you have an explanation why the namespace is called Microsoft.Avalon.*?!?!
OH I JUST CANNOT RESIST: according to your post the "****ing core" will "mainly just consist out of kernel, drivers and the freakin' CLR".

Wow that sounds like a pretty freaking large core to me. You are only talking about all the software responsible for hardware devices like drives, keyboards, mice, printers, display adapter, sound cards etc... (drivers), all the memory management, CPU process scheduling and process threading (kernel), and then the main API framework (CLR) of the OS too. If you boil down the definition of an OS that could be a whole OS all by itself, and then some.

The Windows embedded core takes like goddamn 20megs only, that includes all core services needed for an OS. All the rest of your goddamn 500megs that Windows uses as harddrive space can be rewritten in any way you want since it's not critical code in kernel coding sense! And even in these 20megs is lotsa ballast to be thrown away!

Now bite me!

--edit: add. info

You really need to grow up kid. Throwing random insults and bite-me's and goddamits just shows your age and immaturity. Or do you go around insulting anyone that challenges your knowledge, and threatens to know more than you do? (not saying I do, so don't jump just yet :p )

Back to the topic:

Yeah oh so impressive the new longhorn builds. Feels more like just XP with a couple of different widgets, even more confusion on the filesystem, and a new theme. I have seem better tools for Object Desktop floating around. Besides, how do you know any of it is written in C# or another managed code language. Just you wait til longhorn is out or in late beta before singing its praises. Companies have a tendency to switch gears during a project.

As for what you call that OS Core:

Hey, did you ever take CS in school? If so do you remember that class on Operating systems? That embedded core you keep talking about is what makes the OS an OS. You can have an OS without Active Directory, you can have an OS without a virtual machine for high level languages, you can have an OS without a GUI, you can have an OS without Internet Explorer, and you can certainly have an OS without a god damn media player.

But you cannot have an OS without hardware drivers (including the filesystem), you cannot have an OS without memory and CPU process management, and you cannot have an OS without a basic API. You cannot measure the importance of a component in terms of its size. It is the size of the task it accomplishes that matters. A gui with all its tedious code for handling look and feel, user events, error messages and all graphical widgets embedded in DLL resources, is obviously more likely to take up 500mb of space than an elegantly coded kernel and API.

My point is, the basic foundation of Windows, and most other OSes will remain C based (or objective C or C++) because C is the only language that currently exists that is (a) widely know by the programming community, (b) low-level enough where you can actually directly address hardware. (C# still needs the framework to address hardware, so it is doing it inderectly - most likely via a translation layer written in C)

PS: One good thing about them rewriting all the other goo in C# though is that they may finally get rid of all those pesky buffer overflow bugs once and for all.

  • 0
My point is, the basic foundation of Windows, and most other OSes will remain C based (or objective C or C++) because C is the only language that currently exists that is (a) widely know by the programming community, (b) low-level enough where you can actually directly address hardware. (C# still needs the framework to address hardware, so it is doing it inderectly - most likely via a translation layer written in C)

Objective C is a runtime language, to the best of my knowledge you couldn't write a kernel in it, though it sure would be nice.

PS: One good thing about them rewriting all the other goo in C# though is that they may finally get rid of all those pesky buffer overflow bugs once and for all.

We should be so lucky. I wonder what the slashdot kiddies would bash if windows stopped crashing for such stupid reasons?

  • 0
You really need to grow up kid. Throwing random insults and bite-me's and goddamits just shows your age and immaturity. Or do you go around insulting anyone that challenges your knowledge, and threatens to know more than you do? (not saying I do, so don't jump just yet  )
No, I just do so because you seem unable to read.
Besides, how do you know any of it is written in C# or another managed code language. Just you wait til longhorn is out or in late beta before singing its praises. Companies have a tendency to switch gears during a project.

You know, others just install it, I also spent some time in BROWSING THE DAMN DIRECTORIES. And guess what I found... Ah wait, there's no Avalon code in Longhorn yet, huh? I've been hallucinating, those Microsoft.Avalon.*.dll files were all not there, huh? Tsk. :hmmm:

But you cannot have an OS without hardware drivers (including the filesystem), you cannot have an OS without memory and CPU process management, and you cannot have an OS without a basic API. You cannot measure the importance of a component in terms of its size. It is the size of the task it accomplishes that matters. A gui with all its tedious code for handling look and feel, user events, error messages and all graphical widgets embedded in DLL resources, is obviously more likely to take up 500mb of space than an elegantly coded kernel and API.

Guess what smartie, everything in bold is what I named "OS core" since all the freakin' time. Or what do you think I mean by "kernel + drivers +CLR"? But no, rather telling me I'd be an idiot, while you're one yourself. :hmmm:

If you want to look smart, good job, you don't.

  • 0

Hustin we have a problem. . . (thats you administrator. . . )! Imaturity needs to be replaced with some sence.

I tracked this topic in hopes of finding out more about how windows is written, not to find out what your personal views of each others physiology is. Thanks for the insite though. Lets keep the thoughtfull conversation up, and keep the imaturity down. Thanks.

  • 0

The Windows kernel (including drivers), are written in C and assembly. It is not written in any CLR language or any language that requires a runtime. Some higher level aspects of the OS, (such as wizards for example) are written in C# I would imagine, and we will continue too see more C# code used for user interaction I imagine with Longhorn as it progresses. But, the kernel or the "core" as it has been called will always be written in C or C++ and assembly. There are some OS's written entirely in assembly. There is a great FAQ about writing an operating system here, http://www.mega-tokyo.com/os/os-faq.html.

  • 0
Hustin we have a problem. . . (thats you administrator. . . )! Imaturity needs to be replaced with some sence.

I tracked this topic in hopes of finding out more about how windows is written, not to find out what your personal views of each others physiology is. Thanks for the insite though. Lets keep the thoughtfull conversation up, and keep the imaturity down. Thanks.

well Tom Servo and PeterHammer actually know somewhat more than most of the retards in this thread

  • 0

As far as I know, most of Windows is written in C++. I don't think they use VB, and I know they haven't used any of the .NET languages up to this point. In fact, many MS employees program in C/C++ in emacs, sometimes running linux. They don't typically use Visual Studio or any of the Visual (C++, Basic, etc.) interfaces or languages to code in. I personally find it amusing they don't use Visual Studio, but then again, not all of them can, cuz what are they going to write Visual Studio in? Not a previous version of Visual Studio!

So there's some more info for ya.

Paul.

  • 0

it's written in c++ as far as i know. i do know for a fact that it is not written in c#, or any other .NET language, as .NET was only a vision at the time xp was written, and still is somewhat. win95, and some of win98 (i think) were written in vb 5/6. however, no "important" parts of the os were written in vb, as it is too slow.

  • 0
I personally find it amusing they don't use Visual Studio, but then again, not all of them can, cuz what are they going to write Visual Studio in? Not a previous version of Visual Studio!

Why shouldn't you be able to code a new version of Visual Studio with the old version?

According to your theory the gcc developers shouldnt be able to compile their own compiler with their own compiler. But guess what, they do.

  • 0

Initially, you've gotta start with machine-level instructions to build on, but the goal of nearly any compiler project is to build a self-compiling compiler (a compiler that can build itself). If you've installed Gentoo from source, it compiles gcc3 using gcc2 (and then again with gcc3 for maximum speed ;) ). They most definitely built VS.Net with an older edition of VS. They were probably using early Alphas to build it later on in development too. If you build a feature into a program that's recursively built, you'll want to use that feature ASAP for yourself too :)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I bought this game. Played it for an hour, and then got a refund from Steam. Not a fun game at all.
    • Nothing Ear buds with active noise cancellation are at their lowest price ever with 51% off by Fiza Ali Amazon is currently offering the Nothing Ear wireless earbuds at their lowest price ever with 51% off limited prime deal. The earbuds feature an 11mm dynamic drivers with a ceramic diaphragm, and support high-resolution audio codecs including AAC, SBC, LDAC, and LHDC 5.0. They support active noise cancellation of up to 45dB across a frequency range of up to 5000Hz, and include a smart ANC algorithm, adaptive noise cancellation, and a transparency mode that allows surrounding sounds to be heard when needed. Connectivity is provided via Bluetooth 5.3, with support for multiple profiles including HFP, A2DP, AVRCP, and others. The earbuds also support dual connection, allowing them to be paired with two devices at the same time. Additional features include IP54 water and dust resistance for the earbuds and IP55 for the charging case, in-ear detection, pinch controls, low-latency mode, Google Fast Pair, Microsoft Swift Pair, and a three-microphone system per earbud for clearer voice calls. The Nothing X app, available on Android and iOS, provides access to custom EQ settings, bass enhancement, personal sound profiles, ear tip fit testing, firmware updates, customisable controls, dual-device management, and a find-my-earbuds feature. In terms of battery performance, each earbud has a 46mAh battery and the charging case has a 500mAh capacity. With active noise cancellation (ANC) turned off, the earbuds should offer up to 8.5 hours of playback on a single charge and up to 40.5 hours in total with the charging case. With ANC enabled, playback should last up to 5.2 hours on the earbuds and up to 24 hours with the case. For calls, talk time should reach up to 5 hours on the earbuds and 23 hours with the case when ANC is off, while ANC on should provide up to 4 hours on the earbuds and 18 hours with the case. Finally, fast charging should deliver up to 10 hours of playback from 10 minutes of charging when ANC is disabled. Nothing Ear Wireless Earbuds Bluetooth: $73.15 (Amazon US) - 51% off Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
    • Microsoft officially launched its Copilot Cowork enterprise AI agent on June 16, 2026, switching to usage-based pricing on the same day it disclosed it is considering a Microsoft-hosted version of China's DeepSeek V4 as a lower-cost engine for the platform — a pairing that puts the company on a collision course with both its enterprise customers' security teams and a White House that has spent months trying to wall off Chinese AI from American infrastructure.................... https://www.techtimes.com/articles/318647/20260618/microsoft-eyes-deepseek-v4-copilot-cowork-what-azure-hosting-cannot-fix.htm  
    • Forza Horizon 6 gets another hotfix for one of the game's online modes by Taras Buria Recently, Forza Horizon 6 players discovered an interesting glitch that allowed farming a crazy amount of in-game credits in a few minutes. Playground Games quickly pulled the plug on the exploit by disabling one of the game's online modes, and today, the studio is rolling out another hotfix. In my review, I complained about the game still showering gamers with cars, credits, and wheelspins. As such, earning money in Forza Horizon 6 is not a particularly difficult task. You simply have to play the game, crazy, I know. However, people still found an easier path to becoming a billionaire in Forza Horizon 6. All you had to do was purchase the Hummer EV, install a specific tune, shift in reverse while going at about 15 MPH, hit a wall, and get launched into the stratosphere at the speed of light. While mid-air, launch Eliminator and quickly get eliminated. Boom, the game just awarded you with a few million in-game credits. Initially, Playground Games disabled Eliminator to prevent people from farming credits. Now, following the release of the first balancing update, developers are rolling out a new update that re-enables Eliminator and gives users a free McLaren Sabre as a gesture of goodwill. Here is the changelog: One critical issue remains unpatched, though. There are quite a few reports of the game wiping gamers' saves, and developers are still looking into that. To avoid potential data loss, Playground Games recommends taking one of the steps outlined in a previously published support article.
  • Recent Achievements

    • First Post
      AndreaB earned a badge
      First Post
    • Week One Done
      Huge Trailer earned a badge
      Week One Done
    • Week One Done
      Classifyskilleducation earned a badge
      Week One Done
    • One Month Later
      eurospharma62 earned a badge
      One Month Later
    • Week One Done
      With What earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      592
    2. 2
      +Edouard
      172
    3. 3
      PsYcHoKiLLa
      76
    4. 4
      Michael Scrip
      68
    5. 5
      neufuse
      64
  • Tell a friend

    Love Neowin? Tell a friend!