From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.user Subject: Re: guile-json 2.0.0 released Date: Wed, 19 Dec 2018 11:48:54 +0100 Message-ID: <87lg4lzt9l.fsf@gnu.org> References: <87y38meqbo.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1545216441 17700 195.159.176.226 (19 Dec 2018 10:47:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2018 10:47:21 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: guile-user To: Aleix Conchillo =?utf-8?Q?Flaqu=C3=A9?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Dec 19 11:47:17 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gZZNl-0004TI-2f for guile-user@m.gmane.org; Wed, 19 Dec 2018 11:47:17 +0100 Original-Received: from localhost ([::1]:58734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZZPr-0006Wl-QM for guile-user@m.gmane.org; Wed, 19 Dec 2018 05:49:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZZPN-0006Wg-6Z for guile-user@gnu.org; Wed, 19 Dec 2018 05:48:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZZPM-0000FG-Dh for guile-user@gnu.org; Wed, 19 Dec 2018 05:48:57 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZZPM-0000FA-99; Wed, 19 Dec 2018 05:48:56 -0500 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49078 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gZZPL-0000LY-W1; Wed, 19 Dec 2018 05:48:56 -0500 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 Frimaire an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: ("Aleix Conchillo \=\?utf-8\?Q\?Flaqu\=C3\=A9\=22's\?\= message of "Tue, 18 Dec 2018 10:09:27 -0800") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15126 Archived-At: Hi Aleix, Aleix Conchillo Flaqu=C3=A9 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=E2=80=99s comments and would have been happy keepin= g the ability to pass alists as inputs. :-) I haven=E2=80=99t checked but IIUC quite a bit of code in Guix would have t= o be modified to use =E2=80=98alist->hash-table=E2=80=99. As for vectors vs. lists, I suppose Scheme vectors in theory correspond directly to JS arrays (O(1) access), so that=E2=80=99d be an argument in fa= vor of using vectors on the Scheme side. However vectors in Scheme are less convenient than lists, as John noted, and I=E2=80=99m guessing that often l= ists are good enough. Tricky! Thanks, Ludo=E2=80=99.