Yo Richard! On Thu, 7 Mar 2019 13:50:20 -0600 Richard Laager via devel <devel@ntpsec.org> wrote:
> On 3/7/19 1:22 PM, Gary E. Miller via devel wrote: > > Yo Richard! > > > > On Thu, 7 Mar 2019 11:06:58 -0600 > > Richard Laager via devel <devel@ntpsec.org> wrote: > > > >> 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? > > > > Sadly so. I'd like to see it converted to microjson. > Is microjson something I can dynamically link against, or is it embed > only? I'm not sure what you 'can' do. But the default is to embed microjson in gpsd and libjsmn in ntpd. > There's an outstanding item on my TODO list to investigate packaging > libjsmn separately for Debian and modifying ntpsec to dynamically link > against it. The Debian security team, in general, frowns on embedded > libraries, as it is a mess if there is a security bug in a library > which is commonly embedded. I'm all for not embedding, but I'd prefer microjson over libjsmn. RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 g...@rellim.com Tel:+1 541 382 8588 Veritas liberabit vos. -- Quid est veritas? "If you can’t measure it, you can’t improve it." - Lord Kelvin
pgpdPBz1x_2AK.pgp
Description: OpenPGP digital signature
_______________________________________________ devel mailing list devel@ntpsec.org http://lists.ntpsec.org/mailman/listinfo/devel