PDA

Click to See Complete Forum and Search --> : Writing a pure OS using C# or VB.NET??


vynner
Apr 1st, 2002, 10:52 AM
is it possible to write a pure OS using C# or VB.NET??
since we need to run the CLR on top of our OS, does that mean we can't
write a pure OS using languages of .NET??

if so then i guess C++ is a much better language...

any comments is much appreciated...

Jeffrey

Cander
Apr 1st, 2002, 10:58 AM
No you cannot write an OS in .NET. Nor can you write an OS in VB anything.

kleptos
Apr 1st, 2002, 11:04 AM
I wouldnt say C++ is a far better language just because you can write an OS in it. I can write a pure OS in Java, doesnt mean Java is a far better language either. .Net was written by Microsoft, for Microsoft, any other use that exists is pure luck.

This is my opinion however and does not mean anything i say is based on fact.

Cander
Apr 1st, 2002, 11:09 AM
It is called best tool for the job..I mean Assembly far beats C and any other language for speed...but would you want to write a simple desktop application with it?..No you wouldnt! Just becuase language A can do something language B cant do, doest make A better..

Besides what is the deal with so many people wanting to write their own OS these days? Dont we have enough trouble of interoperability between existing popular OS'? I guess everyone wants to be the next Linux Torvalds...:o

vynner
Apr 2nd, 2002, 12:26 AM
thx for the opinion guys.

one more question...
does it mean that the CLR must me on top of an OS??

Dillinger4
Apr 2nd, 2002, 12:33 AM
Pretty sure the .Net framework has to be on top of an OS. How else would it run. :p The CLR can be used without the Net IDE (so Micro$oft say's) but i wouldn't see why you would want to do that either.

Tygur
Apr 2nd, 2002, 12:35 AM
Originally posted by kleptos
I can write a pure OS in Java, doesnt mean Java is a far better language either.
I find this a bit hard to believe, because any Java program is going to need the Java runtime.

Dillinger4
Apr 2nd, 2002, 12:39 AM
Yeah i don't know that much about low level programming but other than programming right to the processor i can't see one programming an OS in anything else but assembler and C++.

kleptos
Apr 2nd, 2002, 06:31 AM
Sun already has a pure java OS. It may be hard to believe, but they already have one.

Tygur
Apr 2nd, 2002, 12:49 PM
Originally posted by kleptos
Sun already has a pure java OS. It may be hard to believe, but they already have one.
It wouldn't surprise me a bit, but I seriously doubt the entire thing was coded in Java.

EDIT: If you're talking about JavaOS, it only runs Java applications. It wasn't coded in Java. The simple fact that it was made further illustrates the need for Java to run under some sort of an operating system.

vbzero
Apr 2nd, 2002, 01:23 PM
Yes it's true - there are more than 1 java os's:

http://www.savaje.com/

On this site you can download the savaje os for pocket pc.

What does this mean:

You CAN write your own OS on a VM based language and
so you can write your own OS in C# or VB.NET now!

You'll have to implement the CLR in the kernel but there's
a way.

But what is it good for?

Do you think you can write a better system than windows :cool: ?

Cander
Apr 2nd, 2002, 01:26 PM
no vbZero..the OS was built with C to only support the Java API's...the OS is not written in Java.

ender_pete
Apr 3rd, 2002, 08:55 AM
without even looking i would almost guarantee that the only languages used to write os's would be Assembler, C, C++ and ADA

Pretty much every other language is either OS dependent or has a runtime that OS dependent

and there isnt any way to write an OS in a language that is runtime dependent because runtimes are dependent on OS's thats why for .net to run on diffrent OS's it has to have an implementation of the .net CLR on any OS it wants to run on.
(i.e. mono)

Cander
Apr 3rd, 2002, 08:59 AM
More explanation:

A language like Java and .NET compile to Intermediate Language that only a Just in time compiler can read. A CPU cant understand that language so it needs something else to work between the JIT and the CPU..hence the OS kernel.

ender_pete
Apr 3rd, 2002, 09:05 AM
do you realise how many OS's there would be out there if you could write one in VB or C#

it would be insane

Cander
Apr 3rd, 2002, 09:14 AM
I have seen a couple claims of aat VB OS', but turned out they were shell replacements...Some people just dont know the difference between an Operating System and an Operating Environment.

OS is one of the top choices of newbies that just got their hands on a warez copy of VB..LOL What ever happened to learn from the beggining?:o

ender_pete
Apr 3rd, 2002, 09:19 AM
i guess they think if they write a OS that they will make lots of money or be a underground cult hero ;)

ive never put a single though into writing my own OS, to much work i got other stuff to do:D

Cander
Apr 3rd, 2002, 09:23 AM
Or they mya think that because VB is so easy all the need is a couple lines of code like


MyOS.Name = "SuckOS"
MyOS.Run()


:p

ender_pete
Apr 3rd, 2002, 09:43 AM
yeah thats right all you have to do is copy it to the hard drive of a new PC and it will run

hehe:p