Results 1 to 14 of 14
Like Tree2Likes
  • 1 Post By KevinWorkman
  • 1 Post By jim829

Thread: writing an operating system

  1. #1
    Sam Baldwin is offline Member
    Join Date
    Dec 2013
    Posts
    1
    Rep Power
    0

    Default writing an operating system

    hi guys, i read this book - Sams Teach Yourself Java in 24 Hours (Covering Java 7 and Android) (6th Edition) (Sams Teach Yourself in 24 Hours): Rogers Cadenhead: 9780672335754: Amazon.com: Books
    so you know im quite advanced at java, now i was wondering how to get started by making my own operating system using my java skills. not something like windows 7, but mabey like xp since i have 2 weeks left of christmas break? thanks for any replies, ill give credit when its done

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,969
    Rep Power
    8

    Default Re: writing an operating system

    I don't want to offend you, but is this question a joke?

    If not, you should know that A) reading a "learn xyz in 24 hours" does not make you an expert, B) you probably wouldn't write an OS in Java, and C) even if you did, it would take a lot longer than 2 weeks to do so, even for an actual expert.

    It's cool that you're interested in programming a project on your own, but I think you're biting off more than you can chew. You're much better off writing something much smaller: a small game, or a basic application, or a visualization of some interesting data. I bet even something small like that would take more time than you expect!
    aaro likes this.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,049
    Rep Power
    6

    Default Re: writing an operating system

    Next project up for review: building the next best MMORPG.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,516
    Rep Power
    25

    Default Re: writing an operating system

    A slightly different but related programming exercise would be a virtual machine. Define a machine (instruction set, registers, memory etc) and a language to interpret and write a VM to read a program written in machine language and "execute" them displaying memory and register contents as they are changed by the "program". That could be a 2 week project.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,650
    Rep Power
    5

    Default Re: writing an operating system

    And a possible follow on to Norm's suggestion would be to write a very small OS. An OS is nothing but a program which manages a computer's resources. So once you get your VM written, you could then have your OS execute multiple programs, managing the use of your virtual processor. The idea is to execute each program a little at a time, so that all programs get a fair turn on the processor. If you don't want to define your own instruction set you might consider using MIX or a subset thereof. MIX - Wikipedia, the free encyclopedia

    Regards,
    Jim
    Norm likes this.
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,560
    Blog Entries
    7
    Rep Power
    21

    Default Re: writing an operating system

    Writing an operating system takes a lot more than two weeks; even if you know what you're doing.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  7. #7
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,049
    Rep Power
    6

    Default Re: writing an operating system

    Quote Originally Posted by JosAH View Post
    Writing an operating system takes a lot more than two weeks; even if you know what you're doing.

    kind regards,

    Jos
    A lot more people too.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  8. #8
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,650
    Rep Power
    5

    Default Re: writing an operating system

    Just researching all the drivers that would have to be written to manage the peripherals and understanding the specs well enough to code them and integrate them would be a major undertaking. In any event, I wonder how many lines of code exist for XP or Windows 7 - to give the OP some perspective assuming he was serious.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  9. #9
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,969
    Rep Power
    8

    Default Re: writing an operating system

    Quote Originally Posted by jim829 View Post
    In any event, I wonder how many lines of code exist for XP or Windows 7 - to give the OP some perspective assuming he was serious.
    Wikipedia says that Windows XP is 45 million lines of code. Mac OSX is 86 million! Source lines of code - Wikipedia, the free encyclopedia
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  10. #10
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,650
    Rep Power
    5

    Default Re: writing an operating system

    Oh, well then. Two weeks is plenty of time. :)

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  11. #11
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,969
    Rep Power
    8

    Default Re: writing an operating system

    Quote Originally Posted by jim829 View Post
    Oh, well then. Two weeks is plenty of time. :)
    45 million lines of code in 2 weeks is only 37 lines of code per second without sleeping or eating! I've been on projects like that before...
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  12. #12
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,560
    Blog Entries
    7
    Rep Power
    21

    Default Re: writing an operating system

    Quote Originally Posted by KevinWorkman View Post
    45 million lines of code in 2 weeks is only 37 lines of code per second without sleeping or eating! I've been on projects like that before...
    Thinking, you forgot thinking: without sleeping or eating or thinking ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  13. #13
    kjkrum's Avatar
    kjkrum is offline Senior Member
    Join Date
    Apr 2011
    Location
    Tucson, AZ
    Posts
    1,060
    Rep Power
    6

    Default Re: writing an operating system

    Quote Originally Posted by KevinWorkman View Post
    I don't want to offend you, but is this question a joke?
    Gods, I hope so...
    Get in the habit of using standard Java naming conventions!

  14. #14
    zFollette is offline ▼ dafuq did I do?
    Join Date
    Dec 2013
    Posts
    203
    Rep Power
    0

    Default Re: writing an operating system

    "So I have been programming Java for 3 weeks, how can I make something like Watson?".

Similar Threads

  1. Main Operating System
    By Mr.Beans in forum Forum Lobby
    Replies: 52
    Last Post: 08-29-2011, 06:13 AM
  2. How to find operating system of LAN systems..?
    By ram07 in forum Networking
    Replies: 2
    Last Post: 03-31-2011, 03:19 AM
  3. Replies: 3
    Last Post: 01-05-2011, 07:29 AM
  4. Operating System detection of client
    By jsfgeeks in forum Advanced Java
    Replies: 6
    Last Post: 11-27-2008, 07:38 AM
  5. Tracking Operating System
    By Mansi in forum Networking
    Replies: 2
    Last Post: 07-23-2007, 01:41 PM

Posting Permissions

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