News for hackers. Stuff that matters.
Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by pvillano on Saturday January 01, 2022 @11:13AM (#29759739)
side note

some numbers^* cannot be meaningfully multiplied or divided. For example, 3^rd place, 30° F, or 37.388N,-122.067S.

Some numbers can only be added to by numbers of a different type. For example x°C + y°K, 3rd grader + year, absolute position + offset. Similarly, subtracting two of these numbers results in a different unit. e.g. position - position = offset

it would be great if someone could comment the exact terminology for what I'm trying to describe.

* Types/Units

Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by john-aj on Saturday January 01, 2022 @02:03PM (#29761469)
In statistics, one usually differentiates between

- nominal scales (e.g. man/woman),

- ordinal scales (elementary school/middle school/high school),

- interval scales (degrees Celsius) and

- ratio scales (human height, degrees Kelvin).

Only ratio scales may be multiplied and divided. Interval scales may be subtracted and added. Ordinal scales may only be compared (less/greater/equal). Nominal scales may only be compared in terms of (in)equality.

https://en.wikipedia.org/wiki/Level_of_measurement

Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by pvillano on Friday January 14, 2022 @09:11AM (#29934565)
thank you! this is that I was looking for
Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by mind-blight on Saturday January 01, 2022 @11:25AM (#29759876)
I'm not sure if it's what you're looking for, but algebraic days types are a fairly common way to encode different kinds of days that have the same shape.

You may also be looking for fields: https://en.m.wikipedia.org/wiki/Field_(mathematics). You could probably also describe the relation between different number types as linear operators over a vector space

Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by jongalloway2 on Saturday January 01, 2022 @03:37PM (#29762459)
F# has Units of Measure: https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...

There are libraries that implement this concept in other programming languages (C++, Java, C#, etc.)

Re:Microsoft Exchange stops passing mail due to bug on 1/1/22 by samus on Saturday January 01, 2022 @04:12PM (#29762859)