TimelyDataflow / TimelyDataflow/differential-dataflow

Clarify how Variables work

Open
#286 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
3k
Forks
211
Avg merge
10h 42m
Merged PRs (30d)
34

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Variable::set documentation and the linked chapter 2.7 book example. Determine how a Variable's sources combine, whether set acts once or repeatedly, and where the recursion in iterate comes from. Done means the documentation answers these questions clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.