-
Notifications
You must be signed in to change notification settings - Fork 686
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
refactor: s/regs/registers #1105
Conversation
976b114
to
bdcbef2
Compare
@andre-richter I think this will require changes on your end if merged. |
@andre-richter Yes, it will -- it's a step towards publishing on crates.io, I'll send an email out-of-band once it's published summarizing any changes (probably just this). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok that's a lot of changes. Can you send one that is just the crates.io changes?
I intend to do a PR for crates.io stuff next, this is just a s/regs/registers, it doesn't discriminate one way or another for the tock-regs stuff |
There are no crates.io changes in this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather just leave the chip files how they are rather than make changes across 66 files.
I think @bradjc and I have reached an impasse. I would rather see a consistent use of I would prefer to use words rather than arbitrary abbreviations. I think that's been agreed to for the Anyone else care to weigh in? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
👍 |
@ppannuto can you briefly summarize the IRC discussion rather than just link to it? |
I don't care strongly one way or another, but I'm sympathetic to @bradjc's concern about changing so many files on a whim (and the kernel interface for that matter). Since we're re-exporting the registers interface from the kernel anyway, is a reasonable middle-ground to change the names in the |
I don't feel strongly about this change either. Generally it's better to spell things out rather than abbreviate, but this mostly just feels like code churn to me. On the consistency side, can you point to a problematic case? A grep through the codebase shows me that a lot of files have a One source of concern, it seemed like @alevy and @bradjc were fine with this change when proposed on IRC. Was there something in particular that changed in this implementation from what you were imagining (maybe just the scale)? We should definitely avoid spending effort on things that aren't going to be wanted. |
Nothing changed for me. I'm just over here not really caring and trying to figure out how to turn a "requested changes" into an "approved these changes" |
I thought the change proposed on irc was just renaming the crate to tock-registers, and updating the |
Why does it matter that 66 files change? What matters is what kind of change. If we decided to add a license to every source file we'd change every one of them. If it relates to package names, so be it. That being said, going through lots of files written by other people and changing their variable names because one doesn't like them isn't great behavior. |
Following a brief IRC discussion, update regs to registers https://bot.tockos.org/tockbot/tock/2018-07-09/?msg=111467&page=1 Summary of IRC: > I'm pretty adverse to needless abbreviations, and despite the folder name > tock-register-interface everything internally is tock-regs and examples use > regs. I'm inclined to change this to tock-registers and registers before > publishing. > > +1's from Brad and Amit Then revised in discussion in #1105 to only rename some instances of regs to registers, which I disagree with, but don't care enough to fight about.
bdcbef2
to
646de24
Compare
I'll echo @brghena's final point: my primary reticence came from essentially making the same changes twice, but I've done that now so hopefully this can move through this time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine. Changing all of the variable names to registers seems not great, but I wouldn't block on it.
Just a merge conflict resolution. |
Pull Request Overview
Following a brief IRC discussion, update
regs
toregisters
https://bot.tockos.org/tockbot/tock/2018-07-09/?msg=111467&page=1
Summary of IRC:
Testing Strategy
Compiling.
Documentation Updated
/docs
, or no updates are required.Formatting
make formatall
.