From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-12-22 10:28:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-xfer.siscom.net!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin1.nnrp.aus1.giganews.com.POSTED!not-for-mail From: "Bill Todd" Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C1ED472.7040102@qsl.network> <9vnh67$cct$1@bob.news.rcn.net> Subject: Re: Congratulations for the festive season Organization: maybe X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: NNTP-Posting-Date: Sat, 22 Dec 2001 12:27:52 CST X-Trace: sv3-fxTz/CUaHG++bwDyx6OIt3Gxg9mTTcSwvZUsxq9hNe14Svv/rr9vwHf4Mps094Btvx8haoCjwlaz/J6!Tni8QO8iQgkziuU292I/klS9F8N2rm4a3v7jyv+a/fdNpD6q0Vmg8+d/xrBVpoBJRjyWFaO+BdNQ!KJM0bjk9N0LlFVUJ6YJl X-Complaints-To: abuse@GigaNews.Com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Sat, 22 Dec 2001 18:27:52 GMT Xref: archiver1.google.com comp.os.vms:56821 alt.sys.pdp10:8639 comp.sys.dec:10176 "Paul Sture" wrote in message news:VA.000004f9.00bf0554@bluewin.ch... > In article , John J > Francini wrote: ... > > Why? Because the logic to painstakingly check the data being handed to > > kernel and driver routines for sizing problems, data type mismatches, or > > invalid content was left out or incomplete, especially in early > > implementations. Why was it left out? Because it costs people time to > > write these checks, they take up space in the code, and it costs CPU time > > to execute them. UNIX was initially implemented first on the DEC PDP-7 and > > then almost immediately ported to the PDP-11. Address space was at a > > premium. Significant error checking was a luxury. I wrote quite a bit of PDP-11 code and made major efforts to eliminate all possible fat, but even so in my experience 'significant error checking' was *not* considered 'a luxury' - even in RMS-11, where the code was executing in the task context and could only trash that task if things went awry due to bad application input. ... > > Here's a pithy example of the difference. The following quote is from the > > Multics history site at www.multicians.org. It's a snippet of the page > > , in which Tom Van Vleck, one of the > > longtime Multics designers, discusses the relationship between Multics and > > its famous child, UNIX: > > > > "I was working for MIT in those days, and one thing I did was to > > organize an MIT PDP-11 users' group and encourage them to look into > > Unix. The idea of a free, non-vendor-supported operating system was new > > to them. I invited Dennis Ritchie [one of the founders of UNIX] to come > > up and talk to them. > > > > "We went to lunch afterward, and I remarked to Dennis that easily half > > the code I was writing in Multics was error recovery code. He said, "We > > left all that stuff out. If there's an error, we have this routine > > called panic, and when it is called, the machine crashes, and you > > holler > > down the hall, 'Hey, reboot it.'" " > > > > Interesting story, thanks. It does rather confirm a long held suspicion of > mine... Interesting, yes, but if you read it carefully you'll see that it does not relate to error-checking but to error *recovery*. The clear implication is that Ritchie checked for errors (which really does take very little extra code or work) but chose to PANIC rather than attempt to recover from them (which can take a great deal more code and effort). This trade-off can be a reasonable one in some circumstances (e.g., dealing with a piece of flakey hardware in a fully-mirrored environment where the other machine can just take over), whereas failure to check at all is almost always not. - bill