Skip to content

[WIP] Extract type checking and analysis from compiler #1363

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

Closed
wants to merge 23 commits into from

Conversation

grantnelson-wf
Copy link
Collaborator

@grantnelson-wf grantnelson-wf commented Feb 28, 2025

WIP

I may break this into smaller parts since this is conceptually complicated (at least for me).

This depends on #1362 [Merged]

This pulls the preparation out of the compile phase. The sources contain the type information needed for compilation. All the sources type information is collected then the analysis is run and propagated across package boundaries. Once all the sources have been prepared, they can be compiled.

  1. build system needs to be changed to collect generic instance information and propagate it across package boundaries. This would require reorganizing build package into loading all packages first, analyzing them, and then passing to the compiler, which is different from today's behavior where imported packages are loaded and compiled on-demand when compiler needs them. The tricky part here would be making sure build cache accounts for the fact that dependent packages may influence the set of generic instances of the dependency packages. - from this slack comment by nevkontakte

@grantnelson-wf grantnelson-wf self-assigned this Feb 28, 2025
@grantnelson-wf grantnelson-wf deleted the breakupCompile2 branch March 5, 2025 19:07
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