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

Variables (computed messages) #124

Closed
emil14 opened this issue Dec 13, 2022 · 2 comments
Closed

Variables (computed messages) #124

emil14 opened this issue Dec 13, 2022 · 2 comments
Labels

Comments

@emil14
Copy link
Collaborator

emil14 commented Dec 13, 2022

Package wide variables i.e. computed values (at runtime or compile time) and not just consts

  • Compile time executed
  • Runtime executed

Related to #87 #242


Do we need runtime functions for that?


From "dataflow programming" book:

Instead of
storing state internally in the node, it would send its state data on
the output so that in the next activation it can read it back in.

@emil14 emil14 changed the title Variables Variables (computed messages) Dec 17, 2022
@emil14
Copy link
Collaborator Author

emil14 commented Jan 1, 2023

Loop based pattern

in.sig -> computation.sig

computation.result
  -> out.result
  -> computation.sig

So user of this component can use it just like an IIP, it just have to trigger it once and the whole thing will never stop sending the result message

Problems

  1. How to implement this for variables that depends on data (think for errors.New("..."))
  2. Can we introduce some abstraction to simplify this pattern to make user not code it by him/herself?

@emil14
Copy link
Collaborator Author

emil14 commented Dec 10, 2023

Re-open when (if) needed

@emil14 emil14 closed this as completed Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant