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

Introduce new partial object API #1428

Merged
merged 18 commits into from
Dec 7, 2022
Merged

Introduce new partial object API #1428

merged 18 commits into from
Dec 7, 2022

Conversation

hannobraun
Copy link
Owner

This is a completely new partial object API, meant to replace the old one. The goal is to fully address #1249.

The core innovation of this API, compared to the old one, is that there is a notion of object identity which parallels the same notion that exists with full objects. Thanks to this, a partial object graph can directly map to the full object graph that is constructed from it. This removes the need for complicated build code, which the old API uses to make sure that the full object graph being built is connected correctly. With this new API, objects can be connected correctly from the start, and this is carried through the complete construction process.

The new API is not complete yet, but the design is there and has been partially proven. So far, it is clear that the design works in principle, and that the new approach is capable of delivering at least some simplifications. I will submit the branch where I've done this work after this pull request is merged.

What is not proven yet, is that this new design is indeed capable of taking care of #1249 completely. So far, I haven't seen any evidence to the contrary though, and I remain optimistic.

This pull request is only the start. It adds the new infrastructure, but the work to replace the old partial object API is not included.

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