home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / advocacy / 11003 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  6.2 KB

  1. Xref: sparky comp.os.os2.advocacy:11003 comp.os.ms-windows.advocacy:3461
  2. Newsgroups: comp.os.os2.advocacy,comp.os.ms-windows.advocacy
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!orchard.la.locus.com!prodnet.la.locus.com!lowell
  4. From: lowell@locus.com (Lowell Morrison)
  5. Subject: Re: FCC will proclaim Microsoft is run by Communists! : )
  6. Message-ID: <1992Dec28.154407.0220996@locus.com>
  7. Organization: Locus Computing Corp, Los Angeles
  8. References: <1992Dec25.163338.29576@tc.cornell.edu> <1992Dec25.181732.15997@donau.et.tudelft.nl> <1992Dec25.214123.5213@tc.cornell.edu>
  9. Date: Mon, 28 Dec 1992 15:44:07 GMT
  10. Lines: 130
  11.  
  12. In article <1992Dec25.214123.5213@tc.cornell.edu> bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor) writes:
  13. >In article <1992Dec25.181732.15997@donau.et.tudelft.nl> linstee@dutecaj.et.tudelft.nl (Erik van Linstee) writes:
  14. >>bai@msiadmin.cit.cornell.edu (Dov Bai-MSI Visitor) writes:
  15. >
  16. >Erik, as a short exercise I suggest that you take a look at the FAQ
  17. >for the msdos.programmer group and see how many of the questions
  18. >are related directly to hardware and system. You will find many.
  19. >
  20. I have, and am amazed at the need to know things for plain jane dos
  21. that these programmers are asking.  I have programmed for 17 years
  22. quite effectively without knowing these things about DOS.
  23.  
  24. >>No, one need not know about segment:offset. Why do you think they
  25. >>should?
  26. >
  27. >One should because some compilers (e.g. MS-C) provide _based pointers.
  28. >I think that a good programmer should know how to use them. In addition
  29. >it is related to structure packing.
  30. Ah, MS-C, how about pascal, basic, cobol, apl and other staples of the
  31. programmers diet, rather than just the latest fad.  And I admit, it may
  32. well become the only way to program for these new operating systems.
  33.  
  34.  
  35. >
  36. >Also, it is sometimes needed to write inline assembly and
  37. >you must be aware of the architecture. 
  38. >
  39. Most inline assembly I have seen makes the assumption that you are programming
  40. for an 8086, not these newer processors.  This is the legacy of DOS.
  41.  
  42. >>Yes, one needs to know what memory model to use when programming
  43. >>in C, but only to optimise results. That is a feature C provides.
  44. >                   ^^^^^^^^
  45. >And a good programmer is not supposed to optimize ? Is there
  46. >also a third category of an Optimizing Programmer -:) ?
  47. >
  48. Hmm, since M$ produces some of the largest, bulkiest Code I have
  49. ever seen, I think they need to take your advice.
  50.  
  51. >>Programming in Pascal does not involve memory models. Anyway,
  52. >>choosing the memory model is no programming decision, proper
  53. >>code is not affected by memory model.
  54. >
  55. >That is not true at all. Near, far, hugh pointers are not a standard
  56. >of any language. They are compiler extensions directly related to
  57. >the segmented architecture. A good programmer is expected to know
  58. >how to use them effectively.
  59. >
  60. >You cannt write a program with a data item extending 64k, without
  61. >using the huge model. But the huge model is not the default. If you
  62. >dont use it, your code may give the wrong results and you would not
  63. >know what is going on if you are not aware of the segmented architecure.
  64. >
  65. Again, it is just a matter of using the compiler switch or proper
  66. library.  No need to be terrably concerned about the internals.
  67.   
  68. >>No, one can not program effectively for DOS period.
  69. >
  70. >Nonetheless there are about 90 million  DOS installed. A good programmer
  71. >is expected to program as effectively as possible. 
  72. >
  73.  
  74. Mostly running software written for the 8086 series.
  75. >>>How about the differences between 286/386 ?
  76. >>
  77. >>Well, what about them?
  78. >
  79. >(1) Memory mapping (2) An optional 32-bit programming (3) 16M memory
  80. >limit in 286 (4) flat memory model with an appropriate  DOS extender 
  81. >(5) switching time from real to protected mode considerably different.
  82. >
  83. >>>How about the 640k limit and how to overcome it ? Need not the 
  84. >>>programmer know about extended/expanded memory, DPMI/VCPI interfaces ?
  85. >>
  86. >>The 640k limit is of no concern. When you write an app. and you
  87. >>need memory, you request it and check if you got it. You do not
  88. >>consider if maybe the target system has a specific limit, you
  89. >>just check for any limit to be reached. 
  90. >
  91. >(1) The concern for memory is different if the memory limit is low.
  92. >(2) In shortage of memory the programmer may use overlays.
  93. >
  94. >>No, a programmer needn't know about DPMI/VCPI interfaces. If he
  95. >>wants memory, he requests it, he does not generally care where it
  96. >>comes from. The DPMI/VCPI interface should be hidden from him,
  97. >>unless of course he is writing his own memory management, but
  98. >>I can't think of a reason why an application should need that.
  99. >
  100. >>>I have in front of me the second edition (1992) of the book
  101. >>>"Extending DOS - A Programmer's Guide to Protected Mode DOS" by
  102. >>>Ray Duncan. The first introductory chapter include detailed description 
  103. >>>of selectors, descriptors etc. 
  104. >>
  105. >>Protected mode DOS, where can you buy that? 
  106. >
  107. >Come now, your last few postings were to convince me that the 
  108. >programmer does _not_  need such a book. Why are you interested ?
  109. >>Oh wait, it says
  110. >>Extending DOS. So it isn't part of DOS? Then it can't be of
  111. >>a DOS app. programmers concern, can it? Looks like systems programming
  112. >>to me, but I could be wrong.
  113. >
  114. >Sure, protected mode is not part of DOS. But that is the whole point:
  115. >DOS is so deficient that much of the work must be provided 
  116. >by the programmer. That is why there is no real distinction between
  117. >system and application programming for a good, efficient DOS programmer.
  118. >
  119.  
  120. Ah, the truth comes out, we are NOT talking about programming for DOS
  121. at all, but trying to work with a Hybrid-system-application to go
  122. beyond DOS.  There is a Huge difference between System and Application
  123. programmers.  I work at a Unix Kernel Development house, and they can
  124. make a system do anything, but are hopeless as application developers.
  125. You see, they simply cannot understand a User Interface for a Word Processor
  126. the best they can do is VI.....
  127.  
  128. >BTW: Does any body think that if a "system programmer" at MS
  129. >has written an interrupt handler for the "application" group
  130. >he must tell it to all the competitors? Is it another case of
  131. >"predatory tactics" ?
  132. >
  133. >>
  134. >>Erik van Linstee   |   Delft University of Technology   |   I'll be back ... 
  135. >
  136. >Dov
  137.  
  138. --Lowell Morrison
  139. --Uncle Wolf
  140.  
  141.