1998Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev]  SfD: Clientside Caching -->
<!--X-From-R13: "Xba O. Znzoreg" <wyflfvapNvk.argpbz.pbz> -->
<!--X-Date: Thu, 19 Mar 1998 06:51:58 +0000 -->
<!--X-Message-Id: 199803190651.AAA11178@dfw&#45;ix15.ix.netcom.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199803180604.AAA13920@dfw&#45;ix5.ix.netcom.com -->
<!--X-Reference: Pine.GSO.3.95q.980318084318.7946A&#45;100000@uhunix1 -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev]  SfD: Clientside Caching</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jlsysinc#ix,netcom.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="msg00760.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00762.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00755.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00720.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00761">Author</A>
&nbsp;|&nbsp;<A HREF="#00761">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00761">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev]  SfD: Clientside Caching</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]  SfD: Clientside Caching</LI>
<LI><em>From</em>: "Jon A. Lambert" &lt;<A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</A>&gt;</LI>
<LI><em>Date</em>: Thu, 19 Mar 1998 01:54:56 -5</LI>
<LI><em>Reply-to</em>: <A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</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 18 Mar 98 at 15:31, Nathan F Yospe wrote:
&gt; On Tue, 17 Mar 1998, Jon A. Lambert wrote:
&gt; :On 16 Mar 98 at 17:20, Nathan F Yospe wrote:
&gt; 
&gt; :I find the heavy use of native methods intriguing.  Certainly it's
&gt; :possible to write a great deal of client code in C/C++ that's highly
&gt; :portable.  And let the Java VM handle the OS dependencies.  While it 
&gt; :might not give you the highest performance gains in the areas you 
&gt; :probably need, it is attractive from a maintenance standpoint.   
&gt; 
&gt; This is a big part of it, and something I wouldn't mind doing. It isn't
&gt; what I meant, precisely; on the Mac, for example, I have my own version
&gt; of the awt that taps into a couple of the newer drawing methods and even
&gt; quicktime 2.5 or 3.0, if present. I'm planning to do this for Windows in
&gt; time, and eventually possibly for other machines. I haven't learned enough
&gt; about BeOS to do this effectively yet, and frankly, don't like the stuff
&gt; available with X or Motif, and would prefer to leave that to Java. 

This is exactly the code I also want to leave to "third-party" 
widely available libraries, VMs, APIs.  I have no desire to delve 
into the inner workings of gadgets, components, toolboxes, windows, 
buttons, etc.  However one expects that the performance and methods 
available to do complex graphics within these windows has a level of 
"industrial" or "commercial" strength behind it.  These types of 
components are tightly coupled to their OS APIs, contain the vast 
majority of errors, and are difficult to maintain.  This is exactly 
the level of coding I want to leave to my vendor, whether it be a 
Java VM, Motif, whatever.  

Quicktime, as you mention IS an industrial strength option that I 
trust to perform and be maintained/supported on a wide variety of 
platforms.  It's a proven technology, as it is heavily used by Win 
and Mac graphical game producers.  

&gt; However...
&gt; a lot of the biggest stuff in the client, background graphics display aside,
&gt; is text parsing and generation. The neural net code for that is all native,
&gt; for good reason; it also happens to be nearly 100% portable. I'm still
&gt; working on the portability of the tables associated with it.

Yes this is exactly the the type of code you should expect 100% C/C++ 
portability out of.   99% of this code is ADTs and pure C.  One would 
expect even standard library calls are infrequent and could be 
limited to minimal ANSI compliance.  An OS dependent call would 
be a rarity indeed.

The point I was trying to make is that when someone decides to sit 
down a write a Java client, they might not pay very much attention to 
the use of native methods.  One tends to think of using a native 
method when a problem is encountered that appears to be intractable
or difficult in the parent language or has an obvious performance
problem.  When you are using Java, you are likely to find yourself 
writing code that is as elegant, easy and "to the point of the 
problem" as when writing C/C++.  Yet performance problems in Java are 
not as readily obvious from looking at the code.  There are loads of 
subtleties in the way that "Java does things" that make performance 
profiling infuriating.  Most of the time you find it way up the Class 
tree in code you can't and don't want screw with, or buried behind 
the black hole of the VM.  

The summary of my rant is thusly:

Use native methods in Java liberally with code that is non-trivial 
and OS independent.  Then follow your normal instincts with the
rest of the code.  

&gt; Watercolors within a short range of the background color (which does change,
&gt; and the text color with it for contrast), or, to be more precise, so far
&gt; pieces of art based on ... well, check my web page in a week or two, under
&gt; the gallery. I'll announce the reopening of my page, as there is going to
&gt; be a major mud related section on it. In any case, so far I have a few
&gt; hundred pieces of suggestive background, none of which has anything to
&gt; indicate specificity, but all designed to suggest a certain mood, clime,
&gt; and atmosphere. Day and night, storm and calm, of city, desert, jungle,
&gt; forest, town, space, caves, corridors, habitats, suburban towns human and
&gt; alien, oceans, islandias, rivers, ice, bunkers, warzones... most of the art
&gt; is not production quality yet, but it ought to be VERY effective. 

