From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,f6962b18a52c21c6 X-Google-Attributes: gid103734,public X-Google-Thread: 1048e3,f6962b18a52c21c6 X-Google-Attributes: gid1048e3,public X-Google-Thread: 1076d4,f6962b18a52c21c6 X-Google-Attributes: gid1076d4,public X-Google-Thread: 12851b,f6962b18a52c21c6 X-Google-Attributes: gid12851b,public X-Google-Thread: 1020c6,f6962b18a52c21c6 X-Google-Attributes: gid1020c6,public X-Google-Thread: 1164f8,f6962b18a52c21c6 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10c7e6,ce3086517671fa59 X-Google-Attributes: gid10c7e6,public X-Google-Thread: 112d29,1525410f9bcf28a6 X-Google-Attributes: gid112d29,public X-Google-ArrivalTime: 1992-04-21 08:33:39 PST Xref: sparky comp.sys.dec:2663 comp.windows.x:10280 comp.unix.xenix.sco:1964 comp.unix.sysv386:8998 comp.windows.misc:816 comp.unix.msdos:668 comp.unix.admin:2913 comp.os.misc:537 comp.sys.hp:5414 Newsgroups: comp.sys.dec,comp.windows.x,comp.unix.xenix.sco,comp.unix.sysv386,comp.windows.misc,comp.unix.msdos,comp.unix.admin,comp.os.misc,comp.sys.hp Path: sparky!uunet!zaphod.mps.ohio-state.edu!think.com!spdcc!tauxersvilli!alphalpha!nazgul From: nazgul@alphalpha.com (Kee Hinckley) Subject: Re: Question for net.views column in UNIX Today! Message-ID: <1992Apr21.153339.22615@alphalpha.com> Organization: none References: <1992Mar24.175936.16544@news.eng.convex.com> <1992Mar29.054350.2052@visix.com> <1992Apr1.161010.11988@auto-trol.com> <1992Apr1.211848.21179@dsd.es.com> <1992Apr6.034323.27991@alphalpha.com> <1992Apr20.193758.1250@gateway.novell.com> Date: Tue, 21 Apr 92 15:33:39 GMT [ I removed comp.unix.questions - long live the line eater.] In article <1992Apr20.193758.1250@gateway.novell.com> terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert) writes: >In article <1992Apr6.034323.27991@alphalpha.com>, nazgul@alphalpha.com (Kee Hinckley) writes: >|> In article <1992Apr1.211848.21179@dsd.es.com> pmartz@bambam.dsd.es.com (Paul Martz) writes: >|> >In article <1992Apr1.161010.11988@auto-trol.com>, marbru@auto-trol.com (Martin Brunecky) writes: >|> >> The end user is tired of Unix promises. He wants stability, not >|> >> a permanent revolution. >|> > >|> >The same thing could be said of the PC world. First CPM, then early >|> >revs of DOS, then DOS 3.0 (finally something useable), DOS 5.0, the >|> >Presentation Manager, now Windows NT... You call this stability? >|> More stable than 15 different Unix platforms with 15 different sets >|> of #ifdefs and 15 different install scripts and 15 different types >|> of customer support questions, and in many cases even more stable >|> than two sucessive releases on the same Unix platform. > > This is unfair: > > 1) DOS runs on only one platform This is true, and makes the task of stability much easier, but that doesn't excuse the instability found in Unix. > 2) Most #ifdef's are a sign of poor programming if they are > used for per-machine portability. This is generally not > the case. #ifdef's generally refer to major architectural > differences and refer to a class of machines rather than a > single machine. What would you propose we use instead? long getTimeInSecs() { #if defined(AABSD) || defined(HP) struct timeval tnow; #if defined(sony) tzset(); #endif gettimeofday(&tnow, NULL); return tnow.tv_sec; #else return time(NULL); #endif } long getTZOffs(boolean dst) // return minutes west { #if defined(HP) if (dst) return (timezone/60) - 60; else return (timezone/60); #else #if defined(AABSD) || defined(IBM) struct timeval junk; struct timezone tz; #if defined(sony) tzset(); #endif gettimeofday(&junk, &tz); if (dst) return tz.tz_minuteswest - 60; else return tz.tz_minuteswest; #else /* SYS5 - I assume */ tzset(); if (dst) return altzone/60; else return timezone/60; #endif #endif } int maxFileDescriptors() { #if defined(IBM) || defined(HP) return NOFILE; #else #ifdef SYSV //!! return v.v_nofiles; return NOFILES_MAX; #else return getdtablesize(); #endif #endif } int truncateFile( int fd, off_t len ) { #if defined(SYSV) && !defined(MIPS) && !defined(IBM) return chsize( fd, len ); #else return ftruncate( fd, len ); #endif } /* getPassword * Take a password entry and return the encrypted password. * return "*" if we can't validate the password. */ char *getPassword( struct passwd *pw ) { #if defined(SCO) && !defined(MIPS) struct pr_passwd *pr = getprpwnam(pw->pw_name); if (pr && pr->uflg.fg_encrypt && *pr->ufld.fd_encrypt) return pr->ufld.fd_encrypt; else return "*"; #else return pw->pw_passwd; #endif } And that's the easy stuff, you should see the stuff we have to do to deal with the fact that C++ header files are never correct on a given platform (Domain/OS being perhaps the only exception). That includes both vendor and third-party solutions. Junk! > 3) UNIX is not a commodity market. DOS is. You don't see a > zillion Pyramid/Mips/Vax knock-offs out there. UNIX hardware > isn't commodity at all. UNIX itself is generally MADE at > least slightly incompatible between boxes to differentiate > vendors and to insure a user and his peripherals are locked > into a single vendor. This is because money can't be made > by volume (see MicroChannel). That policy, if it truly exists, and it certainly didn't at places I've worked, would only serve to guarantee that money can't be made by volume. But that's the whole point of this argument isn't it? Unix is not a commodity market - if you don't care then you don't care what happens to NT. If you think that the continued survival of Unix depends on its entering the commodity market then you care a lot. I see the Unix pundits complaining a lot that the reason that Unix hasn't taken off is that it doesn't have a killer app (or for that matter, any large store of commodity apps). But there is a very serious chicken and egg problem there, and I don't see a solution (short of divine intervention :-). > 4) Simple tools can be stable. Complex tools can not. Ever > heard of someone needing to repair a hammer? An Acuna lathe, > on the other hand, requires servicing. A more apt example > of the DOS/UNIX dichotomy might be a skateboard vs a car. This argument assumes that a) users need the complexity that Unix offers, and b) that they can't perform complex tasks on their PCs. I don't believe that either argument is true for the vast majority of the market. > 5) Install scripts differ, again, for vendor differentiation; > you can't seriously believe that the vendors currently in > business could survive a "level playing field"?!? I don't know if they could or not, but I don't think many of them are going to survive the current playing field. > 6) Technology benefits extensively through diversity. What was > the last technical breakthrough for PC machines that resulted > from a niche market demand? PC vendors are in it for volume > and are not niche-market driven. Back to the commodity argument again, but in any case... The Mac has done a number of things that were "niche" driven - desktop publishing, multi-media development, CD-ROM usage. Many of those have then appeared in the next generation of PC products. Unix machines have only very high-end versions of those products, but it's notable that those high-end companies have all come out with (equally high-end) PC versions. > It sounds more like you just got bit by having UNIX machines from >two different vendors and expecting them to act exactly the same. This is I have four different Unix vendors' workstations on my desk. I never expected them to be exactly the same; I did expect them to be paying more than lipservice to that goal. I was wrong. This is great if you are in the system integration business, it's lousy if you're in the software business. >similar to buying a PC and a Macintosh and expecting the same thing. It is Ah, and therein lies the problem. The customer knows that if they buy a Mac they are stuck with Apple. But if they buy a PC they can switch vendors all they want and still run the same OS and same apps. But they are limited - it's all basically the same hardware, and maybe it doesn't do everything they need in terms of speed and OS features. Now along comes Unix to the rescue. But now they discover (as you say) that Unix is "snake oil". They are no more free to switch platforms easily than if they had bought a Mac. Then along comes NT. It claims to have the power of Unix, and the compatiblity of DOS. If it can do half of what they claim those users will choose it over Unix. Now you can argue that you don't care about those customers. I can buy that argument (and I think to a certain extent that's what you are saying - that Unix doesn't belong in the commodity market). I don't like that argument though, and I don't think that Sun, HP, DEC or IBM are building their businesses based on the assumption that Unix has lost the war for the desktop - so if it *has* lost that war I think you can look for some major upsets. Frankly I've talked to people dealing with strategy at a number of hardware companies and although many are trying last ditch defenses against NT (usually by trying to come out with a low cost machine bundled with lots of handy commodity software) they pretty much conceed that they don't have much hope past the next three to five years. Sun and USL don't seem to have given up yet, but elsewhere I think the battle is shifting to the corporate server market - the desktop has been conceeded to the the PCs and Macs. >not possible to hide all architectural differences between two machines under >a single blanket called "UNIX", nor is it possible to hide differences in >software which in many cases are intentional (ala Tandy DOS not booting on >non-Tandy machines. First of all most software never touches the hardware - we don't have a single #ifdef based on machine architecture (well, except byte order, which is pretty trivial). Secondly I don't buy this conspiracy theory of "we have to do it different". I have many times seen "we have to do it better", which often gets translated into the same thing. But I don't see people going out of their way to be different - they just don't know how to go about making it the same. OSF was an attempt. Unix International was another. Neither seems to have done any good. -- Alfalfa Software, Inc. | Poste: The EMail for Unix nazgul@alfalfa.com | Send Anything... Anywhere 617/497-2922 | info@alfalfa.com I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.