Skip to content

runtime loops: Part 1: added a notion of loop for the runtime plan#21

Merged
gbin merged 2 commits into
masterfrom
gbin/plan_loops
Aug 18, 2024
Merged

runtime loops: Part 1: added a notion of loop for the runtime plan#21
gbin merged 2 commits into
masterfrom
gbin/plan_loops

Conversation

@gbin

@gbin gbin commented Aug 16, 2024

Copy link
Copy Markdown
Collaborator

on the back of adding batches, this adds the notion of loops in the runtime plan.

@gbin gbin requested review from mik90 and zachgoins August 16, 2024 14:34
Comment thread cu29/src/curuntime.rs
Comment thread cu29_derive/src/lib.rs Outdated
Comment thread cu29_derive/src/lib.rs Outdated
Comment thread cu29/src/curuntime.rs Outdated
Comment thread cu29_derive/src/lib.rs
Some(parse_str::<Type>(step.output_msg_type.clone().unwrap().as_str()).unwrap())
}
}
CuExecutionUnit::Loop(_) => todo!("Needs to be implemented"),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it going to go through all of the steps in the loop and aggregate all of the message types?

And do we care about duplicates in this return type? Should it be changed into a set or is the type vec being indexed into or something?

@gbin gbin Aug 18, 2024

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it works as is ... we will need an array of the type instead of just a type for each step of the loop as output. And at runtime we need to generate the index for the loop.
in the vector it will be:
[mainloop_type1 loop1_type1[] loop1type2[] mainloop_type2 ...]

we might want to go through some design lol

@gbin gbin merged commit 8363dd1 into master Aug 18, 2024
@gbin gbin deleted the gbin/plan_loops branch August 18, 2024 16:03
gbin added a commit that referenced this pull request Aug 19, 2024
* runtime loops: Part 1: added a notion of loop for the runtime plan

* PR comments
gbin added a commit that referenced this pull request Oct 23, 2024
* runtime loops: Part 1: added a notion of loop for the runtime plan

* PR comments
@makeecat makeecat added the enhancement New feature or request label Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants