tvl-depot/tvix/eval/src/value
sterni b79e248959 refactor(tvix/eval): handle forcing in Builtin::apply
Instead of arity, we pass a array reference to Builtin::new that
describes how many arguments there are and which of them need to be
forced, eliminating the need to force manually.

Note that this change doesn't fix some of the instances where the the
Builtin doesn't consider that the value could be a Thunk.

Change-Id: Iadb58bb79886c30dc6b09dcf0ffad8abf28036a1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6662
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2022-09-19 09:58:14 +00:00
..
attrs chore(tvix/eval): Pass in VM to nix_eq 2022-09-18 22:03:42 +00:00
arbitrary.rs test(tvix/eval): impl Arbitrary for Value 2022-09-18 17:55:07 +00:00
attrs.rs chore(tvix/eval): Pass in VM to nix_eq 2022-09-18 22:03:42 +00:00
builtin.rs refactor(tvix/eval): handle forcing in Builtin::apply 2022-09-19 09:58:14 +00:00
function.rs refactor(tvix/eval): Don't (ab)use PartialEq for Nix equality 2022-09-18 22:03:41 +00:00
list.rs chore(tvix/eval): Pass in VM to nix_eq 2022-09-18 22:03:42 +00:00
mod.rs refactor(tvix/eval): Simplify forcing in builtins 2022-09-18 22:33:19 +00:00
string.rs test(tvix/eval): Add proptests covering trait impls for String 2022-09-17 19:51:16 +00:00
thunk.rs refactor(tvix/eval): Don't (ab)use PartialEq for Nix equality 2022-09-18 22:03:41 +00:00