From Esolang
Jump to navigation Jump to search

Title: Brainchrash

Article text: Braincrash

Which is correct? -- Smjg 19:04, 13 January 2011 (UTC)

Whoops, article text. --TehZ 19:22, 14 January 2011 (UTC)

Conservation of CP

It seems that whenever the IP goes back to the start of a loop, the CP returns to "[" again, otherwise the cat and conversion programs shown wouldn't work. I know that the way shown is the easiest way to do it, but it does seem a little unnatural that the CP should increment every character in the code, rather than every cycle. If you add 7 spaces after every "[" then this would work, except that it would work wrong when entering the loop. I think that there is probably a somewhat complicated way of fixing this, but I'm not sure of exactly how this would work. 4D enthusiast (talk) 11:28, 15 October 2012 (UTC)

I think it's only confusing if you try to see both IP and CP as things that change at runtime. If you read the source of the compiler in Python, for example, it's obvious that CP is computed statically, i.e., at compile-time, and at runtime it's basically moot -- it's already been computed and you don't have to do anything with it. (Though I agree it might be more interesting if it did, in fact, change at runtime. The language would arguably be more like a classical Turning tarpit in that case.) Chris Pressey (talk) 07:13, 18 October 2012 (UTC)