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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3cc61b675eac7c7a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.238.198 with SMTP id vm6mr15506997pbc.3.1328062746257; Tue, 31 Jan 2012 18:19:06 -0800 (PST) Path: lh20ni246884pbb.0!nntp.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: BrianG Newsgroups: comp.lang.ada Subject: Re: Ada as glue ? logical approach ? Date: Tue, 31 Jan 2012 21:19:03 -0500 Organization: A noiseless patient Spider Message-ID: References: <9e698480-636a-419f-9b50-400b322de8d4@dp8g2000vbb.googlegroups.com> Mime-Version: 1.0 Injection-Date: Wed, 1 Feb 2012 02:19:05 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="qInZbQfDFAm3U+OkYxhbyg"; logging-data="10709"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18E8RVlR4E6qrveQKIsew1W" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16 In-Reply-To: <9e698480-636a-419f-9b50-400b322de8d4@dp8g2000vbb.googlegroups.com> Cancel-Lock: sha1:Vs6gqR96B72o6G3cft0ziY+RGQY= Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-01-31T21:19:03-05:00 List-Id: On 01/28/2012 11:53 PM, Patrick wrote: > Hi Everyone > > I have been studying ada for sometime now but I have no experience > coding with it. > > It doesn't look like there are all the library bindings i want but I > am wondering if this really matters. > > Someone could write a full binding for a library but could someone > also not just use the import pragma to "grab onto" the existing C > library APIs? > > This would be a bit like ctypes in Python correct ? Are other list > members writing their own 'as needed' partial bindings? Is this a > logical approach? -Patrick I'd like to add one caution to the other responses. If you combine the two descriptions above (little experience in Ada and writing/using thin bindings), you may fall into the trap of writing C (or whatever) in Ada. This is especially true if you are familiar with that language. On the other hand, if you do manage to write Ada in Ada, you'll soon find yourself writing that thick binding, because it makes your application code so much easier to manage. -- --- BrianG 000 @Google's Mail name