From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.devel
Subject: Re: Remote asynchronous processes
Date: Tue, 4 Aug 2020 19:00:05 +0200
Message-ID:
References: <87tv1nwuv4.fsf@gmx.de>
<87sgh6zbfo.fsf@gmx.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="21808"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: Jonas Bernoulli ,
Michael Albinus ,
Emacs developers
To: Philippe Vaucher
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 04 19:01:27 2020
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 1k30Ja-0005aw-Mi
for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Aug 2020 19:01:26 +0200
Original-Received: from localhost ([::1]:60950 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1k30JZ-0006on-MD
for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Aug 2020 13:01:25 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59480)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1k30IX-0006Gm-S5
for emacs-devel@gnu.org; Tue, 04 Aug 2020 13:00:21 -0400
Original-Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]:36629)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1k30IU-00054i-A7
for emacs-devel@gnu.org; Tue, 04 Aug 2020 13:00:21 -0400
Original-Received: by mail-oo1-xc2a.google.com with SMTP id y30so412430ooj.3
for ; Tue, 04 Aug 2020 10:00:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=NrSIyXXJPsBeaMBenKpoEBqhxALKVcGf4B89d0Bd8kk=;
b=tlefu5M7pCfO0F4JIGNYGYWUsI5t7WAdv84/5yHIH1TbsxkJX/DGpqT6BbIFBLH0Tj
OGOP9/D2JuOI3JlAO414P+TLPrOg9v4nKgrtTL6NzNIltFsjsHwmNNI9Nfxsat2NOyap
Vaaz5qT8gfbIotL/EFvoM2oQPHEIuFexhBCYT24jR/TgwONXasyARJVD8G/vDRr3b2SV
DsDhxxpOpp27LO6/RfbY8EiwZaq9BDYf/JKYolrSxxfiNWOtE6Fkyf8DdZ6XkqWe7qmn
kFG53NnQTh0qYZLxt5/d2jwe1mg+0xW/QDnWlAaHOsLDcEsPg8RT+Vko7wJuLOvUy7Eo
9tSA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=NrSIyXXJPsBeaMBenKpoEBqhxALKVcGf4B89d0Bd8kk=;
b=hW8H4YRpu1kdDQ2M7yaE3w0Q/+phEcYTOfGBzUEuTuPVDC4LWH4Ucj9j2Fjaefgf/S
OYq34nV6k7ZhcMTOWUqRI3LglXvamvgwbck12pYl1oBRmOkA9+TndC+QbTBW5RR4cPjz
d87lcCvw40P7M/71alDWWT+9ow6pJtXAd+GxxHAnOnyJd15IjNHxmxPMg3BCb8GYsDgj
3YIzyyswjoaPFEC7WB+1NR/DuB30o6I2ytqQKtTgxKxwnv23gdIRVrIxsYZ/LxoOLVOQ
+t5wcRKNfbMQBVdDVkgUClEBqQNlCukDsq8wxc5S+CjdqgNpDSBs6WWTKRd1Lwznx6e1
V8Nw==
X-Gm-Message-State: AOAM531a7fYuUI2S3PQML3UOTxoR/V9x6UeAkwodSJadmx8YSfSMR7qd
iIUFjCqv6NQUM81Aabs6el35iSJxyk+uqStSER0=
X-Google-Smtp-Source: ABdhPJzYo4tmdKozynI1/69hTlyhZg84SJybfDhW11LPBy85LJU5a3S8jwLVFU7+Iiq7LVyL7adx2SCbnPltB2oR+Lo=
X-Received: by 2002:a4a:3b0f:: with SMTP id s15mr5450056oos.71.1596560416836;
Tue, 04 Aug 2020 10:00:16 -0700 (PDT)
In-Reply-To:
Received-SPF: pass client-ip=2607:f8b0:4864:20::c2a;
envelope-from=p.stephani2@gmail.com; helo=mail-oo1-xc2a.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
That's all we know.
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, 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.23
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:253440
Archived-At:
Am Di., 14. Apr. 2020 um 14:35 Uhr schrieb Philippe Vaucher
:
>>
>> But that's not the point of my proposal. If we change make-process such a
>> way that it calls the command directly, we will gain a performace
>> boost. Philipp Stephani has shown some figures in the discussion
>> mentioned above. Maybe he can explain more detailed which kind of
>> performance requirements he has in mind, and the use case(s).
>>
>> However, we will loose features of remote asynchronous processes. At
>> least (and not comprehensive), processes started via make-process
>>
>> - are not checked for passwords or other interactive dialogues
>> - do not not support multi-hops anymore
>> - cannot be killed via interrupt-process (??? I'm not sure)
>> - do not tell the remote tty
>> - ...
>>
>> Processes started via start-file-process won't change their behavior.
>
>
> So basically what you need to know is how `make-process` is used in the wild. If that helps, magit only uses `start-file-process` and never `make-process`.
>
There are lots of different use cases, and no single correct answer.
For example, when running M-x shell, I probably want SSH prompts and
am willing to accept a brief blocking wait, but not when starting a
Flymake backend process.
I don't think there's a real difference between start-file-process and
make-process, though; make-process is newer and more powerful, but
it's not a conceptually different thing.