From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2f3b7c37a50d04e6 X-Google-Attributes: gid1164f8,public X-Google-Thread: 103376,af557724d6cd58bd,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1993-12-03 00:21:28 PST Xref: gmd.de comp.sys.dec:12219 comp.lang.ada:8492 Path: gmd.de!newsserver.jvnc.net!darwin.sura.net!sgiblab!munnari.oz.au!sol.ccs.deakin.edu.au!usenet From: dougcc@brt.deakin.edu.au (Douglas Miller) Newsgroups: comp.sys.dec,comp.lang.ada Subject: RE: Should we re-host to C++?? No, use Ada! Date: Fri, 3 Dec 93 16:32:43 +1100 Organization: Deakin University Message-ID: <2dmiut$22b@sol.ccs.deakin.edu.au> References: ,<2dk0vo$gf6@aludra.usc.edu> NNTP-Posting-Host: vax2.ccs.deakin.edu.au In Article <2dk0vo$gf6@aludra.usc.edu> manson@aludra.usc.edu (Dirk Manson) writes: > We have an interesting problem, to which the solution would appear >to be to use a C++/OO approach... but we have one major concern EFFICIENCY?? > >The problem : We have a fairly large (about 75,000 lines) application > that needs to be re-architected and re-coded. The basic > attributes of the application are as follows: > * Near real-time data processing > * Rapid prototype spaghetti code (VMS Fortran) > * Runs primarily in a DEC VMS environment > * Many processes with gobs of shared memory > * Data crunching vs data management is split 30/70 in lines of code > * Data crunching vs data management is split 80/20 in CPU usage > * 100% utilization of current processing power > > We believe strongly in all the benefits of C++/OO, especially >portability, since we will eventually need to be able to run our system >on different hosts. But weUll also be out of a job if we deliver >a product that cannot process at least the same data rates as the >current prototype system. > > Some of our preliminary benchmarks indicate there may be a significant >performance hit for going to C++... does anyone out there have experience with >this kind of conversion excersize, or have any insights into what we should do? > > Ideas we are toying with include: > * Trashing the whole C++ experiment in favor of speedy Fortran > * Building our main system in C++, using Fortran for CPU hogs > * Switching to ADA instead (just kidding!) Switch to Ada. You say you are concerned with portability --- Ada wins hands-down on this score. Also Ada has better features than any other language for data modelling/abstraction which is going to pay dividends for you in code reliability and maintainability. The only way C++ might be ahead at the moment is if you regard dynamic-polyphoric-multiple-inheritance whatever as an advance over traditional Ada features such as packages (and I say the jury is still out on this one), because Ada won't have this until the Ada 9X standard is finalised. Other possible advantages in your case: o Maybe multiple processes with shared memory could be implemented with Ada tasks, giving the advantage of complete portability. o DEC's Ada compiler has a reputation for being one of the best (if not the best) in the industry, so your concerns over efficiency may not be an issue.