I'm looking forward to it.  The philosophy (if there is one) behind 
web wallpaper likely parallels this.  You don't want the backdrop 
to distract you from the text, you want it to gently suggest moods or 
sensations while reading it.  BTW don't look at my web pages for any 
good examples yet.  I'm as clumsy and direct as the typical net nerd. 
Yet, I know what I like when I see it on others' pages.

Mental Note: Enlist well-fed artist. 

&gt;I wanted
&gt; to use it for Singularity, back when I first tried to tie that old Rom into
&gt; a web based plugin server... but it will be a lot more effective with the
&gt; dynamic text of Intergalactic War: The Singularity Myth. (The name is a lot
&gt; more accurate, and should have been kept as the name for the original. I
&gt; have done a lot of going back to original concept with this, and am glad of
&gt; that.)

What are the current running titles of your projects?  You've had
several name changes since I've been on the list. ;)

&gt; :Most of these images could be included in the client download and my 
&gt; :guess(?) is they would be highly compact of their light pixel 
&gt; :density.  
&gt; 
&gt; I can get an extremely effective 640x480 gif into 6k on average. :) And yes,
&gt; an original set would come with the client.

This is so cheap, and zero bandwidth to boot.  I'm beginning to 
feel guilty about it.  :~  

&gt; :&gt; 1) What are we going to cache?
&gt; 
[snip]
&gt; :Fixed or mostly static text like help, documentation, histories, 
&gt; :stories would seem to be good candidates, as well as mud mail and 
&gt; :bulletin boards. Having the above items client-side would allow the 
&gt; :user to utilize mechanisms for off-line reading and study.
&gt; 
&gt; There's a good point I hadn't thought of. Well, in a sense I had. Direct
&gt; mail doesn't even have to go through the server, if both clients are on. I
&gt; have allowed client to client communication in the design. 

Didn't think of client-to-client.  With that in place you could shift 
ALL user communication off-server, even in-game chat, tell, whisper, 
emotes.  Possible player security issues here?   Then again, the 
server need not acknowledge or process communications "spam". 
 
&gt; (I have yet to
&gt; finish implementing this, and have no idea how well it will work. I based it
&gt; on DCC to some degree...) Large amounts of text (the dictionary and
&gt; thesaurus) would be built into the client, in rewriteable files that will be
&gt; periodicly brought up to date. This might allow easy translation to other
&gt; languages. (The grammar is a totally modular component.)

