Login
You're viewing the slime.global public feed.
  • Oct 19, 2026, 6:38 PM

    @mcc
    The length of the expected output list is known. So the program might die if this length is exceeded by the output list.

    Yes, this feels hacky, but somehow you need to solve the halting problem.

    And if you're at it, you could of course break an evaluation as soon as the output is not a prefix of the expected output.

    So the CPU might keep the list of "expected remaining output" and "consume" it upon fitting output.

    💬 1🔄 0⭐ 0

Replies

  • Oct 19, 2026, 6:40 PM

    @hcschuetz Hey, that's a good optimization. And it did occur to me another potential optimization is to cache previously seen states (only 4 registers; not so hard) and abort if i detect a loop. However I think I could still run in a *very* long loop using only loops and slowly modifying one of the registers in a non-repeating or increasing fashion. It would be hard, given the operators, but not out of the question.

    💬 0🔄 0⭐ 0