home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / forth / 3107 < prev    next >
Encoding:
Text File  |  1992-09-11  |  3.0 KB  |  62 lines

  1. Newsgroups: comp.lang.forth
  2. Path: sparky!uunet!news.univie.ac.at!email!mips.complang.tuwien.ac.at!anton
  3. From: anton@mips.complang.tuwien.ac.at (Anton Martin Ertl)
  4. Subject: Re: Forth will Replace C
  5. Message-ID: <1992Sep11.115043.6038@email.tuwien.ac.at>
  6. Sender: news@email.tuwien.ac.at
  7. Nntp-Posting-Host: mips.complang.tuwien.ac.at
  8. Organization: Institut fuer Computersprachen, Technische Universitaet Wien
  9. References: <BEVAN.92Aug11092121@jaguar.cs.man.ac.uk> <1992Aug12.213552.18782@crd.ge.com> <BtIM7n.G7I@starnine.com> <1992Sep5.150256.17881@mintaka.lcs.mit.edu> <1992Sep8.074716.22978@email.tuwien.ac.at> <dak.716053287@kaa>
  10. Date: Fri, 11 Sep 1992 11:50:43 GMT
  11. Lines: 49
  12.  
  13. In article <dak.716053287@kaa>, dak@kaa.informatik.rwth-aachen.de (David Kastrup) writes:
  14. |> anton@mips.complang.tuwien.ac.at (Anton Martin Ertl) writes:
  15. |> 
  16. |> >In article <1992Sep5.150256.17881@mintaka.lcs.mit.edu>, mikc@hal.gnu.ai.mit.edu (Mike Coughlin) writes:
  17. |> >|>  I do think that Forth will
  18. |> >|> attain the popularity of C.
  19. |> > 
  20. |> >It will even surpass the popularity of C. This will happen as soon as
  21. |> >99% of the C programmers will have switched to C++ :-\
  22. |> 
  23. |> Forget it. Forth is one-upmanship (whatever that is supposed to mean).
  24. |> There is no such thing as independent modules etc. Sideeffects between
  25. |> modules because of naming differences cannot be avoided. Implementation
  26. |> issues (cross-compilers) keep creeping into your source code.
  27.  
  28. Can you say VOCABULARY^H^H^H^H^H^H^H^H^H^H Wordlist? I knew you could.
  29. Vocabularies can be nested, which gives you better control over name
  30. visibility than C's static/extern scheme. And C's scheme has not
  31. kept it from being used in large projects.
  32.  
  33. Also, your argument is beside the point: If everybody switches from C
  34. to C++, Forth will someday be more popular than C.
  35.  
  36. |> The most efficient methods are only employed by a very small number of
  37. |> people. If you want to use their efforts, you have to use libraries.
  38. |> And Forth (=source code) libraries are more difficult to employ because
  39. |> of word conflicts etc. Besides, their is no load-on-demand-feature
  40. |> for library modules (= linking), resulting in massively dead code.
  41.  
  42. You are in for a surprise, when object-oriented methods become more
  43. widespread. And already now you get most of libc.a when you use printf.
  44.  
  45. |> Forth projects cannot be understood on a module to module level, if
  46. |> you use the languages abilities, because not even the syntax is fixed
  47. |> and can be relied on.
  48.  
  49. Macros in e.g. C work the same way. Many people have recognized that a
  50. language cannot force good programming. Therefore most shops have
  51. developed programming conventions to avoid the problems you mention,
  52. and some of them are often written down as policy. "Thinking Forth"
  53. gives guidelines for Forth (althogh I disagree with some of the
  54. recommendations).
  55.  
  56. BTW, how about an obfuscated Forth contest?
  57.  
  58. - anton
  59. -- 
  60. M. Anton Ertl                    Some things have to be seen to be believed
  61. anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
  62.