MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] Fw: 16K mud server competition !
On Mon, Apr 10, 2000, Derek Snider wrote:
<snipped>
> What's the smallest size that anyone's been able to get MUD networking
> code down to? (Written in C or C++) Does it include buffered input/output?
> Full error checking? ...just curious... I feel that the networking code
> 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
http://www.kanga.nu/lists/listinfo/mud-dev
- Thread context:
- Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !, (continued)
- Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !,
Holly Sommer hsommer#micro,ti.com, Mon 10 Apr 2000, 17:27 GMT
- Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !,
Quzah quzah#hotmail,com, Mon 10 Apr 2000, 21:45 GMT
- Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !,
Travis S. Casey efindel#io,com, Mon 10 Apr 2000, 21:45 GMT
- Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !,
Todd McKimmey rufus#wombatgames,com, Mon 10 Apr 2000, 22:25 GMT
- Re: [MUD-Dev] Fw: 16K mud server competition !,
Spin spin#fastlink,com.au, Tue 11 Apr 2000, 17:22 GMT
- Re: Re[2]: [MUD-Dev] Fw: 16K mud server competition !,
Nick Shaffner nicks#3drealms,com, Mon 10 Apr 2000, 21:45 GMT
- [MUD-Dev] Old Topic: Playfulness in 3-D Spaces, done.,
Rudy Fink rudyfink#rice,edu, Sun 02 Apr 2000, 14:54 GMT
- [MUD-Dev] An idea for breaking away from the HP/Mana mindset,
Eli Stevens wickedgrey#wickedgrey,com, Sun 02 Apr 2000, 06:33 GMT
[ Other Periods
| Other mailing lists
| Search
]