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,8b7e315279c3f417 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.79.228 with SMTP id m4mr43085wix.7.1355872238751; Tue, 18 Dec 2012 15:10:38 -0800 (PST) MIME-Version: 1.0 Path: l12ni149290wiv.1!nntp.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada Library, called, returns and continues ? Date: Tue, 18 Dec 2012 17:10:33 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <5ced9166-5a29-4ad2-8270-6d24ddd0d0a1@googlegroups.com> <1rz66cdo8v1hv.j9eyg9eqqide$.dlg@40tude.net> <87db4d95-56ce-4254-8031-7bbbea515ff3@googlegroups.com> <3bb4c9f9-7317-46c2-8ddf-a80a6706ce65@googlegroups.com> <6f3c34d9-504a-494c-9157-2cf2649e4776@googlegroups.com> <7885cca5-2f08-48c1-ade1-9a5b10de932c@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1355872238 1171 69.95.181.76 (18 Dec 2012 23:10:38 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 18 Dec 2012 23:10:38 +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.6157 X-RFC2646: Format=Flowed; Original Date: 2012-12-18T17:10:33-06:00 List-Id: "Patrick" wrote in message news:7885cca5-2f08-48c1-ade1-9a5b10de932c@googlegroups.com... > Your scaring me a bit. Do you think there is something fundamental about > Ada that makes it hard to create bindings or projects? Good bindings are hard, for any language. Most bindings are not good for that reason. > I am not saying I can do it, but I am thinking that porting 50K lines of > C++ to Ada should not be so hard, perhaps a month or two of full time > work. I would guess that you are off by an order of magnitude, but of course it would depend on precisely what you are doing and how the existing code works. Remember that the best way to do something in C++ is not necessarily the best way to do something in Ada (and vice-versa). For instance, C++ programs use altogether too many pointers (references) for good Ada. To make a really great Ada binding, you need to design it in Ada -- writing C-in-Ada does not buy much. Randy.