Results 1 to 19 of 19

Thread: Writing a pure OS using C# or VB.NET??

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    8

    Writing a pure OS using C# or VB.NET??

    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
    Visual Basic 6.0
    Visual Basic .NET
    C/C++
    JAVA

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    No you cannot write an OS in .NET. Nor can you write an OS in VB anything.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346
    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.
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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...
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2002
    Posts
    8
    thx for the opinion guys.

    one more question...
    does it mean that the CLR must me on top of an OS??
    Visual Basic 6.0
    Visual Basic .NET
    C/C++
    JAVA

  6. #6
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    Pretty sure the .Net framework has to be on top of an OS. How else would it run. 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.

  7. #7
    Tygur
    Guest
    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.

  8. #8
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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++.

  9. #9
    Hyperactive Member kleptos's Avatar
    Join Date
    Aug 2001
    Location
    The Dark Carnival
    Posts
    346
    Sun already has a pure java OS. It may be hard to believe, but they already have one.
    ..::[kleptos]::..
    • Database Administrator (MSSQL 2000)
    • Application Developer (C#)
    • Web Developer (ASP.NET)


  10. #10
    Tygur
    Guest
    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.

  11. #11
    Hyperactive Member vbzero's Avatar
    Join Date
    Aug 2000
    Location
    Vienna
    Posts
    347
    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 ?

  12. #12
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    no vbZero..the OS was built with C to only support the Java API's...the OS is not written in Java.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  13. #13
    Addicted Member ender_pete's Avatar
    Join Date
    Aug 2000
    Location
    Virginia, United States
    Posts
    131
    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)
    ender_pete
    C#,VS.NET Ent Arch, vb6 ee sp5,html,vbscript,jscript,
    xml,dhtml,delphi,c++,vc++,java,cgi,php, python, ada(so ancient) ,adasage(also ancient) and others i can't remember.....

  14. #14
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  15. #15
    Addicted Member ender_pete's Avatar
    Join Date
    Aug 2000
    Location
    Virginia, United States
    Posts
    131
    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
    ender_pete
    C#,VS.NET Ent Arch, vb6 ee sp5,html,vbscript,jscript,
    xml,dhtml,delphi,c++,vc++,java,cgi,php, python, ada(so ancient) ,adasage(also ancient) and others i can't remember.....

  16. #16
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    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?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  17. #17
    Addicted Member ender_pete's Avatar
    Join Date
    Aug 2000
    Location
    Virginia, United States
    Posts
    131
    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
    ender_pete
    C#,VS.NET Ent Arch, vb6 ee sp5,html,vbscript,jscript,
    xml,dhtml,delphi,c++,vc++,java,cgi,php, python, ada(so ancient) ,adasage(also ancient) and others i can't remember.....

  18. #18
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Or they mya think that because VB is so easy all the need is a couple lines of code like

    Code:
    MyOS.Name = "SuckOS"
    MyOS.Run()
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  19. #19
    Addicted Member ender_pete's Avatar
    Join Date
    Aug 2000
    Location
    Virginia, United States
    Posts
    131
    yeah thats right all you have to do is copy it to the hard drive of a new PC and it will run

    hehe
    ender_pete
    C#,VS.NET Ent Arch, vb6 ee sp5,html,vbscript,jscript,
    xml,dhtml,delphi,c++,vc++,java,cgi,php, python, ada(so ancient) ,adasage(also ancient) and others i can't remember.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width