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: ispell.el and pipes Date: Tue, 16 Nov 2021 17:22:00 +0200 Message-ID: <83ee7g15yf.fsf@gnu.org> References: <875yssrwk2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28115"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?utf-8?Q?Andr=C3=A9?= A. Gomes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 16 16:23:14 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 1mn0Ij-00079W-Rc for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Nov 2021 16:23:14 +0100 Original-Received: from localhost ([::1]:44470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mn0Ii-0007LO-Q4 for ged-emacs-devel@m.gmane-mx.org; Tue, 16 Nov 2021 10:23:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn0Hh-0005zr-Eh for emacs-devel@gnu.org; Tue, 16 Nov 2021 10:22:09 -0500 Original-Received: from [2001:470:142:3::e] (port=50720 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn0Hh-0003Cy-64; Tue, 16 Nov 2021 10:22:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=60jA4/ZEppGFQYvKyTuVCPkxL3rmBjEErp9IPH5dMsQ=; b=a15iEc6s4H10r5NZLBCh dNOtHgszQX9qnk5ofF+K2do8JmM+p2qJDl9XJYu6LE+DsK4IqM+VCFZ5oVk1tTWLPuu2ezatMtbWe 1UIg9CgzgoSopBwfQC7fPD4sF2mwCPrpSEoW34HZAFsR5zd12ZW/+J/kgQkxTRmvuO4yYAbKk4hQ9 a0EPn0SvjdS0MZfuKaNU0mk3eRV5NEJ+d0/v0xFdwuvZVGw8ca+rEm/fgu8g+9HzNbBtFF87bk4O0 KyqIZgl37aHDMykyM8V1GBy1NLqMTOZcoqDR9qu34qbg6Qm4EtqdJWbg2YuuG9lvIhh4WLy4ou9LZ cqYJZrlidbyeiw==; Original-Received: from [87.69.77.57] (port=4414 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mn0Hg-0007C3-RE; Tue, 16 Nov 2021 10:22:09 -0500 In-Reply-To: <875yssrwk2.fsf@gmail.com> (message from =?utf-8?Q?Andr=C3=A9?= A. Gomes on Tue, 16 Nov 2021 17:42:53 +0300) 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:279568 Archived-At: > From: André A. Gomes > Date: Tue, 16 Nov 2021 17:42:53 +0300 > > In the beginning was Ispell (the spelling program) and ispell.el (the > Emacs interface). The communication is via pipes or ptys. > > But today there's Aspell (among others), which provides an external C > API. > > 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™ 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