home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / transput / 1244 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.6 KB  |  44 lines

  1. Newsgroups: comp.sys.transputer
  2. Path: sparky!uunet!mcsun!sun4nl!dutrun!dutrun2!dutncp8!rob
  3. From: rob@pact.nl (Rob Kurver)
  4. Subject: Re: Dynamic memory (was: Re: Recursion in occam)
  5. Message-ID: <rob.722540734@dutncp8>
  6. Sender: news@dutrun2.tudelft.nl (UseNet News System)
  7. Nntp-Posting-Host: dutncp8.tn.tudelft.nl
  8. Organization: PACT, Delft, The Netherlands
  9. References: <142@autro1.UUCP> <rob.722177288@dutncp8> <1992Nov20.102603.2898@titan.inmos.co.uk> <By1FGL.CKF@wizzy.com>
  10. Date: Mon, 23 Nov 1992 17:45:34 GMT
  11. Lines: 31
  12.  
  13. In <By1FGL.CKF@wizzy.com> andyr@wizzy.com (Andy Rabagliati) writes
  14. about Occam and dynamic memory:
  15.  
  16. >Occam was designed as a parallel programming language, with concurrency
  17. >implemented inter- and intra-processor.
  18.  
  19. >For a transputer way out on a limb somewhere, running out of memory
  20. >resource is fatal.
  21.  
  22. Indeed.  So _programs_ should make sure they don't run out of memory.
  23.  
  24. Is this best accomplished by removing support for heap-based dynamic
  25. memory from the language?  Or should you provide both static and
  26. dynamic memory allocation, and tell people about the pros and cons
  27. of each?
  28.  
  29. Why do you think it is impossible to run out of memory with static
  30. memory allocation?  Don't fixed-size arrays fill up?  Don't you
  31. actually fill up one of the fixed-size arrays quicker than one of
  32. the dynamic-size arrays?
  33.  
  34. Statically allocating the available memory does not solve the
  35. out-of-memory problem, but actually makes it worse!
  36.  
  37. Rob
  38.  
  39. --
  40.      PACT                   Rob Kurver
  41.     Foulkeslaan 87         rob@pact.nl
  42.    2625 RB Delft     ph: +31 15 616864 
  43.   The Netherlands   fax: +31 15 610032
  44.