11 ms·
Fun with time travel: retroactive data structures in Python
- rajington 11y agomight want to space these csvoss submissions out a bit
- rem7 11y agowhy don't you guys stop stalking github.com/csvoss already? Third post of the day: https://news.ycombinator.com/item?id=10117612 https://news.ycombinator.com/item?id=10117612 https://news.ycombinator.com/item?id=10114969 https://news.ycombinator.com/item?id=10114969
- mejari 11y agoNot sure I understand the problem. If each submission is interesting in and of themselves, does it matter if the source is the same?
- erdewit 11y agoWhy not use a bitemporal data model instead, it's cleaner and easier to reason about. https://en.wikipedia.org/wiki/Temporal_database https://en.wikipedia.org/wiki/Temporal_database
- leni536 11y agoI think it would be the "naive" implementation. For specific data structures more efficient specific algorithms can be written.
- pandler 11y agoCan anyone give an example of a use case for this?
- Semiapies 11y agoI'd be rather curious; this is an interesting concept.
- gergoerdi 11y agoYou can also do time-travelling control structures: https://hackage.haskell.org/package/tardis-0.3.0.0/docs/Control-Monad-Tardis.html#g:2 https://hackage.haskell.org/package/tardis-0.3.0.0/docs/Cont...
- bmn_ 11y agoPerl did time-travelling variables first, namely in 2007: Positronic::Variables https://www.flickr.com/photos/gunnarwolf/1343377956/ https://www.flickr.com/photos/gunnarwolf/1343377956/ This in the picture is Conway giving the talk.