home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20030 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.9 KB

  1. Xref: sparky comp.lang.c:20030 comp.lang.c++:19696
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!digi!mharriso
  3. From: mharriso@digi.lonestar.org (Mark Harrison)
  4. Newsgroups: comp.lang.c,comp.lang.c++
  5. Subject: Re: C/C++ Correctness (was: Re: C/C++ Speed)
  6. Message-ID: <1993Jan21.171417.4775@digi.lonestar.org>
  7. Date: 21 Jan 93 17:14:17 GMT
  8. References: <1993Jan14.015547.2259@informix.com> <1993Jan18.153627.15707@digi.lonestar.org> <1993Jan19.005020.12507@informix.com>
  9. Organization: DSC Communications Corp, Plano, TX
  10. Lines: 33
  11.  
  12. In article <1993Jan19.005020.12507@informix.com> cshaver@informix.com (Craig Shaver) writes:
  13.  
  14. >What C++ standard library?
  15.  
  16. The "C++ Standard Libraries" from USL.  It's the one with iostreams,
  17. and comes with C++ compilers from many vendors..
  18.  
  19. >What excellent coroutine library?  
  20.  
  21. The one written by B. Stroustrop and Jonathan Shopiro.  It's very likely
  22. that you have this at your site.  Look in your compiler documentation for
  23. a section entitled "A Set of C++ Classes for Co-routine Style Programming."
  24.  
  25. >1.    This sounds like most of the gain came from elimination of the
  26. >    UNIX IPC based approach in favor of a threaded single process.
  27.  
  28. Exactly.  The C++ library provided a method of multi-threading the
  29. application that was portable across the target platforms.  They didn't
  30. have that in their C environment.
  31.  
  32. "Remember that much programming can be simply and clearly done using
  33. only primitive types, data structures, plain functions, and a few
  34. classes from a standard library" -- B. Stroustrup, 1985.
  35.  
  36. >I suspect the same result could be had using straight C.  The real gain
  37. >comes from code reuse to simplify the problem and expedite the solution.
  38.  
  39. And this is one of the big wins of C++.  It facilitates library building
  40. and code reuse.
  41.  
  42. Anyways, I though the prosecution/defense had rested. :-)
  43. -- 
  44. Mark Harrison, mharriso@dsccc.com
  45.