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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,80ae596d36288e8a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news.in2p3.fr!in2p3.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Why no socket package in the standard ? Date: Thu, 2 Jun 2011 16:34:47 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <87k4d4z6b6.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1307050490 303 69.95.181.76 (2 Jun 2011 21:34:50 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 2 Jun 2011 21:34:50 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6090 X-RFC2646: Format=Flowed; Original Xref: g2news2.google.com comp.lang.ada:20586 Date: 2011-06-02T16:34:47-05:00 List-Id: "Florian Weimer" wrote in message news:87k4d4z6b6.fsf@mid.deneb.enyo.de... >* Randy Brukardt: > >> Defining a package spec is easy enough (many have done that), but >> describing >> what it does in a target-independent way is a much bigger job. Note that >> there is no ISO standard (so far as I'm aware) that describes BSD >> Sockets, >> so we'd have to recreate at least some description of those in the Ada >> Standard. > > I believe they are part of ISO/IEC 9945:2002. You're right; I had forgotten that POSIX had an ISO standard. (I don't think we can reference the IEEE standards.) But one wonders about the wisdom of requiring a particular OS interface for Ada -- Ada is supposed to be target-independent. Perhaps it would be OK to reference a small piece of it. > However, it turns out that there already is an ISO standard for an Ada > interface to BSD sockets (which happens to include a file system > interface, too): ISO/IEC 14519:2001. Efforts to standardize operating > system interfaces should rather concentrate on liberating that > document to increase adoption, addressing open issues, if necessary; > and not be wasted on duplicating it. I think this offers a cautionary > tale why proprietary standards can be really, really bad. The POSIX standard is too low-level, IMHO, to be a very useful inclusion in the Ada standard. We have higher-level concepts in Ada for file management and tasking, for example (and Ada 2012 has a small amount of locale support as well), and that would seem to be appropriate for sockets as well. POSIX has it's place, of course, but it seems fine for it to be a separate standard -- most users have no reason to be writing at such a low level. Randy.