Skip to content

merge in the new redperms#22

Merged
nikomatsakis merged 18 commits intodada-lang:mainfrom
nikomatsakis:main
Apr 27, 2025
Merged

merge in the new redperms#22
nikomatsakis merged 18 commits intodada-lang:mainfrom
nikomatsakis:main

Conversation

@nikomatsakis
Copy link
Member

The redperm model is an alternate take on our subpermission rules that is meant to interact better with inference. We keep them both and check for consistency between them.

Really we ought to test that that the two
are equivalent.
This has been helpful but I think this way of
looking at reduction is not the right one.
I don't think they are needed; expansion
will mean that we are applying to shared,
and we have a separate rule for that
The old code was not correct as it didn't
account for the liveness of temporaries.
This matters more as we experiment with
alternate formulations.
and skip the one test that fails as a result
Begin with `share` and `our`. We will be adding
`guard` next.
This allows us to align the behavior around
guards between the redperms and the subperms.
It also means we remove some of the sketchy
upcasting around dead places.
@nikomatsakis nikomatsakis merged commit f1758e5 into dada-lang:main Apr 27, 2025
1 check passed
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