[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    Re: [Nix-dev] Variable interpolation in strings read from files
From:       Vladimír Čunát <vcunat () gmail ! com>
Date:       2014-06-26 10:05:09
Message-ID: 53ABF055.6070808 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On 06/25/2014 11:52 AM, Florian Friesdorf wrote:
> Am I correct that my solution performs about as good as the in-place
> testScripts for tests/installer.nix which us ${ } and that as Vlada said
> this would be bad within pkgs.* but okish within nixos/tests?

I think so (from my previous skim).

> Would caching of function values within nix be an option, so that
> caching does not only happen via the store?

The value is cached within a single nix evaluation run. If we wanted to 
cache expensive subexpression values between runs, we would need to 
store them in nix store (or something similar)... that seems like a 
quite complex project, although perhaps feasible.

Recursive nix might be a better way, as it's already implemented IIRC, 
but there's still the inherent complexity of (the first) evaluation, 
which is not nice and not expected by the current design.


Vlada



["smime.p7s" (application/pkcs7-signature)]

_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic