News for hackers. Stuff that matters.
Re:Moving the Linux Kernel to Modern C by tialaramex on Thursday February 24, 2022 @07:47PM (#30462411)
The rename has to be atomic, which is one of the things your revision control system gives you, unless it's like CVS or something worse†. So, that's a necessary part of the solution space.

You want there to be two states: State A where the thing was called old_name and State B where the thing is called new_name. State AB where some code thinks it is called old_name but other code thinks it is called new_name is broken, and must not exist.

† This might seem outrageous to modern programmers, but CVS thinks in terms of files, so from its point of view it's fine if out of sixty files you tried to commit, 48 of them succeeded and 12 failed. Good luck fixing the resulting mess.

Re:Moving the Linux Kernel to Modern C by tonyarkles on Thursday February 24, 2022 @08:14PM (#30462594)
I remember having to go backwards from SVN to CVS for a project a long time ago, and I was so shaken by the fact that CVS couldn’t do atomic commits with multiple files!
Re:Moving the Linux Kernel to Modern C by bonzini on Friday February 25, 2022 @01:56AM (#30464383)
Yeah, my favorite model of how git operates is "rewind all the way back to RCS, add atomic commits and take it from there".

SVN, baz/bzr and friends are what you get if you add networking before atomic commits. Git is what you get if you start with the proper data model and only then add networking.