From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel Subject: Re: Against sqlite3!!! Date: Tue, 07 Dec 2021 15:50:15 +0100 Message-ID: <87k0ggmpug.fsf@randomsample> References: <86r1ao34n4.fsf@163.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25283"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Qiantan Hong , emacs-devel@gnu.org To: Zhu Zihao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 07 15:51:28 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 1muboV-0006Eh-6O for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 15:51:27 +0100 Original-Received: from localhost ([::1]:57208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1muboT-0003v2-IL for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 09:51:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mubnV-0003FE-Th for emacs-devel@gnu.org; Tue, 07 Dec 2021 09:50:26 -0500 Original-Received: from zplane.randomsample.de ([192.145.45.252]:54906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mubnT-0006f4-T4 for emacs-devel@gnu.org; Tue, 07 Dec 2021 09:50:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ude5s1coLh4w2seCffXmsaWMc03HC7618tgvRY3FuAo=; b=jlJfVmyglTACErVbo++pwuPGO 482MdctV7QJYViy0d6XekxB8cFI5UkGaXiaJnqFYhcnxe08xzMYfexbCKMmE6xzZyrj8ejzqVofgi Z2UolVvGwMjWLo1XGZKuTIOkAThoDE8jKDbjfT0khECsEuS2FiG4sk3iza3BTF9K3Q60lgrZIXRJH ji+hMKMOUe9T6C856pPCbTEtutNubZw7k8zSMi1fjoWnDi7Pc2nRp8W/ezXLVxPHzBTfzpvto+S18 SNoohEXFFQ1hFHsSFU8mrSFt7bRyz0NlaeZqeMcCSzqdITGpsXRhyegDVpb2e4AixUN37Q1ULt/QS VL1akkBXw==; Original-Received: from ip5f5abab6.dynamic.kabel-deutschland.de ([95.90.186.182] helo=void) by zplane.randomsample.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mubnL-0005ul-Rv; Tue, 07 Dec 2021 15:50:16 +0100 In-Reply-To: <86r1ao34n4.fsf@163.com> (Zhu Zihao's message of "Tue, 07 Dec 2021 21:45:24 +0800") Received-SPF: pass client-ip=192.145.45.252; envelope-from=deng@randomsample.de; helo=zplane.randomsample.de 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, 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:281255 Archived-At: > 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. Yes, and it's slow. The Gnus registry is saved/loaded this way, and this has annoyed me for years. -David