* Should we re-host to C++??
@ 1993-12-02 6:12 Dirk Manson
1993-12-02 7:23 ` Dag Bruck
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Dirk Manson @ 1993-12-02 6:12 UTC (permalink / raw)
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!)
References to papers on previous experiences, personal dumps, diatriabs...
We'll take anything...
Thanks
Dirk Manson
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Should we re-host to C++??
1993-12-02 6:12 Should we re-host to C++?? Dirk Manson
@ 1993-12-02 7:23 ` Dag Bruck
1993-12-02 14:01 ` Hans Wegener (in Ergo/WoK)
1993-12-03 5:32 ` Should we re-host to C++?? No, use Ada! Douglas Miller
2 siblings, 0 replies; 6+ messages in thread
From: Dag Bruck @ 1993-12-02 7:23 UTC (permalink / raw)
In <comp.lang.c++,comp.sys.dec> manson@aludra.usc.edu (Dirk Manson) writes:
> * 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
Under these assumptions,
> * Building our main system in C++, using Fortran for CPU hogs
seems like a good idea. You will rewrite the parts where you can
expect the biggest reduction in code size (the data management), and
leave the rest if you run out of time.
My gut feeling is that a C++ program will probably run faster that
your FORTRAN program. My claim has nothing to do with compiler
quality etc.; it is just that a well-designed C++ program is much
easier to improve than a badly designed FORTRAN program.
Data abstraction in C++ makes practically feasible to change a data
structure without changing all the code that uses that data structure.
For example, consider what it would take to change from a conventional
matrix type to a sparse matrix type in FORTRAN: for starters, you
would have to change every function call that operates on you matrix
type. In C++ you just add new functions and operators, and let
overloading take care of the program conversion.
Many of the advatages of C++ has nothing to do with OOP.
-- Dag
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Should we re-host to C++??
1993-12-02 6:12 Should we re-host to C++?? Dirk Manson
1993-12-02 7:23 ` Dag Bruck
@ 1993-12-02 14:01 ` Hans Wegener (in Ergo/WoK)
1993-12-03 13:49 ` mat
1993-12-03 5:32 ` Should we re-host to C++?? No, use Ada! Douglas Miller
2 siblings, 1 reply; 6+ messages in thread
From: Hans Wegener (in Ergo/WoK) @ 1993-12-02 14:01 UTC (permalink / raw)
In article <2dk0vo$gf6@aludra.usc.edu>, manson@aludra.usc.edu (Dirk Manson) writes:
|> [stuff deleted...]
|>
|> * Rapid prototype spaghetti code (VMS Fortran)
Does that mean your system is still in a prototype phase? With Fortran this
may well be the case...
|> [stuff erased...]
|>
|> We believe strongly in all the benefits of C++/OO, especially
This is the first time I've come across a group putting faith into a
programming language. Especially C++ and its "advantages" have driven me to
become convinced about one point: Don't trust your compiler, just your
debugger.
My personal experience: If you like to be fast/efficient, it is best to move
to C. If you r e a l l y consider going OO, move to Smalltalk or Eiffel or
the like, and forget about speed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Should we re-host to C++?? No, use Ada!
1993-12-02 6:12 Should we re-host to C++?? Dirk Manson
1993-12-02 7:23 ` Dag Bruck
1993-12-02 14:01 ` Hans Wegener (in Ergo/WoK)
@ 1993-12-03 5:32 ` Douglas Miller
2 siblings, 0 replies; 6+ messages in thread
From: Douglas Miller @ 1993-12-03 5:32 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Should we re-host to C++??
1993-12-02 14:01 ` Hans Wegener (in Ergo/WoK)
@ 1993-12-03 13:49 ` mat
1993-12-07 4:01 ` Matt Kennel
0 siblings, 1 reply; 6+ messages in thread
From: mat @ 1993-12-03 13:49 UTC (permalink / raw)
In article <1993Dec2.140100.7413@gmd.de>, hans@rhodos.gmd.de (Hans Wegener (in Ergo/WoK)) writes:
> In article <2dk0vo$gf6@aludra.usc.edu>, manson@aludra.usc.edu (Dirk Manson) writes:
>>>>>>Newsgroups: comp.lang.c++,comp.sys.dec
^^^^^^^^^^^^^
> My personal experience: If you like to be fast/efficient, it is best to move
> to C. If you r e a l l y consider going OO, move to Smalltalk or Eiffel or
> the like, and forget about speed.
Sir,
This is about as appropriate as an article bashing Judiaism would
be in a newsgroup with ``jewish'' in the name.
Please take it elsewhere, preferably someplace with `flame' or `null'
in its name.
--
(This man's opinions are his own.)
From mole-end Mark Terribile
mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Should we re-host to C++??
1993-12-03 13:49 ` mat
@ 1993-12-07 4:01 ` Matt Kennel
0 siblings, 0 replies; 6+ messages in thread
From: Matt Kennel @ 1993-12-07 4:01 UTC (permalink / raw)
mat@mole-end.matawan.nj.us wrote:
: In article <1993Dec2.140100.7413@gmd.de>, hans@rhodos.gmd.de (Hans Wegener (in Ergo/WoK)) writes:
: > In article <2dk0vo$gf6@aludra.usc.edu>, manson@aludra.usc.edu (Dirk Manson) writes:
: >>>>>>Newsgroups: comp.lang.c++,comp.sys.dec
: ^^^^^^^^^^^^^
:
: > My personal experience: If you like to be fast/efficient, it is best to move
: > to C. If you r e a l l y consider going OO, move to Smalltalk or Eiffel or
: > the like, and forget about speed.
: Sir,
: This is about as appropriate as an article bashing Judiaism would
: be in a newsgroup with ``jewish'' in the name.
Yeah, all those C++ compilers reading this newsgroup will be *deeply*
offended, especially after 2500 years of this kind of persecution.
: mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ
(Supposedly new Eiffel compilers make good code now, though I have no direct
experience. Because it's strongly-typed and statically bound just like C++
there's no obvious reason it couldn't go at similar speeds to C++)
cheers
Matt
(happy hannukah!)
--
-Matt Kennel mbk@inls1.ucsd.edu
-Institute for Nonlinear Science, University of California, San Diego
-*** AD: Archive for nonlinear dynamics papers & programs: FTP to
-*** lyapunov.ucsd.edu, username "anonymous".
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1993-12-07 4:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-02 6:12 Should we re-host to C++?? Dirk Manson
1993-12-02 7:23 ` Dag Bruck
1993-12-02 14:01 ` Hans Wegener (in Ergo/WoK)
1993-12-03 13:49 ` mat
1993-12-07 4:01 ` Matt Kennel
1993-12-03 5:32 ` Should we re-host to C++?? No, use Ada! Douglas Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox