How not to design a wire protocol

Richard Laager rlaager at wiktel.com
Thu Mar 7 17:06:58 UTC 2019


On 3/7/19 12:56 AM, Eric S. Raymond via devel wrote:
> JSON is C is normally *very* awkward, vastly worse than Go, because
> full JSON parse needs to do fancy dancing with dynamic memory to
> handle heterogenous arrays. The good news is that I ran into this
> problem back in 2009 on GPSD, solved it then and spun it out as a
> little library, microjson.

ntpsec is already using (and embedding) libjsmn, right?

(I'm taking no position on the JSON vs. binary protocol issue here.)

-- 
Richard


More information about the devel mailing list