-
Notifications
You must be signed in to change notification settings - Fork 80
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
Replace use of Integer with fixed-sized types #80
Comments
|
Maybe a reasonable compromise is to defer choosing the representation by defining
then make the API all based on Integral constraints and specialize for the common cases. That way an end user still has the flexibility to use |
Int64 days is twenty-five quadrillion years, enough for most purposes. A pair of Word64s is ten quintillion years, ditto. And allows a nice split between the seconds and fractional seconds. However, POSIXTime does get used a lot in contexts where such a wide span is not called for. On unix the modern expectation is a few hundred billion years. Using a pair of Word64 may be less efficient than Integer for typical POSIXTimes (since for small values gmp uses efficient types). |
But if an |
Packs more predictably.
Day
containsInteger
Int32
days is ± 5.8 million yearsInt64
DiffTime
andNominalDiffTime
containPico
(Fixed
) which containsInteger
Int64
picoseconds is ±106 days, not big enoughInt128
?The text was updated successfully, but these errors were encountered: