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: a07f3367d7,eb00b9b968ac2b79 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Received: by 10.66.82.195 with SMTP id k3mr1086281pay.23.1347019626987; Fri, 07 Sep 2012 05:07:06 -0700 (PDT) Path: t10ni8635620pbh.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!nntp.club.cc.cmu.edu!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?B?w4FsZXggUi4=?= Mosteo Newsgroups: comp.lang.ada Subject: Re: Ada networking (Adagio) Date: Thu, 30 Aug 2012 11:18:15 +0200 Organization: A noiseless patient Spider Message-ID: References: <296db66c-9246-4801-b293-c116e5c21f6b@googlegroups.com> <2ef339a5-2e40-49e9-b5dc-4bb018b93bda@googlegroups.com> <25c0792f-6258-4902-9a7d-e45db9e6ca50@googlegroups.com> Mime-Version: 1.0 Injection-Date: Thu, 30 Aug 2012 09:18:12 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="99cff88a3092f3ad77be66d4ad22221a"; logging-data="17921"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dnzuGkZY43Vlmyr1/XFiu" User-Agent: KNode/4.8.5 Cancel-Lock: sha1:GKHC9fC7GrQqCct6sMoFAmdwLK0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Date: 2012-08-30T11:18:15+02:00 List-Id: Shark8 wrote: > On Wednesday, August 29, 2012 5:08:08 AM UTC-6, Álex R. Mosteo wrote: >> Álex R. Mosteo wrote: >> >> >> Project file is adagio.gpr. There are others for related projects that >> never got anywhere, so I'm leaving these for later. > > Alright, I'll grab a copy. > >> >> It doesn't compile yet, although I've started fixing things around. I'm >> pretty sure I've broken something in the process. Truth is, it relied too >> much on Gnat sockets internals that have changed. It was somewhat >> nightmarish getting consistent results in Windows and Linux, I remember >> now. > > Not surprising. I'm not sure if sockets are the best way to handle > networking in-general -- though they certainly are the most popular. I've used Yarp (mandated in a project) and came to hate it. But I'm pretty sure that there are better middlewares out there. From the point of view of ready for use with Ada I'm curious about YAMI4 and zeromq. >> I'm also having problems with Pragmarc components that return limited >> types. I think this is one of the few inconsistencies between Ada95 and >> 2005. I'm making these things non-limited, but I'm not sure what are the >> implications... > > Ah, something to note. I was playing around with the Ada 2012 / 2005 > functionality in a testing project and found that GNAT (Adacore's free > one) allowed my to specify different Ada-versions for spec and body. eg: > > Pragma Ada_2005; > Package Testing is [...] end Testing; > > ------ > > Pragma Ada_2012; > Package Body Testing is [...] end Testing; > > or vice-versa. Right, I had forgotten about the mode switches too. I'm thinking now that I should revert in fact to ada95 mode, which is what existed at the time. I'll give it a try. Alex.