by Daniel Temkin
2. July 2010 15:55
Here's an example of using Entropy objects in other .Net languages. This is a way to allow only some elements of the program to decay, something that might be necessary to embed an Entropy program in a Silverlight application or webform. As an experiment, I wrote a version of the classic therapist program, Eliza, in C#, but holding her responses (along with the logic that determines which response to give) in Entropy objects.
Eliza starts off sounding about right, although slurring her words a bit:
eliza > HI! I'M ELIZA. WHAT'S YOUR UROBLEM?
As time goes on, she gets harder to understand, and a bit confrontational:
me > what's your deal?
eliza > WHY ARE YOU DONCESNED @BOUT"OY DDAL?
This is apparently her "angry drunk" phase.
After I tell I don't understand for the third time, she gives up, collapsing into complete incomprehensibility (and perhaps a pool of vomit):
eliza > MLE9TF CON(T?PEPDAT YOURTIBH?
(should be "PLEASE DON'T REPEAT YOURSELF!")