home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / text / tex / 11109 < prev    next >
Encoding:
Text File  |  1992-09-10  |  2.1 KB  |  42 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!cameron
  3. From: cameron@symcom.math.uiuc.edu (Cameron Smith)
  4. Subject: Re: Big TeX's -- how hard are they to come by?
  5. References: <BuEC6r.B47@news.cso.uiuc.edu> <18p7lpINNc73@almaak.usc.edu>
  6. Message-ID: <BuEEFr.Bz9@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: none
  9. Date: Fri, 11 Sep 1992 05:11:49 GMT
  10. Lines: 30
  11.  
  12. In article <18p7lpINNc73@almaak.usc.edu> ajayshah@almaak.usc.edu
  13. (Ajay Shah) writes:
  14. >cameron@symcom.math.uiuc.edu (Cameron Smith) [That's me!] writes:
  15. >>Are there enough free Big TeX implementation available nowadays that
  16. >>I can simply tell someone who's running out of memory to go get one?
  17. >
  18. >I find it hard to appreciate why TeX should not know how to dynamically
  19. >allocate RAM on demand.  Does this have something to do with being
  20. >written in pascal?  I seem to recall that new() returns nil if
  21. >you are out of memory.
  22.  
  23. I don't have the source code to TeX (Volume B of Computers & Typesetting)
  24. available just now (I returned it to the library; couldn't justify buying
  25. a copy), and I didn't study it closely when I did have it, but I seem
  26. to recall DEK's having made a comment that he wasn't happy about
  27. having to statically pre-allocate tables to hold all of TeX's
  28. data structures, but that since Pascal implementations were so
  29. non-standard in their handling of new() he had no choice.  In particular
  30. I believe he specifically stated that on some Pascals a call to new()
  31. when there wasn't enough memory available would either crash the program
  32. or return a pointer to random garbage.  Of course the Pascal you use
  33. today may do something more sensible, but (a) this was about 15 years
  34. ago, and (b) he was writing for the lowest common denominator, trying
  35. to allow for worst-case behavior.  (And a darn good thing too; that's
  36. probably the reason that it has been possible to port TeX to so many
  37. systems having so little in common with one another.)
  38.  
  39. >Ajay Shah, (213)749-8133, ajayshah@usc.edu
  40.  
  41. Cameron Smith (cameron@symcom.math.uiuc.edu)
  42.