Trampolining Nix with genericClosure
Summary
The post introduces using Nix's genericClosure as a worklist to implement a trampoline pattern, achieving near-constant stack depth for long computations. It includes concrete examples, performance benchmarks comparing the trampoline against foldl' and discusses when to reach for this technique, with applications in nix-effects.