News for hackers. Stuff that matters.
Re:Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost" by lokedhs on Wednesday January 08, 2020 @10:20PM (#21998256)
I agree with what you said about XML. But in its stead we have a lot of JSON which is several respects is even worse.

The worst part of it is that it doesn't have a stable definition for numbers, making it impossible to guarantee you're getting the same value back if you encode and then decode a number. Reliably preserving the data you serialise using it should be a primary feature for an encoding format. JSON can't even do that.

Re:Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost" by gowld on Thursday January 09, 2020 @03:51PM (#22005567)
Why do you need a stable serialization for an unstable data type? Use a string of you want stability.
Re:Add '127.0.0.1 xn–9q8h' to /etc/hosts gives you "localghost" by lokedhs on Thursday January 09, 2020 @09:07PM (#22007848)
The point is that a 64-bit integer is stable in the language I'm using (which is most languages).

My opinion is that a serialisation format that explicitly makes something as fundamental as the representation of numbers unspecified is not useful as a data representation format.