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

Automagically recognize Inputs and Outputs #11

Open
mlajtos opened this issue Jun 23, 2017 · 4 comments
Open

Automagically recognize Inputs and Outputs #11

mlajtos opened this issue Jun 23, 2017 · 4 comments

Comments

@mlajtos
Copy link
Owner

mlajtos commented Jun 23, 2017

Having a metanode like this:

{ [In,Parameter] -> Transformation -> Out}

One can easily omit explicit Input and Output declaration since constructed graph implicitly has this information:

{ [in,Parameter] -> Transformation -> out}

By this rule, every source node without explicit Input type is an Input. And vice versa, every sink node without explicit Output type is an Output.

What to do when node is source AND sink at the same time?

@mlajtos
Copy link
Owner Author

mlajtos commented Oct 26, 2017

  1. Ø (empty atom =^? identity)
  2. a (a:[I,O], pass by, identity)
    1.5 a b (||, double pass by, double identity)
  3. a -> b (a:I, b:O, identity)
  4. a b->c (c:O, b:I, a:[I,O], (..hmm, most is identity))
  5. a -> b -> c (yay, finally!)

@mlajtos
Copy link
Owner Author

mlajtos commented Nov 3, 2017

So in the end, this:

{ [In,Parameter] -> Transformation -> Out}

becomes:

{ [in, Parameter] -> Transformation }

("In" becomes type-less node and "Out" becomes literaly type-less :D, therefore "Transformation" becomes implicitly output/sink node)

@mlajtos
Copy link
Owner Author

mlajtos commented Feb 18, 2018

therefore "Transformation" becomes implicitly output/sink node

There are two way out of this:

  1. Use I/O (source/sink) flag for every node
  2. Implicitly insert Input/Output nodes where appropriate

Both are equally weird solutions, so it doesn't matter which to choose.

@mlajtos
Copy link
Owner Author

mlajtos commented May 26, 2024

Related

Snímka obrazovky 2024-05-26 o 22 01 51

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

1 participant