From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,da047bd41d707e54 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 20 Dec 2008 00:57:34 +0100 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: networking support? References: <494a17a9$0$30226$9b4e6d93@newsspool1.arcor-online.net> <494a4655$0$30220$9b4e6d93@newsspool1.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <494c34f0$0$30220$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 20 Dec 2008 00:57:36 CET NNTP-Posting-Host: d0f3d630.newsspool1.arcor-online.net X-Trace: DXC=7ODYJ2aB801;]cDoEWD6A4ic==]BZ:af>4Fo<]lROoR1^YC2XCjHcb9VNJKER]6Ra3KQDKiQ7hB9dC3AIY6m5haA7[dg>m38 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3053 Date: 2008-12-20T00:57:36+01:00 List-Id: Maciej Sobczak wrote: > This problem is particularly notorious with network > services. OK. (One might wonder, as an aside, why we still have to live with this mess. Even in C, there is "inline", there is splint for motivating abstraction, etc. A C-to-Something translator where Something forces abstraction, or at least fixes the vagueness inherent in C data layout, will solve many problems...) > There is no way to reasonably interface with all this mess from Ada > [...] you end up with a > regular C++ library that encapsulates some system services and is used > from the Ada program. Granted, some C libraries expose and require the use of internal data structures, even slippery ones, and very likely a C++ abstraction will handle the data just like the C compiler. What remains is a different kind of mess (or fun, depending on the perspective): We have to start from some "clever" traditional C brilliance. Then chain two languages that somehow trigger better abstractions. Or that provide more clear cut data definitions. In a sense, then, the motto of the profession becomes shrug and preserve, either way.