Hacker News new | past | comments | ask | show | jobs | submit login

Come to think of it, Deutsch, Schorr and Waite’s algorithm for traversing a data structure by reversing pointers within it can also be viewed as a form of a zipper. Except that DSW’s algorithm predates the zipper.

DSW’s algorithm is used in the mark phase of garbage collection. It traverses and marks all reachable data in constant space.

https://inst.eecs.berkeley.edu/~cs61bl/r//cur/graphs/garbage...




This feels like the other end of a debate. Moving from immutable structures to hyper optimized traversal of mutable data. :)

Does remind me of threaded trees. Stackless traversal is a fun topic.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: