From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tomas@fabula.de Newsgroups: gmane.lisp.guile.devel Subject: Re: documentation.scm close files Date: Thu, 22 May 2003 11:59:53 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <20030522095953.GA10564@www> References: <87smrqxt3b.fsf@zip.com.au> <878yt55od2.fsf@zagadka.ping.de> <878yt3yig4.fsf@zip.com.au> <87znlfj54m.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1053594794 10406 80.91.224.249 (22 May 2003 09:13:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 22 May 2003 09:13:14 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu May 22 11:13:13 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Im8O-0002hb-00 for ; Thu, 22 May 2003 11:13:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Ilzs-0006et-9S for guile-devel@m.gmane.org; Thu, 22 May 2003 05:04:24 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19IlpD-00051q-Lj for guile-devel@gnu.org; Thu, 22 May 2003 04:53:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19IloE-0004ZR-9l for guile-devel@gnu.org; Thu, 22 May 2003 04:52:53 -0400 Original-Received: from [217.22.192.104] (helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Illv-0003qt-4t for guile-devel@gnu.org; Thu, 22 May 2003 04:49:59 -0400 Original-Received: by www.elogos.de (Postfix, from userid 5002) id ADBA21457F; Thu, 22 May 2003 11:59:53 +0200 (CEST) Original-To: Kevin Ryde Content-Disposition: inline In-Reply-To: <87znlfj54m.fsf@zip.com.au> User-Agent: Mutt/1.5.3i X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2422 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2422 On Thu, May 22, 2003 at 08:40:09AM +1000, Kevin Ryde wrote: [...] > As threatened, but in the form of a revision of the "Ports" node. The > first three paras are existing words slightly warmed-over, the rest is > new. I like your text very much.However... > It is strongly recommended that file ports be explicitly closed when > no longer required. Most systems have limits on how many files can be > open, both on a per-process and a system-wide basis. A program that > uses many files should take care not to to upset its own or other > program's operations by hitting those limits. The same applies to > similar system resources such as pipes and sockets. it seems important to me to make even clearer that the garbage collector is triggered when we are short on memory (something along the lines of ``the system will trigger the garbage collector based on memory usage, but it won't notice if it is running low on file descriptors, so don't depend on the garbage collector to automatically close unused files''). Of course, using your clear language :-) (As an anecdotal note, we once witnessed one Java application where the one resource left to the garbage collector was the number of Oracle client licenses. There was plenty of memory, so...) Regardsand thanks for the good work! -- tomas _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel