From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Native OS pipelines in eshell and Emacs Date: Wed, 29 May 2024 10:01:04 +0200 Message-ID: <871q5lgi7z.fsf@gmx.de> References: <08f95b98-7338-4365-8b55-7c337e57d447@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31420"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Spencer Baugh , emacs-devel@gnu.org, johnw@gnu.org, spwhitton@spwhitton.name To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 29 10:02:27 2024 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 1sCEGQ-0007rE-Q3 for ged-emacs-devel@m.gmane-mx.org; Wed, 29 May 2024 10:02:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCEFV-0002WP-VW; Wed, 29 May 2024 04:01: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 1sCEFT-0002Vs-0H for emacs-devel@gnu.org; Wed, 29 May 2024 04:01:27 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCEFQ-0002H9-8H; Wed, 29 May 2024 04:01:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1716969675; x=1717574475; i=michael.albinus@gmx.de; bh=eyxola6C9aPj17HANGt5SU42+ZCyt+UEjNjlO5rECrA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=nhb0WBGlURamS0H1KmoVq7mTGjmX7Q7U8UMqqgBRhSk2RLlbC+HDPfcVJ6gLq3I1 5mDeM8q/hTTddTPUwHaFn9AKKOZur5V492b2y+GVVE3NWta6gGC3++j9GMyrh28ey p1oKS7Yl0GGsu991KsXn5CQlWGhmB8PcTcYjx6QT8SN4gdYDnRNa75LatAJJAKeyo zc8F57XMuUG7/37JD/Wj3W5FzbiWzBaDCxWGbtH2LeNAyJ0vxRF52+sT88O0BlQ+s ufuYn0aQwwF/XvuJexDWoEqR9tfV/u5Gjza31quD6gDge9JPT11XxbYyEoI72O7U6 XvqHaiws9cgjjqKl+g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.151]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mwfac-1sQtma3uKw-00y9hf; Wed, 29 May 2024 10:01:15 +0200 In-Reply-To: (Dmitry Gutov's message of "Wed, 29 May 2024 05:08:19 +0300") X-Provags-ID: V03:K1:6Lr5p+mMvkyYxu8ExkAP13jp+q/ehFYCRGlROC5/Jt73XZjDVGn wM/7XuJjLDC1O3kXklXwxE8qwTfF2XN7Ea6NjQw4ZgpRGAFVDB0FqGne/qt2PyzCNoPKLu0 v+5yxCGk2eUjYtup80eB0RSYSnN+qiCM6DiaeN9USPfapM8sgf7jYMalMFEke9b9vSr+C3w EAfOXICXow+We9p29C+2g== UI-OutboundReport: notjunk:1;M01:P0:bGR8FoMFS10=;SZxL/wJcsOJgKPI4kif75SlRDxv GZSW5e509waMWWpejxYXWdf+R65P59KUIjw7YhVyGwcgqsLwzax2Fe4iKPHUfacYbvapApKti 4M5heIS3Uunkj8v3tcSiSsN0KgwSpvACzGbqm7wn9mztPZGhIXyK7ydofNdtQ49hxLiwazKiI zFXVfO+W9fY7AnsNRYvJYbcxrxwm0r8Ay9yLi+/Qe940TUWz9JJB0YFqTMvBvY0xcTvYFVPx9 2tnrfe1drnLwzkXCotrAYweuFNAcrtGg8AB8d4ahJavt37b6X91ZHCkkqGNCFw1EH/LVbR5cJ sXRX9V9hY9Ae9BK4yOdMskYMlK1xXUgxdVB8HbN6mQyWwzbmjOMQgz9Lx8FrKhkLNpA9mhrzX 88yQjdjiHT+cbZOe4I1NT9xR+f9D+Ig3aFM5Erfc4nbR69QhrP7feaU0U+egz5umHQsnHirXN KeG1FYntES9X/mFpEJpJou4RmDui3goLj7rpBRBBOf1AWbuK9uQF9h2fV2Nj5zo6uGV3u5QBm GAwtg/7usLWSVP0RPn84PvlmilBgF4ohZKP8q9LFXfMzUyTOmrndGyky3mQFX5TZQHMuDsXEp GUndjlmsMvbTHSuMUuqWa5NtPMvTGNscKyYK2zcK2LEQtuQ0elK7dqAtXBlB/Trp1wFobeSsR Ex0mHlKmfGdTYb/Dx6JxeBZpVMmUi9LtoE1DUDI0jXQEC9sOZloWqNvaXsK13hVGYvZgc6Izh vHu6nSxA2/4h2903G/lUvSnTnRslN3Nm1DAqDOVe0Ic0wsO+FWvKRxdeT0Ppg0KWP+NWuE6C Received-SPF: pass client-ip=212.227.17.22; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319674 Archived-At: Dmitry Gutov writes: Hi Dmitry, >> Unfortunately this is almost impossibly hard.=A0 But, I actually have >> worked extensively on doing this specific impossible thing (remote >> process APIs that are powerful enough to do this) so I will eventually >> try to implement them for Emacs and TRAMP.=A0 It would allow full >> make-process support in TRAMP as well as a make-pipe-process which >> represents a pipe existing on a remote system. > > On the remote, it would be fine if the pipe is not direct between such > processes, but goes through the shell, or maybe some other processes as > well (maybe a temp file?). That would still be faster than doing the > round-trip. If both processes are on different remote hosts, you have the problem how to transfer the tmpfile from one host to the other. You have no knowledge how these two hosts see each other. A special case is if both hosts are accessed via Tramp's scp method, and you can use the tramp-use-scp-direct-remote-copying user option. See (info "(tramp) Ssh setup") Best regards, Michael.