home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / ada / 2234 < prev    next >
Encoding:
Text File  |  1992-07-30  |  3.5 KB  |  68 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!ftpbox!mothost!lmpsbbs!mcil.comm.mot.com!davidk
  3. From: davidk@mcil.comm.mot.com (David Kramer)
  4. Subject: Re: Review of "Ada & C++: A Business Case Analysis
  5. Organization: Motorola Communications Israel Ltd., Tel Aviv
  6. Distribution: usa
  7. Date: Thu, 30 Jul 1992 08:42:43 GMT
  8. Message-ID: <1992Jul30.084243.1137@lmpsbbs.comm.mot.com>
  9. References: <2329@nic.cerf.net> <1992Jul28.213215.25806@fcom.cc.utah.edu> <1992Jul29.074434.21817@lmpsbbs.comm.mot.com> <2408@nic.cerf.net>
  10. Sender: davidk@comm.mot.com (David Kramer)
  11. Nntp-Posting-Host: 145.9.71.22
  12. Lines: 54
  13.  
  14. In article <2408@nic.cerf.net>, jonesm@nic.cerf.net (Matthew Jones) writes:
  15. |> C (and C++) is not an operating system, real time or other. There are many 
  16. |> real time operating systems available, usually tied to the hardware
  17. |> (ie VxWorks or OS9 for the 68k family...). This way seems much more sensible 
  18. |> to me than the Ada "we can solve everyones real time requirements on
  19. |> all hardware with one paradigm." 
  20. If you have something against the Ada implementation you are always free
  21. to use direct system service calls to the operating system just like
  22. you do in C. Meanwhile there are projects that have used Ada tasking
  23. very successfully, and have thereby left the option open to port
  24. their application to some new super-chip in the future without major
  25. changes to their application.
  26.  
  27. But the main point I wanted to make is that currently you can't implement
  28. a distributed C++ application (whether real-time or not) with the compilers 
  29. of today without significant effort.
  30.  
  31. |>                                  Also you might consider that many
  32. |> people have found the Ada tasking model to be implemented very 
  33. |> poorly by the Ada vendors.
  34. This is very unfortunate. However, there are vendors that *have* implemented 
  35. tasking properly. When purchasing any item you have to be sure to buy the 
  36. product that satisfies your requirements. Ada compilers are no different.
  37.  
  38. |>                              Finally you might consider that Unix
  39. |> (and the myriad of real time knockoffs) have plenty of (real time)
  40. |> interprocess features and since C is often developed for some sort of
  41. |> Unix (or real time) box there is a default standard of sorts. 
  42. Ada tasking is a real-time paradigm. Unix is not a real-time OS, it is
  43. a multi-user (hence multi-process) OS - there is a very big difference.
  44. As far as I know, although there are a couple of companies that have
  45. extended unix for real-time, there is no default standard. And it is
  46. certainly true that the vast majority of real-time applications are
  47. not written for those unix extensions.
  48.  
  49. |>                            exceptions can cause errors by making the structure
  50. |> of the code more complicated, because exceptions are kind of like a nonlocal goto
  51. |> (Exception handling reminds me of the use of the Unix C library function setlj,
  52. |> in terms of lodgic flow).
  53. To the contrary, I believe that Ada exception handling makes the code less
  54. complicated. The logic flow is simple - if there's something wrong - break out
  55. of this block and handle it. It is better than a goto because the exception 
  56. handler is always in the same place (at the end of the block of code).
  57. In my opinion setting some flag that triggers termination of some loop is 
  58. a sloppier implementation. 
  59.  
  60. |>                                       Also I think a POSIX real time
  61. |> extensions standard will benefit everyone, C and Ada a like.
  62.  
  63. I fully agree.
  64.  
  65. -- 
  66. [  David Kramer    INTERNET: davidk@mcil.comm.mot.com  ]
  67.  
  68.