Hi David, David Elsing <david.els...@posteo.net> skribis:
> Oh that's true, this is an additional problem. Would it make sense to > add the parameters passed to `with-parameters' to the keys used in > `mcached'? Then the parameters would have to be passed around quite a > bit however... > Alternatively, would it be possible to query the fluids with > `current-dynamic-state' instead and use that for the keys in `mcached'? > I don't see any way to inspect a dynamic state though. Problem is that the key must remain “small” so that computing its hash is fast. It cannot grow further than its current size, I’m afraid. Ideally the key would contain only parameters known to be influential, but we cannot tell which are influential and which are not among those in the current dynamic state. > I think `with-parameters' only works for `%current-system' and > `%current-target-system', not for `%graft?': When setting `%graft?' to > #f in the second `with-parameters' wrapping in > `graft-derivation/shallow', it still evaluates to the same derivation as > with `%graft?' set to #t. The patch I just sent¹ fixes this issue. The solution was to do the same as ‘mparameterize’ to ensure that the extent during which parameters are set is the correct one given this is in a monadic context. Let me know what you think! Thanks, Ludo’. ¹ “gexp: ‘with-parameters’ properly handles ‘%graft?’.” I cannot see it yet in Debbugs.