From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Peter Oliver
Newsgroups: gmane.emacs.devel
Subject: Re: Grammar checking
Date: Mon, 3 Apr 2023 14:02:13 +0100 (BST)
Message-ID:
References: <87355lqs4v.fsf@gmail.com> <838rfd2mmf.fsf@gnu.org>
<58158ae4984ea8345733@heytings.org> <83zg7t12i6.fsf@gnu.org>
<87mt3t9ey3.fsf@localhost> <83tty10ytx.fsf@gnu.org>
<875yaggklw.fsf@localhost>
<5d7b66f2-94d7-a14f-6d5b-1b9e796b4d9d@mavit.org.uk>
<87o7o7g2sf.fsf@localhost>
<83wn2vyb1u.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: multipart/mixed;
BOUNDARY="-1463811583-1768923984-1680480056=:3943"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="19184"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: yantar92@posteo.net, emacs-devel@gnu.org
To: Eli Zaretskii
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 03 15:03:15 2023
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 1pjJq6-0004o7-76
for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Apr 2023 15:03:14 +0200
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1pjJpO-00065P-AE; Mon, 03 Apr 2023 09:02:30 -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 1pjJpG-00064J-Jj
for emacs-devel@gnu.org; Mon, 03 Apr 2023 09:02:22 -0400
Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1pjJpE-0005CT-Op
for emacs-devel@gnu.org; Mon, 03 Apr 2023 09:02:22 -0400
Original-Received: by mail-ed1-x530.google.com with SMTP id i5so117223865eda.0
for ; Mon, 03 Apr 2023 06:02:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1680526936;
h=content-id:mime-version:references:message-id:in-reply-to:subject
:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to;
bh=9eH/DfXl+WDli6WbWcu5vbbBeay+Tey6sl0or+q0/1k=;
b=rmgnwjJHti+BmiGbyD76gb3WLLVtEiqr1qc6OaFHLX8ZfAJK3mY6mHxTn2Wr5mZbJ/
HjSyxIvSRAOJ8iZalUoil4ZXvO/jjY27kpmpkeYR0xRYAah+TjMfLuHLOf342PGQDh1o
tlnI57WNxS6SfkQgS7crOtuQoV1+I0t02ZhJY=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112; t=1680526936;
h=content-id:mime-version:references:message-id:in-reply-to:subject
:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to;
bh=9eH/DfXl+WDli6WbWcu5vbbBeay+Tey6sl0or+q0/1k=;
b=0LsZ7CQ1OATPNafJx7Q3qcHrycY7S1DGU7t8nm94mMwpZ5cyP9MQcJs3UjAGqKtOgY
6Brj/RbDSnpawVNOCMD6TuJ0p3vX6kJsljws4EIkgscuK0/9iz1c/1kHE3k87bai5AGN
jo8G0NztBYwLdNY806vsbOiMY3aj+h4HZQhCCVWDC/Wt3G7LLPOpGniPgDg6HrjB39PB
qs74Y9Mv7201wXuh1PmTzYj0BMfH99ILYjPlO7q7lYk37L+Rnqf5wFRSRo9TSajXHaeB
F4pV0mKcQEfc6unBR/IiNuM+EQRivilKLu7FZlFLn/fuPbUcUfzaB1MXQwD1fZ+X0I1r
OFrQ==
X-Gm-Message-State: AAQBX9fZWf+eJjFPcPbITeTeJAHt05W0iJBENoMBNtTgPCIpAzi753yU
ryodLV4Nqb4YwglvhU2Kf7U6fg==
X-Google-Smtp-Source: AKy350ZMVb4UNIQ7kQJK2xV1I2ccWDJYzedtDH4aIRQ7rSjG3JFsIqxd0d0miXT3V9+RXpRzY63BkA==
X-Received: by 2002:a17:906:b24e:b0:930:21a:c80 with SMTP id
ce14-20020a170906b24e00b00930021a0c80mr36421750ejb.47.1680526935903;
Mon, 03 Apr 2023 06:02:15 -0700 (PDT)
Original-Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165814-cust1925.vm31.cable.virginm.net. [82.34.135.134])
by smtp.gmail.com with ESMTPSA id
d7-20020a50cd47000000b005027ecc148esm4144302edj.65.2023.04.03.06.02.15
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 03 Apr 2023 06:02:15 -0700 (PDT)
Original-Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.17.1/8.17.1) with ESMTPS id 333D2EAX011802
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Mon, 3 Apr 2023 14:02:14 +0100
Original-Received: from localhost (mavit@localhost)
by froglet.home.mavit.org.uk (8.17.1/8.17.1/Submit) with ESMTP id
333D2DMf011799; Mon, 3 Apr 2023 14:02:14 +0100
X-Authentication-Warning: froglet.home.mavit.org.uk: mavit owned process doing
-bs
In-Reply-To: <83wn2vyb1u.fsf@gnu.org>
Content-ID:
Received-SPF: pass client-ip=2a00:1450:4864:20::530;
envelope-from=p.d.oliver@mavit.org.uk; helo=mail-ed1-x530.google.com
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,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=unavailable 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.devel:305074
Archived-At:
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
---1463811583-1768923984-1680480056=:3943
Content-Type: text/plain; CHARSET=UTF-8; format=flowed
Content-Transfer-Encoding: 8BIT
Content-ID:
On Sat, 1 Apr 2023, Eli Zaretskii wrote:
>> Date: Sat, 1 Apr 2023 14:24:24 +0100 (BST)
>> From: Peter Oliver
>> cc: emacs-devel@gnu.org
>>
>> On Sat, 1 Apr 2023, Ihor Radchenko wrote:
>>
>>> Note, however, that Languagetool also has command line interface.
>>
>> Which, as is discussed elsewhere in the thread, is terribly inefficient.
>
> Since when is subprocess communications "outlawed" in Emacs for
> significant features that need to have good performance?
I wasn’t aware that anyone here was advocating that.
> Also, linking against a library instead of communicating with a
> program has its disadvantages as well: if the library crashes, so does
> Emacs.
I think you’ve got this thread confused with the one about Jinx, which uses the Enchant library for spellchecking.
In this thread, I have said that I believe that we could benefit from LanguageTool offering some IPC mechanism other than TCP.
OTOH, AIUU, Ihor believes that, rather than running LanguageTool persistently, it is tolerable to exec “java -jar languagetool-commandline.jar /path/to/file/to/be/checked” on each occasion that you wish to check some text. The downside to this is that it takes many CPU-seconds for it to initialise before it can do any actual checking, and you pay that initialisation cost every time.
--
Peter Oliver
---1463811583-1768923984-1680480056=:3943--