Improving IFD

pennae's idea:

magic_ifd_primop = \f i -> import f >>= i
# nix:
importAndThen (res: <stuff>) some-ifd.outPath

Observation: a magic IFD primop that immediately does something to the result of an import can be "thunked" (thus processed in the background) and offer an "interesting" fix to IFDs. We cannot just make import be lazy because of the evaluator internals.

Subsequent observations:

Why is this interesting?

The capability of forking / parallelizing the work.

Questions:


Revision #4
Created 23 March 2025 21:36:00 by kfearsoff
Updated 27 June 2025 16:11:27 by piegames