home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / atari / 8bit / 5745 < prev    next >
Encoding:
Text File  |  1992-12-31  |  4.1 KB  |  99 lines

  1. Newsgroups: comp.sys.atari.8bit
  2. Path: sparky!uunet!think.com!ames!nsisrv!nssdca.gsfc.nasa.gov!lanmaint
  3. From: lanmaint@nssdca.gsfc.nasa.gov (Dave Yoest)
  4. Subject: Re: FORTH-83 for Atari 8-bit; anyone interested?
  5. Message-ID: <31DEC199207582838@nssdca.gsfc.nasa.gov>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  8. Nntp-Posting-Host: nssdca.gsfc.nasa.gov
  9. Organization: NASA - Goddard Space Flight Center
  10. References: <1992Dec28.124555.2212@netcom.com> <1992Dec29.143533.1824@cs.tu-berlin.de> <1992Dec30.035608.22678@mtu.edu>
  11. Date: Thu, 31 Dec 1992 12:58:00 GMT
  12. Lines: 85
  13.  
  14. In article <1992Dec30.035608.22678@mtu.edu>, jjmcwill@mtu.edu (Jeff McWilliams) writes...
  15. >Pardon my ignorance toward Forth folks, but what was the language designed
  16. >for, and what are the PROS and CONS for choosing FORTH over some other
  17. >programming language?
  18. >Jeff McWilliams
  19.  
  20.  
  21. I haven't used Forth for many years, and this is an "off the top of my 
  22. head" answer, so I may be wrong. 
  23.  
  24. As I recall, Forth was developed in the 70's by an astronomer. The 
  25. name Brodie keeps coming to mind, but that could be a book author.(I'll 
  26. look up the name if anyone really wants to know) From what I 
  27. understand, it was a SW tool he wrote to control the positioning of 
  28. large telescopes, and later got some use in the robotics disciplines.
  29. It was very "bare bones", and you were supposed to write your own 
  30. routines for almost everything. In fact, every routine (called a 
  31. word in forth) became an extension of the language.
  32.  
  33. It was the main language I used on my 400/800's, I got the 800 back in 
  34. 1982, and since I was never real fond of basic I got the VALforth
  35. development kit. I heard rumors that VALForth was used internally by 
  36. atari as a game development language. Later A PD Forth calle FIG-Forth
  37. was released and its core was as good as the Valpar Forth, but didn't
  38. have all the neat pre-packaged routines for things like PM 
  39. graphics, strings ,trig,  and the like, so you had to write 
  40. your own. I kind of liked it because  Forth is an interpreted language
  41. rather than compiled, so I could try out ideas without the 
  42. edit-assemble-debug-edit-assemble-debug cycles that were time 
  43. consuming with MAC65. (Remember, this is the early 80's before 
  44. Action!)
  45.  
  46. Then I switched to C , and did no SW development on my atari for the
  47. last 5 years. Recently I started writing some small programs again (for
  48. my kids), but I'm using LOGO instead of Forth. I just can't deal with 
  49. adjusting to Reverse Polish notation again. 
  50.  
  51. Atari Logo is a very good implementation of LOGO, and I have free 
  52. versions of Xwindows Logo on my unix machine and there's a really 
  53. amazing free logo for MSwindows. Code portability from atari to 
  54. X-LOGO or MSWinLogo is very good. If you want to write simple programs
  55. or teach your kids about computers, I highly recommend Logo.
  56.  
  57. Forth Pros:
  58.  
  59.   Its portable to other machines. Of course, you have to write good 
  60.   code in the first place if you want it to port easily. I ported most 
  61.   my stuff to the PC without a lot of work when I started using it as my 
  62.   work machine and made the ataris strictly fun machines.
  63.  
  64.   It's interpreted rather than compiled, so you get instant results.
  65.  
  66. Forth Cons:
  67.  
  68.   The biggest con was the reverse polish notation. I got used to it, 
  69.   but it wasn't natural. In my opinion, the expression 2 2 + . is not 
  70.   clear as " add 2 and 2 and print the result. Doing anything in basic
  71.   then became a problem, because the command "20 LIST" in forth will 
  72.   list screen 20, and you get used to it working that way. Then you do 
  73.   something in basic, and want to see line 20, so you type "20 LIST" by 
  74.   habit. Then you get to remember what line 20 was supposed to be, 
  75.   and retype it. 
  76.  
  77.   It's not as fast as Assembeler, and not that much easier to use than  
  78.   a good macro assembeler (once you get a few usefull macros in your 
  79.   library) For serious Atari 8-bit development, I think Action is 
  80.   probably a better choice, unless you plan to port to other machines
  81.   that support Forth.
  82.  
  83.  
  84.  
  85.  
  86. Dave Yoest
  87. LAN Ops & Engineering Section Supervisor
  88. NASA/Goddard Space Flight Center
  89. Greenbelt, Md. USA  20646
  90.  
  91. (301) 286-7033
  92.  
  93. DYOEST@ZAPHOD.GSFC.NASA.GOV 
  94.  
  95.  
  96.  
  97.