Tag
The article explores Nix's laziness, showing how attribute paths can lazily generate infinite trees, and turns this into a fun hack where each button press in Super Mario Bros. 3 is a separate Nix derivation with the store as savestate history.
Anthony 介绍了一个名为 lazy_static 的 Python 库,它利用惰性导入机制实现模块级惰性赋值,避免 import 阶段的开销。视频展示了如何使用装饰器推迟计算和导入,并解释了其内部工作原理。