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

Add tree construction example #429

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ryo33
Copy link

@ryo33 ryo33 commented Dec 27, 2022

This example is an analogy of a calculation with multiple inputs that depend on each other by a unique id. The calc example can handle multiple inputs, but its inputs are not referred to each other.

  • FlatNode represents an input.
  • usize represents an input id.
  • Tree represents an intermediate or final result of a computation.
  • fn construct_tree represents an internal recursive computation.
  • fn entrypoint represents an entrypoint of a computation.

@netlify
Copy link

netlify bot commented Dec 27, 2022

Deploy Preview for salsa-rs canceled.

Name Link
🔨 Latest commit fedde6b
🔍 Latest deploy log https://app.netlify.com/sites/salsa-rs/deploys/63aad58103f6990008117322

@nikomatsakis
Copy link
Member

Oooh, this is a nice idea, thanks! I'll take a look.

@nikomatsakis
Copy link
Member

It will definitely need to be rebased.

@nikomatsakis
Copy link
Member

I think though it would be useful to have a kind of "patterns" directory and perhaps include this (or a refined version of it)

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

Successfully merging this pull request may close these issues.

None yet

2 participants