1997Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Languages -->
<!--X-From-R13: @nguna Kbfcr <lbfcrNunjnvv.rqh> -->
<!--X-Date: from scipio.globecomm.net [207.51.48.12] by in12.ibm.net id 864545378.31510&#45;1 Sun May 25 07:29:38 1997 CUT -->
<!--X-Message-Id: Pine.GSO.3.95q.970524212921.28003C&#45;100000@uhunix2 -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9705231525.81m5@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Languages</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:yospe#hawaii,edu">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00766.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00769.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00729.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00732.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00767">Author</A>
&nbsp;|&nbsp;<A HREF="#00767">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00767">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Languages</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Languages</LI>
<LI><em>From</em>: Nathan Yospe &lt;<A HREF="mailto:yospe#hawaii,edu">yospe#hawaii,edu</A>&gt;</LI>
<LI><em>Date</em>: Sat, 24 May 1997 21:37:48 -1000</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Fri, 23 May 1997, Chris Gray wrote:

:[Ben G:]
:
::I'm curious about some things.  What exactly makes c++ slower?  Is it
::more class calls because most ppl make accessing class data a function 
::call?	Perhaps inheritance mapping of some sort?  I head that a c++
::compiler basically just translates the code into c before compile anyway..

:The larger number of function calls (at the implementation level) is one
:of the biggest slow-downs, I think. Asside from the obvious effect of
:executing more instructions, that type of code slows modern CPUs down
:even more because it is hard on the instruction cache and on any branch
:prediction and look-ahead stuff. I don't know if there any CPUs yet that
:can successfully look-ahead through a C++ virtual function call, but I
:doubt it. That pretty well shuts off a lot of look-ahead and pipelining
:until that call has been resolved. Having lots of small functions (many
:of which don't don't actually do anything useful!) results in lots of
:instruction cache misses, resulting in execution closer to main memory
:speed rather than CPU clock speed.

A few points:

1) Unless the function has been keyworded "virtual" there is no such
question... and good coding style calls for minimization of virtuality.

2) Inlining often actually reduces the number of functions. Unfortunately,
it does on occasion (90% of the time) result in bigger executables.

3) C++ no longer benchmarks slower than C. Period. Not specialized case,
not certain machines... there are almost no venders producing C compilers
that generate code that is faster than that generated by the C++ compiler
for competant programmers on each. And I mean code generated out of C++,
not out of C in C++ clothing. Which makes the above arguments all mute.
Now... I think I've said enough. Someone scream at me if I post on the
subject again. (I really hate these sort of wars. Or something. Maybe I
just love to hate them. Please tell me I didn't just say that.)

4) C++ is a nice language to write a mud in. Muds model very well to
object oriented frameworks. At least, Physmud++ did...

   __    _   __  _   _   ,  ,  , ,  
  /_  / / ) /_  /_) / ) /| /| / /\            First Light of a Nova Dawn
 /   / / \ /_  /_) / \ /-|/ |/ /_/            Final Night of a World Gone
Nathan F. Yospe - University of Hawaii Dept of Physics - yospe#hawaii,edu

(I'm getting flashbacks on the Katrina McLelan(sp?) C/C++ flamewar on
rgma.)


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00729" HREF="msg00729.html">Re: [MUD-Dev] Languages</A></STRONG>
<UL><LI><EM>From:</EM> cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray)</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00766.html">Re: [MUD-Dev]  Re: Nutirtion and a Resource Question</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00769.html">Re: [MUD-Dev]  Alright... IF your gonan do DESIESE...</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00729.html">Re: [MUD-Dev] Languages</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00732.html">Re: [MUD-Dev] Languages</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00767"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00767"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>Re: [MUD-Dev] Languages</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00715" HREF="msg00715.html">Re: [MUD-Dev] Languages</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 23 May 1997, 13:03 GMT
<UL>
<LI><strong><A NAME="00748" HREF="msg00748.html">Re: [MUD-Dev] Languages</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Sun 25 May 1997, 06:21 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00717" HREF="msg00717.html">Re: [MUD-Dev] Languages</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 23 May 1997, 14:04 GMT
</LI>
<LI><strong><A NAME="00729" HREF="msg00729.html">Re: [MUD-Dev] Languages</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 24 May 1997, 12:06 GMT
<UL>
<LI><strong><A NAME="00767" HREF="msg00767.html">Re: [MUD-Dev] Languages</A></strong>, 
Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Sun 25 May 1997, 14:29 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00732" HREF="msg00732.html">Re: [MUD-Dev] Languages</A></strong>, 
Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Sat 24 May 1997, 14:10 GMT
<UL>
<LI><strong><A NAME="00747" HREF="msg00747.html">Re: [MUD-Dev] Languages</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Sun 25 May 1997, 05:59 GMT
<UL>
<LI><strong><A NAME="00749" HREF="msg00749.html">Re: [MUD-Dev] Languages</A></strong>, 
Caliban Tiresias Darklock <a href="mailto:caliban#darklock,com">caliban#darklock,com</a>, Sun 25 May 1997, 06:28 GMT
<UL>
<LI><strong><A NAME="00751" HREF="msg00751.html">Re: [MUD-Dev] Languages</A></strong>, 
Miroslav Silovic <a href="mailto:silovic#srce,hr">silovic#srce,hr</a>, Sun 25 May 1997, 06:53 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>