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

Get the typed core to compile #17

Closed
wants to merge 70 commits into from
Closed

Conversation

0xd34df00d
Copy link
Contributor

@0xd34df00d 0xd34df00d commented Sep 20, 2023

There's plenty of work to be done still, but at least it compiles now, and I'd like to get it merged to avoid merge conflicts in the future.

There are also some a bit questionable design decisions I had to make, so we might want to discuss that later.

jmcardon and others added 30 commits August 22, 2023 15:35
…tion

But that's worth double-checking later on.
Previously, `inferModule` was inferring the types of the definitions in
the module sequentially, taking into account the previously inferred
types when inferring each next one. Now,
1. All top-level types are supposed to be annotated in IR as well, so
   there should be no reliance on the inferred types of the other
   definitions in the module.
2. The types of inferred (`Typed`) and non-inferred (`IR`) defs are
   different, and it's easy to see from types that the inference engine
   only depends on the non-inferred `IR` ones anyway, so looks like
   there's no need (and no easy way!) to keep the inferred ones in
   context as well.
3. Depending on the order seems funny anyway.
Just don't update `Loaded` with the same motivation.
@0xd34df00d 0xd34df00d requested a review from jmcardon September 20, 2023 01:52
@jmcardon jmcardon changed the base branch from master to jose/obj-tables October 5, 2023 20:42
@jmcardon
Copy link
Member

This PR is great and I will cherry pick some changes. It's a bit too much work to revive with all the changes to the core compiler.

@jmcardon jmcardon closed this Jan 22, 2024
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.

4 participants