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

feat: use the interpreter to evaluate top-level definitions #1169

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

dhess
Copy link
Member

@dhess dhess commented Apr 20, 2024

We bump the Primer pin for interpreter support, and create a new EvalBoundedInterp component that's more or less a drop-in replacement for EvalFull (which uses the much slower step evaluator). However, we don't yet use this in the UI pending the resolution of hackworthltd/primer#1247.

@dhess
Copy link
Member Author

dhess commented Apr 20, 2024

This all works... except for the interpreter, which appears to be not able to reduce top-level expressions. See hackworthltd/primer#1247

This version of Primer includes the new `evalBoundedInterp` API that
uses the interpreter for evaluation, rather than the step evaluator.

(Note that we have not switched to the interpreter in this commit;
this is only a Primer version bump.)

Signed-off-by: Drew Hess <[email protected]>
This is more or less a drop-in replacement for `EvalFull` and is ready
to go, save for hackworthltd/primer#1247.
Therefore, we don't yet use it in the `Edit` and `PictureInPicture`
components.

Signed-off-by: Drew Hess <[email protected]>
@dhess dhess added this pull request to the merge queue Apr 23, 2024
Merged via the queue into main with commit 48f40e9 Apr 23, 2024
33 checks passed
@dhess dhess deleted the dhess/interpreter branch April 23, 2024 17:22
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.

1 participant