Thread: Which OS is more suitable for programming?

  1. #1
    Registered User Utopus's Avatar
    Join Date
    Jun 2007
    Location
    beautiful place
    Posts
    26

    Which OS is more suitable for programming?

    Does it really matter? I can choose between Windows Vista or Linux Ubuntu for the OS.

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    it only matters for what platform you want your program to run under.

    ...but why not both?

  3. #3
    Registered User Utopus's Avatar
    Join Date
    Jun 2007
    Location
    beautiful place
    Posts
    26
    How can I have two OS in one computer..?

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    there are a few options

    • dual boot with a bootloader that would be supplied with the non-windows OS
    • use a live disk/CD that lets you run a copy of the OS without loading it onto your hard drive
    • use an emulator to to run an OS as a program of another
    • use virtualization software like VMWare which both OSes run under


    go to the linux or whatever OS site and it will have directions on how to do most of those things.

  5. #5
    Registered User Utopus's Avatar
    Join Date
    Jun 2007
    Location
    beautiful place
    Posts
    26
    VMWare sounds good. Thanks!

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Moved to Tech Board.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Also consider http://www.colinux.org/
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  8. #8
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    VMWare is fine if you don't mind crippled performance. I suggest dual booting, getting a good distro of Linux (a real distro, not ubuntu). Use either grub, lilo or a boot disk for mutli-os booting, (currently I triple boot). Otherwise check out Salem's suggestion

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    getting a good distro of Linux (a real distro, not ubuntu)
    How is Ubuntu unsuitable for programming?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  10. #10
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591
    I think the congenial OS for programming might be considered a Unix flavor, especially if you intend to program in C (since C was built for Unix, and *nix flavors tend to have built in dists of GCC). On another completely different principle, I'd stay away from Vista for now, at least until they refine it a bit more anways.

  11. #11
    Registered User Utopus's Avatar
    Join Date
    Jun 2007
    Location
    beautiful place
    Posts
    26
    >VMWare is fine if you don't mind crippled performance.

    What would causes the crippled performances..?

  12. #12
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Quote Originally Posted by Utopus
    Anything that's emulated is going to run slower than as if it was native (ie without a middle man).
    Anything that's emulated is going to run slower than as if it was native (ie without a middle man).

    Quote Originally Posted by lasersight
    How is Ubuntu unsuitable for programming?
    Never said it was, but why not use it's parent? ie Debian. Or a "full" distro like RedHat, Fedora or SuSE (and if you find compiling fun, gentoo ), Ubuntu's methods are well known for guiding beginners in the wrong direction as far as Linux is concerned, but I have to admit it is usually working out of the box (not for my hardware anyway).

  13. #13
    Registered User Utopus's Avatar
    Join Date
    Jun 2007
    Location
    beautiful place
    Posts
    26
    originally posted by zacs7
    Anything that's emulated is going to run slower than as if it was native (ie without a middle man).
    So if I want to it to be fast, I should choose to have only one OS... Is that your pointer, zacs7..?
    You also noticed that you triple-boot, does that mean you have three OS in one machine? Is it slow?

  14. #14
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Doesn't make a difference to speed, I'm not emulating any of the 3 OS's I run, It's only going to impact in performance if I attempt on emulating them (such as in a virtual machine, ie VMware).

    Okay... I have at least 3 partitions + 1 swap, I keep each OS on it's own partition (I pick which one I want to boot (ie when I turn my PC on) using a boot-loader), (an NTFS (Windows), ext3 (Linux) and FAT32 (ReactOS)). So they're not going to interfere with each other, ie they don't impact each other's performance (I only run one at a time). But if I was to "emulate" one (ie Run 2 at once, where one runs through the other) I would see a decrease in performance (doing twice as much at the same time with the same hardware).

    Think of it at so (obviously dumbed-down), in regards to emulation (the shortest path is obviously faster)
    Code:
    /* In series */
    Hardware -> Host OS (eg Windows) -> VMWare -> Emulated OS (eg Linux)
    
    /* Parallel (as Salem suggested) */ 
    Hardware -> OS (eg Windows)
             -> OS (eg Linux)
    
    /* Direct */
    Hardware -> OS (eg Linux)
    The latter is a faster way of running Linux

  15. #15
    C / C++
    Join Date
    Jan 2006
    Location
    The Netherlands
    Posts
    312
    Ubuntu is very good if you're new to Linux. I started with SuSE, but after having fought a war against Yast, a lack of hardware support and the failure of windows XP (dual boot), I decided to install Ubuntu (overwriting SuSE).

    Ubuntu works fast on old(er) computers (I have only 256 mb RAM, which is 90% occupied when I'm using my computer). SuSE is "heavy".
    Operating Systems:
    - Ubuntu 9.04
    - XP

    Compiler: gcc

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Detecting if OS is Windows???
    By Ktulu in forum Windows Programming
    Replies: 2
    Last Post: 11-19-2006, 02:49 AM
  2. Mac OS X Programming
    By Exile in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 05-06-2005, 03:12 PM
  3. a simple OS
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 06-06-2004, 10:47 PM
  4. Linux OS to Windows OS code
    By sw9830 in forum C Programming
    Replies: 2
    Last Post: 02-28-2003, 03:11 PM
  5. How do they compile code for an OS ?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 49
    Last Post: 03-28-2002, 12:16 AM