From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Support for Sqlite Archive files Date: Sat, 22 Jun 2024 13:44:42 +0300 Message-ID: <86y16xgsth.fsf@gnu.org> References: <86ed8qlepr.fsf@gnu.org> <86o77ujcw9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10284"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Vladimir Kazanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 22 12:45:29 2024 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 1sKyFM-0002Pw-9G for ged-emacs-devel@m.gmane-mx.org; Sat, 22 Jun 2024 12:45:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKyEh-0003ZE-8c; Sat, 22 Jun 2024 06:44:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKyEf-0003XO-3k for emacs-devel@gnu.org; Sat, 22 Jun 2024 06:44:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKyEe-0002Bg-RL; Sat, 22 Jun 2024 06:44:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=iRbjYcdPR2/pd4YeGJmSt42FXU6tDFykwjnQ5Yr/tsQ=; b=KAnytY6DMXXP oCAZHEE5wBbUVt6ZHV2jwHBlEpRRa4GgeWKUtUwFFJZfo9EYqKe5hUTuZlsgSDXrLUyzi7VJeSbvg /itz0K2zWt+Dw3XI8f4MCP7SzlHAzfEC4q1oj3hWzgapm6P0M4s6Biz3csC5Wqa0yVlr3OKlCoEnn DtMbnm0NkjuBV7uOrWH1mWARkiSZT8T3vEIC6oIMoRoKhrKNfUmZGhdXlBzOVRTW452Yw/WBHRah0 qdxfJv3MLFNrJldEN+5UBYL3DLlQfS4Nea0p1Nd+h09sKIXty4ySn5ImgRpGW3zIQ9M8/T7XohnQg v2XJe7rL2Qw/Npsq0VQkGw==; In-Reply-To: (message from Vladimir Kazanov on Sat, 22 Jun 2024 10:59:33 +0100) 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320467 Archived-At: > From: Vladimir Kazanov > Date: Sat, 22 Jun 2024 10:59:33 +0100 > Cc: emacs-devel@gnu.org > > On Fri, 21 Jun 2024 at 20:48, Eli Zaretskii wrote: > > > Why do it via arc-mode at all? why not directly via sqlite.c? Also, > > arc-mode can use internal methods as well, not only external > > utilities. > > Going through the standard interface of "sqlite3 -A *" simplifies > things a bit. On the other hand all the calls have to go through > call-process, which is suboptimal. Let me try going straight to the > database. The use of an external command has one disadvantage: some people have the library installed, but not the command-line utilities. > On arc-mode vs custom code. Archive mode provides a generic dired-like > file browsing UI. Why come up with a copy when it's probably gonna > look just about the same? AFAIR, arc-mode allows to use extraction and update methods that are implemented as Lisp functions, without calling external programs.