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 C code generation to store currently executed reaction, add AnytimePrime.lf as a demo for check_deadline(). #960

Merged
merged 9 commits into from Feb 13, 2022

Conversation

hokeun
Copy link
Member

@hokeun hokeun commented Feb 12, 2022

Relevant PR in reactor-c: lf-lang/reactor-c#38
Relevant issue: #403

This demo program was built with the help of @edwardalee and @lhstrh.
The demo program's name is inspired by @lhstrh.

…action current. (By assign the reaction to be executed)

`struct reaction_t *executing_reaction` is a new field added to `struct self_base_t` in:
https://github.com/lf-lang/reactor-c/pull/38/files#diff-261683f87319ce39fe4afeeea7cc128e146c5ea9329b08babd553fd748163a76
…f, which performs anytime computation to find the largest prime within the given deadline.

This demo was built with help from @edwardalee and @lhstrh.
The program's name is inspired by @lhstrh.
Copy link
Collaborator

@edwardalee edwardalee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! This is a significant improvement on our deadline mechanism...

experimental/C/src/AnytimePrime.lf Outdated Show resolved Hide resolved
experimental/C/src/AnytimePrime.lf Outdated Show resolved Hide resolved
experimental/C/src/AnytimePrime.lf Outdated Show resolved Hide resolved
lhstrh
lhstrh previously requested changes Feb 12, 2022
Copy link
Member

@lhstrh lhstrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only minor issues.

experimental/C/src/AnytimePrime.lf Outdated Show resolved Hide resolved
experimental/C/src/AnytimePrime.lf Outdated Show resolved Hide resolved
hokeun added a commit to lf-lang/reactor-c that referenced this pull request Feb 12, 2022
@hokeun hokeun requested a review from lhstrh February 12, 2022 21:51
@hokeun hokeun dismissed lhstrh’s stale review February 13, 2022 02:51

I believe I made the requested changes. Please let me know if there's anything missing!

@hokeun hokeun merged commit 73a43c7 into master Feb 13, 2022
@hokeun hokeun linked an issue Feb 13, 2022 that may be closed by this pull request
@hokeun hokeun removed a link to an issue Feb 13, 2022
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

5 participants