From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:6658:: with SMTP id j24mr13266350qtp.364.1570146824956; Thu, 03 Oct 2019 16:53:44 -0700 (PDT) X-Received: by 2002:aca:ec06:: with SMTP id k6mr4768861oih.78.1570146824593; Thu, 03 Oct 2019 16:53:44 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!o24no4192680qtl.0!news-out.google.com!q23ni510qtl.1!nntp.google.com!o24no4192675qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 3 Oct 2019 16:53:44 -0700 (PDT) In-Reply-To: <7d04e6c3-9547-445c-a5cd-778fa97b62d1@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.114.173.164; posting-account=BtkjvAoAAADwEquGb07eykXfyiDMOxfl NNTP-Posting-Host: 80.114.173.164 References: <7d04e6c3-9547-445c-a5cd-778fa97b62d1@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <827ea39c-9640-4341-be3f-e7535aa56a73@googlegroups.com> Subject: Re: ANN: Simple components for Ada v.4.42 From: onox Injection-Date: Thu, 03 Oct 2019 23:53:44 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2516 X-Received-Body-CRC: 1484268452 Xref: reader01.eternal-september.org comp.lang.ada:57246 Date: 2019-10-03T16:53:44-07:00 List-Id: On Monday, September 16, 2019 at 8:58:41 AM UTC+2, briot....@gmail.com wrote: > On Monday, September 16, 2019 at 8:48:36 AM UTC+2, Dmitry A. Kazakov wrote: > > The new version provides an implementation of JSON (RFC 7158) > > > Hi Dmitry, > I would be curious to know the differences compared to what GNATCOLL.JSON provides, if you know ? It would be nice if the Ada world did not have too many packages competing here. Uh oh, I've written a JSON parser ([0]) too! Sorry :) It's quite fast, only about 1K SLOC, supports Ada 2012's iterator and indexing syntax, Apache 2.0 license, but it does not handle UTF-8 yet (patches welcome though) > Various things which I find limiting in GNATCOLL.JSON: performance is not really good because there are a lot of memory allocations I did some benchmarking of some JSON parsers using a 110 M large .json file from [1]: - Parsers.JSON choked on it (I used Parsers.Multiline_Source.Stream_IO) - GNATCOLL.JSON needs about ~ 17 seconds - json-ada needs about ~ 3 seconds (should be ~ 1 second to be competitive with other languages, patches/advice welcome) [0] https://github.com/onox/json-ada [1] https://github.com/kostya/benchmarks#Json