wide-midnight-78598
04/20/2024, 4:25 AMpants.engine.intrinsics - but are these strictly types? Or should they call into something in the native engine? I'm assuming we're not exposing a pyfunction for each of the intrinsic functions, as they're run by the scheduler (somehow, as I haven't quite figured out how the rule_visitor plays into all this yet)wide-midnight-78598
04/20/2024, 4:30 AMnative_engine.tasks_add_call(
tasks,
awaitable.output_type,
awaitable.input_types,
awaitable.rule_id,
awaitable.explicit_args_arity,
)wide-midnight-78598
04/20/2024, 4:36 AMGet stubs, using PyGenerator...?
Anyways, this is my first real foray into the engine code and interface, so I clearly haven't grokked the interface semantics yetwide-midnight-78598
04/20/2024, 5:57 AMasync def remove_prefix_request_to_digest(value: RemovePrefix, **kwargs) -> Digest:
return await Call("remove_prefix_request_to_digest", Digest, (value, ), kwargs)
But it doesn't seem to matter what permutations of input args/kwargs, and Call-mapped args/kwargs I get:
> TypeError: Invalid Get. Because the second argument was a dict, we expected the keys of the dict to be the Get inputs, and the values of the dict to be the declared types of those inputs.witty-crayon-22786
04/21/2024, 3:08 PMwitty-crayon-22786
04/21/2024, 3:13 PMwitty-crayon-22786
04/21/2024, 3:14 PM@rule explicit decorator to annotate them with their requirements?witty-crayon-22786
04/21/2024, 3:14 PMwide-midnight-78598
04/21/2024, 3:18 PMwide-midnight-78598
04/21/2024, 3:26 PMbut because of the type-driven registration, we had to expose them via their typesGotcha, I wasn't sure of the correlation vs causation here - I thought they were exposed via types as a call optimization, not due to registration.
i'll see if i can do that today.I can do the bulk of the grunt work later this week of exposing the rest of the functions, if I have a framework/example/whatever to run off of. It would definitely take me a while to learn what I need to, and then build new functionality from the ground up myself - with the lack of retained knowledge of the runner + rule system
witty-crayon-22786
04/22/2024, 1:18 AMwitty-crayon-22786
04/22/2024, 1:19 AMwitty-crayon-22786
04/22/2024, 2:39 AMwide-midnight-78598
05/01/2024, 5:53 PMwitty-crayon-22786
05/02/2024, 4:18 AMwitty-crayon-22786
05/02/2024, 4:19 AMwide-midnight-78598
05/02/2024, 11:59 AMinternals somewhere I haven't sussed out yetwitty-crayon-22786
05/06/2024, 12:06 AMwide-midnight-78598
05/06/2024, 12:13 AM