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

Use the set version of infer #69

Open
dghosef opened this issue Jul 5, 2024 · 0 comments
Open

Use the set version of infer #69

dghosef opened this issue Jul 5, 2024 · 0 comments

Comments

@dghosef
Copy link
Owner

dghosef commented Jul 5, 2024

the current one is way too slow. Also to speed up:

Give each type an int
Use union-find in unify
Turn on optimizations
Go back to the mutable version
Allow the program to be run in the mean time
There are times in which simplifyig the type would be helpful. Take advantage of those
Pass around a loc with a type
Watch the output of unify on a simple program like:

list: {
  Data[#None{}]
  Prepend[value|
    {self Data[#Some {V[value] P[`Prepend Data.]}]}
  ]
}
list Prepend {}. Prepend {}. Prepend {}.
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