Hmmm, also a potential savings of string memory.
 
 
&gt; :[snip - security issues]
&gt; 
&gt; :Nod.  Lots of potential for client-side programming or preference 
&gt; :storage.  In my case, and some others I'd imagine, there would be
&gt; :a couple of levels to this user-memory data.  I would make a 
&gt; :separation of user memory and character memories since multi-play
&gt; :and simultaneous multi-play is a desirable option.
&gt; 
&gt; *nod* This is a good point. At the moment, I have several items that are
&gt; character specific. Memories of names, a cross-ref for the language files (I
&gt; scan the character lexfile first, then the character's jargon lexfiles, then
&gt; the global lexfile), preference files (these are models, and not so much a 
&gt; character specific thing as a set of preferences that can be applied to more
&gt; than one character, loaded or unloaded for a given character, split for some
&gt; introduced difference (this is my standard preferences WITH prediction on,
&gt; this is my standard preferences WITHOUT...), and so on.

Another possibility is to ship compiling of an internal mud language 
off to a builder client.  Late bind the code to server side objects 
in the final compile phase.  Client-side offline coding and 
syntax-level compiles are possible.  This might be a high CPU item 
for some online programmed servers.    

&gt; Again, a good point. At the moment, none of my models distinguish much
&gt; between the nature of objects... this presents some problems with the idea
&gt; of seperating storage method... but backgrounds alone are easy enough to
&gt; deal with. If not cached, they are grabbed in sets (climactic) that tend to
&gt; be grouped together.

On second thought, it would probably increase complexity of the 
client enough that any benefits are undermined.  KISS and a common 
method of caching might be more prudent.  

&gt; :I can't understand the need (or desire) for this much backward 
&gt; :compatability (back to telnet terminals and 286s).  It's not 
&gt; :even reflective of the current mud playerbase.  This is more a 
&gt; :reflection of the administrative userbase.
&gt; 
&gt; And your point? _I_ want to be able to use this thing myself, you know, and
&gt; it isn't that hard to make a UI change in Java, which is all that is being
&gt; done here. Think of it like this: how hard is it to write the text output
&gt; UI? How hard to write the GUI UI? OK, now, which one is more effective for
&gt; a quicky test case? 

I agree; for testing - yes, for server-side administration - yes.

But for player use definitely NOT.  Why do I feel this way?  I don't
want to make commonly available an otherwise inferior presentation to
an unsuspecting playerbase as compared to my desired or ideal 
presentation.  It would be unthinkable, if someone running an 
capable machine got hold of this text-only client and absolutely 
awful if they introduced their mud-skeptical friends to it.  

OK, I exaggerate a bit.  :P   I think first impressions are lasting 
though.

&gt; I'm not saying I'm going to use the remote hosted dumb
&gt; terminal model much, but... come on, how many of you prefer lynx to Netscape
&gt; when just doing a quick check of deja-news? How many prefer vi to Word when
&gt; just making a quick edit to a source file? And if I'm going to write it for
&gt; myself, why not make it available for others who use telnet access accounts
&gt; regularly?

I can guess at the poll results.

Mud Design List - Lynx - 75% Netscape - 25%
                  VI   - 95% Word     -  5%

And my target audience would say...

FRPG Convention - Lynx - 5%  Netscape - 70%  Huh?! 25%
                  VI   - 5%  Word     - 60%  Huh?! 35%

--
--/*\ Jon A. Lambert - TychoMUD     Internet:jlsysinc#ix,netcom.com /*\--
--/*\ Mud Server Developer's Page &lt;<A  HREF="http://www.netcom.com/~jlsysinc">http://www.netcom.com/~jlsysinc</A>&gt; /*\--
--/*\   "Everything that deceives may be said to enchant" - Plato   /*\--

</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="00746" HREF="msg00746.html">Re: [MUD-Dev]  SfD: Clientside Caching</A></STRONG>
<UL><LI><EM>From:</EM> "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt;</LI></UL></LI>
<LI><STRONG><A NAME="00755" HREF="msg00755.html">Re: [MUD-Dev]  SfD: Clientside Caching</A></STRONG>
<UL><LI><EM>From:</EM> Nathan F Yospe &lt;yospe#hawaii,edu&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00760.html">Re: [MUD-Dev]	Transport layer (UDP vs TCP)</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00762.html">Re: [MUD-Dev]  XShipWars</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00755.html">Re: [MUD-Dev]  SfD: Clientside Caching</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00720.html">RE: [MUD-Dev]  (no title) Time limits?</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00761"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00761"><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]  Transport layer (UDP vs TCP)</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00779" HREF="msg00779.html">Re: [MUD-Dev]  Transport layer (UDP vs TCP)</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Fri 20 Mar 1998, 04:28 GMT
</LI>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
</LI>
<LI><strong><A NAME="00729" HREF="msg00729.html">SfD: Clientside Caching</A></strong>, 
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Tue 17 Mar 1998, 01:01 GMT
<UL>
<LI><strong><A NAME="00746" HREF="msg00746.html">Re: [MUD-Dev]  SfD: Clientside Caching</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Wed 18 Mar 1998, 06:05 GMT
<UL>
<LI><strong><A NAME="00755" HREF="msg00755.html">Re: [MUD-Dev]  SfD: Clientside Caching</A></strong>, 
Nathan F Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Wed 18 Mar 1998, 23:18 GMT
<UL>
<LI><strong><A NAME="00761" HREF="msg00761.html">Re: [MUD-Dev]  SfD: Clientside Caching</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Thu 19 Mar 1998, 06:51 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00720" HREF="msg00720.html">RE: [MUD-Dev]  (no title) Time limits?</A></strong>, 
Justin McKinnerney <a href="mailto:xymox#toon,org">xymox#toon,org</a>, Sun 15 Mar 1998, 23:35 GMT
<UL>
<LI><strong><A NAME="00723" HREF="msg00723.html">Re: [MUD-Dev] Balancing Addicts</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lboro.ac.uk">K.L.Lo-94#student,lboro.ac.uk</a>, Mon 16 Mar 1998, 19:50 GMT
<UL>
<LI><strong><A NAME="00724" HREF="msg00724.html">Re: [MUD-Dev] Balancing Addicts -&gt; soft vs. hard enforcement</A></strong>, 
cimri <a href="mailto:cimri1#gte,net">cimri1#gte,net</a>, Mon 16 Mar 1998, 20:40 GMT
<UL>
<LI><strong><A NAME="00728" HREF="msg00728.html">RE: [MUD-Dev] Balancing Addicts -&gt; soft vs. hard enforcement</A></strong>, 
Justin McKinnerney <a href="mailto:xymox#toon,org">xymox#toon,org</a>, Tue 17 Mar 1998, 00:49 GMT
</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>