From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f48e5,d756ac687dbfb75c X-Google-Attributes: gidf48e5,public X-Google-Thread: 102b75,d756ac687dbfb75c X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,d756ac687dbfb75c X-Google-Attributes: gid1164f8,public X-Google-Thread: 114b0c,d756ac687dbfb75c X-Google-Attributes: gid114b0c,public X-Google-ArrivalTime: 1992-11-29 16:08:12 PST Xref: sparky comp.arch:11233 comp.sys.dec:6223 comp.sys.hp:13457 comp.sys.sgi:17054 Newsgroups: comp.arch,comp.sys.dec,comp.sys.hp,comp.sys.sgi Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!ficc!peter From: peter@ferranti.com (Peter da Silva) Subject: Re: Comparison of Alpha, MIPS and PA-RISC-II wanted Message-ID: Organization: Xenix Support, FICC References: <1992Nov25.131105.4955@cc.ic.ac.uk> <1992Nov29.201544.1@vxcrna.cern.ch> Date: Sun, 29 Nov 1992 22:52:28 GMT In article <1992Nov29.201544.1@vxcrna.cern.ch> zeus@vxcrna.cern.ch writes: > written one. UNIX in my view is an abomination, it has serious difficulties, > these could have been fixed quite easily, but I now realize nobody ever will. The problem with UNIX is that in 1972 a couple of folks looked at the world as it then existed, and realised that by making a few simplifying assumptions that limited the system to the timeshared model, they could develop a very simple high-level programming model that covered basically the entire set of applications they were interested in. This has the advantage that as long as you were interested in that basic environment, you could run a wide variety of alien operating systems and present the same interface to the programmer. Where does the "problem" bit come in? The problem is that to get past the timeshared environment, you have to either: 1. Make the basic model a little more complex, or 2. Add a few new interfaces to deal with new environments, and make them more or less well-integrated to the basic model, or 3. Implement it on top of a more complex model, with an escape mechanism. Most people have done 2 or 3. System V IPC, Berkeley sockets, and a lot of the stuff under ioctl() are examples of 2. Mach, Amoeba, and other UNIX clones are examples of 3. The problem is, with a few changes in the interface you can provide a model that works well for real-time and distributed environments. The Plan 9 model covers the distributed world pretty well, but does little for real-time. For real-time, you need to jack up the system call interface and provide a general asynchronous interface to it. The result would look kind of like sockets code, but it'd be more general: Let's introduce an opaque object like a file descriptor called an TOKEN. A TOKEN represents a system call in progress, a TOKSET represents a group of tokens to be tested for completion or waited on. ttymon() { TOKSET ttyset; TOKSET waitset; TOKEN ttys[NTTY]; TOKEN gettys[NTTY]; TOKEN tty; int i; ttyset = new_tokset(); for(i = 0; i < NTTY; i++) { if(ttys[i] = async_open(ttyname(i), O_RDWR)) add_token(ttyset, ttys[i]); else alert(DEADTTY, i); gettys[i] = 0; } while(waitset = async_wait(tokset)) { for(i = 0; i < NTTY; i++) { if(ttys[i] && token_in(ttys[i], waitset)) { remove_token(ttyset, ttys[i]); if(gettys[i] = spawn_getty(i, result(ttys[i]))) add_token(ttyset, gettys[i]); else alert(DEADGETTY, i); ttys[i] = 0; } if(gettys[i] && token_in(gettys[i], waitset)) { remove_token(ttyset, gettys[i]); log_result(i, result(gettys[i])); if(ttys[i] = async_open(ttyname(i), O_RDWR)) add_token(ttyset, ttys[i]); else alert(DEADTTY, i); gettys[i] = 0; } } } } > At the moment I use a VMS box, I do so because I find that I do not spend my > time having to think in the "UNIX" mentality that centers around kludges. I do > not have to tolerate a help system that begins its insults of the user by > being invoked with "man". That's because it's not a help system. It's an online manual. If you want a help system, I'm afraid that nobody's written one for UNIX. If there's a demand for it, you can be sure that you'll get plenty of buyers when you write one and sell it at a reasonable price. > Apollo in my view were the only UNIX vendor Apollo were another group 3 vendor, alas. > What I find disgusting about UNIX is that it has *never* grown any operating > system extensions of its own, all the creative work is derrived from VMS, > Multics and the operating systems it killed. That's because UNIX is all about simplifying the working model. Not extending it. POSIX *is* UNIX, and if you implement POSIX you have implemented a UNIX system, for all practical purposes. It's just got some fancy terminology tacked on so DEC and others can save face. Because, for all its warts, UNIX is still a *GOOD* common denominator for a wide variety of application domains. Certainly it's a much better API than VMS or WNT provide. -- %Peter da Silva/77487-5012 USA/+1 713 274 5180/Have you hugged your wolf today? /D{def}def/I{72 mul}D/L{lineto}D/C{curveto}D/F{0 562 moveto 180 576 324 648 396 736 C 432 736 L 482 670 518 634 612 612 C}D/G{setgray}D .75 G F 612 792 L 0 792 L fill 1 G 324 720 24 0 360 arc fill 0 G 3 setlinewidth F stroke showpage % 100