home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / bbs / waffle / 5600 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  3.0 KB

  1. Path: sparky!uunet!ogicse!das-news.harvard.edu!spdcc!merk!miracle!phil
  2. From: phil@miracle.com (Phil Hill)
  3. Newsgroups: comp.bbs.waffle
  4. Subject: Re: The woes of ^Z
  5. Message-ID: <27Dec92070848@miracle.com>
  6. Date: 27 Dec 92 11:08:48 GMT
  7. Article-I.D.: miracle.27Dec92070848
  8. Organization: Miracle Computer Consultants
  9. Lines: 54
  10.  
  11. bob@1776.COM (Robert Coe) writes:
  12. >Thank you for your insightful analysis of my understanding of computer I/O.
  13. >You'll have to forgive me, but I'm not altogether sure that you got my point.
  14. >Raw mode is faster because it does less, and some of the less that it does 
  15. >(such as newline checking), Waffle needs.  If the file system doesn't find 
  16. >the newlines, then Waffle has to find them, presumably in a second scan of 
  17. >the incoming character stream.  I'd be surprised if Waffle could do this 
  18. >search as quickly as the file system (which has to count the characters any-
  19. >way) could do it.  But as you say, what do I know?
  20.  
  21. It doesn't matter who does newline scanning, it all costs the same.
  22. Scanning for a newline is very simple, and only takes an additional
  23. few instruction.  It's the same instructions if the DOS kernel does
  24. the scanning or if Waffle does the scanning.
  25.  
  26. The real question is: "Is it work the programmers time to correct the
  27. situation?" Doing your own newline scanning involves writing and
  28. debugging more code. 
  29.  
  30. >>The use of text mode was a *LAZY* decision (or an ommission, cause Tom for-
  31. >>got about ^Z processing).  It doesn't change the fact that it is a BUG.
  32. >
  33. >I don't know Tom personally, but you're the first person I ever heard call
  34. >him lazy or forgetful.  I wish all the commercial software that I use were as 
  35. >reliable as Waffle.
  36.  
  37. I didn't call Tom lazy or forgetful, I said he made a lazy or a forgetful
  38. decision.  Look at it this way: Waffle runs on Unix and DOS.  Tom wants it
  39. to run the same on the two operating systems.  A ^Z in a news record is
  40. treated differently on the two OS's.  So one of the following is True:
  41.  
  42.     A:    Tom is unaware of the problem.
  43.  
  44.         1)    Tom *forgot* that the defaults for OPEN were differnt
  45.             on DOS or UNIX.
  46.         2)    Tom is unaware of the difference.
  47.             (Considering the scope of a project like Waffle, it's
  48.              very unlikely that Tom hasn't run across this before)
  49.  
  50.     B:    Tom decided not to fix the problem.
  51.  
  52.         1)    Tom decided that it wasn't worth his effort.  (in other
  53.             words: he was *lazy* - especially because he didn't
  54.                         bother to document the difference)
  55.  
  56.         2)    Tom couldn't figure out how to fix the problem
  57.             (Another unlikely event, Tom seems to be a good
  58.              programmer, and this is a simple problem).
  59. -------------------------------------------------------------------------
  60. | Phil Hill                     | "All you people in TV land,           |
  61. | Miracle Computer Consultants  |   I will wake up your empty shells.   |
  62. |                               |  Peak time viewing blown in a flash,  |
  63. |                               |   as I burn into your memory cells.   |
  64. | Email: phil@miracle.com       |  'cause I'm alive." - Peter Gabriel   |
  65.