You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use fine-grained dependencies to eliminate stanza from FlaggedDeps? #3263
@edsko, I'd quite like to know what you think about this.
In a5a823d, 6b77ea2 and 87a79be you modified the solver to keep track of which component a dependency came from. However, as far as I can tell, the solver doesn't actually use this information; it just makes sure it gets passed along.
At the same time, there is an orthogonal mechanism, Stanza in FlaggedDep, which lets you conditionalize a dependency tree on whether or not a stanza is enabled. This code substantially predates fine-grained dependencies, and I am now wondering whether or not we need it anymore: why can't we just look at the stored Component when building the search tree to decide how to branch? In this way, we automatically get the ability to conditionalize on executables too.
The solver uses the fine grained dependencies to decide where to introduce qualifiers (i.e., which goals are in independent), but other than that, just makes sure the information is not forgotten.
I'm not entirely sure I understand what you are proposing though. Can you give a concrete example?
The proposal is to get rid of Stanza altogether. So instead of adding Stanzas when we are converting source packages to the solver format, don't bother and have the solver just look at the fine grained dependencies.
Activity
edsko commentedon Apr 4, 2016
The solver uses the fine grained dependencies to decide where to introduce qualifiers (i.e., which goals are in independent), but other than that, just makes sure the information is not forgotten.
I'm not entirely sure I understand what you are proposing though. Can you give a concrete example?
ezyang commentedon Apr 4, 2016
The proposal is to get rid of
Stanzaaltogether. So instead of addingStanzas when we are converting source packages to the solver format, don't bother and have the solver just look at the fine grained dependencies.edsko commentedon Apr 4, 2016
So instead of
we have
Yes, it would seem that those two are in fact isomorphic. Yeah, I think the simplification you propose makes sense.
ezyang commentedon Apr 4, 2016
OK, good. It's not hotpath for me but if I need to touch this code a lot later I'll clean this up.