TSO discussion, coding, Darko

2002 November 15
by darkness

Had a bit of TSO discussion this afternoon with draco. He filled me in on how the pizza game works. Apparently he’s considering making a bit of programming to help coordinate games of pizza for optimal money-making. BTW, before I forget, check out the code chart someone else kindly made at http://www.geocities.com/caeddyn/chart.html. I think I’m proud to say that I played no TSO today.

Did some coding in place of games. Didn’t really have much time for some reason; probably because I spent time dorking around with other piddly things, like watching TV. I think I correctly wrote a DarkWiki::WikiPageInterpreter that accepts plug-ins. When I just sat down to write a plug-in, though, I realized that the model is flawed. Rather than having a single instance of the plug-in that can be used to interpret all text, it seems that in at least some cases it is necessary to create an instance for each piece of text. This is due to the way state information is kept: while the caller keeps some state information, it will only give you your state information if another plug-in hasn’t moved into a new “state frame” (kind of like a stack frame). So some information about the text is going to have to be kept in the instance, such as whether the opening paragraph has been started yet. I could do this with two types of state kept by the pluggable interpreter (global and local, of sorts) but that strikes me as probably getting too complicated. I’ll do instances for each text for now and change it around if it’s too inefficient.

I got my “Donnie Darko” DVD today! Rejoice! I certainly did. Unfortunately The Philosophy of Time Travel is actually images, on the screen, with small print that’s nearly damn impossible to read – even at 2′ from at 27″ Trinitron tube. The last song, “Mad World” gets me, though. Great, great movie. Makes me want to go out and do something.

No, not like burn down someone’s house.

No Comments

Leave A Comment

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS