Page MenuHomeClusterLabs Projects

Change allowed range of scores and value of +/-INFINITY
Open, WishlistPublic

Assigned To
None
Authored By
kgaillot
Jan 24 2024, 4:15 PM
Tags
  • Restricted Project
  • Restricted Project
Referenced Files
None
Subscribers

Description

Some users have requested greater flexibility in setting scores beyond the current range of -1,000,000 to +1,000,000. Usually this is to be able to use some external value directly.

We could raise INFINITY to a larger number (possibly expanding the type to 64-bit integer), and/or allow floating-point scores. Alternatively, we could define a score structure containing a numeric value and flags for +/- INFINITY.

I lean against this one, because there's no guarantee an external floating-point value can be exactly represented in a C type, and because INFINITY should ideally would be less than half the range of the type used to store it, to allow bare arithmetic addition of two values (meaning we couldn't allow full use of any integer type's range).

This would break backward compatibility in unpredictable ways, so it should be done at a major series bump.

Event Timeline

kgaillot triaged this task as Wishlist priority.Jan 24 2024, 4:15 PM
kgaillot created this task.
kgaillot created this object with edit policy "Restricted Project (Project)".
kgaillot moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Jan 24 2024, 5:47 PM