Weird Looking: web-based mud client?

web-based mud client?

March 26, 2006 12:11am (4 years, 4 months and 3 days ago)
This blog post about Google’s web-based instant messaging is making the rounds:
http://alex.dojotoolkit.org/?p=538

So here’s my thinking… If I can open up a second port on my mud and run a simple HTTP server on it (lots of people have done this already), I can pretty easily hack write_to_descriptor to send information to a persistent HTTP connection.  In fact, it’ll practically be a regular mud connection except color codes and newlines and stuff will be parsed into their equivalent HTML (fairly straight-forward modification of the color code).  And interpret will be called from an HTTP post.  Then some work in javascript and I can have a web-based mud client.

I’ll have the first Web 2.0 mud.

Comments

Mar 27, 2006 11:53am
I only played around with this for a couple of hours before something shiny distracted me.  I may work my way back around to it soon.

It was creating push code just fine, but then I attempted to co-opt the MUD’s buffered i/o system and string parsing functions to handle HTTP requests.  This turned out to be a mistake; they are fundamentally bad for dealing with HTTP headers.  I’ll have to start over with a less stupid design.
Mar 27, 2006 10:35pm
Web 2.0?  Is that HTTP 2.0?  I thought we were only at 1.1.

Do I need to upgrade my browser?

Enough foolishness.  How are you handling the HTML markup?  I doubt there’s a “proper” semantic markup, but CSS might save you in markup size, which is an issue since you can’t really cache anything on the server.

I’ve thought about this before, and the <b> element with a single-letter class for each color seems the most efficient.

Plus, you can change the colors with a new stylesheet.
Mar 28, 2006 4:38am
I wonder if gz compressing the stream would interfere with progressive rendering.  Might be worth a shot.

All in all, it’s an interesting hack.  Too bad it requires a custom web server.
Jun 28, 2007 10:32pm
poo
Oct 22, 2007 8:18pm
It is an interesting hack and not at all poo. Shame on you Doctor Smelly!

Leave a comment


Accepts BBCode with a few enhancements.