home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / prime / 2657 < prev    next >
Encoding:
Internet Message Format  |  1992-12-23  |  6.0 KB

  1. Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!news
  2. From: markd@werple.apana.org.au (Mark Delany)
  3. Newsgroups: comp.sys.prime
  4. Subject: Re: X Windows on 50-Series
  5. Date: 23 Dec 1992 21:12:35 +1100
  6. Organization: werple public-access unix, Melbourne
  7. Lines: 136
  8. Message-ID: <1h9e2jINNkht@werple.apana.org.au>
  9. References: <9212091722.AA28848@usenet.rpi.edu> <DRAND.92Dec10100134@spinner.osf.org> <1h1muqINN1e4@werple.apana.org.au> <1992Dec21.021714.26320@primerd.prime.com>
  10. NNTP-Posting-Host: werple.apana.org.au
  11.  
  12. jasonp@bungie.prime.com (Jason Pascucci) writes:
  13.  
  14.  
  15. >PL/P is the highest used Primos language, with 1448 modules as of 23.3,
  16. >382 SPL, 373 PMA, 175 FTN, and 99 Modula. (Not including insert files)
  17.  
  18. Jason, thanks for presenting these figures. Pretty interesting in
  19. there own right really aren't they?
  20.  
  21. As someone pointed out in private mail, this is obviously a moving
  22. target and in the last number of years people have made a great
  23. efforts in converting much of the old FTN.
  24.  
  25. >In many cases, the 'right language' for the 'right job' was used.
  26.  
  27. That may be true today, but to be strictly honest, in the early days
  28. there was no choice but FTN and PMA.
  29.  
  30. let's face it, FTN's is a god-awful OS language as is evident by the
  31. efforts spend re-coding a lot of the FTN into one of the other
  32. languages.
  33.  
  34.  
  35. >I am a proponant for multiple languages in software products...
  36. >admittedly, it is a maintenance problem, but more importantly
  37. >no one language has all the capability to do it all, and still come
  38. >out looking reasonable. Personally, I'd pick SPL over C in about 80% 
  39. >of the cases of software development, from OS to apps. 
  40.  
  41. Yes, remember the compiler wars? I guess it's safe to reminisce over
  42. them now, isn't it? 
  43.  
  44. Tell me something. I can understand the philosophical differences
  45. regarding (say) Module II vs PLP, but I really struggle to understand
  46. why all that energy went into both SPL *and* PLP. I found the
  47. differences vastly more annoying than useful.
  48.  
  49. At the time people were vehement, but surely much of the argument was
  50. nits which could have been solved?
  51.  
  52. >|> Let see, that adds up to 24*80 * 8*13 * 8 bits (xy * font * colour
  53. >|> planes), or approx 200Kb. Pretty difficult when the largest contiguous
  54. >|> pieve of memory you can do in V-mode is 128Kb!
  55.  
  56. >Which is easily enough coded around. However, this isn't much of an 
  57. >issue for X, since the X stuff is in IX (c-language support) mode.(Come 
  58. >to think of it, I don't know if IX handles this any better, either.)
  59.  
  60. Memory fade notwithstanding, IX mode still had the V-mode segmentation
  61. model. I was under the impression that X-mode was the only mode that
  62. gave a contiguous memory model, but that never saw the light of day.
  63. Sad really, it looked good.
  64.  
  65. >However, add scrollback to that '24' number, also. I personally use 
  66. >at least 200 lines, and I know someone who uses upwards of 1000. 
  67. >Viva la VM! 
  68.  
  69. VM - yes, programmer visible segmentation - no. Especially not these
  70. days.
  71.  
  72. >(Thinking about it a little more, you'd allocate this in chunks 
  73. >anyways, not a flat space.)
  74.  
  75. Of course, But to generalize, what you should be doing is selecting
  76. the structure that best solves your problem, certainly not one
  77. enforced by H/W limitations. You can chunk in flat but you can't flat
  78. in chunk.
  79.  
  80. But I don't think anyone seriously argues that a segmented model is
  81. more convenient for the programmer than flat address space (how the
  82. H/W provides this along with memory protection etc, is its business).
  83.  
  84. The advantages of fix length segments (if you will) is one of H/W
  85. convenience and simplicity.
  86.  
  87. On a tangent, you may want to see the old discussions re 64-bit
  88. addressing in comp.arch, one suggestion was that every data bit in the
  89. universe would be potentially visible in one huge address space! The
  90. mind boggles really.
  91.  
  92. >|> I'll bet that reasons like: fork(), select(), device independence
  93. >|> [consider read()/write() of sockets], exec(), pipe() and wait() also
  94. >|> have a part to play as just about any Unix prog with a degree of
  95. >|> difficulty greater than zero relies on some of these (Xlib uses at
  96. >|> least two of these for starters).
  97.  
  98. >These have for the most part been worked around previously, for
  99. >PRIMIX support. Others have been done also. Many of these
  100. >are fairly useful...I'll ask around about getting them released. 
  101.  
  102. Er, for some part and partially. And then often only within the
  103. confines of Primix or the C-library.
  104.  
  105. >|> Would Alan Dossett care to elaborate on the reason for most of the
  106. >|> problems. It would certainly help those the poor sods who are trying
  107. >|> to port other Unix code to Primos...
  108.  
  109. >My take (I'm not directly working on the project) is that the
  110. >C compiler is giving most of the headaches. Much of the
  111. >#ifdef __50SERIES ... #endif is to get around compiler issues. 
  112. >One of the problems with finding the problems was the enormous
  113. >number of macros to get to the actual code, and the non-intuitiveness
  114.  
  115. Yes, there is one particularly famous macro in there somewheres that's
  116. literally pages long. The mother of all macros as far as C compilers
  117. are concerned.
  118.  
  119. Now here's a truly insidious thought. Perhaps the Primos C compiler's
  120. symbol table overflows a 64K segment size with this sucker (I recall
  121. that BIGPMA existed solely because normal PMA had this problem).
  122.  
  123.  
  124. >of the placement of those macros in the source code distribution. Another 
  125. >was, if memory serves, an alignment problem in structures. Some of
  126. >these problems have only arisen as of the later version of the
  127. >C compiler. 
  128.  
  129. >Alan, maybe you can get someone working on X to summarize
  130. >some of their porting issues here? 
  131.  
  132. Something I've always wanted to know is why the port of Unix to
  133. 50-series was canned (and I don't mean PRIMIX, I mean the genuine
  134. article). Now what was that project called? Here are my three guesses:
  135. performance, politics and (you guessed it) segmentation.
  136.  
  137.  
  138. >It's kind of nice to hear
  139. >that there are people out there who are actually porting code
  140. >*FROM* a Unix box. :)
  141.  
  142. Actually, being Christmas and all, I was thinking of others :-)
  143.  
  144.  
  145.  
  146. --
  147. Mark Delany                                          markd@werple.apana.org.au
  148.