[MUD-Dev] Fw: 16K mud server competition !
Jay Carlson
nop at mitre.org
Tue Apr 4 17:46:06 CEST 2000
"Miroslav Silovic" <silovic at zesoi.fer.hr> writes on Tuesday, April 04, 2000
7:52 AM:
[mud in small number of bytes]
> Seriously, I haven't read the contest rules yet, but I assume they
> limit the language selection.
Well, it'd be interesting to see if MOO or LPC would actually be winners.
> Otherwise, you can just write a MUD in
> Java or Common LISP (The Language With Everything On, or Did You
> Really Think That -Emacs- Was Big? or MMap Twenty Megabytes On
> Startup), and use all the available libraries for these languages - as
> a result, you'd get really small code indeed, and it'd want to link to
> megabytes of runtime environment.
Lisp gets a bad rap here. Just about every C app on the system gets to mmap
in libc.so, and from there it gets worse:
~ slothrop$ uname -a
SunOS slothrop 5.7 Generic_106541-05 sun4u sparc SUNW,Ultra-1
~ slothrop$ ldd /bin/ksh
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
~ slothrop$ size /lib/libc.so.1
text data bss dec hex filename
669816 19673 6480 695969 a9ea1 /lib/libc.so.1
~ slothrop$ # This adds up sizes of the text and data segments for all the
shared libraries used by an executable (but not the executable's size
itself.)
~ slothrop$ totalsize () { ldd $1 | awk '{print $3}' | xargs size | awk '/^
*[0-9]/ {t += $1 + $2} END {printf t;}' ; echo " $1" ; }
~ slothrop$ for x in /usr/dt/bin/*; do totalsize $x; done 2>/dev/null |
sort -nr | more
8257893 /usr/dt/bin/sdtfontadm
7162744 /usr/dt/bin/dtbuilder [...]
6788532 /usr/dt/bin/dtmail [...]
6671642 /usr/dt/bin/sdtformat_floppy
6667113 /usr/dt/bin/dtcodegen [...]
6101377 /usr/dt/bin/dthelpview [...]
5935387 /usr/dt/bin/dtwm
5877097 /usr/dt/bin/dtterm
KDE looks pretty svelte in comparison---the terminal only needs 4M of shared
libraries to come up. I'm still trying to forget the project from a few
years ago that linked in truly massive piles of CORBA and auto-generated
libraries....
Jay
_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev
More information about the mud-dev-archive
mailing list