[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guile-json 4.2.0 released
From: |
Aleix Conchillo Flaqué |
Subject: |
Re: guile-json 4.2.0 released |
Date: |
Thu, 2 Jul 2020 17:10:28 -0700 |
Hi!
I briefly looked at srfi-180, it seems I could take guile-json internals to
implement that srfi-180 API and then implement current guile-json API on
top of that. It would be nice to still support both.
Maybe I will give it a try at some point in the near future.
Aleix
On Thu, Jul 2, 2020 at 9:24 AM Linus Björnstam <linus.internet@fastmail.se>
wrote:
> With the current api, no. The code of guile-json could be used to
> implement srfi-180, but the current guile-json API could not efficiently
> implement srfi-180.
>
> I am not Aleix, but I helped making it faster for the 4.0 release.
>
> --
> Linus Björnstam
>
> On Thu, 2 Jul 2020, at 16:55, Bill Markmann wrote:
> > It looks like the surface API is different, but the internal json <-->
> > scheme records functionality overlaps... Any thoughts on whether
> > guile-json would serve as the underpinnings of an implementation of
> > srfi-180?
> >
> > https://srfi.schemers.org/srfi-180/srfi-180.html
> >
> > https://github.com/scheme-requests-for-implementation/srfi-180
> >
> > - Bill
> >
> > On Thu, Jul 2, 2020 at 9:08 AM Ludovic Courtès <ludo@gnu.org> wrote:
> >
> > > Hi,
> > >
> > > Aleix Conchillo Flaqué <aconchillo@gmail.com> skribis:
> > >
> > > > * Changes since 4.1.0
> > > >
> > > > https://github.com/aconchillo/guile-json/blob/master/NEWS
> > >
> > > --8<---------------cut here---------------start------------->8---
> > > - Introduce (define-json-mapping) which allows converting a JSON
> object
> > > into
> > > a record type and vice versa. The initial code for this feature was
> > > copied
> > > from the GNU Guix project.
> > > --8<---------------cut here---------------end--------------->8---
> > >
> > > Nice! :-)
> > >
> > > There’s a bidirectional version here, but it’s slightly incompatible:
> > >
> > >
> > >
> https://gitlab.inria.fr/guix-hpc/guix-kernel/-/blob/master/jupyter/json.scm
> > >
> > > It relies on (guix records), which is not great for Guile-JSON.
> > >
> > > Ludo’.
> > >
> > >
> > >
> >
>
>