home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / forth / 3771 < prev    next >
Encoding:
Text File  |  1993-01-06  |  5.3 KB  |  124 lines

  1. Newsgroups: comp.lang.forth
  2. Path: sparky!uunet!starnine!mikeh
  3. From: mikeh@starnine.com (Mike Haas)
  4. Subject: Re: Documenting
  5. Message-ID: <C0EoE4.Go3@starnine.com>
  6. Sender: mikeh@starnine.com (Mike Haas)
  7. Date: Wed, 6 Jan 1993 00:08:27 GMT
  8. References: <1992Dec31.112348.12448@sol.ctr.columbia.edu> <C0CsnE.CrC@starnine.com> <C0D1tD.IyH.1@cs.cmu.edu>
  9. Organization: StarNine Technologies, Inc.
  10. Lines: 112
  11.  
  12. In article <C0D1tD.IyH.1@cs.cmu.edu> dwp+@cs.cmu.edu (Doug Philips) writes:
  13. >In article <C0CsnE.CrC@starnine.com> mikeh@starnine.com (Mike Haas) writes:
  14. >+They [screens] are also incredibly wasteful... if you only enter one 1-line
  15. >+definition on a screen, you are wasting all the rest of the storage
  16. >+space, as screens must occupy 1024 characters, regardless of how
  17. >+much is white-space and what is not.  Just the remainder of whitespace
  18. >+on each line following the last non-white character is a waste.
  19. >+
  20. >+All because of the inability to handle an "end-of-line" character!
  21. >+And what OS doesn't provide THAT?
  22. >[Tedious list of the first line "documentation" for a group of screens
  23. >elided.  -dwp]
  24. >+Simple.  Each is in it's own file.  Clean, clear, and no waste of space.
  25. >
  26. >Whoa a minute here.  Most OS's (those that have EOL characters), also have
  27. >file systems with allocations in units of sectors (or multiple-sector
  28. >unitss), and bunches of tiny files will waste a lot of space.  If this is
  29. >really an issue, then let's be clear about it.
  30.  
  31. It certainly IS an issue:  There is a grain-size to normal file systems,
  32. ans it is usually based on hardware sector size.  BUT...
  33.  
  34. It standard files, the only disk space that is wasted is in the last block.
  35. In screens, it is virtually always true that a significant portion of
  36. EVERY block in the file is wasted.  If an attempt is made to use screen
  37. real-estate more efficiently, then unreadable, non-indented code is the
  38. result.
  39.  
  40. Type in the following two lines in a stanard text editor and a screen
  41. editor...
  42.  
  43. ABC
  44. 123
  45.  
  46. Assuming CR,LF is the eol terminator, a hex dump of that data will reveal...
  47.  
  48. 41 42 43 0d 0a 31 32 33 0d 0a
  49.  
  50. display in hex the same two lines of the screen reveals...
  51.  
  52. 41 42 43 20 20 20 20 20 20 20 20 20 20 20 20 20
  53. 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  54. 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  55. 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  56. 31 32 33 20 20 20 20 20 20 20 20 20 20 20 20 20
  57. 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  58. 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  59. 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
  60.  
  61.  
  62. >
  63. >+I always wonder how many proponents of screens have never tried
  64. >+a good file implemtation.
  65. >+
  66. >+The fact that many still argue for screens is a statement as to 
  67. >+why Forth will never be accepted by the mainsteam.
  68. >
  69. >How about:  The fact that many still argue over screens vs. files is a
  70. >statement as to why Forth will never be accepted by the mainstream?
  71.  
  72. Attempting to bring "modern" technology (like files- ha ha) to Forth
  73. keeps it out of the mainstream?  That's a new one.
  74.  
  75. >
  76. >Is Forth so rigid as to require one and disallow the other?
  77.  
  78. I have said repeatedly that the proper place for screens is in
  79. systems where there is no operating system.  My bone of contention
  80. is with the rigid individuals who insist that if an OS
  81. is available, with standard file system capabilities, that
  82. screens still have a place in that kind of an environment.
  83.  
  84. It is ridiculous to think that professionals versed in C,
  85. Pascal and other mainstream languages will accept screens in
  86. any way.  They DO keep Forth out of the mainstream.
  87.  
  88. I believe that screens are viewed by such individuals as
  89. evidence that Forth will never be a modern language.  Remember
  90. that these are computer-literate people that have yet to learn to
  91. appreciate Forth's interactivity, architecture, simplicity and
  92. power.  And they never will as long as, in their 'indoctrination',
  93. they are told that screens are the accepted, standard way of
  94. dealing with Forth source.  Think about it... conventional
  95. language programmers have come to expect that they can PRINT OUT
  96. their source using standard tools, and that's just a small
  97. example of the radical differences between screens and files.
  98.  
  99. Imagine what such professionals think when they are told that
  100. the only way to track and reference volumous source file is
  101. via a screen number!  Remember all the flack that BASIC received
  102. for insisting upon line numbers?  Remember how, when BASIC's were
  103. introduced that didn't require line numbers, it was praised?
  104.  
  105. It is difficult to convince xperts that a given language is an
  106. excellent general-purpose tool, when some of it's major features
  107. are architected to work best only in embedded controller
  108. applications.
  109.  
  110. In truth, I did not find Forth to be a good general purpose
  111. platform language until I had both files and the ability to
  112. generate minimally-sized standalone programs that do not
  113. contain ANY exteraneous code from the development system
  114. (like the compiler itself, fer chrissake).  I also think
  115. we won't even get off THAT easy!  To begin to be considered
  116. by the mainstream, there needs to be a standard set of
  117. functions which allow one to link with object files from
  118. other languages.  That's what the mainstream has come to expect,
  119. and it is a very valuable and useful capability.
  120.  
  121. But from what I've seen, few care to put that much work into it.
  122. Easier to stay with screens and try to convince others how
  123. great they still are.
  124.