Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how Variables work #286

Open
davidspies opened this issue Nov 6, 2020 · 1 comment
Open

Clarify how Variables work #286

davidspies opened this issue Nov 6, 2020 · 1 comment

Comments

@davidspies
Copy link
Contributor

davidspies commented Nov 6, 2020

In the documentation for Variable::set, (https://docs.rs/differential-dataflow/0.11.0/differential_dataflow/operators/iterate/struct.Variable.html#method.set) it says "Adds a new source of data to the Variable." but doesn't anywhere clarify what it means for a Variable to have a source or for that matter what happens when you add one. Is it concatenating or overwriting?

Also I'm confused about what exactly "iterative" does. In the example in the book (https://timelydataflow.github.io/differential-dataflow/chapter_2/chapter_2_7.html) it show how to construct the "iterate" function using just a "Variable" and "set". It seems like "iterative" isn't called anywhere. So where is the recursion coming from? Does "Variable::set" do the thing repeatedly or just once?

@isubasinghe
Copy link

Yeah variable is confusing tbh.
iterate() just runs the provided function till a fixed point is reached I believe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants