home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / arch / 9159 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.2 KB

  1. Path: sparky!uunet!sun-barr!ames!agate!rsoft!mindlink!a684
  2. From: Nick_Janow@mindlink.bc.ca (Nick Janow)
  3. Newsgroups: comp.arch
  4. Subject: Re: Scientists as Programmers (was Re: Small Language Wanted
  5. Message-ID: <14787@mindlink.bc.ca>
  6. Date: 2 Sep 92 05:51:33 GMT
  7. Organization: MIND LINK! - British Columbia, Canada
  8. Distribution: world
  9. Lines: 21
  10.  
  11. KGZXK@ASUACAD.BITNET (Zafer KADI) writes:
  12.  
  13. > About having global variables or not and if making calls slows the program
  14. > and optimization:  Yes it does.  ....  Do you want the program to be faster
  15. > or
  16. > clearly written for your own standards.
  17.  
  18. Whether or not making lots of subroutine calls slows up a program depends on
  19. the hardware.  It slows up CPUs designed for languages such as C or Fortran. It
  20. does not slow up CPUs designed for Forth, in which a program might have fewer
  21. than ten core words per call.  These processors have minimal overhead for
  22. calls, taking one clock cycle to call, and zero cycles to return.  These CPUs
  23. have a major effect on programming style: what constitute "good" and "bad"
  24. techniques.
  25.  
  26. Read "Stack Computers, The New Wave", by Phillip Koopman Jr. for a good
  27. explanation of these CPUs and a different (better!) approach to programming.
  28.  
  29. --
  30.  
  31. Nick_Janow@mindlink.bc.ca
  32.