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

Core language #46

Closed
julianhyde opened this issue Apr 22, 2021 · 1 comment
Closed

Core language #46

julianhyde opened this issue Apr 22, 2021 · 1 comment

Comments

@julianhyde
Copy link
Collaborator

Add a "core" language that is intermediate between Ast and Code/Applicable.

The elements of Core look similar to the expressions in Ast, but are simpler/fewer, and are all explicitly typed.

Advantages:

  • Core should allow us to do some optimizations, for example inlining constants.
  • Smaller language means fewer cases to consider.
  • Included types mean that we won't hit missing types all the time. (Currently we have to remember to add newly generated Ast elements to Compiler.typeMap.)
@julianhyde
Copy link
Collaborator Author

julianhyde commented May 22, 2021

Fixed in b72f1d9.

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

No branches or pull requests

1 participant