juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2010-03-18 11:38 am

King JSON

Seems like we here are agreeing to switch from our fixed binary data packet format to JSON. Can't believe my eyes.

[identity profile] itman.livejournal.com 2010-03-18 06:48 pm (UTC)(link)
Fixed binary might be a pain in the neck. In my code, however, I gonna keep a binary format in a couple of places. Primarily because, I need an efficient way of storing blobs up to several MBs large. I don't want any bloated text format to come into the way. In addition, I won't have this big/little endian issue in the foreseeable future.

[identity profile] yakov-sirotkin.livejournal.com 2010-03-18 07:07 pm (UTC)(link)
В нём нет big/little endian issue.

[identity profile] itman.livejournal.com 2010-03-18 08:24 pm (UTC)(link)
Я не очень понимаю, каким образом utf-8 решают проблему передачи, например, массива целых чисел.

[identity profile] yakov-sirotkin.livejournal.com 2010-03-18 08:44 pm (UTC)(link)
JSON в UTF-8 может передать массив целых чисел:)

[identity profile] itman.livejournal.com 2010-03-18 09:20 pm (UTC)(link)
Так причем здесь UTF-8? Это, вообще, ASCII формат. Но речь идет о том, что это неэффективное представление больших данных.

[identity profile] ivan-gandhi.livejournal.com 2010-03-18 06:54 pm (UTC)(link)
Just yesterday we discussed adding optional nvpairs to the tail of the packet; I did not think I could sell JSON to the guys. Now kaboom, turns out there are just 3 stakeholders, and we all have the same opinion. Fuck the others.
Edited 2010-03-18 18:55 (UTC)

[identity profile] itman.livejournal.com 2010-03-18 07:05 pm (UTC)(link)
Well, if efficiency is the issue, you could have switched to Google protocols. Or to whatever else similar and open source.

[identity profile] ivan-gandhi.livejournal.com 2010-03-18 07:16 pm (UTC)(link)
Having had an experience with protocol buffers... they do have an advantage that they are multi-language. What I still don't like there is their Java implementation... rather, Java classes design. One bad bug was fixed, but the architecture still sucks.

[identity profile] itman.livejournal.com 2010-03-18 08:24 pm (UTC)(link)
Ok. I think most designs have flaws.