home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / transput / 1198 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.7 KB

  1. Path: sparky!uunet!mcsun!uknet!comlab.ox.ac.uk!michael
  2. From: michael@uk.ac.oxford.robots (& Stevens)
  3. Newsgroups: comp.sys.transputer
  4. Subject: Re: IS Occam3 recursive?
  5. Message-ID: <MICHAEL.92Nov16185558@lucrece.uk.ac.oxford>
  6. Date: 16 Nov 92 18:55:58 GMT
  7. Organization: Dept. Engineering Science, Oxford University, UK
  8. Lines: 35
  9. In-reply-to: rob@pact.nl's message of 13 Nov 92 14:01:57 GMT
  10.  
  11. Now the arguments about recursion and OCCAM have been going a while I
  12. though I would make a quick summary.
  13.  
  14. FOR recursion:
  15.     1. Recursion is mathematically elegent. Serious software
  16. engineering requires it.
  17.     2. Code generation isn't hard. Handle the stack extension is possible.
  18. If it can be done for C, you can do it for OCCAM.
  19.     3. You don't need to use it. If you want to be able to
  20. predetermine memory usage at compile time don't recurese.
  21.     4. Why single out memory as the single resource that should be
  22. predetermined at compile time. Time is another resource that runs out,
  23. and so does disk space.
  24.  
  25. AGAINST recursion:
  26.     1. OCCAM 2 doesn't do it.
  27.     2. Its not implemented in OCCAM 2.
  28.     3. Thats all I can think of, but I am sure it has something to
  29. do with OCCAM 2.
  30.  
  31. Personally I think the arguments against have it :-)
  32.  
  33. Ok enough humour, how about the even tricker issue of dynamic memory
  34. allocation. Does OCCAM 3 need it as part of the language? Should OCCAM
  35. 3 have type safe pointers? Or should we be content with INT32 and
  36. library procedures to allocate memory?
  37.  
  38. Would all this overburned OCCAM and turn it into yet another hacked up
  39. language like C?
  40.  
  41. Michael Stevens, Robotics Research Group,Dept of Engineering Science,Oxford,UK
  42. INTERNET: michael@robots.oxford.ac.uk
  43. --
  44. Michael Stevens, Robotics Research Group,Dept of Engineering Science,Oxford,UK
  45. INTERNET: michael@robots.oxford.ac.uk
  46.