C# Operating System
· 2008-02-02 20:27 by Thijs Kroesbergen for Brokenwire.NET
Just a few days ago the first bootable operating system written in C# has reached it’s first milestone! It’s name is Cosmos (C# Open Source Managed Operating System).
From the official Cosmos page:
Cosmos (C# Open Source Managed Operating System) is an operating system project implemented completely in CIL compliant languages. [...]
Cosmos’ design consists of the following key points:
- Completely .NET based.
- Microkernel or close hybrid
- Configurable using modules
- Cross platform architecture
Currently Cosmos works by compiling IL code (for example it’s shell) to X86 code. This is done by the IL2CPU compiler, which currently emits raw assembly files and puts these through nasm (a free assembler).
Technically this is not the first OS written in C#, Microsoft Research has been working on such a thing before, but that has never been made public. Also (the famous) Scott Hanselman has been working on a (virtual) OS in C# before.
But Cosmos is wide open to the public, if you want to get involved take a look at their codeplex page.
If you want to take a quick look at this gem you can just download the (bootable) .iso and boot that inside a Virtual PC, VMWare or Qemu. A detailed step-by-step guide on using the .iso can be found on the channel8 site.
To be able to do something more "usable" with this OS you can get started using the UserKit. The userkit installs a template into Visual Studio 2008 and using that template you can quickly build on top of the Cosmos base. All this is very well explained on the Cosmos homepage.
Although the current milestone is not yet a very complete OS, it does look like this project has quite some potential. I definitely think this is an exciting project! If this tiny project can create some community support, it could evolve in a very big thing ...
Update (2): Microsoft’s Singularity has been made public.