home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / ada / 3274 < prev    next >
Encoding:
Internet Message Format  |  1992-11-14  |  2.1 KB

  1. Path: sparky!uunet!news.tek.com!uw-beaver!cs.ubc.ca!destroyer!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!ucbvax!efftoo.boeing.com!crispen
  2. From: crispen@efftoo.boeing.com (crispen)
  3. Newsgroups: comp.lang.ada
  4. Subject: Re: Computer languages
  5. Message-ID: <9211121331.AA21974@efftoo.boeing.com>
  6. Date: 12 Nov 92 13:31:58 GMT
  7. Sender: usenet@ucbvax.BERKELEY.EDU
  8. Organization: The Internet
  9. Lines: 33
  10.  
  11. Sorry for the heresy that follows, but every time there's any text
  12. to process, it's C for me.  I've got a couple of C programs I wrote
  13. for the last Ada program I was on that generated Ada text -- the idea
  14. was to find the sizes of a bunch of interface data objects, so good
  15. old Ada's 'SIZE attribute is wonderful.  But extracting the declarations
  16. from various packages, putting them together to make compilable Ada
  17. code (lots of file I/O, lots of text manipulation) -- that's a job
  18. for C.
  19.  
  20. I even pragma Interface to printf for error/status messages.  There
  21. is an advantage to that in our environment; you can pragma
  22. Interface_Name it to logMsg in VxWorks so that you can print
  23. even at interrupt level -- something that Text_IO can't do.
  24.  
  25. Of course, I didn't have to deliver these utilities.
  26.  
  27. A buddy of mine just did a big interactive text and file thing using
  28. Ada and it took him 3 days.  I'm certain he could have done it in C
  29. in half a morning.
  30.  
  31. Oh, yeah, heavy operating system interfaces.  I always do a quick
  32. hack in C for things like sockets, rpcs and so on so that I know
  33. I understand it.  Then I write some Ada bindings and redevelop in Ada.
  34.  
  35. Even on the most anally controlled programs there's going to be a
  36. need for some quick, nasty hacks to get an unexpected job done
  37. right away.  F-22 seems to doubt this.  Boy are they going to be
  38. surprised.
  39. +-------------------------------+--------------------------------------+
  40. | Bob Crispen                   |           Co-workers don't           |
  41. | crispen@foxy.boeing.com       +--------------------------------------+
  42. | (205) 461-3296                |Opinions expressed here are mine alone|
  43. +-------------------------------+--------------------------------------+
  44.