News for hackers. Stuff that matters.
Re:Base64 encoding and decoding at almost the speed of a mem... by nine_k on Wednesday November 06, 2019 @10:26AM (#21463443)
If efficiency and compactness are your problem, JSON is not the best idea anyway, look at protobufs and the ilk.

JSON works where you need simplicity on the verge of being dumb, and human-readability.

Re:Base64 encoding and decoding at almost the speed of a mem... by SlowRobotAhead on Wednesday November 06, 2019 @11:50AM (#21464307)
JSON human readable is extremely nice. FWIW, I’ve found some binary formats like CBOR and MsgPack to be so almost human readable as binary when you are even slightly familiar with the format, or just convert almost instantly to readable JSON.

When I was developing a three component system, protos were not working for me. Too many schema changes and implementation differences to make the reduced binary size worth it. This was partly because the best protobuffer implementation in C (nanoPB) is just the hobby project of some dude, but mostly because coordinating schemas was annoying.