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

Intuitive Programming #83

Open
syifan opened this issue Feb 22, 2024 · 0 comments
Open

Intuitive Programming #83

syifan opened this issue Feb 22, 2024 · 0 comments
Labels
enhancement New feature or request need discussion

Comments

@syifan
Copy link
Contributor

syifan commented Feb 22, 2024

It is hard to program state machines. It is more intuitive to program a continuous function and allow users to write Yield(numCycles) to say they want to wait for a certain amount of time and continue the context within the same program.

We can run the component with a go routine. Then we need a scheduler to decide which go routine can move forward. The yield function can actually register an event that takes go channel as an argument. The event handler will simply inject something to the go channel or close go channel to signal the go routine that it can continue executing.

@syifan syifan added v4 enhancement New feature or request labels Feb 22, 2024
@syifan syifan added need discussion and removed v4 labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request need discussion
Projects
None yet
Development

No branches or pull requests

1 participant