From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id VAA14636; Fri, 14 Nov 2003 21:25:29 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA14561 for ; Fri, 14 Nov 2003 21:25:28 +0100 (MET) Received: from relay.rinet.ru (relay.rinet.ru [195.54.192.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAEKPR114019 for ; Fri, 14 Nov 2003 21:25:27 +0100 (MET) Received: from relay.rinet.ru (localhost [127.0.0.1]) by relay.rinet.ru (8.12.9p2/8.12.9) with ESMTP id hAEKPRjp030042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 14 Nov 2003 23:25:27 +0300 (MSK) (envelope-from dbely@mail.ru) Received: (from uucp@localhost) by relay.rinet.ru (8.12.9p2/8.12.9/Submit) with UUCP id hAEKPRIN030041 for caml-list@inria.fr; Fri, 14 Nov 2003 23:25:27 +0300 (MSK) (envelope-from dbely@mail.ru) Received: from dialin1.stormoff (ROVER1) [192.168.0.129] by stormoff with esmtp (Exim 3.12 #1 (Debian)) id 1AKkVK-0000IR-00; Fri, 14 Nov 2003 23:25:19 +0300 X-Comment-To: Christophe Raffalli To: caml-list@inria.fr Subject: Re: [Caml-list] GC and file descriptors References: <70D8AC5D-16A8-11D8-BFCA-00039310CAE8@inria.fr> <3FB4ED56.6020804@univ-savoie.fr> From: Dmitry Bely Date: Fri, 14 Nov 2003 23:24:21 +0300 In-Reply-To: <3FB4ED56.6020804@univ-savoie.fr> (Christophe Raffalli's message of "Fri, 14 Nov 2003 15:57:26 +0100") Message-ID: User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Military Intelligence (RC5 Windows), i586-pc-win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 raffalli:01 raffalli:01 univ-savoie:01 subprocesses:01 christophe:01 christophe:01 garbage:01 garbage:01 dmitry:01 dmitry:01 descriptors:01 descriptors:01 writes:01 bely:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Christophe Raffalli writes: >>> Garbage collecting the subprocesses and file descriptors would >>> make this a bit more straightforward. >> The problem with this approach is that the "close" and "wait" >> system calls have side effects. I don't like the idea of a GC >> that has side effects other than the memory size of the program >> (and finalisation functions, of course). > > Why ? Could you elaborate ? close() can fail (generate an exception). How are you going to handle it in the garbage collector? On the contrary, the memory deallocaton always succeeds. - Dmitry Bely ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners