5 ms·
Lazy instantiation.
by andyl 11y ago
Lazy instantiation.
- kiernan 11y agorealization
- has2k1 11y agoJust like python generators.
- sosuke 11y agoYou made me remember a comment I made some months ago about the speed of light being a performance optimization on a post asking if reality was a computer simulation. https://news.ycombinator.com/item?id=8638150 https://news.ycombinator.com/item?id=8638150 Lazy loading makes perfect sense to me!
- Strilanc 11y agoA lazily computed simulation would lazily compute entities not seeing the laziness. Laziness should have no measurable effect within the simulation, unlike quantum mechanics. As an analogy, consider Hashlife [1]. It works very differently than your typical game of life implementation... but it still agrees on all the intermediate states! The board won't behave normally for most implementations, but end up in states spelling out "we know we're being cached hierarchically!" when you simulate with hashlife. 1: https://en.wikipedia.org/wiki/Hashlife https://en.wikipedia.org/wiki/Hashlife