Stop Microsoft

All Things Microsoft => Microsoft Software => Topic started by: Predator on 19 August 2004, 14:18

Title: DOS: Reasons to prefer it above Windowz
Post by: Predator on 19 August 2004, 14:18
I like to think if you're gonna be doing basic programming and text operatoins DOS would be the best choice. Straightforward and quick and effecient. BEEEEEYOUTEEFOOL
Title: DOS: Reasons to prefer it above Windowz
Post by: Aloone_Jonez on 19 August 2004, 14:40
I fine the DOS command line interface easier to use than BASH, even though BASH is meant to be more powerful. DOS is very small and it is great for simple programs where you don
Title: DOS: Reasons to prefer it above Windowz
Post by: Aloone_Jonez on 19 August 2004, 14:59
Wine and DOSEMU can run DOS programs under Linux but I don't know which does a better job. I'm going to install both, and then see for myself.

Has any one else used DOS programs under these computability layers, and if so are they any good?

I would like to run COMMAND.COM for now until I get more used to BASH, will Wine or DOSEMU let you do this?
Title: DOS: Reasons to prefer it above Windowz
Post by: WMD on 20 August 2004, 00:58
If you look deeply into it, you'd realize that DOS is pretty awful.

Reliability.  It seemed good on that front, but only because it ran one app at a time.  If you tried to run DOS Shell and multitask with it, it was horrible.

Memory Management.  It's real mode, it works with 640k of program memory and needed multiple kludges to work any better (UMA, HMA).  Only way around it was a software protected mode driver (which was only so good).

Drivers.  If you install MS-DOS 6.2 (1993), by default these things won't work:
mouse
CD-ROM
sound
video (beyond hardware VESA)

So, you were stuck doing nothing on there until you found drivers and loaded them all.  There were none included.

Command line.  The DOS prompt was pretty weak, and with no work done on it in ages, it can't do much of anything.

Linux, QNX, and others can scale down pretty well to 4MB RAM, since it'd be stripped down a lot on an embedded system.  DOS doesn't have much of a purpose anymore.

[ August 19, 2004: Message edited by: WMD ]

Title: DOS: Reasons to prefer it above Windowz
Post by: Aloone_Jonez on 20 August 2004, 03:12
I'm talking about FreeDOS, MS-DOS sucks.

FreeDOS in good for embedded systems, and it's good secutiry wise, I haven't tried this but if you have a non-winmodem and boot into a FAT32 partition and then use a DOS web browser, if you get infected all you do is reformat and reinstall and as DOS is so small it shouldn't take more than 5 minutes.

DOS shell was shit there are better multi taskers around, and a DOS extender is a must, 640k of memory in 64k blocks was shit in 1994 and it's fucking terrible today.
Title: DOS: Reasons to prefer it above Windowz
Post by: WMD on 20 August 2004, 04:04
quote:
Originally posted by Aloone:
I'm talking about FreeDOS, MS-DOS sucks.

How does FreeDOS solve the problems?

 
quote:
I haven't tried this but if you have a non-winmodem and boot into a FAT32 partition and then use a DOS web browser, if you get infected all you do is reformat and reinstall and as DOS is so small it shouldn't take more than 5 minutes.

