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

Eta-expansion at the top of each Core function definition #1481

Closed
lukaszcz opened this issue Aug 25, 2022 · 0 comments · Fixed by #1571
Closed

Eta-expansion at the top of each Core function definition #1481

lukaszcz opened this issue Aug 25, 2022 · 0 comments · Fixed by #1571
Assignees
Labels
core Related to JuvixCore enhancement New feature or request

Comments

@lukaszcz
Copy link
Collaborator

lukaszcz commented Aug 25, 2022

Depends on PR #1421

Notes

  • Eta-expand only at the top of the Nodes stored in InfoTable/IdentContext.
  • Use type information associated with function definitions to determine eta-expansion.
  • The newly created Lambdas should have type information in BinderInfo, determined from the function type.
  • For testing, it may be useful to close Parse optional type information in JVC files #1509 first.

Starting point

  • Core/Transformation/Base.hs defines the transformation framework.
  • Core/Transformation/Eta.hs already contains eta-expansion for constructors and builtins.
@lukaszcz lukaszcz added enhancement New feature or request pending-review core Related to JuvixCore labels Aug 25, 2022
@lukaszcz lukaszcz added this to the 0.3 milestone Aug 25, 2022
@lukaszcz lukaszcz changed the title JuvixCore transformation: Eta-expansion at the top of each function definition Eta-expansion at the top of each Core function definition Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to JuvixCore enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants