2000Q1/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: Re: [MUD&#45;Dev] Embedding Python -->
<!--X-From-R13: "Fbqq [pYvzzrl" <ehshfNjbzongtnzrf.pbz> -->
<!--X-Date: Thu, 23 Mar 2000 13:21:11 &#45;0800 -->
<!--X-Message-Id: 018301bf950d$489faa00$0d00a8c0#wombatgames,com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 20000212213017.K535#agrajag,internal -->
<!--X-Reference: 20000324084404.D5514#agrajag,internal -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, Re: [MUD-Dev] Embedding Python</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:rufus#wombatgames,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="msg00715.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00718.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00715.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00718.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00716">Author</A>
&nbsp;|&nbsp;<A HREF="#00716">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00716">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>Re: [MUD-Dev] Embedding Python</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: &lt;<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>&gt;</LI>
<LI><em>Subject</em>: Re: [MUD-Dev] Embedding Python</LI>
<LI><em>From</em>: "Todd McKimmey" &lt;<A HREF="mailto:rufus#wombatgames,com">rufus#wombatgames,com</A>&gt;</LI>
<LI><em>Date</em>: Thu, 23 Mar 2000 15:18:07 -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>

----- Original Message -----
From: &lt;icecube#ihug,co.nz&gt;
To: &lt;mud-dev#kanga,nu&gt;
&gt; On Sat, Feb 12, 2000 at 09:30:17PM +1300, I wrote:
&gt;
&gt; [using Python as an embedded MUD language]
&gt;
&gt; &gt; Stackless Python and microthreads are apparently on the path to
&gt; &gt; integration, but they're not there yet. It looks non-trivial to do
&gt; &gt; especially without knowing the guts of the Python interpreter in detail
&gt; &gt; (which I don't).
&gt;
&gt; There's now a microthreads implementation on top of SP available, although
&gt; I haven't looked at it in detail.
&gt;
&gt; &gt; [1] Python microthreads -- <A  HREF="http://world.std.com/~wware/uthread.html">http://world.std.com/~wware/uthread.html</A>

Note: this post may wander a bit off topic, but it's all python/mud related.

Fwiw -- The system I'm currently designing uses standard Python (I've looked
into the microthreads to a minor degree, but haven't explored their full
potential yet) as the scripting language as well as major game components
being written in python. So far development is right on (I had to add some
tricks in code to handle things not always executing in a state other than
immediate, but it was mostly trivial). I wasn't around for the original
discussion, so I'm unsure as to the advantages of standard python and
stackless python, but for what I'm using it for, it's working perfectly, and
the integration of python into c++ (or c for that matter) is dead-on easy.

In fact, the way the system is currently shaping up, 'area files' are
nothing more than python scripts. This came out of my disdain for writing
yet ANOTHER text parser, even though I've abstracted all the file parsing
tools I've written in the last 3 years into neat little libraries. It was
just much easier to let python do everything for me. It has a few neat side
effects. For me, who comes from a background of doing all data-base MUD
stuff in ascii format, it's a much faster way to load things (I did a load
test the other day with 10,000 rooms and it loaded, after it compiled to
byte code, in just under 6 seconds). In fact, all data files are merely
python scripts, which allows things such as single functions to be run out
of a playerfile without having to have any sort of textfile
searching/indexing code and without loading the entire playerfile.

What are the other concerns/issues with using it as a server (or client for
that matter) side scripting language? What problems do stackless Python and
microthreading address?

-Todd McKimmey





_______________________________________________
MUD-Dev mailing list
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="00718" HREF="msg00718.html">Re: [MUD-Dev] Embedding Python</A></strong>
<ul compact><li><em>From:</em> Oliver Jowett &lt;icecube#ihug,co.nz&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00296" HREF="msg00296.html">[MUD-Dev] Embedding Python</A></STRONG>
<UL><LI><EM>From:</EM> icecube#ihug,co.nz</LI></UL></LI>
<LI><STRONG><A NAME="00713" HREF="msg00713.html">Re: [MUD-Dev] Embedding Python</A></STRONG>
<UL><LI><EM>From:</EM> icecube#ihug,co.nz</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00715.html">Re: [MUD-Dev] Embedding Python</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00718.html">Re: [MUD-Dev] Embedding Python</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00715.html">Re: [MUD-Dev] Embedding Python</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00718.html">Re: [MUD-Dev] Embedding Python</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00716"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00716"><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] Raph's collection of MUD design Laws</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00312" HREF="msg00312.html">Re: [MUD-Dev] Raph's collection of MUD design Laws</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Mon 14 Feb 2000, 22:24 GMT
</LI>
</ul>
</ul>
</ul>
</LI>
<LI><strong><A NAME="00296" HREF="msg00296.html">[MUD-Dev] Embedding Python</A></strong>, 
icecube <a href="mailto:icecube#ihug,co.nz">icecube#ihug,co.nz</a>, Sun 13 Feb 2000, 00:10 GMT
<UL>
<LI><strong><A NAME="00713" HREF="msg00713.html">Re: [MUD-Dev] Embedding Python</A></strong>, 
icecube <a href="mailto:icecube#ihug,co.nz">icecube#ihug,co.nz</a>, Thu 23 Mar 2000, 20:58 GMT
<UL>
<LI><strong><A NAME="00715" HREF="msg00715.html">Re: [MUD-Dev] Embedding Python</A></strong>, 
J C Lawrence <a href="mailto:claw#kanga,nu">claw#kanga,nu</a>, Thu 23 Mar 2000, 21:13 GMT
</LI>
<LI><strong><A NAME="00716" HREF="msg00716.html">Re: [MUD-Dev] Embedding Python</A></strong>, 
Todd McKimmey <a href="mailto:rufus#wombatgames,com">rufus#wombatgames,com</a>, Thu 23 Mar 2000, 21:21 GMT
<UL>
<LI><strong><A NAME="00718" HREF="msg00718.html">Re: [MUD-Dev] Embedding Python</A></strong>, 
Oliver Jowett <a href="mailto:icecube#ihug,co.nz">icecube#ihug,co.nz</a>, Thu 23 Mar 2000, 22:46 GMT
<UL>
<LI><strong><A NAME="00720" HREF="msg00720.html">Re: [MUD-Dev] Embedding Python</A></strong>, 
Todd McKimmey <a href="mailto:rufus#wombatgames,com">rufus#wombatgames,com</a>, Thu 23 Mar 2000, 23:26 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00292" HREF="msg00292.html">[MUD-Dev] OT: Soliciting advice from Canadians</A></strong>, 
Alex Oren <a href="mailto:alexo#bigfoot,com">alexo#bigfoot,com</a>, Thu 10 Feb 2000, 06:57 GMT
<LI><strong><A NAME="00288" HREF="msg00288.html">[MUD-Dev] Couple of articles</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Wed 09 Feb 2000, 17:44 GMT
</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>