From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: LdBeth Newsgroups: gmane.emacs.devel Subject: Re: sqlite3 Date: Thu, 16 Dec 2021 19:09:10 +0800 Message-ID: References: <87tufmjyai.fsf@gnus.org> <87lf0nr2b4.fsf@gnus.org> <87czlzjfhs.fsf@logand.com> <87pmpznmw4.fsf@gnus.org> <87a6h3jcfm.fsf@logand.com> <83lf0nj9w4.fsf@gnu.org> <8735mvj5u0.fsf@logand.com> <83fsqvj5jx.fsf@gnu.org> <83bl1ijb3q.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24787"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-apple-darwin18.7.0) MULE/6.0 (HANACHIRUSATO) Cc: emacs-devel@gnu.org To: Madhu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 16 12:11:13 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxofI-0006E4-DG for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 12:11:12 +0100 Original-Received: from localhost ([::1]:35736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxofH-0007JS-84 for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 06:11:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56274) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxodq-0006EW-R7 for emacs-devel@gnu.org; Thu, 16 Dec 2021 06:09:43 -0500 Original-Received: from out203-205-221-173.mail.qq.com ([203.205.221.173]:53149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxodg-0006vN-TP for emacs-devel@gnu.org; Thu, 16 Dec 2021 06:09:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1639652952; bh=2z9Lkyn7dyku5M6nEgMcqLVJO+9ndaDn1kuxUQmg0FM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=kcArY9IEEWuHgOojfyqqqE2mMlIHcnL5h6WgYAfZFMKCCIC/l0HwYv54VMaVX6r6t jSSt9NAA6c5scUjibw6QdSD9Rf4E6wGybC2l79oyAXD2jbiIBlnBrUMLdY36dvWXZ6 5Z2niZ7nBlG+xvxLe9KPwzsLQQ9WqoqZk+SlsVq0= Original-Received: from Costume-Party.local ([39.189.56.217]) by newxmesmtplogicsvrsza5.qq.com (NewEsmtp) with SMTP id 24B92A0D; Thu, 16 Dec 2021 19:09:11 +0800 X-QQ-mid: xmsmtpt1639652951twnqsaomu X-QQ-XMAILINFO: OLsBWtCIHsg64amEXmxd7/dZmFvBcJZi+tV4XUupZRn0OXAAMrt+UMvrP265ey 7J4rfmjevflR+IgNNs3c4S72YvOfoJIrSDZ3bRa+c3iLusDY6FsfARNUaYmx8eGRicaad4wycvq6 NzUlHzqyYjPisfkX/yD+njZtmTUiPM/IBy7aeJEf5xM4JDi6kaz2jWakLO2HLhR0pIoLUznf3hvD GIYES8jghaP4dy7lJeG60v1Y1dfZX3/V+lS/KpvSVItJXrGPMvRuaxmTjTHIzCeAkesaxC/cITgL dxeA02B6GuJkEn99D2vkKHcmM5poKok3zK9cBth30GVQgOc/+F8ONFmYKTB7SjVOW26dHW6U3dvw Vg8FL+cRGqq5HfniPj7qlNzryVJpd/J2fBAsjfdEuFtQk3uHdFdqSqKatQq49kEO+evauluM8WK2 wxfrUHbcvKWBFjmJ1grrWi7kSRUZN8sj45V4BXF/rPKrU3iqYu0zyXRnVae6FjVuVFeaiAOwYQ4s 8noGKJ5jskhMtrInvTU3gTMtmToduqPLqNx0E5SecW8Xn4O4ahKBsQydUNhKmXbQzo2F2JKbemWV aqYNESjDLyCI8Bh6j3Wbg8ntB9ZIlmLxyXRL4Jp+eJMae7aixWaki0NN+F3mrmlmJk6aT4JvUfBh X6NM1zX3Cjo/uzOgpLWwpBIyp7n1Rrn8fN31aMJi2x9Ta3+xvYznf7W48hKj+v7Lpma4j60d0I8X hYOo2hcvtGinOHB+oZrp4LW9Lu/W8QjhDDhMjqWP73mY6HzP73Kix3PZRUyD0Lyg/HHkOhpFXkgR +/Gt3CpIDjOuTj5bRqkLme Original-Received: by Costume-Party.local (Postfix, from userid 501) id 6B593203CF1861; Thu, 16 Dec 2021 19:09:10 +0800 (CST) X-OQ-MSGID: In-Reply-To: X-Face: $7|yD%Lji?.p'#Ya#/C7iZ!+-!NJjcGAgDR]\PSw$5:"t{7P+VEqKM:>~f#x)H2jckGF($u h>W~_Qc/,O|&mg(HAmk,P?*}P]1w1Y6R_Eu/njc; o>(_\1T$MB3M3oPTM:cv83P$`O)F{ID*m}x3S# }+?w!"kF@h<68U0'ti>$=J2.&mQw~Z^#:2FP(bF)(Y:}1r~W~@(5IR!|_C*Fy*gERgk6F!; m"e"hC`I;TMK1O_l&i+Ja)s9d2;{xTNv&gp/>w>#aSg)P:%$oVI*V[LFED=+xNrHX-!#}\U] X-Now-Playing: =?ISO-2022-JP?B?GyRCJS0lNSVpJS4bKEI9GyRCJSIlaiU5GyhCKENW?= =?ISO-2022-JP?B?LhskQklZRURIfk0rGyhCKRskQiEiJTklTiUmGyhCKENWLhskQjVGGyhC?= =?ISO-2022-JP?B?GyRCQ1M8U0xwOWEbKEIpGyRCISIlbSU8GyhCKENWLhskQkI8PmUbKEI=?= =?ISO-2022-JP?B?GyRCRmBERTxCGyhCKRskQiEiJTAlaiVgGyhCKENWLhskQjliNjYbKEI=?= =?ISO-2022-JP?B?GyRCJV8lSiVfGyhCKQ==?= - Home Sweet Home Received-SPF: pass client-ip=203.205.221.173; envelope-from=andpuke@foxmail.com; helo=out203-205-221-173.mail.qq.com X-Spam_score_int: 8 X-Spam_score: 0.8 X-Spam_bar: / X-Spam_report: (0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_DYNAMIC=0.982, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282147 Archived-At: On Thu, 16 Dec 2021 17:48:30 +0800, Madhu wrote: > > I didn't like situation with json. There is lisp/json.el (in elisp) and > there is src/json.c which is incompatible. In a world of ideal emacs > design (like a decade or two ago) I'd have been able to use the > interface which emacs provides and switch the implementation, (say if > the C version was not available). The current state of src/json.c is not still as useful as json.el, For example, it is not possible to deserialize the JSON string to a hashtable with its value type as alist. And for `json-serialize', it can only accepts (json-serialize '((a . [1 2]) (b . [3 4]))) rather than (json-serialize '((a 1 2) (b . (3 4)))) and it is harder add something to a vector than list. So right now I would still go for the `princ' method for serializing a hashtable of this kind, with is been used by LSDB, http://sourceforge.jp/projects/lsdb/ -- LDB