• 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

    • If you have the budget...! Some solo or indies just want to either learn or start their game and aren't in a capacity to pay salaries or to contractors... Get real.
    • Source and more 35 years old?! And if my maths is mathing, that means she was around 10 when The Ring came out?! Damn...scariest 10 year old I think I've ever seen. 
    • Adobe Acrobat Reader DC 2026.001.21677 by Razvan Serea Adobe Acrobat Reader DC software is the free, trusted standard for viewing, printing, signing, and annotating PDFs. Its the only PDF viewer that can open and interact with all types of PDF content – including forms and multimedia. It’s connected to Adobe Document Cloud – so you can work with PDFs on computers and mobile devices. Adobe Document Cloud is a revolutionary, modern and efficient way to get work done with documents in the office, at home or on-the-go. At the heart of Document Cloud is the all-new Adobe Acrobat DC, which will take e-signatures mainstream by delivering free e-signing with every individual subscription. Document Cloud includes a set of integrated services that use a consistent online profile and personal document hub. With Adobe Document Cloud, people will be able to create, review, approve, sign and track documents whether on a desktop or mobile device. Businesses will be able to take advantage of Document Cloud for enterprise which provides enterprise-class document services that integrate into systems of record such as CRM, HCM, CLM, and CMS, adding speed, efficiency and transparency to getting business done with documents. Adobe Acrobat Reader DC new feature highlights: Work with PDFs from anywhere with the new, free Acrobat DC mobile app for Android or iOS. Select functionality is also available on Windows Phone. Use the new Fill & Sign tool in your desktop software to complete PDF forms fast with smart autofill. Download the free Adobe Fill & Sign mobile app to add the same option to your iPad or Android tablet device. Save money on ink and toner when printing from your Windows PC. Store and access files in Adobe Document Cloud with 5GB of free storage. Get instant access to recent files across desktop, web, and mobile devices with Mobile Link. Sync your Fill & Sign autofill collection across desktop, web, and iPad devices. Adobe PDF Pack premium features includes: Convert documents and images to PDF files. Use your mobile device camera to take a picture of a paper document or form and convert it to PDF. Turn PDFs into editable Microsoft Word, Excel, PowerPoint, or RTF files. Combine multiple files into a single PDF (web only). Get signatures from others with a complete e-signature service. Send, track, and confirm delivery of documents electronically instead of using fax or overnight services (tracking not available on mobile). Store and access files online with 20GB of storage. Download: Adobe Acrobat Reader DC 64-bit | 719.0 MB (Freeware) Link: Adobe Acrobat Reader DC Home Page | Release Notes | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Everybody will complain, but probably will sell like hotcakes......
    • HONOR launches the HONOR Watch 6 along with early bird discounts and gifts by Steven Parker Global leading AI device ecosystem company HONOR today announced the launch of the HONOR Watch 6. Engineered to unlock your healthiest potential, HONOR Watch 6 is a cutting-edge smartwatch that flawlessly integrates a light and elegant design with professional sports modes and continuous health tracking powered by the latest HONOR AI capability, catering to those who pursue optimal fitness, sports performance, and holistic health. The HONOR Watch 6 is designed to provide professional-grade workout supports and beyond. Featuring a striking Racing Dashboard Design, The HONOR Watch 6 seamlessly draws inspiration from high-performance air intakes to create a visually dynamic and hardcore technological look. Constructed from recyclable aluminum alloy, this device weighs as little as 41 grams​, achieving exceptional lightness and outstanding durability, making it a reliable companion for active everyday wear. The exterior of the smartwatch is accentuated by precision-crafted beveled edges, enhancing its overall three-dimensional visual effect and perfectly blending ultimate hardcore performance with cutting-edge trend expression. Furthermore, the watch's meticulously polished body undergoes an exquisite and delicate sandblasting process, delivering a luxurious texture comparable to titanium alloy and exuding a highly premium tactile experience. Embracing this bold technological aesthetic, the smartwatch caters to modern sensibilities, offering a flawless blend of high-performance design and premium craftsmanship for discerning users. Equipped with an impressive 120+ sports modes, the new smartwatch offers exceptionally comprehensive tracking that truly stands out by bringing professional-grade analysis right to the wrist. Highlighting this elite capability are specialised sports mode for activities like Trail Running, Badminton, and Football. The Trail Running experience places a special focus on outdoor performance, empowering runners with an AI running coach, detailed climbing and distance metrics, and intelligent route deviation alerts, all tracked precisely by the AccuTrack system dual-band six-star GPS. To ensure flawless operation in any environment, the display features advanced water-touch control, guaranteeing the screen reacts perfectly even with wet hands or during rainy scenarios. For court and field sports, the smartwatch delivers professional-level data—such as badminton smash speeds, consecutive rally tracking, and comprehensive football heat and trajectory maps—providing users with advanced insights to elevate their competitive training. Additionally, the HONOR Watch 6 features IP691 water and dust resistance and is powered by a robust 980mAh battery​, the smartwatch claims to deliver extra durability and a remarkable ultra-long battery life of up to 35 days. This exceptional endurance makes it the perfect companion for rigorous outdoor workouts and extended adventures, ensuring users stay active, fully tracked, and continuously supported without the hassle of frequent charging. The HONOR Watch 6 is designed to make advanced health tracking accessible and effortless for everyday life, seamlessly monitoring vital metrics such as heart rate, blood oxygen, stress levels, and sleep cycles.​ Featuring a Quick Health Scan, users can instantly obtain a comprehensive health analysis of key indicators, offering valuable insights into their physical well-being at any time. An automatic daily report delivers a convenient summary every morning to help start the day with a clear understanding, while the all-day health tracking features continuously monitor essential indicators such as body energy, blood oxygen, and sleep cycles, promoting both physical and mental wellness. Supported by the HONOR IntelliSense system—which utilises richer, more uniform signal acquisition than traditional PPG modules—the watch ensures highly precise heart rate and blood flow tracking. Elevating everyday convenience, the new smartwatch features an ultra-bright display reaching 3,000 nits of peak brightness for crystal-clear visibility in direct sunlight. Adding a dynamic level of customisation, the innovative Video Watch Face allows users to set live photos or short videos under 10 seconds as highly personalised, moving backgrounds. Built for maximum efficiency, the device supports dual-phone pairing to centralise notifications from two smartphones, alongside a built-in AI Recorder that automatically generates smart voice notes and summaries for life on the go. Hands-free control is made effortless through intuitive wrist-twist gestures, letting users silence alarms, manage calls, and skip songs without touching the screen. Rounding out the smart experience, advanced NFC integration supports Mastercard and Visa​5, enabling seamless daily payments without the hassle of pre-loading funds. Pricing and Availability The HONOR Watch 6 will be available in Twilight Brown and Shadow Black to suit diverse tastes. Starting from June 18th 2026 customers can purchase the HONOR Watch from £169.99. For more information on availability and purchasing options, please visit the HONOR online store at www.honor.com/uk/. For the first month on-sale, HONOR is offering an early bird discount of £80 in addition to a gift with purchase of HONOR Choice Earbuds Clip, priced in the UK at £59.99. Look out for our review of it, coming in early July.
  • Recent Achievements

    • 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
    • One Month Later
      Vincian earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      540
    2. 2
      +Edouard
      169
    3. 3
      PsYcHoKiLLa
      75
    4. 4
      neufuse
      64
    5. 5
      ATLien_0
      63
  • Tell a friend

    Love Neowin? Tell a friend!