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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4f14801926fc72ac,start X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,f53b01811b2cb54a X-Google-Attributes: gid1108a1,public From: "John Goodsen" Subject: Re: A Simple struct vs a convoluted class object. Date: 1998/07/21 Message-ID: <6p3gho$56m@examiner.concentric.net>#1/1 X-Deja-AN: 373696594 References: <6ogahm$ng7$1@news.reach.net> <35AC9013.C2F6365@sea.ericsson.se> <35AD151F.A8913C1E@munich.netsurf.de> <6omdvm$v2@b2.nautronix.com.au> <6p117g$e27@b2.nautronix.com.au> <35B48E17.12228895@oma.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Concentric Internet Services Newsgroups: comp.object,comp.lang.ada Date: 1998-07-21T00:00:00+00:00 List-Id: Tim Ottinger wrote in message <35B48E17.12228895@oma.com>... >> You have me at an advantage here, are you suggesting that there exist >> today optimizing compilers for Smalltalk or Eiffel or Java that outdo >> C++ ? My comment was meant to indicate that while one may reasonably >> make many critisisms of C++ I had just never heard anyone claim it was >> slow ... > >I've heard it, but I've not heard it justly applied. Usually when C++ isnot fast >enough, it's because it was written inefficiently or (more often) >it's a complaint against new/delete as provided by the compiler vendor. >Admittedly, copying huge objects is slow (that's why we don't do it), >and the malloc implementation of new is typically slow. One issue is >a quality of code issue, another a quality of implementation issue. > There were some studies done a few years ago back on Ada compiler optimization and it showed that Ada compilers have the ability to optimize *MUCH* better than a C compiler, because of the strong language definition. I cross-posted this to comp.lang.ada, in hopes that somebody from that zone might respond... I suspect that Eiffel and Java have the same potential. I'm not sure about Smalltalk, with it's dynamic typing and all ... what does it mean to "compile" smalltalk - I can't imagine the dynamic typing optimizing faster than a statically typed language... -- John Goodsen Saguaro Software, Inc. / Training & Consulting in: jgoodsen@saguarosoft.com - User Centered Systems Analysis http://www.saguarosoft.com - Object Oriented Architecture and Design 602.283.0142 / 888.298.2566 - Rapid Incremental Delivery S/W Process "Example isn't another way to teach, it is the only way to teach. " - Albert Einstein