News for hackers. Stuff that matters.
Re:MessagePack: like JSON, but fast and small by ergothus on Tuesday March 10, 2020 @04:57PM (#22539601)
I have hated the lack of comments so many times.

But crockfird said it was done to keep the parsing simple (and thus secure), and between seeing how XML has it, and seeing how poorly many json parsing implementations are despite this simplicity, I have begrudgingly decided to accept it. Still wish there was a way without those problems though.

Re:MessagePack: like JSON, but fast and small by hajile on Wednesday March 11, 2020 @08:59AM (#22545406)
It had NOTHING to do with the simplicity of the parser. He's said in his lectures that the real reason was that he wanted to prevent someone hiding custom pre-processor data in the comments and causing incompatibility.

I think this was stupid. First, it happens anyway to some extent with people just using custom byte encodings for "strings". Second, using comments for metadata could be useful -- even if optional. For example, adding types after strings to specify things like the date format.