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 |