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: Fri, 7 Aug 2020 18:28:59 +0200 Message-ID: References: <87a6zg0yss.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="33547"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Felipe Lema , Emacs developers To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 07 18:29:56 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 1k45Fk-0008ds-CL for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Aug 2020 18:29:56 +0200 Original-Received: from localhost ([::1]:52136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k45Fj-0005o7-Fl for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Aug 2020 12:29:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k45F4-0005N4-AP for emacs-devel@gnu.org; Fri, 07 Aug 2020 12:29:14 -0400 Original-Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]:33286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k45F2-00023v-Ph for emacs-devel@gnu.org; Fri, 07 Aug 2020 12:29:14 -0400 Original-Received: by mail-oi1-x235.google.com with SMTP id 25so2460047oir.0 for ; Fri, 07 Aug 2020 09:29:11 -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=m7Mpn4oL/8DfVUq7bo/y8kR/+oP16DpuYNDLxESdyMk=; b=SWrbzZxgKDAp4V12bIaAGFtKYEa9geeLNBIsiNAiDwHT9wn1m9UJTZxPEkW75+LiO/ tDxp7f8o1MV+0rac2ohAOSydxNpHxQj/a7kf6gqmMK22BmxrtEYkgkvxSDUgj96hAslR LeIqeAtlzrQM7FuqLuI7hRUlkGlPLXvpTN1ytcMcM6uKXayVCRYIB7VyQEIRDLzkUZ/E GmOGgf78PR5ZaW7ZquR3s8EjHOB83jACgmtvDdWuTjPYh7WHtMKk7KrZNt3j1u0I2u6t MBYEyB1Wmt2T/07mspQCZA8pwE5J9YEwUdIBa2D6qWObvglkx95dtwUQquE57ppaJd6z UWqA== 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=m7Mpn4oL/8DfVUq7bo/y8kR/+oP16DpuYNDLxESdyMk=; b=CZLO+ajAClC7hI9yQaQHsJZ/abrGDeEcJ+hyF+NH5qI1a2wGLl6Rji6crlSjvr/Pl2 Sb3YCEWhSZwpVbNm7UzZ8cwGvIGbKv0Lh644K+AK/LrNnyYHWNJI1YqQOFGPk2u/e7hP JW8c2bSyM9DM8WpS00ETK0gAJJAU7of21zaDGkq7leKVKbLGCaQCPlcup2Top2DNzChy +mWJK/dwJY2Ddl/CCpOigIT4NSt2z28K+KycEzdz80MXmnaA7WwFTyxxv7aETc3LYfp9 0i6Rf+7ZA8n8cCX1ulHvGXwAl7oj9gLzCJtW3W7r7H4oLWqTQEWXRUQ/LJnLEbQnjNOF X8Fw== X-Gm-Message-State: AOAM532djx4nOUzbXJ6S3LSBcgplra4XrZB8EACR+a3PvCuiFDsaNrP/ Qfti8i+K/pCHA1ZP3B2ea3tIn+PnIRhid9oUWmo= X-Google-Smtp-Source: ABdhPJwF4B7CtwehDZqobT+lfcrVKTW6BlQZJRgndp7VdRZnmhpXJEU1JF9TIUDUHpGRwbqMSQYJVZdV/mLklT+KQ8g= X-Received: by 2002:aca:2101:: with SMTP id 1mr12181219oiz.170.1596817750811; Fri, 07 Aug 2020 09:29:10 -0700 (PDT) In-Reply-To: <87a6zg0yss.fsf@gmx.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=p.stephani2@gmail.com; helo=mail-oi1-x235.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:253501 Archived-At: Am Fr., 31. Juli 2020 um 12:24 Uhr schrieb Michael Albinus : > > Felipe Lema writes: > > > Hello, there (I hope I'm replying correctly) > > Hi Felipe, > > Yes, that's the correct reply. And I'm happy that you did. Since there > hasn't been any response for months, I am closed to throw the code away. Please don't! Sorry for not responding earlier, I'm definitely still interested in this. > > > I've tried this patch for async processes and, given that I deal with > > far away servers that have a significant delay in answering queries, I > > find this most useful. It cuts starting processes from about 5s to less > > than 1s. > > I'm still undecided how to integrate it into Tramp. Since there are some > restrictions (for example, it must be password-less), I fear a rise of > fault reports ... I guess it should be opt-in since whether or not such an approach can be taken depends on how the process is to be used (background vs. foreground, interactive vs. batch, advisory vs. mandatory, ...). Ideally this would be an optional parameter to `make-process', but I guess that's infeasible, so I guess either a special filename syntax ("fast-ssh:..."?) or a dynamic variable (not a customization option) would be the next best approach. > > If this is not feasible, then I can manage with this "non-checks-just- > > run-this-command-as-is" approach. > > If integrated, it must be optional per connection. There might be remote > hosts which could be treated this way; and other hosts which might not. It would definitely be helpful to select the optimized behavior on a per-host basis, and/or allow users to enable it by default if feasible. I'd assume that nowadays many of the backwards-compatibility workarounds are no longer required, and TRAMP could assume (at least on an opt-in basis) that the optimal way "just works."