home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / forth / 3972 < prev    next >
Encoding:
Text File  |  1993-01-23  |  3.3 KB  |  80 lines

  1. Newsgroups: comp.lang.forth
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!venezia!penev
  3. From: penev@venezia (Penio Penev)
  4. Subject: Re: Documenting
  5. References: <C18CFv.GtA@starnine.com>
  6. Sender: nobody@ctr.columbia.edu
  7. Organization: Rockefeller University
  8. Date: Sat, 23 Jan 1993 11:54:26 GMT
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. Message-ID: <1993Jan23.115426.24547@sol.ctr.columbia.edu>
  11. Reply-To: penev@venezia.rockefeller.edu
  12. X-Posted-From: venezia.rockefeller.edu
  13. NNTP-Posting-Host: sol.ctr.columbia.edu
  14. Lines: 64
  15.  
  16. Mike Haas (mikeh@starnine.com) wrote:
  17. : In article <1993Jan14.122149.16814@Informatik.TU-Muenchen.DE> pazsan@Informatik.TU-Muenchen.DE (Bernd Paysan) writes:
  18. : >|> Usre of blocks in no way increases one's efficiency.  In fact, it hinders it
  19. : >|> because you have to develop all your own print software, backup software,
  20. : >|> stuff that normal OS files live easy with.
  21. : >
  22. : >Per file backup should work. And to port print software you have already
  23. : >is an easy task.
  24. : And write some that doesn't is less easy.  And to write a 'diff' utility
  25. : for screens is even less easy.  Sooner or later, you're going to get
  26. : to something that's hard!
  27. : Seriously, even DOS provides this stuff for text files.  Why have to
  28. : re-invent it at all?  And when improved versions of DOS (or your text editor
  29. : or print spooler or ... ) appear, you will benefit by default.
  30.  
  31. Well, DOS doesn't. It fails on the first inserted char.  But this is
  32. not the point. I program in FORTH since 1985 and have never needed
  33. such a utility. Sure, if I have needed it, I should have written one.
  34. I wrote an (screen) editor, though. It was fun, easy and is the best
  35. editor I've ever used. And the most portable editor I've ever used too.
  36.  
  37. : >
  38. : >|> It's a helluva lot easyier to insert a new function in the middle of
  39. : >|> your program with files.
  40. : >
  41. : >bigFORTH:
  42. : >Alt I and a new screen is inserted at the actual position. Alt D and one
  43. : >is deleted. Even with long screen files it's fast on a HD.
  44. : Text files:
  45. : Press RETURN and a new line is entered.  You don't have waste 1023
  46. : characters to get that new line, either.
  47. : BTW, this idea of "inserting" a screen may apply to BigForth, but
  48. : not in most of them.  In fact, it's those Forths that use
  49. : screens-within-files that provide this capability.  And it's the
  50. : fact that there's a FILE SYSTEM underneath that allows you to do this!
  51.  
  52. Well, the file system has nothing to do with it. When You insert a
  53. screen You copy a block range one screen further. This You can do on
  54. any BLOCK system. And text editors do the same. I've never seen an OS
  55. function "isert bytes(blocks) at the file pointer". I know CPM, DOS &
  56. UNIX. I may be wrong for the rest OSes.
  57.  
  58. : Just go the next logical step and throw away the BLOCK layer.  There's
  59. : no reason for it on file-based platforms, and it's continuance
  60. : hurts Forth.
  61.  
  62. Everybody may use whatever he wants, even BLOCKS. The questions is
  63. whether BLOCKS vs. text files matters for having a good production
  64. environment. I'm sure, that FORTH can be a good one with both. Perhaps
  65. the experience of the companies using FORTH should sumarised in a
  66. book to see the approaches. Surely all of the standard approaches will
  67. work. The question is what is best suited to the particular needs. And
  68. the answers is it depends on the needs. So no general solutions are
  69. good. Some may be just OK.
  70.  
  71. -- Penio.
  72.  
  73.