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 simple Fir executor #617

Merged
merged 17 commits into from
Oct 19, 2023
Merged

Add simple Fir executor #617

merged 17 commits into from
Oct 19, 2023

Conversation

CohenArthur
Copy link
Member

@CohenArthur CohenArthur commented Apr 23, 2023

  • fire: Add extremely basic interpretation engine
  • fire: Start performing calls to builtin functions
  • fire: Add proper tree-like interpretation
  • fire: wip: Add more comments regarding execution

Fixes #615
Fixes #618

@CohenArthur CohenArthur force-pushed the basic-executor branch 2 times, most recently from 0a6cecc to ed4772c Compare May 14, 2023 19:16
@CohenArthur
Copy link
Member Author

CohenArthur commented May 14, 2023

Once the FIXMEs are corrected, the executor will be in pretty good shape for more additions

  • How do we deal with the fact that we're acting on a Flat representation?
  • Is the [Fir] stable? Can we just access the last node as the entry point to the [Fir]? then it makes everything super easy actually
  • Add bindings here between the function's variables and the arguments given to the call
  • Decide on move/copy semantics
  • Remove unwraps
  • Add base for documentation

@CohenArthur CohenArthur force-pushed the basic-executor branch 2 times, most recently from 5290da2 to c43c79a Compare October 15, 2023 15:34
@CohenArthur
Copy link
Member Author

the Fire can now execute calls, as well as nested calls. this PR is already big enough, so work on the executor will continue in different pull requests. needs #620 before merging

@CohenArthur CohenArthur marked this pull request as ready for review October 15, 2023 22:36
@CohenArthur
Copy link
Member Author

Adding some documentation and cleaning up the code and this will get merged

@CohenArthur CohenArthur merged commit d276e23 into master Oct 19, 2023
@CohenArthur CohenArthur deleted the basic-executor branch October 19, 2023 21:45
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.

Invalid function parameter type resolution Name resolution does not scope bindings properly
1 participant