{"id":33648,"date":"2004-09-14T21:46:00","date_gmt":"2004-09-14T20:46:00","guid":{"rendered":"http:\/\/pw201.livejournal.com\/33648.html"},"modified":"2004-09-14T21:46:00","modified_gmt":"2004-09-14T20:46:00","slug":"sanctioned-parts-list-2","status":"publish","type":"post","link":"https:\/\/www.noctua.org.uk\/blog\/2004\/09\/14\/sanctioned-parts-list-2\/","title":{"rendered":"Sanctioned Parts List"},"content":{"rendered":"<p><A HREF=\"http:\/\/ladysisyphus.livejournal.com\/\"><B>ladysisyphus<\/B><\/A> writes that <a href=\"http:\/\/www.livejournal.com\/users\/ladysisyphus\/206336.html\">Jesus has laser beams<\/a>. As does <a href=\"http:\/\/cargo.ship-of-fools.com\/Features01\/Features\/Aslan.html\">Aslan<\/a>, which makes sense if you think about it.<BR><BR>It turns out that Macs have speech synthesis built in. It&#8217;s not bad, and it&#8217;s easily accessible to programmers. So I&#8217;ve spent an entertaining evening making my MUD client talk. That way, if the window is hidden, I still find out when someone interesting logs in. I&#8217;ve ended up using <a href=\"http:\/\/mudwalker.cubik.org\/\">MudWalker<\/a>, a free, open source MUD client for Mac OS X. It&#8217;s scriptable in <a href=\"http:\/\/www.lua.org\/\">Lua<\/a>, and helpfully provides a <code>speak<\/code> function to Lua scripts. The thing prospective programmers will want to know is that your regular expression match groups (the things Perl would call <code>$1<\/code> and so on) are <code>arg[<i>n<\/i>]<\/code> to the Lua scripts you can use to write triggers. For console use, I&#8217;d still recommend <a href=\"http:\/\/www.evilmagic.org\/crystal\/\">Crystal<\/a> as a good MUD client, but it turns out to be a bugger trying to get that to talk (Crystal is supposedly scriptable in Lua, but my attempts killed it).<BR><BR>Also been looking at <a href=\"http:\/\/www.twistedmatrix.com\/\">Twisted<\/a>, Python&#8217;s marvelous asynchronous <strike>mouse organ<\/strike> networked application framework thingy. It seems that as well as being very clever, it&#8217;s actually reasonably well documented these days. The <a href=\"http:\/\/www.twistedmatrix.com\/documents\/current\/howto\/pb-intro\">Perspective Broker<\/a> and Avatar stuff seems to be a good fit for games where the players can write code which is not trusted by the system, since the choice of which methods allow remote access imposes some sort of <a href=\"http:\/\/www.eros-os.org\/essays\/capintro.html\">capability<\/a> based access control. If I ever wrote a MUD in Python, something I&#8217;ve been threatening for some years now, Twisted would be the way forward (indeed, it was originally created to provide multiplayer interactive fiction in the form of <a href=\"http:\/\/twistedmatrix.com\/products\/reality\">Twisted Reality<\/a>, another addition to fine the fine Internet tradition of hugely ambitious, but largely unfinished, MUD servers).<BR><BR>It&#8217;d probably be easier just to do this in Java. Python&#8217;s restricted execution stuff is not really there, so if you wanted to allow players to program (which I think is essential for holding people&#8217;s interest once they&#8217;ve finished the game proper) you&#8217;d probably end up running untrusted code in another process and using PB to talk back to the server. Still, it&#8217;s a nice dream. I saw that the author of MudWalker has  got a <a href=\"http:\/\/den.cubik.org\/\">prototype MUD<\/a> written in <a href=\"http:\/\/www.erights.org\/\">E<\/a>, the capability-based security language, which might well be worth a look too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ladysisyphus writes that Jesus has laser beams. As does Aslan, which makes sense if you think about it.It turns out that Macs have speech synthesis built in. It&#8217;s not bad, and it&#8217;s easily accessible to programmers. So I&#8217;ve spent an entertaining evening making my MUD client talk. That way, if the window is hidden, I&hellip;<\/p>\n <a href=\"https:\/\/www.noctua.org.uk\/blog\/2004\/09\/14\/sanctioned-parts-list-2\/\" title=\"Sanctioned Parts List\" class=\"entry-more-link\"><span>Read More<\/span> <span class=\"screen-reader-text\">Sanctioned Parts List<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[19],"tags":[41,98,146,157,200],"class_list":["entry","author-paul","post-33648","post","type-post","status-publish","format-standard","category-blog","tag-computers","tag-internet","tag-programming","tag-religion","tag-tools"],"_links":{"self":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts\/33648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/comments?post=33648"}],"version-history":[{"count":0,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts\/33648\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/media?parent=33648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/categories?post=33648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/tags?post=33648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}