From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Native OS pipelines in eshell and Emacs Date: Wed, 29 May 2024 13:31:56 +0300 Message-ID: <2a55d590-4d36-41af-9e90-1be671449d8a@gutov.dev> References: <08f95b98-7338-4365-8b55-7c337e57d447@gutov.dev> <871q5lgi7z.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24546"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Spencer Baugh , emacs-devel@gnu.org, johnw@gnu.org, spwhitton@spwhitton.name To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 29 12:33:25 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 1sCGcU-00061L-Kv for ged-emacs-devel@m.gmane-mx.org; Wed, 29 May 2024 12:33:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sCGbI-0005A8-1z; Wed, 29 May 2024 06:32:08 -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 1sCGbG-00059r-Bw for emacs-devel@gnu.org; Wed, 29 May 2024 06:32:06 -0400 Original-Received: from wfout2-smtp.messagingengine.com ([64.147.123.145]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sCGbD-0007Sw-59; Wed, 29 May 2024 06:32:06 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.west.internal (Postfix) with ESMTP id 6427D1C00152; Wed, 29 May 2024 06:32:00 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 29 May 2024 06:32:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1716978720; x=1717065120; bh=tdY2xfak0Y4IILSoYTki7Z+FrPkOt2Asj9Z6KiJYyw8=; b= K6rP8N9/M0/d1ScGvn1gRXGaYykj+14adEwTelfujt9KXf4Q7FHio38wnqcXqHBf ae4fWLF98WpPHbNrH6DGCnSnPYT9rlYgTOf8GWFenMOjVAiiMBceS71U4yB6Tj6L Jo5ZprSYR61MWypOeTkw4Xvy9gme4R2ye9ON2Yee5mRD6lWx+h2JdAoFUjWJKYkf AqQcBW5+S4LyEBhN2a9yc4w1NrnsL5Gtv2XjhiM9+tfg85SrHbEaoC7TgGxDRO45 f2EYEWPF5k4QnDv9ykXjJSBmaRn2XA19yoH37zV0nmdugnqYSdUgo6XRpmOdesby lU9kod9caSvqOhNNC6me3A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1716978720; x= 1717065120; bh=tdY2xfak0Y4IILSoYTki7Z+FrPkOt2Asj9Z6KiJYyw8=; b=A 6Pp6yaaSWaIjpR/x8IIGtdETNNgbenzxH2gKChLttRQ0KkpyWEZZfcXq625jzKbo 7zRzRsd2uDwDPP6AMq/8DbE9tSKKblvyEw87bofFM0cUDDx+eQ63szev5MrcBkxS 6PqpZPEZPNcUdNayx+Y7YWFCaZ8rRZzMLNi6xbXJZktCQ2I+5tza69nV6aV+855m 11WjtriJ0bqXh1cnyZAwZZnEikPhulQYG2gjqaRjJohEQdaC4UB8FxiD7SLNHBiU 9f9uncrTepHo0YEl51zRlvyqClhtj1oJlpT67Gb3GLEVLiopm6aAnBSLMJcD8bOI 0/VCGiCSgn2MMOKsF9xFA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekuddgvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeetveegtedthefhudekteehffeu keeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 May 2024 06:31:58 -0400 (EDT) Content-Language: en-US In-Reply-To: <871q5lgi7z.fsf@gmx.de> Received-SPF: pass client-ip=64.147.123.145; envelope-from=dmitry@gutov.dev; helo=wfout2-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 autolearn=ham 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:319678 Archived-At: Hi Michael, On 29/05/2024 11:01, Michael Albinus wrote: >>> Unfortunately this is almost impossibly hard.  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.  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") The case I had in mind is when both hosts are the same. This one can be optimized at least in theory.