-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fix naming asymmetry in ovis_log_register()/ovis_log_destroy() #1358
Comments
@nichamon, this sounds fine to me, what do you think? |
Could we make some consistency like _new/_delete all across ldms in a v5 transition? the 4.x releases already have this and 'renames for prettiness' break other peoples development trees. |
Renaming functions does not affect compatibility. We can change these names whenever we choose. Github is everyone's development tree. |
Renaming plugin api functions immediately breaks new plugin development branches which run anywhere from 3 months to a year in lifespan and frustrates new developers. While I'm a big fan of consistent naming practices, we should batch disruptive changes like this that don't actually provide any new functionality to major release boundaries. |
"Whenever we choose" may include criteria for batching as you suggest, so developers only have to rebase once. I'm simply pointing out that this does not/should not affect wire compatibility with earlier releases. |
I agree with @morrone to change For the other function names, I'll wait for a proposal regarding what function names people think should be changed and what the new names should be. |
@tom95858 @morrone I looked into the code. Renaming |
@nichamon I think we should consider having a base_sampler_term() function that has this function in it + some other base sampler cleanup. Same thing with setup, then we can "normalize" the log naming and termination logic. |
I think the base_sampler_* stuff is still a bit too far from being general-purpose to start hiding more important things inside it. |
I don't think we're trying to hide anything, but if we change some common functionality that everyone shares if we want to tweak that capability I would prefer not to have to change every single sampler. For clarity, what I'm talking about is that the plugin's term() function calls the base_sampler_term() function, but the term() function is not removed altogether. |
We have quite a bit of university sampler development work off the 4.4 branch. if adding ovis_log_deregister to the 4.4 branch, ovis_log_destroy should be macro'd to create a warning to the developer to update to the new name (and substitute the new one) so that development code based on 4.4 doesn't break. |
I'd suggest that API chances are more appropriate for OVIS-4/main than b4.4. |
I agreed with @morrone . |
There is a naming asymmetry in the ovis log API:
We should rename ovis_log_destroy() to something like ovis_log_deregister().
The text was updated successfully, but these errors were encountered: