News for hackers. Stuff that matters.
Re:How does your programming language handle “minus zero” (-... by throwaway8581 on Friday March 05, 2021 @12:29PM (#26359418)
There is nothing wrong with the protocol. The protocol has nothing to do with what representation is used by software that speaks the protocol. Software could just as well parse those values as integers. Just drop the decimal point and pad with zeroes. Or use a decimal type (but there is really no need to).
Re:How does your programming language handle “minus zero” (-... by duckerude on Friday March 05, 2021 @02:53PM (#26361252)
Assigning blame is a bit academic.

I think a protocol that used integers instead of decimal point would have led to more correct implementations. So it would be a better protocol.

Re:How does your programming language handle “minus zero” (-... by 8note on Friday March 05, 2021 @01:38PM (#26360249)
The protocol has an obvious implementation choice and some non-obvious alternatives.

If the protocol had nothing to do with it, I don't think you'd see the same bug come up in as many implementations

Re:How does your programming language handle “minus zero” (-... by quantified on Friday March 05, 2021 @09:17PM (#26364635)
It’s on implementors to be correct. No one said the Java implementation needed to use float or double. Java isn’t the only web server implementation language.