hundredrabbits / Ronin

Experimental Graphics Terminal
https://hundredrabbits.github.io/Ronin/
Other
1.2k stars 67 forks source link

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

Open AsbjornOlling opened 5 years ago

AsbjornOlling commented 5 years ago

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.

neauoire commented 5 years ago

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