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

User guided specialisation stage #252

Draft
wants to merge 6 commits into
base: hkmc2
Choose a base branch
from

Conversation

Oli-Ar
Copy link

@Oli-Ar Oli-Ar commented Dec 17, 2024

Draft PR for implementing a user-guided specialisation pass in the mlscript compiler, very much still WIP

Added code to handle user guided specialisation in the compiler: the code takes in the AST, finds the functions to specialise, collects and edits the applications of those functions, then generates the specialised functions, adds those functions to the AST, and then return returns the tree.
@@ -0,0 +1,87 @@


:spt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be helpful to also show the JS tree, which is much easier to read.

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.

2 participants