Re:Microsoft Exchange stops passing mail due to bug on 1/1/22
by petee on Saturday January 01, 2022 @12:42PM
(#29760668)
Sorry, I edited twice (just for confusion hah).
I don't think it's that they don't care, I suspect many simply do not understand what is under the hood in the first place; and they don't need to when doing web development. The fact that some here suggest storing version as a string is some how faster and safer is a big give away.
Re:Microsoft Exchange stops passing mail due to bug on 1/1/22
by jeroenhd on Saturday January 01, 2022 @12:57PM
(#29760836)
Perhaps saying they don't care is a bit much, they usually just don't need to care. The data is delivered to most websites in the form of JSON which can be parsed to any data format you want, and at that point it might even be faster to do a string compare to skip the double/int conversion.
Re:Microsoft Exchange stops passing mail due to bug on 1/1/22
by petee on Saturday January 01, 2022 @01:17PM
(#29761006)
I got what you were saying. That certainly may be case, depending on application. It looks in this case like its just definition files being loaded into memory, and if they need to compare that version more than once, doing it as a single operation binary comparison will be significantly faster than continually comparing a UTF-8 string (SIMD aside)
It's a little silly that a test didn't catch this problem, but using a version number somewhere high up in the long makes total sense to me. After all, version numbers can be anything you define them to be, as long as they're unique. You'd like them to be sortable, but they don't even have to be.