msg00375.html
1999Q2/msg00375.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-Dev] Text Parsing -->
<!--X-From-R13: Quevf Uenl <ptNnzv-pt.UenlEntr.Sqzbagba.OP.QO> -->
<!--X-Date: Tue, 1 Jun 1999 18:38:38 -0700 -->
<!--X-Message-Id: 199906020135.TAA00905@ami-cg.GraySage.Edmonton.AB.CA -->
<!--X-Content-Type: text/plain -->
<!--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:cg#ami-cg,GraySage.Edmonton.AB.CA">
</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>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->
Date:
[ <a href="msg00374.html">Previous</a>
| <a href="msg00376.html">Next</a>
]
Thread:
[ <a href="msg00371.html">Previous</a>
| <a href="msg00376.html">Next</a>
]
Index:
[ <A HREF="author.html#00375">Author</A>
| <A HREF="#00375">Date</A>
| <A HREF="thread.html#00375">Thread</A>
]
<!--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>: Chris Gray <<A HREF="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</A>></LI>
<LI><em>Date</em>: Tue, 1 Jun 1999 19:35:51 -0600</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>
[Ross Nicoll:]
> I've worked on text games in the Infocom format, and the parser is hardly
> simple. About 280k of Inform code is used, just for the basic parser,
<Blink!>
ami-cg /home/cg/MUD/Src/MUDServ % wc match.c parse.c
989 3280 19010 match.c
1855 5948 40763 parse.c
2844 9228 59773 total
Handles nearly as much as I've seen an Infocom parser do.
> Wouldn't take much memory, but coding time would be very, very long
> compared to a simple parser, and it would have a much higher CPU usage too
> (although that may not make so much of a difference).
<Blink Blink!>
Why would it take a lot of CPU time? That all depends on the method you
use. If you use an actual pattern matcher for each kind of sentence, or
for each possible verb combination, then yes, that can take a lot of CPU.
However, if you just pull off the verb, find the other parts of the
command, and then process according to the verb's requirements, there is
little CPU involved. Thinking about mine, its mostly linear in the number
of words (or characters, pretty much the same thing) in the command. I've
never even seen the parser show up in my profiling runs.
To reply here to Ola's note, whether or not I agree on whether there is
any point in being between a really simple and a full AI parser depends
on the definition of 'really simple'. If that really simple parser can't
handle lists of objects, position indicators, synonyms, multiple meanings
for words, articles like 'the', 'a', 'an', etc. then I disagree - that
is *too* simple for me as a player. I do agree about the parser not
making non-obvious choices for the player, however.
--
Don't design inefficiency in - it'll happen in the implementation.
Chris Gray cg#ami-cg,GraySage.Edmonton.AB.CA
<A HREF="http://www.GraySage.Edmonton.AB.CA/cg/">http://www.GraySage.Edmonton.AB.CA/cg/</A>
_______________________________________________
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>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00396" HREF="msg00396.html">[MUD-Dev] What about goal oriented interfaces? (was Re: [MUD-Dev] Text Parsing)</A></strong>
<ul compact><li><em>From:</em> Ola Fosheim Grøstad <olag#ifi,uio.no></li></ul>
<li><strong><A NAME="00376" HREF="msg00376.html">Re: [MUD-Dev] Text Parsing</A></strong>
<ul compact><li><em>From:</em> Ross Nicoll <rnicoll#lostics,demon.co.uk></li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00374.html">Re: [MUD-Dev] Multi-threaded mud server.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00376.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00371.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00376.html">Re: [MUD-Dev] Text Parsing</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00375"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00375"><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>[MUD-Dev] Re[2]: [MUD-Dev] Text Parsing</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00368" HREF="msg00368.html">[MUD-Dev] Re[2]: [MUD-Dev] Text Parsing</A></strong>,
Travis Casey <a href="mailto:efindel#io,com">efindel#io,com</a>, Tue 01 Jun 1999, 02:41 GMT
</LI>
<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
</LI>
</UL>
</LI>
</ul>
</LI>
</UL></BLOCKQUOTE>
</ul>
<hr>
<center>
[ <a href="../">Other Periods</a>
| <a href="../../">Other mailing lists</a>
| <a href="/search.php3">Search</a>
]
</center>
<hr>
</body>
</html>