view interps/c-intercal/pit/tpk.doc @ 11633:a56795ce5d0a draft

<oerjan> le/rn hammurabi//If anyone creates a webpage that unexpectedly starts playing sounds, he shall be put to death. http://45338297.weebly.com/laws-on-property-and-theft.html
author HackEso <hackeso@esolangs.org>
date Tue, 23 Oct 2018 23:09:55 +0000
parents 859f9b4339e6
children
line wrap: on
line source

I have made my TPK program available on
  http://www-cs-faculty.stanford.edu/~knuth/programs.html
and I have no objection if you or other people with INTERCAL sites
add it to their collection. If you have time to check it out
(at least a little), I think you'll see that it introduces a few
new hacks that work only on INTERCAL, including DON'T RESUME #1
and REINSTATE NEXTING. Also a way to avoid simple branching by using
an array: Suppose you want to set x<-y if and only if z is true.
Then keep x in ;X SUB#1 and "shadow x" in ;X SUB#2 and convert
z to .Z = 1 if true, 2 if false; then set ;X SUB .Z <- y (no branching).
If you have time to look at only a little bit of the program,
I recommend the last two subroutines, "CMP" (which is teleprinter
code for 23438) and "TIX" (29904). Someday I'll publish clues about
what is going on, in my Fun and Games book; the code is filled with
jokes that only a true hacker can appreciate.... and I think I've
used every non-newfangled feature of the language.