From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: sqlite3 Date: Thu, 09 Dec 2021 17:36:32 +0000 Message-ID: <87tufhel3z.fsf@posteo.net> References: <87tufmjyai.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12613"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 09 18:38:17 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 1mvNN3-00034c-IH for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 18:38:17 +0100 Original-Received: from localhost ([::1]:40318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvNN2-000299-GF for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 12:38:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvNLS-0008OW-7V for emacs-devel@gnu.org; Thu, 09 Dec 2021 12:36:38 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:53505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvNLP-0004IX-TK for emacs-devel@gnu.org; Thu, 09 Dec 2021 12:36:37 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id AA4F5240101 for ; Thu, 9 Dec 2021 18:36:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1639071393; bh=kEDJTkgvi6+UPeEEMvuc4fFpRbCWSnY056hzdWQM06A=; h=From:To:Cc:Subject:Date:From; b=aElWQRFhUJu2GEo3tR4j8GvLx+UUNAMU2Hhc65aMfxOOptkjrlymdNuzSslqv2ja8 /6nf/55NaQRqGFRapcbChJiTp7QH4vsN+ZJMloeiF2KwHpSQF3OO8I3V+OpeYA/NTL hppF0wHoYPpkwndPZPZS3m9j+ev/gJeE5JYb7BT6GBXSqKxf2lZOypLHbOE6xYiUn8 aS9u7MNBTT0icAK4R44GTfanLCILiPoXmpzaeCOY03ntkblxxT7BoViIrOh+pgpGro 4VgN820RR183yRGcdCmRi/GW7nANyC7br+pbDDujpjvdWUvsxnaOmVY0jF3aMfh7ua WyBq9iKXXV8jA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4J91Rh6566z9rxM; Thu, 9 Dec 2021 18:36:32 +0100 (CET) In-Reply-To: <87tufmjyai.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 06 Dec 2021 02:51:33 +0100") Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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:281523 Archived-At: Lars Ingebrigtsen writes: > I think it'd be good to bring that into core, and then write a small > wrapper library (well, a trivial ORM) for the rest of Emacs to use, so > that we don't have to write SQL all over the place. That is: > > (setf (persistent-data :namespace "emoji" :key "favorites") emoji--favorites) > > I.e., what Emacs needs is a persistent key/value store, and this would > give us that. > > In addition, if somebody really wants to write SQL stuff (it can be very > handy for some things), having sqlite3 in there gives us that in > addition for free. What would the use-case for this be? And would this be part of the same interface ("persistent-data"), or would they be separate? I think the latter would be preferable, because then systems that might not have SQLite installed -- for whatever reason, despite it's wide availability -- could fall back on a Elisp implementation. -- Philip Kaludercic