News for hackers. Stuff that matters.
Re:HN “Why Not Simply” by aahortwwy on Sunday June 06, 2021 @07:21PM (#27417296)
Probably my favorite comment of that genre, on a video which contained a pathing bug causing an NPC to walk in a circle endlessly,

"Seriously, how hard is it to just check if a path is infinite and stop the NPC from moving if it is?"

Re:HN “Why Not Simply” by infogulch on Sunday June 06, 2021 @10:24PM (#27418345)
I mean, we solved the problem in the context of reference cycles during garbage collection.
Re:HN “Why Not Simply” by ketralnis on Monday June 07, 2021 @02:17AM (#27419582)
Why do you need to do garbage collection at all, why don't you just delete the garbage?
Re:HN “Why Not Simply” by Izkata on Monday June 07, 2021 @12:48AM (#27419092)
Besides the "infinite" part, another problem with this is that the NPC's path isn't necessarily created all at once, but updated as the NPC gets closer to its target / obstacles in it path move around / etc, so there isn't anything to actually check for cycles.