From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zhu Zihao Newsgroups: gmane.emacs.devel Subject: Re: Against sqlite3!!! (Was: sqlite3) Date: Tue, 07 Dec 2021 21:45:24 +0800 Message-ID: <86r1ao34n4.fsf@163.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8241"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 27.2 Cc: emacs-devel@gnu.org To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 07 15:08:02 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 1mub8U-0001yF-BZ for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 15:08:02 +0100 Original-Received: from localhost ([::1]:52526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mub8T-0004b2-BW for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 09:08:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mub7A-0002Fu-Nd for emacs-devel@gnu.org; Tue, 07 Dec 2021 09:06:41 -0500 Original-Received: from mail-m972.mail.163.com ([123.126.97.2]:64885) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mub72-00051z-32 for emacs-devel@gnu.org; Tue, 07 Dec 2021 09:06:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=mAdN6 WZamhyx9J+4NRO7PWBq11L6hMucNgITLFXp360=; b=VZ9QStT224jjQgoZ3HFru O0uzIlfVV6hAv8cZWhxfCL24h3f5cm3pDfejx3iYbOTCPUM3TYZnWInC7st3rw09 A180BJU+LF96qTf87nuVWuRHg+zyaUKz8nEeOcjXYaOkdj5R9Z6W1hEjOPmerGW9 +jA4pkA09tjaxiFpamuvN0= Original-Received: from asus-laptop (unknown [27.46.106.125]) by smtp2 (Coremail) with SMTP id GtxpCgAHIubDZq9hxuwSMA--.20855S2; Tue, 07 Dec 2021 21:50:59 +0800 (CST) In-reply-to: X-CM-TRANSID: GtxpCgAHIubDZq9hxuwSMA--.20855S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4RY9amUUUUU X-Originating-IP: [27.46.106.125] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbByQdir11vmzTHyQAAsQ Received-SPF: pass client-ip=123.126.97.2; envelope-from=all_but_last@163.com; helo=mail-m972.mail.163.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:281250 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Actually, Emacs can serialize/deserialize hash table directly via prin1-to-string & read ``` (let ((ht (make-hash-table))) (puthash "test" "value" ht) (format "%S" ht)) ``` You can use `read` to "parse" the string returned by that snippet and get a hash table. Qiantan Hong writes: > I=E2=80=99ve attached a pure Emacs Lisp implementation of persistent key= value store. > > [4. resist!.el --- application/emacs-lisp; resist!.el]... > > [5. ATT00001.htm --- text/html; ATT00001.htm]... =2D-=20 Retrieve my PGP public key: gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F Zihao --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIsEARYIADMWIQTUepyLKuOQW1Y9kTW+QrNSqfaCHwUCYa9mwBUcYWxsX2J1dF9s YXN0QDE2My5jb20ACgkQvkKzUqn2gh+JagEAuJ82RLvWqQ3kcq5WFPWB/SnKmkRl IuXZ3W10SxEgbSABAM8FQ6bXY3TSxkS/euETfiKPHhiath2OOIX+0YB/45kJ =zhrs -----END PGP SIGNATURE----- --=-=-=--