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,7972cb596f5c5a22 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!newspeer1-win.ntli.net!newsfe2-gui.ntli.net.POSTED!53ab2750!not-for-mail From: "Dr. Adrian Wrigley" Subject: Re: Porting Ada code to Linux User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-ID: Newsgroups: comp.lang.ada References: <1162304266.131951.152900@e64g2000cwd.googlegroups.com> <1162316294.922457.113520@h48g2000cwc.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Tue, 31 Oct 2006 20:21:36 GMT NNTP-Posting-Host: 82.10.238.153 X-Trace: newsfe2-gui.ntli.net 1162326096 82.10.238.153 (Tue, 31 Oct 2006 20:21:36 GMT) NNTP-Posting-Date: Tue, 31 Oct 2006 20:21:36 GMT Organization: NTL Xref: g2news2.google.com comp.lang.ada:7302 Date: 2006-10-31T20:21:36+00:00 List-Id: On Tue, 31 Oct 2006 09:38:14 -0800, Howard wrote: > I work with Bill, and I wanted to provide a more detailed expansion of > our situation; > > We are porting from a Windows-95 "legacy" system to a new Linux one. > The code we are re-writing is Visual Basic, and we are translating it > into C++. But, the VB code had a dependancy on a considerable amount > of Ada 95 code that the VB code interfaced with via DLLs. > > We need to port this Ada code over, also. We have decided, given that > there is between 45 and 55 thousand lines of Ada code, with its > attendant complexity, to simply use the Ada code as is without > re-writing it into C++. This Ada code depends on some files, also > written in Ada, that then have some pragmas to a Visual C++ library, > "winbase.h"... Rather than trying to convert the VB into C++, keep the Ada, convert the Ada into Linux and glue the C++ to the Ada, why don't you convert the VB into Ada? You don't seem to have a strong technical reason to combine C++ and Ada, since C++ isn't a current implementation language. Because C++ and Ada have similar capabilities ("modern" compiled OO languages), the technical advantages of mixing them in new code are minimal. Mixing languages always has a cost - staff training, reduced compiler support, tricky interfaces, whatever. Since you plan to convert to C++, you must have good reasons. Political? Skills sets? Anyone well skilled in both C++ and Ada would keep it all in the same language (Ada), or have a really good justification already for mixing (interfacing to existing, complex C++ libraries without Ada bindings, perhaps). But since you haven't chosen the Linux libraries yet, this can't be why. I suspect you want to move to C++ for a mixture of political and skills reasons, but this really warrants planning to rewrite *all* the Ada, in due course. History suggests this is an unsound approach when existing code works broadly as needed. If politics is absent, do it all in Ada, getting necessary skills from outside. Just my thoughts. -- Adrian PS: If you email me the VB, Ada code, I'll rewrite it in Ada/Linux... for a small fee.