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

Rename relations #45

Merged
merged 11 commits into from
Oct 7, 2022
Merged

Rename relations #45

merged 11 commits into from
Oct 7, 2022

Conversation

langston-barrett
Copy link
Collaborator

@langston-barrett langston-barrett commented Oct 6, 2022

Towards #42, #39.

This is the beginning of a series of commits that will try to unify the naming
conventions of the Fact Generator and Datalog code. It's important to undertake
this while the git history of the project is relatively short, so as to not hide
valuable history by doing it later.

At the same time, this set of changes will endeavor to make consistent,
reasonable trade-offs between identifier clarity and brevity, and document these
choices.
Used this script to rename files in datalog/schema:

    import os

    for f in os.listdir("."):
        if "instruction" in f:
            os.rename(f, f.replace("instruction", "instr"))
Gives an explicit goal to how relation names should be derived from group +
attribute names.
Begin systematizing the names of attributes of instructions. This commit
endeavors not to rename anything that appears in the fact generator nor Datalog,
but merely to capture the existing system(s) of instruction attribute names.
This will make it more obvious which ones lie outside these conventions, and
make it easier to change them.

This commit ends at `trunc`, further commits will do the rest.
Finish the work started in the previous commit.
@langston-barrett langston-barrett marked this pull request as ready for review October 7, 2022 19:40
@langston-barrett langston-barrett merged commit 2a77a17 into main Oct 7, 2022
@langston-barrett langston-barrett deleted the lb/rename branch October 7, 2022 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant