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

Warning seriously (using Logging.jl and with user settings) #637

Open
Kolaru opened this issue Mar 22, 2024 · 0 comments
Open

Warning seriously (using Logging.jl and with user settings) #637

Kolaru opened this issue Mar 22, 2024 · 0 comments

Comments

@Kolaru
Copy link
Collaborator

Kolaru commented Mar 22, 2024

With the emergence of the NG flag and similar considerations, it seems like implementing a proper logging system is becoming increasingly pressing.

Amongst the thing that we would want to optionally warn the user are:

  • Creating an interval with NG
  • Creating an interval with decoration that is not :com
  • Creating an interval from floating point numbers with @interval (related to New macro for guaranteed operations #627)
  • Using a function that is not tight (like power which has a much slower tight version)
  • Creation an invalid interval
  • Creating an empty interval

Depending on their needs, users will probably be interested in enabling or disabling different warnings.

The logging will need to include the full stracktrace in most case, for example to quickly pinpoint where a computation lose its guarantee.

Logging.jl probably allow to do all that.

Looking at the list (please comment if you see more case that could do with a warning) it seems like most of the warnings would fall into the interval constructors, so it may not be that hard to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants