Garn, an alternative Nix frontend using TypeScript, achieves dramatic evaluation speedups through trace-based caching techniques. By tracking file reads and imports during evaluation, garn invalidates caches only when actual dependencies change, reducing evaluation time from ~800ms to ~16ms in unchanged scenarios. The system

16m read time From garnix.io
Post cover image
Table of contents
ContextTrace-based cachingAdding incrementalismPartial evaluationConclusion

Sort: