snake icon indicating copy to clipboard operation
snake copied to clipboard

Ouroboros' unusual introspection habits

Open Tallefer opened this issue 6 years ago • 7 comments

A quick clockwise U-turn was expected, but nim-snake This is not supposed to happen, right? There is also a possibility that it is a side effect of a temporary slowdown or/and disconnection.

Tallefer avatar Sep 12 '17 13:09 Tallefer

Yeah, this shouldn't happen. I'm guessing it's not easy to reproduce though :\

dom96 avatar Sep 13 '17 20:09 dom96

But the main question is - what to blame? Is it Nim compiler or this game code (less likely IMO) or is it browser's VM async quirks? What do you think? Is it even important at all to raise this question?

Tallefer avatar Sep 28 '17 21:09 Tallefer

It's most definitely some race condition. I don't think it happens very often though, does it?

dom96 avatar Sep 28 '17 21:09 dom96

Yup, same conditions are not too common. Well, I can only try to reproduce it at some point, but as I said - probably related to disconnection and freeze which were occurring at that very moment, Memory was almost full, too. So browser in general was chugging a lot then.

Tallefer avatar Sep 28 '17 22:09 Tallefer

This might be fixed now :)

dom96 avatar Dec 27 '18 19:12 dom96

I managed to reproduce python introspection by making a fast counter-clockwise turn (uparrow->leftarrow) while transiting the top row. Version: https://nim-lang.org/features.html

soypat avatar Feb 18 '19 02:02 soypat

^ The same issue affects me. I think this affects the topmost and leftmost rows and I could reproduce it reliably a few times. I already opened a new issue describing the problem, sorry for the double-up: #11.

(Although it does seem like a distinct issue, because (1) it's reproducible (2) it affects the whole leftmost and topmost rows (3) rather than requiring fast turns it seems there is a whole time step in which the head is missing---all of this suggests some kind of off-by-one-error in the game logic for wraparound at the left/top side, rather than a race condition)

matomatical avatar May 10 '22 09:05 matomatical