msg00376.html

1999Q2/msg00376.html · 7.9 KB

From the archive 1999Q2.zip

Download the archive   « Back to the archive contents

<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Text Parsing -->
<!--X-From-R13: Dbff @vpbyy <eavpbyyNybfgvpf.qrzba.pb.hx> -->
<!--X-Date: Tue, 1 Jun 1999 20:49:34 &#45;0700 -->
<!--X-Message-Id: Pine.LNX.4.10.9906020445010.346&#45;100000#lostics,demon.co.uk -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199906020135.TAA00905@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Text Parsing</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:rnicoll#lostics,demon.co.uk">
</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="msg00375.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00377.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00375.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00396.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00376">Author</A>
&nbsp;|&nbsp;<A HREF="#00376">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00376">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Text Parsing</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] Text Parsing</LI>
<LI><em>From</em>: Ross Nicoll &lt;<A HREF="mailto:rnicoll#lostics,demon.co.uk">rnicoll#lostics,demon.co.uk</A>&gt;</LI>
<LI><em>Date</em>: Wed, 2 Jun 1999 04:49:50 +0000 (GMT)</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 Tue, 1 Jun 1999, Chris Gray wrote:

&gt; [Ross Nicoll:]
&gt; &gt; I've worked on text games in the Infocom format, and the parser is hardly
&gt; &gt; simple. About 280k of Inform code is used, just for the basic parser, 
&gt; &lt;Blink!&gt;

&gt; ami-cg /home/cg/MUD/Src/MUDServ % wc match.c parse.c
&gt;     989    3280   19010 match.c
&gt;    1855    5948   40763 parse.c
&gt;    2844    9228   59773 total

&gt; Handles nearly as much as I've seen an Infocom parser do.
Sorry, I was counting the Inform parser code, which is byte compiled then
interpreted, and includes things like the definition of 99% of the verbs
in most games...

&gt; &gt; Wouldn't take much memory, but coding time would be very, very long
&gt; &gt; compared to a simple parser, and it would have a much higher CPU usage too
&gt; &gt; (although that may not make so much of a difference).
&gt; &lt;Blink Blink!&gt;

&gt; Why would it take a lot of CPU time? That all depends on the method you
&gt; use. If you use an actual pattern matcher for each kind of sentence, or
&gt; for each possible verb combination, then yes, that can take a lot of CPU.
&gt; However, if you just pull off the verb, find the other parts of the
&gt; command, and then process according to the verb's requirements, there is
&gt; little CPU involved. Thinking about mine, its mostly linear in the number
&gt; of words (or characters, pretty much the same thing) in the command. I've
&gt; never even seen the parser show up in my profiling runs.
Oh dear, it's just me being me then, again. I'm still trying to learn
cope with the idea of things being slow if not coded in assembly :) Spent
too much time using 68000 and 68020 processors. Seriously though, I tend
to find it difficult to work out how much of a problem things will be on a
faster processor... my last MUD server ran just fine on a 68020, and the
only thing that had a noticable amount of CPU time used in it, was when it
wrote the 1mb database out to disk.
-- 
  _   __  __  __
 /_) / / (_  (__
/\  /_/  __)   /
______________/



_______________________________________________
MUD-Dev maillist  -  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="00375" HREF="msg00375.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
<UL><LI><EM>From:</EM> Chris Gray &lt;cg#ami-cg,GraySage.Edmonton.AB.CA&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00375.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00377.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00375.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00396.html">[MUD-Dev] What about goal oriented interfaces? (was Re: [MUD-Dev] Text Parsing)</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00376"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00376"><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] Text Parsing</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00372" HREF="msg00372.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Ross Nicoll <a href="mailto:rnicoll#lostics,demon.co.uk">rnicoll#lostics,demon.co.uk</a>, Tue 01 Jun 1999, 21:01 GMT
</LI>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00369" HREF="msg00369.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Mik Clarke <a href="mailto:mikclrk#ibm,net">mikclrk#ibm,net</a>, Tue 01 Jun 1999, 05:48 GMT
<UL>
<LI><strong><A NAME="00371" HREF="msg00371.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Marc Hernandez <a href="mailto:marc#ias,jb.com">marc#ias,jb.com</a>, Tue 01 Jun 1999, 06:24 GMT
</LI>
</UL>
</LI>
</ul>
<LI><strong><A NAME="00375" HREF="msg00375.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 02 Jun 1999, 01:38 GMT
<UL>
<LI><strong><A NAME="00376" HREF="msg00376.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Ross Nicoll <a href="mailto:rnicoll#lostics,demon.co.uk">rnicoll#lostics,demon.co.uk</a>, Wed 02 Jun 1999, 03:49 GMT
</LI>
<LI><strong><A NAME="00396" HREF="msg00396.html">[MUD-Dev] What about goal oriented interfaces? (was Re: [MUD-Dev] Text Parsing)</A></strong>, 
Ola Fosheim Grøstad <a href="mailto:olag#ifi,uio.no">olag#ifi,uio.no</a>, Wed 02 Jun 1999, 23:08 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00377" HREF="msg00377.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 02 Jun 1999, 06:03 GMT
<UL>
<LI><strong><A NAME="00378" HREF="msg00378.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Wed 02 Jun 1999, 06:31 GMT
<UL>
<LI><strong><A NAME="00384" HREF="msg00384.html">Re: [MUD-Dev] Text Parsing</A></strong>, 
Travis S. Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Wed 02 Jun 1999, 12:57 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>

Site Stats

Snippets: 1791
Codebases: 571