2000Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Fw: 16K mud server competition ! -->
<!--X-From-R13: Ecva <fcvaNsnfgyvax.pbz.nh> -->
<!--X-Date: Tue, 11 Apr 2000 10:22:20 &#45;0700 -->
<!--X-Message-Id: 20000412012718.A30779#dizzy,vals -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 001501bfa309$8dc081e0$c320fbd8#bluegenesis,com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Fw: 16K mud server competition !</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:spin#fastlink,com.au">
</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="msg00159.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00156.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00133.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00175.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00162">Author</A>
&nbsp;|&nbsp;<A HREF="#00162">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00162">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Fw: 16K mud server competition !</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Fw: 16K mud server competition !</LI>
<LI><em>From</em>: Spin &lt;<A HREF="mailto:spin#fastlink,com.au">spin#fastlink,com.au</A>&gt;</LI>
<LI><em>Date</em>: Wed, 12 Apr 2000 01:27:18 +1000</LI>
<LI><em>Mail-Followup-To</em>: mud-dev#kanga,nu</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: <A HREF="mailto:mud-dev-admin#kanga,nu">mud-dev-admin#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Mon, Apr 10, 2000, Derek Snider wrote:
&lt;snipped&gt;
&gt; What's the smallest size that anyone's been able to get MUD networking
&gt; code down to? (Written in C or C++)  Does it include buffered input/output?
&gt; Full error checking?   ...just curious...  I feel that the networking code
&gt; is going to take up around 4K of valuable space... unless I'm way off.

  Useless mud (posted in r.g.m.a) includes buffered output, full error
checking(and reporting, possibly 150 bytes in strings) but no characters
(connections are identified by their file descriptor). It supports three
commands close(closes the server),quit and help. Anything that isn't a 
command is echoed to every connection except for the originator. Using
Erwin's supplied count program this comes out to 6346 bytes before
optimizing, 3603 afterwards, though perhaps I could have saved a few more
bytes with globals...and it is nearly as hard to read as raw assembler.

  Implementing the same thing in Python, which I've never used before, nor
have I used a full OO language, took 3284 bytes without any optimization
at all (there are some really big variable names in there). I've since
rewritten it and it is probably a little over half the size it was.

  Even more tempting is a simple implementation of Python's forking TCP
server class which just echos back whatever it recieves, just 516 bytes.
Tie that into some shared memory/files and you could easily have a server
in under 1K (with little error checking).

Cheers,
  Malcolm Valentine.  
-- 
                                /\   /\
                               /||\ /||\
                               \||/ \||/
                                \/ I \/



_______________________________________________
MUD-Dev mailing list
MUD-Dev#kanga,nu
<A  HREF="http://www.kanga.nu/lists/listinfo/mud-dev">http://www.kanga.nu/lists/listinfo/mud-dev</A>

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00175" HREF="msg00175.html">Re: [MUD-Dev] Fw: 16K mud server competition !</A></strong>
<ul compact><li><em>From:</em> Richard Woolcock &lt;KaVir#dial,pipex.com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00120" HREF="msg00120.html">Re[2]: [MUD-Dev] Fw: 16K mud server competition !</A></STRONG>
<UL><LI><EM>From:</EM> "Derek Snider" &lt;derek#idirect,com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00159.html">RE: [MUD-Dev] Historical perspective (was: dealing with foul language)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00156.html">RE: [MUD-Dev] Trouble Makers or Regular Citizens</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00133.html">Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00175.html">Re: [MUD-Dev] Fw: 16K mud server competition !</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00162"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00162"><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: Re[2]: [MUD-Dev] Fw: 16K mud server competition !</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<LI><strong><A NAME="00121" HREF="msg00121.html">Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !</A></strong>, 
Holly Sommer <a href="mailto:hsommer#micro,ti.com">hsommer#micro,ti.com</a>, Mon 10 Apr 2000, 17:27 GMT
</LI>
<LI><strong><A NAME="00123" HREF="msg00123.html">Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !</A></strong>, 
Quzah <a href="mailto:quzah#hotmail,com">quzah#hotmail,com</a>, Mon 10 Apr 2000, 21:45 GMT
</LI>
<LI><strong><A NAME="00130" HREF="msg00130.html">Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !</A></strong>, 
Travis S. Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Mon 10 Apr 2000, 21:45 GMT
</LI>
<LI><strong><A NAME="00133" HREF="msg00133.html">Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !</A></strong>, 
Todd McKimmey <a href="mailto:rufus#wombatgames,com">rufus#wombatgames,com</a>, Mon 10 Apr 2000, 22:25 GMT
</LI>
<LI><strong><A NAME="00162" HREF="msg00162.html">Re: [MUD-Dev] Fw: 16K mud server competition !</A></strong>, 
Spin <a href="mailto:spin#fastlink,com.au">spin#fastlink,com.au</a>, Tue 11 Apr 2000, 17:22 GMT
<UL>
<LI><strong><A NAME="00175" HREF="msg00175.html">Re: [MUD-Dev] Fw: 16K mud server competition !</A></strong>, 
Richard Woolcock <a href="mailto:KaVir#dial,pipex.com">KaVir#dial,pipex.com</a>, Tue 11 Apr 2000, 21:26 GMT
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00126" HREF="msg00126.html">Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !</A></strong>, 
Nick Shaffner <a href="mailto:nicks#3drealms,com">nicks#3drealms,com</a>, Mon 10 Apr 2000, 21:45 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00007" HREF="msg00007.html">[MUD-Dev] Old Topic: Playfulness in 3-D Spaces, done.</A></strong>, 
Rudy Fink <a href="mailto:rudyfink#rice,edu">rudyfink#rice,edu</a>, Sun 02 Apr 2000, 14:54 GMT
<LI><strong><A NAME="00004" HREF="msg00004.html">[MUD-Dev] An idea for breaking away from the HP/Mana mindset</A></strong>, 
Eli Stevens <a href="mailto:wickedgrey#wickedgrey,com">wickedgrey#wickedgrey,com</a>, Sun 02 Apr 2000, 06:33 GMT
</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>