[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile-json 2.0.0 released

From: Ludovic Courtès
Subject: Re: guile-json 2.0.0 released
Date: Wed, 19 Dec 2018 11:48:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hi Aleix,

Aleix Conchillo Flaqué <address@hidden> skribis:

> Any comments on the discussion between alist/vector vs
> hash-tables/list? How hard would it be for Guix to change to the
> alist/vector approach? I'm just considering options and would like
> input from anyone who uses guile-json, specially Guix who's probably
> the biggest user.

I sympathize with David’s comments and would have been happy keeping the
ability to pass alists as inputs.  :-)

I haven’t checked but IIUC quite a bit of code in Guix would have to be
modified to use ‘alist->hash-table’.

As for vectors vs. lists, I suppose Scheme vectors in theory correspond
directly to JS arrays (O(1) access), so that’d be an argument in favor
of using vectors on the Scheme side.  However vectors in Scheme are less
convenient than lists, as John noted, and I’m guessing that often lists
are good enough.  Tricky!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]