Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 02-14-2010, 01:00 PM   #1
In Runtime
 
ohm55's Avatar
 
Join Date: Feb 2010
Posts: 141
Default Operating System entirely out of C#!

Thats right, even though its such a high level, you dont need to write any assembly with this one! Cosmos is an OS made entirely out of C#, and is expandable. If you ever want to make your own OS without all that ASM, here is your chance!

Requirements:
Visual Studio (free or paid) or Visual C# (free or paid)
Bochs, Virtualbox, or any other Virtual Machine Emulator
Some C# and Kernel Module knowledge

Their blog is at http://gocosmos.org/
Have fun, kiddies!
__________________

__________________
You are such a good friend that if you and me were the last two people trapped on a sinking boat with only 1 life vest left, i would remember and pray for you every day.
Funny how Communism is so bad in Politics but so good with software!
My reputation is in the Red, so why doesnt it say "ohm55 needs rehab" when I put my mouse over it?
ohm55 is offline   Reply With Quote
Old 02-18-2010, 05:32 PM   #2
Daemon Poster
 
Legodude522's Avatar
 
Join Date: May 2006
Location: Texas
Posts: 1,303
Default Re: Operating System entirely out of C#!

If you want an OS completely made using assembly, check out Menuet OS.
__________________

__________________
PC: Intel i7 4790K, 16gb RAM, MSI R7 250 2gb
Phone: Apple iPhone 6s 64gb
Handheld Games: Nintendo 3DS XL, Tapwave Zodiac 2, GamePark Holdings GP2X F100
Legodude522 is offline   Reply With Quote
Old 02-18-2010, 08:48 PM   #3
In Runtime
 
ohm55's Avatar
 
Join Date: Feb 2010
Posts: 141
Default Re: Operating System entirely out of C#!

Another OS made intirely out of C# is microsoft experimental os called Singularity (oh, the irony!)
__________________
You are such a good friend that if you and me were the last two people trapped on a sinking boat with only 1 life vest left, i would remember and pray for you every day.
Funny how Communism is so bad in Politics but so good with software!
My reputation is in the Red, so why doesnt it say "ohm55 needs rehab" when I put my mouse over it?
ohm55 is offline   Reply With Quote
Old 02-19-2010, 01:35 AM   #4
Solid State Member
 
Troy Martin's Avatar
 
Join Date: Oct 2008
Posts: 19
Default Re: Operating System entirely out of C#!

More fun writing them in C and assembly. I'm just sayin'.
Troy Martin is offline   Reply With Quote
Old 02-19-2010, 06:47 AM   #5
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: Operating System entirely out of C#!

Quote:
Another OS made intirely out of C# is microsoft experimental os called Singularity (oh, the irony!)
Nope. Singularity is a very interesting and cool project, but it's not written entirely in C# at all.

Quote:
If you ever want to make your own OS without all that ASM, here is your chance!
I think it's worth pointing out here that writing your own OS isn't easy by any stretch of the imagination - in any language. The Cosmos guys had to write a whole new compiler that compiled C# down into native code just to get this to work, it wasn't a case of coding a few lines in visual studio and hitting run!

Quote:
More fun writing them in C and assembly. I'm just sayin'.
From an educational viewpoint I agree that if you want to learn about the very low levels of OS design then you need to do your thing in C and assembly. However, this is fast becoming a purists viewpoint rather than a practical one. These days, C and ASM tend to be (rightly) used for nothing more than they have to be (and ASM is really being phased out pretty much completely now.) From pretty much all other perspectives (man hours, frustration, flaws, potential for bugs) it's better to keep the low level stuff as small as you can get it, then switch to a higher level langauge as soon as you feasibly can.
__________________
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote
Old 02-19-2010, 07:32 PM   #6
In Runtime
 
ohm55's Avatar
 
Join Date: Feb 2010
Posts: 141
Default Re: Operating System entirely out of C#!

Singularity isnt made from C#? that what the wikipedia article said.
__________________
You are such a good friend that if you and me were the last two people trapped on a sinking boat with only 1 life vest left, i would remember and pray for you every day.
Funny how Communism is so bad in Politics but so good with software!
My reputation is in the Red, so why doesnt it say "ohm55 needs rehab" when I put my mouse over it?
ohm55 is offline   Reply With Quote
Old 02-19-2010, 08:16 PM   #7
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: Operating System entirely out of C#!

Well, I was about to say don't trust wikipedia without any sources (and you shouldn't) but in this case it appears you're just not reading it properly!

Source: http://en.wikipedia.org/wiki/Singula...erating_system)
Quote:
The lowest-level x86 interrupt dispatch code is written in assembly language and C. Once this code has done its job, it invokes the kernel, whose runtime and garbage collector are written in Sing# (an extended version of Spec#, itself an extension of C#) and runs in unsafe mode. The hardware abstraction layer is written in C++ and runs in safe mode. There is also some C code to handle debugging.
How on earth does that equate to "entirely C#"?!
__________________
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote
Old 02-19-2010, 08:21 PM   #8
In Runtime
 
ohm55's Avatar
 
Join Date: Feb 2010
Posts: 141
Default Re: Operating System entirely out of C#!

http://channel9.msdn.com/shows/Going...-written-in-C/
http://social.msdn.microsoft.com/For...4-7ce8718646b5
"Revealed at Tuesday's TechFest, Singularity is available for download on Microsoft's CodePlex site, as a Research Development Kit, or shortly, RDK. The package includes source code, build tools, test suites, design notes and other materials useful for those that feel up to the task of playing with a brand new system, written entirely in C#."

mmhmm.

I also think Microsoft would do this, cause C# is a really high-level language, so its more of a experience.
__________________
You are such a good friend that if you and me were the last two people trapped on a sinking boat with only 1 life vest left, i would remember and pray for you every day.
Funny how Communism is so bad in Politics but so good with software!
My reputation is in the Red, so why doesnt it say "ohm55 needs rehab" when I put my mouse over it?
ohm55 is offline   Reply With Quote
Old 02-19-2010, 08:39 PM   #9
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: Operating System entirely out of C#!

...and on the first link you gave:

Quote:
However, we do have around some assembly code. Like a kernel written in C, our C# kernel needs assembly code to handle the lowest part of the interrupt dispatch on the x86. But once the assembly code has finished, it dispatches directly into compiled C# (no C). BTW, there is some C code in the system, primarily for the debugger stub.
The wikipedia article is correct in this instance - ASM and C most definitely find their way in there as well. Most of it is written in C# (and languages derived from it) but by no means all.
__________________
Save the whales, feed the hungry, free the mallocs.
berry120 is offline   Reply With Quote
Old 02-19-2010, 08:42 PM   #10
In Runtime
 
ohm55's Avatar
 
Join Date: Feb 2010
Posts: 141
Default Re: Operating System entirely out of C#!

...XD You win.
__________________

__________________
You are such a good friend that if you and me were the last two people trapped on a sinking boat with only 1 life vest left, i would remember and pray for you every day.
Funny how Communism is so bad in Politics but so good with software!
My reputation is in the Red, so why doesnt it say "ohm55 needs rehab" when I put my mouse over it?
ohm55 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 04:33 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0