hundredrabbits/Ronin

Executing an endless loop hangs Ronin - no way to stop execution?

AsbjornOlling opened this issue · 1 comments

The reason for this is almost always just me being dumb - but it happens (more often that I'd like to admit) that I forget to include a base-case in my recursive functions, and end up executing code equivalent to this:

(defn rec () (rec))
(rec)

This hangs ronin, and I have to force-shut it, losing whatever progress I made since last save.

This is also an issue when I run a function that takes much longer to execute than I expect (too big limits, poor algorithms, etc).

Maybe this could be fixed by implementing some kind of "halt execution" keyboard shortcut?

Of course this has an obvious workaround (save often, kill and restart Ronin whenever this happens), so it's not an issue that's critical to me - but it would be much nicer to just stop execution.

Honestly, I get that too, at least 5 times a day.
I'll try and add something like a halt shortcut :)