1.  Reformatting sucks.  Inconvenient no matter what, especially since DOS requires lots of drivers (like, for every app that needs them, except for mouse.  There isn't a hardware access API).
2.  DOS exploits?   :D  

 
quote:
DOS shell was shit there are better multi taskers around

There's no hardware memory protection in a 16-bit OS.  It's going to suck regardless.

 
quote:
and a DOS extender is a must

Not sure what this does.  I know some apps would load these to use extended memory, like that thing Quake came with.  Is that what you mean?
 
quote:
640k of memory in 64k blocks was shit in 1994 and it's fucking terrible today.

I know of 640k memory, but 64k blocks?  Always acted like one block to me, with stuff in it.  Unless I'm misunderstanding you.

[ August 19, 2004: Message edited by: WMD ]

Title: DOS: Reasons to prefer it above Windowz
Post by: Aloone_Jonez on 20 August 2004, 06:02
quote:
Originally posted by WMD:

How does FreeDOS solve the problems?



FreeDOS is faster and more reliable than MS-DOS.

 
quote:
Originally posted by WMD:

1. Reformatting sucks. Inconvenient no matter what, especially since DOS requires lots of drivers (like, for every app that needs them, except for mouse. There isn't a hardware access API).


If you can put a full free dos install plus a web browser on a 20MB partition reformating is very quick. If you have a copy of your dos installation plust wen browser on a NTFS drive all you would have to do is reformat your FAT partition and copy your installation to it, and then make it bootable or you could use a boot disk.


 
quote:
Originally posted by WMD:

2. DOS exploits?


As DOS can't access your NTFS partition if DOS fucks up it won't fuck your Windows install.

 
quote:
Originally posted by WMD:

There's no hardware memory protection in a 16-bit OS. It's going to suck regardless.



True.

But if you run decent software it shouldn't be a problem.

I remember using Win95 in DOS mode because Windows was too unstable, the only problem with DOS is when it fucks up it locks up and you need to reboot. A DOS extender partly will solve this problem too.

DOS EXTENDER
 
quote:
Originally posted by WMD:

Not sure what this does. I know some apps would load these to use extended memory, like that thing Quake came with. Is that what you mean?



A DOS extender is a piece of software that can either be add on to your program after it has been compiled or a tsr. A DOS extender allows DOS to run in 32-bit protected mode, its an OS extention that also includes a 32-bit memory manager. Some DOS extenders include Win32 API emulation, this enables 32 bit Windows console programs to be run under plain DOS.

WDOSX (http://michael.tippach.bei.t-online.de/wdosx/)
HX DOS extender (http://www.japheth.de/DPMI.html)

 
quote:
Originally posted by WMD:

I know of 640k memory, but 64k blocks?  Always acted like one block to me, with stuff in it.  Unless I'm misunderstanding you.



DOS uses real mode whitch is split up into 64k segments, protected mode can access all the memory as one potentialy 4GB block.

It's getting late and I'm too tired to explain protected/real mode to you, so I hope these links will be of some help to you:
http://www.x86.org/articles/pmbasics/tspec_a1_doc.htm (http://www.x86.org/articles/pmbasics/tspec_a1_doc.htm)
http://my.execpc.com/~geezer/os/pm.htm (http://my.execpc.com/~geezer/os/pm.htm)
http://www.internals.com/articles/protmode/introduction.htm (http://www.internals.com/articles/protmode/introduction.htm)

[ August 19, 2004: Message edited by: Aloone ]

Title: DOS: Reasons to prefer it above Windowz
Post by: WMD on 20 August 2004, 06:21
quote:
If you can put a full free dos install plus a web browser on a 20MB partition reformating is very quick. If you have a copy of your dos installation plust wen browser on a NTFS drive all you would have to do is reformat your FAT partition and copy your installation to it, and then make it bootable or you could use a boot disk.

That's all true, but I'd assume you have some of your own data on there too.

 
quote:
As DOS can't access your NTFS partition if DOS fucks up it won't fuck your Windows install.

Not the response I was looking for...I meant, are there any exploits that can actually affect DOS anymore?

 
quote:
A DOS extender is a piece of software that can either be add on to your program after it has been compiled or a tsr. A DOS extender allows DOS to run in 32-bit protected mode, its an OS extention that also includes a 32-bit memory manager. Some DOS extenders include Win32 API emulation, this enables 32 bit Windows console programs to be run under plain DOS.

Ok, we're talking about the same thing.  Really only that one program runs in protected mode, since it starts when the app does and quits when the app does.  That's really all it does, no multitask capability...but RAM was really the problem, so ok.

 
quote:
DOS uses real mode whitch is split up into 64k segments, protected mode can access all the memory as one potentialy 4GB block.

When you first mentioned these blocks, I was reminded of DOS's use of upper memory blocks: if you loaded a 40k driver, the whole block was still used.  I don't think the conventional memory did that - DOS always treated it like a 640k block, it never had to leave parts empty due to it being blocks.  Reason I bring all this up is that you mentioned the 64k blocks as if they caused their own problem.  The problem is just 640k vs. all memory.
Title: DOS: Reasons to prefer it above Windowz
Post by: Predator on 20 August 2004, 11:39
Wow, you guys really know your OSses hey. Is the freedos really better than the original?            My basic point about preferring DOS to Windows is that Windows gives you too much crap. All the PCs I have worked on, etc. DOS gave me way less crap than Windows. Any PC that I have to patch up, always a problem caused by Windows.
Title: DOS: Reasons to prefer it above Windowz
Post by: pandronic on 21 August 2004, 00:51
I was for many years a DOS programmer and actually gave up programming when Winslows came into the scene.

What I liked about DOS was its simplicity ... if you wanted something you had to program it yourself. You didn't have to rely on badly written APIs or be confined by the OS.

I long for the times when one person could write any kind of application. Now, for example, it takes a few hundred people and a budget of a few million bucks just to write crappy 3D games.
Title: DOS: Reasons to prefer it above Windowz
Post by: WMD on 21 August 2004, 01:17
quote:
What I liked about DOS was its simplicity ... if you wanted something you had to program it yourself. You didn't have to rely on badly written APIs or be confined by the OS.

This is true somewhat...the latest Windoze keylogger is 100k, 85k of that in DLLs.  To log keystrokes.  :rolleyes:

But, this got really bad for some programs.  There was no printing API, so all apps needed their own drivers.  Same for high-res video, sound, what have you.  THAT was a mess.
Title: DOS: Reasons to prefer it above Windowz
Post by: bedouin on 21 August 2004, 03:52
Hmm, this thread brings back memories of buying the newest games, knowing on the ride home I'd be awaiting an additional 2 hours of autoexec.bat and config.sys tweaking/bootdisk creation before it would even work.

If you ever ran a BBS you will have some sort of DOS nostalgia, no matter how repugnant the experience actually was.  It's kind of like battered women's syndrome.
Title: DOS: Reasons to prefer it above Windowz
Post by: pandronic on 21 August 2004, 18:34
quote:
Originally posted by WMD:
But, this got really bad for some programs.  There was no printing API, so all apps needed their own drivers.  Same for high-res video, sound, what have you.  THAT was a mess.


True, except for the mouse. The CD-ROM drivers worked on top of MSCDEX. Also there weren't big problems with hires video if you had a VESA 1.2/2.0 compliant card. Most of the sound cards were SB compliant so all you had to do was to set the port, DMA and IRQ in autoexec.bat.

I agree it's a mess and to sell such a product is something only Microsoft can do, but you had the power to fully control your OS and your computer. Now you have to go where your OS tells you to go (Windows more, Linux less, but still ...)
Title: DOS: Reasons to prefer it above Windowz
Post by: Aloone_Jonez on 21 August 2004, 21:06
Yes, mono-tasking operating systems are cool, they let your programs have all the resources to play with, single tasking OS is best suited to games, embedded systems and batch processing.

How can a crappy 400MHz game console run better games than an 1GHz PC running Linux?

Because it has a very small and compact-mono tasking operating system.

An OS like DOS has the potential to be a great for gaming, the only problems are drivers and the lack of a standard graphics API. If it were possible to write a standard API and port drivers for the latest accelerated 3D graphics and sound cards to FreeDOS, then DOS could be the next big thing. Come to think of it DOS is so small it could be on the same CD as the game, all you would have to do is boot from the CD and the game would automatically load there could be a problem with saving games though.
Title: DOS: Reasons to prefer it above Windowz
Post by: insomnia on 22 August 2004, 02:02
NO NO NO ...
DOS really does suck.
It always was (and is) a kiddy toy.

Ps: So YES, even NT is a lot better.

[ August 21, 2004: Message edited by: insomnia ]

Title: DOS: Reasons to prefer it above Windowz
Post by: WMD on 22 August 2004, 07:28
quote:
Originally posted by Aloone:
How can a crappy 400MHz game console run better games than an 1GHz PC running Linux?

Because it has a very small and compact-mono tasking operating system.


Possibly, but also, that 400Mhz CPU isn't an x86: most consoles used to run on 65c02 and Z80, and now they run some other similar CPU on a custom architecture.  All games are thus optimized for the exact console hardware and nothing else.  That's the bigger reason.
Title: DOS: Reasons to prefer it above Windowz
Post by: mobrien_12 on 22 August 2004, 11:17
quote:
Originally posted by Aloone:

How can a crappy 400MHz game console run better games than an 1GHz PC running Linux?

Because it has a very small and compact-mono tasking operating system.

An OS like DOS has the potential to be a great for gaming, the only problems are drivers and the lack of a standard graphics API. If it were possible to write a standard API and port drivers for the latest accelerated 3D graphics and sound cards to FreeDOS, then DOS could be the next big thing. Come to think of it DOS is so small it could be on the same CD as the game, all you would have to do is boot from the CD and the game would automatically load there could be a problem with saving games though.



Pretty much, I agree, but a console could also have a Linux-based OS with no other programs running and it would be fast too.    

Anyway... In the old days when 3dFX was king, the Glide API was available for DOS.  Games like the first Tomb Raider offered specially compiled executables to call it.

Today, that could be done with AllegroGL (http://allegrogl.sourceforge.net/) for DOS.  The hardware manufacturere would need to write a MESA-compatible allegro driver.
Title: DOS: Reasons to prefer it above Windowz
Post by: Refalm on 22 August 2004, 22:32
quote:
M. O'Brien: Pretty much, I agree, but a console could also have a Linux-based OS with no other programs running and it would be fast too.    

Anyway... In the old days when 3dFX was king, the Glide API was available for DOS.  Games like the first Tomb Raider offered specially compiled executables to call it.

Today, that could be done with AllegroGL (http://allegrogl.sourceforge.net/) for DOS.  The hardware manufacturere would need to write a MESA-compatible allegro driver.


It would be awesome if modern games came out for DOS. All you have running on your computer is a very light OS, the game and only what's required to play the game (hardware drivers). 99,9% of CPU dedicated to the game itself.
Title: DOS: Reasons to prefer it above Windowz
Post by: qbasic on 23 August 2004, 00:15
Troll removed.

[ August 26, 2004: Message edited by: d00g33 :: doogee.is.dreaming.org ]

Title: DOS: Reasons to prefer it above Windowz
Post by: insomnia on 23 August 2004, 08:25
quote:
Originally posted by Refalm / BOB:


It would be awesome if modern games came out for DOS. All you have running on your computer is a very light OS, the game and only what's required to play the game (hardware drivers). 99,9% of CPU dedicated to the game itself.



Making your PC an outdated game console...
Title: DOS: Reasons to prefer it above Windowz
Post by: ShawnD1 on 25 August 2004, 07:59
DOS better than Windows? That's just crazy! In 1995 I bought a computer that came with Windows 95 (Windows based on DOS). To give you an idea of how much a POS DOS really is, that computer had a sticker on it showing the com, PCI, ISA, and IRQ numbers of all the hardware. To setup the sound for games like Duke Nukem, I actually had to look at that sticker to assign the IRQ value of my sound card. That is absolutely pathetic. Even Linux, the "I'm not going to wipe your ass for you" OS, does not ask you to remember IRQ values.

 
quote:
It would be awesome if modern games came out for DOS. All you have running on your computer is a very light OS, the game and only what's required to play the game (hardware drivers). 99,9% of CPU dedicated to the game itself.

OS was a major slowdown in the early 90's because everything was software rendered. If 20% of your CPU was being wasted on something other than the game, like Winamp, you frame rate would really drop 20%. Today, the major factor is video card. Today, if I have a program running that takes 20% of my CPU power, I don't actually see a 20% drop in frame rate. The drop in frame rate probably wouldn't even be noticable unless the game requires a lot of CPU power for something like bots.
The major thing about using a small OS would be the extra RAM available. Having to resort to using the swap file when gaming is what will kill the smoothness of the game you're playing. Try playing Doom 3 with only 256MB of RAM and you'll understand.

[ August 24, 2004: Message edited by: ShawnD1 ]

Title: DOS: Reasons to prefer it above Windowz
Post by: Aloone_Jonez on 25 August 2004, 13:25
You shouldn't need 1GB of ram to play decent games, 64 MB DDR should be enough. The XBOX only has 64MB and the Playstation has a mere 32MB, and neither of these consoles needed a swap file. A swap file is only used on multitasking operating systems and DOS is single tasking.

Games consoles run single tasking operating systems. I hear what your saying about the IRQ problems you had but I have never had such problems. I used to play Quake in DOS mode because Windows kept disk swapping making the game slow and jerky. The IRQ problems could be solved by writing a separate program to detect all that stuff on boot up and save it the DOS environment table.

I'm not saying that DOS is better than Windows & Linux overall, I just prefer it for some things.
Title: DOS: Reasons to prefer it above Windowz
Post by: ShawnD1 on 25 August 2004, 16:10
Those consoles don't need lots of RAM because they use technology that's ~8 years old. To compare how old school consoles are, just look at the video quality. TV quality is only 640 x 480 which is 307200 pixels. Doom 3 for computer has textures with resolutions up to 2048 x 2048 which is 4194304 pixels. Doom 3's textures have 13.6 times as many pixels. When using ultra high quality (uncompressed textures), Doom 3 requires 512MB of video RAM.

here's a picture of Halo for Xbox.

(http://myfiles.dyndns.org/pictures/halo_xbox.jpg)

Halo has no shaders, no AA, no AF, no bump mapping, incredibly low resolution, and only runs at 30FPS. Halo uses as much memory as any other game that uses 1996 (Quake 1) technology.

[ August 25, 2004: Message edited by: ShawnD1 ]

[ August 25, 2004: Message edited by: ShawnD1 ]

Title: DOS: Reasons to prefer it above Windowz
Post by: Refalm on 25 August 2004, 16:37
quote:
ShawnD1: Doom 3 for computer has textures with resolutions up to 2048 x 2048 which is 4194304 pixels. Doom 3's textures have 13.6 times as many pixels. When using ultra high quality (uncompressed textures), Doom 3 requires 512MB of video RAM. (...) Halo has no shaders, no AA, no AF, no bump mapping, incredibly low resolution, and only runs at 30FPS. Halo uses as much memory as any other game that uses 1996 (Quake 1) technology.


I had to tweak Doom 3 because there was no "Ultra Low" setting. My Geforce 4 MX is too old for it I guess.

I don't get the Xbox. It's basically a 700 MHz computer, right? So why can't it do at least 2x anti-aliasing?
Title: DOS: Reasons to prefer it above Windowz
Post by: WMD on 26 August 2004, 00:45
Xbox is 733Mhz, 64MB RAM, 8GB hard drive, custom Nvidia video chip (GF3 type?).  Based on my experiences with it, I think it runs Win 95b on an x86 chip  :D   So, AA and AF are probably out of the league
Title: DOS: Reasons to prefer it above Windowz
Post by: Aloone_Jonez on 26 August 2004, 01:26
I was told that it ran a very minimalistic stripped down single tasking NT kernel.
Title: DOS: Reasons to prefer it above Windowz
Post by: mobrien_12 on 26 August 2004, 11:53
quote:
Originally posted by ShawnD1:
To setup the sound for games like Duke Nukem, I actually had to look at that sticker to assign the IRQ value of my sound card. That is absolutely pathetic.


That kind of stuff is not a necessity in DOS anymore.  Take a look at the Allegro libraries (http://www.talula.demon.co.uk/allegro/).
Title: DOS: Reasons to prefer it above Windowz
Post by: mobrien_12 on 26 August 2004, 11:55


[ August 26, 2004: Message edited by: M. O'Brien ]

Title: DOS: Reasons to prefer it above Windowz
Post by: WMD on 27 August 2004, 00:51
quote:
Originally posted by Aloone:
I was told that it ran a very minimalistic stripped down single tasking NT kernel.


That could be, but it was definately Windows, because it crashed 3 times in a 5-hour period.  :D