rough-minister-58256
06/22/2018, 1:09 AMrough-minister-58256
06/22/2018, 1:20 AMimage.png▾
rough-minister-58256
06/22/2018, 1:21 AMaloof-angle-91616
06/22/2018, 3:33 AMaloof-angle-91616
06/22/2018, 3:34 AMaloof-angle-91616
06/23/2018, 5:26 AMaloof-angle-91616
06/23/2018, 5:26 AMaloof-angle-91616
06/23/2018, 5:27 AM@rule
aloof-angle-91616
06/23/2018, 5:56 AMaloof-angle-91616
06/23/2018, 5:59 AMas_tuple()
method that calls __getnewargs__()
to datatype
so you can do tuple destructuring on that like a, b = my_datatype_instance.as_tuple()
aloof-angle-91616
06/23/2018, 6:00 AMcopy()
or modify()
method to datatype
to do what thrift copy methods do, which is to create a new object of the same type with whatever fields are provided to the method, i feel like that could make a lot of the native dependency injection much cleaneraloof-angle-91616
06/23/2018, 6:01 AMwitty-crayon-22786
06/23/2018, 5:09 PMaloof-angle-91616
06/23/2018, 5:33 PMaloof-angle-91616
06/23/2018, 8:40 PMaloof-angle-91616
06/23/2018, 8:41 PMaloof-angle-91616
06/24/2018, 1:08 AMaloof-angle-91616
06/24/2018, 1:16 AMdependees
for rules, which is "i want everything that statically exists (in the rule graph) satisfying these filters" (2) something like task/rule progress display which is "i want some selection of products in flight" (3) something like Select()
for an @rule
which is "i want this specific product which there should only be a single way to obtain in the subgraph this rule is contained in"aloof-angle-91616
06/24/2018, 1:21 AMSelect(MyProduct)
could specify a query to the rule graph for all rules which produced MyProduct
, which might be something we could have a cli goal for (seems like a query that might be pretty useful to have while developing a plugin)aloof-angle-91616
06/24/2018, 1:29 AM--task-progress-display-weights="[('select', 'c-compile', 100), ('select', 'zinc-compile', 200)]"
to that you want zinc compilation to go to the top of progress displays, and c compilation as well, but less. expanding then what kinds of selectors are available (more than just 'select'
) and potentially expanding what you can specify as a weight for other types of ordering is interesting to think about (not thinking of being able to or wanting to do this as necessarily happening anytime soon)aloof-angle-91616
06/24/2018, 1:31 AMaloof-angle-91616
06/24/2018, 1:33 AMaloof-angle-91616
06/24/2018, 1:36 AMSelect()
to specify products in an @rule
? because we have yield Get(...)
now it seems like we could even slim it down to just @rule(ProductType, [SubjectA, SubjectB])
? unsure if i'm missing something obviousaloof-angle-91616
06/24/2018, 1:37 AMaloof-angle-91616
06/24/2018, 1:38 AMaloof-angle-91616
06/24/2018, 1:39 AMaloof-angle-91616
06/24/2018, 1:46 AMaloof-angle-91616
06/24/2018, 1:46 AMaverage-vr-56795
06/25/2018, 6:04 PMwitty-crayon-22786
06/25/2018, 6:06 PM