• 0

What Language Is Windows Written In?


Question

Recommended Posts

  • 0
As far as I know, most of Windows is written in C++.
If most of windows is written in C++, why is the API all C-based? ( with exception to GDI+ ) MFC is a wrapper to the API, not the API itself.

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!

Where'd you hear that? /.?

  • 0
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!

Where'd you hear that? /.?

Microsoft information session at my school. We were asking programmers and project managers some questions about it. And a friend of mine who worked there over the summer confirmed it. Not Slashdot.

I'm not saying it's a bad thing, I was just amused. It makes sense though, as a lot of those programmers are rather "hardcore", if you will. But I'm not saying you're not a serious programmer if you use VS.

  • 0

C/C++ are not portable! There are all sorts of differences in hardware platforms that prevent that, particularly when you are writing code that is not targeted at an OS, but at hardware directly (as is the case when you are writing an OS). Each CPU family (x86, PowerPC, Sparc etc..) provides different instruction sets that can be called from C/C++ or other low-level languages and a program written with the x86 set in mind would never work on a PowerPC or Sparc without modifications and recompilation.

Writing a whole OS in assembler is possible but I highly doubt anyone would ever do that these days. The tedium alone would stop any developer from doing it. Besides, if windows was entirely written in assembler, my guess is MS would be very reluctant to develop versions of WinXP for Itanium or Opteron as it would require the whole thing to be redeveloped for the new instruction sets.

If you are creating an application, you can make programs written in C/C++ be portable if you use a portability layer like the one provided by Apache at apr.apache.org or the one by mozilla at http://www.mozilla.org/projects/nspr/index.html. Even so they only work when you are writing programs target to run on an OS (not on hardware alone) as they provide an abstraction layer to an OSes intrinsic types (strings, longs, floats etc..) and to other OS facilities like threading.

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

    • No registered users viewing this page.
  • Posts

    • The problem isn't with Epic, it's with the platform holders like Steam and Nintendo, they should be a lot more strict in their review process.
    • Hello, Installed here without issue. Regards, Aryeh Goretsky
    • Microsoft updates Visual Studio Code with easier language model discovery and in-app search by Paul Hill Microsoft has released Visual Studio Code 1.125, its latest weekly release. This week, the company has focused on discovering and installing extra language models via the Marketplace; searching the web and securely browsing over remote connections without leaving VS Code; choosing how long VS Code waits before installing extension updates; and delivering managed Copilot settings through existing device management tooling. In older versions of VS Code, extensions could contribute their own model providers, but to find these extensions, you needed the right tags to search for in the Extension view. Now, the Language Models editor gives you an Install Model Providers button that opens the Extensions view, which is filtered to extensions that contribute model providers, making it easier to find and install them. Once you install a provider, its model will appear in the model picker. If you use the integrated browser much, you can now look up information without leaving VS Code by typing a query into the integrated browser’s address bar. It will use your configured search engine, the same way a standalone browser does. You can use workbench.browser.searchEngine to pick a search engine. When the browser is opened in a remote workspace, it's now possible to proxy HTTP(S) traffic via the remote connection. This allows you to connect to any ports or services that can only be accessed from the remote machine. If you read our coverage from two weeks ago about VS Code 1.123, you might have seen that extension updates have a two-hour delay as a safety measure. In this update, Microsoft is giving you the ability to configure the time of the delay. You can find it under extensions.autoUpdateDelay. Finally, with this update, admins can deliver managed GitHub Copilot settings through native device management (MDM) channels on Windows and macOS, in addition to account-based enterprise settings files. Settings delivered via MDM appear as policy-enforced in VS Code and can’t be overridden locally. Future updates will extend the supported policy keys across Copilot surfaces. You can download the update from the Visual Studio Code website now.
    • "it opens up new doors for people who prefer using Edge, but cannot be bothered to configure a Microsoft account" You already have a Microsoft account if you are using Windows 11, because you can't set it up without one.
  • 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
      543
    2. 2
      +Edouard
      171
    3. 3
      PsYcHoKiLLa
      84
    4. 4
      ATLien_0
      64
    5. 5
      neufuse
      64
  • Tell a friend

    Love Neowin? Tell a friend!