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

  1. Newsgroups: comp.lang.forth
  2. Path: sparky!uunet!ftpbox!mothost!isunix.cdx.mot.com!merlin.dev.cdx.mot.com!pjd.dev.cdx.mot.com!peterd
  3. From: peterd@pjd.dev.cdx.mot.com (Peter Desnoyers)
  4. Subject: Re: Sampler Forth
  5. Message-ID: <peterd.716219593@pjd.dev.cdx.mot.com>
  6. Sender: news@merlin.dev.cdx.mot.com (USENET News System)
  7. Nntp-Posting-Host: pjd.dev.cdx.mot.com
  8. Organization: Motorola Codex, Canton, Massachusetts
  9. References: <4303@wet.UUCP> <1992Sep9.174552.22223@tree.UUCP>
  10. Date: Fri, 11 Sep 1992 13:53:13 GMT
  11. Lines: 30
  12.  
  13. alan@tree.UUCP (Alan) writes:
  14.  
  15. >Forth programmers seem to be "hung up" on how fast their Forth kernel
  16. >runs. 
  17.  
  18. This has always surprised me, given that there seems to be a strong
  19. hostility towards classic optimization techniques in the Forth 
  20. community, and a strong belief - in spite of the evidence - that
  21. Forth has a time-warping property that allows it to run faster than
  22. compiled languages in spite of executing more instructions.
  23.  
  24. > They don't seem to grasp the significance of the programming
  25. >truism "First get it right.  THEN make it smaller, faster, slicker,
  26. >etc." 
  27.  
  28. In fact, that's a good argument for using Forth in the first place.
  29. You take a language which allows rapid prototyping, and put your 
  30. solution together in parts. The execution-time inefficiency of 
  31. threaded code is made up for by implementation-time efficiency.
  32. And if that gives the implementer time to use a better algorithm
  33. or better tune the implementation, then the final result may
  34. execute quicker to boot.
  35.  
  36. However, if you have to prototype basic language elements - like
  37. structures and arrays - that have been around since before most
  38. of us were born, then you lose most of the advantages you might
  39. get.
  40.  
  41.                 Peter Desnoyers
  42. -- 
  43.