• 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

    • Save 66% on a MagTag Ultra Slim Tracker Card for Apple or Android by Steven Parker Never Lose Anything Again with MagTag Today's highlighted deal comes via our Gear + Gadgets section of the Neowin Deals store where you can save 66% on this MagTag Ultra Slim Tracker Card - Works with Apple Find My App. Keep track of your world with MagTag, a sleek, ultra-slim, reliable tracker that’s built to help you safeguard your most important items. In the size of a credit card, just 1.5mm thick, you can slip MagTag easily into your wallet, backpack, passport pouch luggage…etc. Integrated seamlessly with Apple’s FindMy app, MagTag offers precise real-time global tracking, instant left-behind alerts, loud location beeping, and a long-lasting rechargeable battery. Whether you’re heading to work, on vacation, or simply running errands, MagTag ensures you never lose what matters most. No item left behind Precision Global Tracking: Works seamlessly with the Apple FindMy app, providing real-time tracking anywhere in the world, powered by the vast Apple network. Ultra Slim Design: At just 1.5mm thick and the size of a credit card, MagTag slips easily into your wallet, passport pouch, backpack, or luggage. Instant Alerts: Receive notifications the moment you leave behind your valuables, and locate them easily with a loud beeping sound. Versatile Attachment Options: With a built-in keyring hole, attach MagTag to keys, ID lanyards, kids’ bags, or name tags for easy access and protection. Long Battery Life & Wireless Charging: Lasts up to 5 months on a single charge and can be easily recharged with any Qi wireless charger. Durable & Waterproof: IP68 waterproof and dustproof built to withstand your adventures, perfect for vacations and everyday use, no matter where life takes you. Specs Color: Black Materials: ABS Dimensions: 0.05" x 3.35" x 2.13" (1.5mm x 85mm x 54mm) Ultra-slim Apple FindMy App Built-in keyring hole Battery life: up to 5 months Charging: Qi wireless IP68 rating (waterproof, dustproof) Manufacturer's 90-day warranty Good to know Ships to US Expected Delivery: Expected Delivery: Jun 23 - Jul 2 All sales final. This item is excluded from coupons. Here's the deal: This MagTag Ultra Slim Tracker Card (for Apple or Android) normally costs $59.99, but you can pick it up for just $19.99 for a limited time - that represents a saving of $19. For a full description, specs, and shipping info, click the link below. MagTag Ultra Slim Tracker Card now just $19.99 (was $59.99) Get the two-pack and save 70% Ships only to Contiguous US Support queries If you have queries or need support for any of the Neowin Deals, please use the contact form here. Neowin Deals are managed and sold by StackCommerce who represent Neowin on an affiliate basis. Why we post these deals We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. So for those that keep moaning and complaining, be thankful we're still online for you to even do that. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Make a donation to support our day to day running costs Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
    • I cannot believe this is a news post from Neowin. This should be embarassing, coming from a "senior editor". Is it your first day using Windows?! Maybe it's time to find a new Windows news site.
    • It's from having Core Isolation enabled in Windows security settings, which is a good thing!  It's letting you know it's not loading the Bonjour module as it's not signed in a way it would prefer. Bonjour was most likely installed along with iTunes. Feel free to disable that message using the checkbox.
    • I'm looking forward to starting over online. I have no reason to keep all the money, cars, rank after 13 years. Now if I can just move my character itself and nothing else. I would be fine with that. But I doubt they would do a setup that way.
  • Recent Achievements

    • 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
    • Week One Done
      Harris Gilbert earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      586
    2. 2
      +Edouard
      169
    3. 3
      PsYcHoKiLLa
      73
    4. 4
      Michael Scrip
      66
    5. 5
      ATLien_0
      64
  • Tell a friend

    Love Neowin? Tell a friend!