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

Starting the infrastructure for writing files. #322

Merged
merged 12 commits into from
Apr 8, 2021

Conversation

jpivarski
Copy link
Member

The goal of this PR is to make tasks like the one in #320 more abstract, less "rawbytes manipulation."

Since the file-writer also has to read data (to find out where to write), some of its functionality is duplicated with Cursors and Sources. I think that's okay: writing is fundamentally different from reading—not symmetric at all—and so the infrastructure should be semi-independent. We may (eventually) use the same Model classes for reading and writing, so that the deserialization and serialization patterns are right next to each other and therefore easier to maintain, but the more fundamental stuff with maintaining the FreeSegments structure and cascading updates through dependencies should be kept separate from the code for read-only objects.

I should also link in discussion #321, since this is a continuation of that project.

@jpivarski jpivarski marked this pull request as draft April 2, 2021 18:04
@jpivarski jpivarski marked this pull request as ready for review April 7, 2021 23:50
@jpivarski jpivarski merged commit 2b518fa into main Apr 8, 2021
@jpivarski jpivarski deleted the jpivarski/writablefile-infrastructure branch April 8, 2021 00:00
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