2000Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Fw: 16K mud server competition ! -->
<!--X-From-R13: Dvpuneq Ibbypbpx <YnHveNqvny.cvcrk.pbz> -->
<!--X-Date: Tue, 11 Apr 2000 14:26:10 &#45;0700 -->
<!--X-Message-Id: 38F3F608.1A59@dial.pipex.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 001501bfa309$8dc081e0$c320fbd8@bluegenesis.com -->
<!--X-Reference: 20000412012718.A30779@dizzy.vals -->
<!--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:KaVir@dial.pipex.com">
</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="msg00176.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00181.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00162.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00222.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00175">Author</A>
&nbsp;|&nbsp;<A HREF="#00175">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00175">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>: Richard Woolcock &lt;<A HREF="mailto:KaVir#dial,pipex.com">KaVir#dial,pipex.com</A>&gt;</LI>
<LI><em>Date</em>: Tue, 11 Apr 2000 21:05:28 -0700</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>
Spin wrote:
&gt; 
&gt; On Mon, Apr 10, 2000, Derek Snider wrote:
&gt; &lt;snipped&gt;
&gt; &gt; What's the smallest size that anyone's been able to get MUD networking
&gt; &gt; code down to? (Written in C or C++)  Does it include buffered input/output?
&gt; &gt; Full error checking?   ...just curious...  I feel that the networking code
&gt; &gt; is going to take up around 4K of valuable space... unless I'm way off.
&gt; 
&gt;   Useless mud (posted in r.g.m.a) includes buffered output, full error
&gt; checking(and reporting, possibly 150 bytes in strings) but no characters
&gt; (connections are identified by their file descriptor). It supports three
&gt; commands close(closes the server),quit and help. Anything that isn't a
&gt; command is echoed to every connection except for the originator. Using
&gt; Erwin's supplied count program this comes out to 6346 bytes before
&gt; optimizing, 3603 afterwards, though perhaps I could have saved a few more
&gt; bytes with globals...and it is nearly as hard to read as raw assembler.

I went for readability over error checking.  Approximately 12k bytes of 
socket code, half that after going through Erwin's count program.  I'm 
trying to create a pure PK mud - but I've already hit the size limit and 
I've not even added combat yet!  I've already started chopping down the
variable names (although I'm determined to keep them hungarianised if 
possible).

Maybe I should have used Perl (which I've just started learning), although...

&gt;   Implementing the same thing in Python, which I've never used before, nor
&gt; have I used a full OO language, took 3284 bytes without any optimization
&gt; at all (there are some really big variable names in there). I've since
&gt; rewritten it and it is probably a little over half the size it was.
&gt;   Even more tempting is a simple implementation of Python's forking TCP
&gt; server class which just echos back whatever it recieves, just 516 bytes.
&gt; Tie that into some shared memory/files and you could easily have a server
&gt; in under 1K (with little error checking).

...high level languages will be competing against each other.  As a (mostly)
low level developer I may as well take part in the style of programming I'm
best at.

KaVir.



_______________________________________________
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>
<!--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>
<LI><STRONG><A NAME="00162" HREF="msg00162.html">Re: [MUD-Dev] Fw: 16K mud server competition !</A></STRONG>
<UL><LI><EM>From:</EM> Spin &lt;spin@fastlink.com.au&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00176.html">[MUD-Dev] DGD Description</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00181.html">RE: [MUD-Dev] Sony to ban sale of online characters from its popular gamingsites</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00162.html">Re: [MUD-Dev] Fw: 16K mud server competition !</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00222.html">Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00175"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00175"><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="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>
<LI><strong><A NAME="00222" HREF="msg00222.html">Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !</A></strong>, 
Hans-Henrik Staerfeldt <a href="mailto:hhs@cbs.dtu.dk">hhs@cbs.dtu.dk</a>, Wed 12 Apr 2000, 14:23 GMT
</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>