From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Andr=C3=A9_A=2E_Gomes?= Newsgroups: gmane.emacs.devel Subject: Re: ispell.el and pipes Date: Tue, 16 Nov 2021 19:25:18 +0300 Message-ID: <871r3grrtd.fsf@gmail.com> References: <875yssrwk2.fsf@gmail.com> <83ee7g15yf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13330"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 16 17:36:30 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 1mn1Re-0003Bj-8g for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Nov 2021 17:36:30 +0100 Original-Received: from localhost ([::1]:35962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn1Rc-0004Oq-Iu for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Nov 2021 11:36:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn1Gv-0004eF-IL for emacs-devel@gnu.org; Tue, 16 Nov 2021 11:25:25 -0500 Original-Received: from [2a00:1450:4864:20::234] (port=43925 helo=mail-lj1-x234.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mn1Gs-0004CG-J9; Tue, 16 Nov 2021 11:25:25 -0500 Original-Received: by mail-lj1-x234.google.com with SMTP id 207so44472154ljf.10; Tue, 16 Nov 2021 08:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=3nr0172XNn7nTDkviWzVUIYTI5nPFFySidj7FI70exo=; b=ceGgHjpUsex0WulrTU+1/lMJgkKNQMSt26LNMgYeXR2by2fc1IXeIJf98T6j5rILea iXKi216shwd9QIsp7nNqLsjt12UnJHoQu85i8KgtviXUA3KBKgxj9uPqGJ/IBk8EhCk3 kXAyVMrGeoXHUBXHENA3AhvueBH0UVXGWoaaCS+2ptn6vxndERqSWW4dS/oceMzzM0DZ cabGbpVGmK1PXAheFQo9a0ltXR9aX12mZSjlfLoybvwQ/G3CKG3rwnoXDCEc5slZJsz9 KMmwmDj1t6EGeg6qmsy/v5xGhxKngWJeTWoaFPzjRSPC1Bmfry8gGsFygCY6wtdSHDih R1nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=3nr0172XNn7nTDkviWzVUIYTI5nPFFySidj7FI70exo=; b=UDvUOwwt/F4CkMP5IXAeDLCDLMiAMsXCR4+/CAVbOYTnpvO4kzhrdhGnWIHbTv3v3r dHUfc0puIeDNnv8ZO2lWKfKCXniN2iiS+pv+TpTHOi5X10VjjYrVkQhf8kiPvkviXPD0 dxUYcxL9VioTSfHjCZy4eV5LNQKtEJkvAwWBADxBpu7ZP8nEDYOTfXAAu3vyxr0RrEWh z2UquJdOFkArDoe7SDfqgBS13GlnFNn5fGQO2nBcb93fER9DODZ++m11+QHpE7W5AUZy yaVcw1mRNeJVtGyF0W52JgNg7mQy0aZV7OWdCRmDbfiYplDS+QBOnfVxZa2nWMx67bWI EaEA== X-Gm-Message-State: AOAM533nQ0M3cRQMnH0cGJwZ7iE9b9kpDyU02KPF2QYd4+lLrz5yWn+O sFrNDcSEYz3G41cBYmGtYsJNdhILt1Y= X-Google-Smtp-Source: ABdhPJy2Vw5wf+bnCUkoS8scQymgdhpotUyNkcYWjCZy+2I7gQUjZC8N/CwH0hPZyJmpDxzV9XWDPw== X-Received: by 2002:a2e:858f:: with SMTP id b15mr378036lji.177.1637079920415; Tue, 16 Nov 2021 08:25:20 -0800 (PST) Original-Received: from guix-xps13 ([89.113.47.146]) by smtp.gmail.com with ESMTPSA id g6sm1807703lfu.86.2021.11.16.08.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 08:25:19 -0800 (PST) In-Reply-To: <83ee7g15yf.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Nov 2021 17:22:00 +0200") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::234 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=andremegafone@gmail.com; helo=mail-lj1-x234.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:279572 Archived-At: Eli Zaretskii writes: >> From: Andr=C3=A9 A. Gomes >> Date: Tue, 16 Nov 2021 17:42:53 +0300 >>=20 >> In the beginning was Ispell (the spelling program) and ispell.el (the >> Emacs interface). The communication is via pipes or ptys. >>=20 >> But today there's Aspell (among others), which provides an external C >> API. >>=20 >> Could Emacs leverage it? What are the pros and cons of pipes/ptys and >> the C API for Emacs' sake? > > The main con is that Someone=E2=84=A2 will have to write the code to use = the C > API and integrate that into ispell.el. There are also other cons: > > . the C API provided by Aspell isn't shared by other spell-checkers > we support (AFAIK) > . using the C API will need Emacs to be linked against the Aspell > library, which makes the build requirements and procedures more > complex > . different versions of Aspell may introduce binary > incompatibilities, whose accommodation in Emacs will complicate > our own code Makes sense. Ispell.el is quite creepy. I'm working on some fixes. --=20 Andr=C3=A9 A. Gomes "Free Thought, Free World"