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

  1. Newsgroups: comp.lang.forth
  2. Path: sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!pazsan
  3. From: pazsan@Informatik.TU-Muenchen.DE (Bernd Paysan)
  4. Subject: Re: Forth's Adaptability
  5. References: <1993Jan18.163733.19857@crd.ge.com> <1993Jan19.141925.19029@exu.ericsson.se> <1993Jan20.150614.20069@crd.ge.com>
  6. Originator: pazsan@hphalle5d.informatik.tu-muenchen.de
  7. Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
  8. Organization: Technische Universitaet Muenchen, Germany
  9. Date: Thu, 21 Jan 1993 12:03:16 GMT
  10. Message-ID: <1993Jan21.120316.9995@Informatik.TU-Muenchen.DE>
  11. Lines: 64
  12.  
  13.  
  14. In article <1993Jan20.150614.20069@crd.ge.com>, eaker@ukulele.crd.ge.com (Chuck Eaker) writes:
  15. |> I agree with everything you say about Forth, but I am dismayed at
  16. |> continued defenses of blocks and built-in editors and the
  17. |> rejection of alternatives. The point being made by several people
  18. |> in this thread is that blocks make it very difficult to apply
  19. |> other well-known and powerful tools to the Forth development
  20. |> environment.
  21.  
  22. What do you mean with "rejection"? All I heard is defending blocks
  23. and built-in editors as a good and useful tool. This does not mean that
  24. no alternatives are allowed. As Ray says in another article, commercial
  25. environments of Forth does support these alternatives. In my experience
  26. it turned out that blocks and other features of Forth give a powerful
  27. tool to implement any sort of stream file (I'd like the one with counted
  28. lines, but my host operating system uses cr/lf to terminate the line).
  29.  
  30. A command like SH is nice, too, but this does not necessarily mean
  31. "shell script suport" but to start other aplications. I've a SH and a
  32. RUN, too (the latter directly starts the program, the first starts
  33. $SHELL -c <command>). I prefer forward parsing versions, because with
  34. EVALUATE (or my subword ">TIB) it's easy to build a string in the TIB.
  35. And I rarely use SH or RUN in programs, but I like it interactive.
  36.  
  37. |> Perhaps I'm wrong, but it is my impression that there are still
  38. |> many in the Forth community who look upon files and streams as an
  39. |> unnecessary bit of complexity grudgingly allowed in dpANS to keep
  40. |> Mitch Bradley, and others tainted by their exposure to C and UNIX,
  41. |> happy.
  42.  
  43. :-). Then be happy. There is, and you can use it. There is even the
  44. Chuck Eaker's case, the wrong solution to a typical problem, where one or
  45. two tables would fit much better (gcc 2.3.2 even compiles case select
  46. statements into branch tables - that's the solution! Maybe you find an
  47. implementation of Eaker's - your - case that does that, too! It's not
  48. the syntax that makes case slow, it's the implementation!).
  49.  
  50. |> I think the Forth community is unique in resisting a change in
  51. |> the language which would result in giving its users access to
  52. |> powerful tools.  This is the basis for my insularity claim. 
  53. |> Unfortunately, many Forthers go beyond Forth's traditional and
  54. |> valuable questioning of the "complexity is good" philosophy and
  55. |> adopt the silly position that all complexity is bad. This is the
  56. |> basis for my self-righteous claim.
  57.  
  58. My father, working in system developement for 20 years, says: "it's
  59. easy to find a huge, very complex solution to a problem, it's far more
  60. difficult to find a simple solution to the same problem." And even
  61. worse: it's very difficult to explain the power of the simple solution.
  62.  
  63. It takes more time to build the complex solution, but you have hard to
  64. think for the simple solution (and eventually this takes much more time
  65. than to start without thinking and make it complex).
  66.  
  67. On Forth conferences (like EuroFORTH or so) I get the impression that
  68. many forthers are quite innovative. They added to Forth nearly all the
  69. power any specialized other language has. I've seen (and implemented)
  70. object oriented tools; pattern matching and backtracking like in Prolog,
  71. but including fuzzy logic, Anton Ertl even proposed a simple way to
  72. create native code just as good as modern C compilers are (and it seems
  73. to fit very natural to Forth).
  74. -- 
  75. Bernd Paysan
  76. "Late answers are wrong answers!"
  77.