标签
LazyAgent 引入了一个用于智能体程序的需求驱动执行框架,该框架根据当前目标选择性地仅执行必要步骤,相比于急切执行的基础方案,带来了显著的效率提升和成本节约。
本文讨论了避免 Haskell 中正确性空间泄漏的方法,将泄漏分类为严格性、活性和共享类型,并推荐了防御性编程模式和性能分析技术。
本文提供了关于Haskell中惰性求值的指南,解释了其机制、对模块化代码的好处,以及分析空间和时间使用的方法。
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 阶段的开销。视频展示了如何使用装饰器推迟计算和导入,并解释了其内部工作原理。