Getting a bit close to the deadline, but I think I have something that's pretty interesting. Basically, it's the same BF interpreter that I wrote about yesterday with four additional commands:
|&||Spawn a new thread; set the current cell to 0 in the parent and 1 in the child|
|~||Kill the current thread|
|!||Send a ping on the channel specified by the current cell|
|?||Wait for a ping on the channel specified by the current cell|
129 - Rome
SEVERAL YEARS AGO
"What in the world is going on?" I heard one of the people I hadn't known that had been abducted with us whisper.
I didn't have an answer for him, but at the moment, it was just as well. For just when he spoke, the cop in the dark armor--it was slightly shiny, which I hadn't noticed until we were in the light of the back of the truck--glared at him and shifted his gun in a way we were all sure to notice.
The PLT Games website has a competition going where each month there will be some sort of theme for a completely new program. The first theme is a Turing Tarpit--a language that is technically Turing complete and thus can do anything any other Turing complete language can, but is so minimal as to make doing anything worthwhile overly difficult.
54. Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy.
-- Alan Perlis, Epigrams on Programming
To that end, I've been working on a little something special which I may or may not finish by the end of the month (yes, I know that's tomorrow). But while I was working on it, I put together a Brainf**k (BF) interpreter which I found pretty interesting to play with.
126 - Chicago
SEVERAL WEEKS AGO
"So let me get this straight," I said. "You're dead. Your brother is dead. Everyone is dead."
Sure. Perhaps it was a bit of an overreaction. But my head was still spinning from that particular revelation.read more...
125 - Baghdad
SEVERAL YEARS AGO
We ran. We ran like the very hounds of hell were after us, across that courtyard, right up to the very front doors of the museum. I kept expecting shots to ring out. To once again be shot, this time in my chest rather than in the back. And this time, I was sure, that I wouldn't be so lucky.