From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: request for review: Doing direct file I/O in Emacs Lisp Date: 10 May 2004 19:00:01 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87pt9cuzyo.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084209377 11863 80.91.224.253 (10 May 2004 17:16:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 May 2004 17:16:17 +0000 (UTC) Cc: John Wiegley , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon May 10 19:16:08 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNENs-0006SU-00 for ; Mon, 10 May 2004 19:16:08 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNENr-0006HV-00 for ; Mon, 10 May 2004 19:16:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNEMv-0001lZ-Hb for emacs-devel@quimby.gnus.org; Mon, 10 May 2004 13:15:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNEMh-0001jB-1E for emacs-devel@gnu.org; Mon, 10 May 2004 13:14:55 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNELk-0001Ue-Nf for emacs-devel@gnu.org; Mon, 10 May 2004 13:14:32 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNE8M-000824-Kf for emacs-devel@gnu.org; Mon, 10 May 2004 13:00:10 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BNE8I-0004dk-MX; Mon, 10 May 2004 13:00:03 -0400 Original-To: Stefan Monnier In-Reply-To: Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23050 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23050 Stefan Monnier writes: > >> The two don't have to be competing. Instead I expect they'd be > >> used together (by extending your proposal to allow a file-handle > >> as "output port"). > > There is not much of an incentive to have explicit file handles if > > you can establish all of the necessary redirections without them. > > Piping the output of one process to the input of another, maybe? Academical right now. You know the complicated procedure of pipe(2), fork, selective closes and/or dup2 calls needed to properly create a working pipeline? I am afraid that "file-handle" does not buy us that at all. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum