unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: tomas@fabula.de
Cc: guile-devel@gnu.org
Subject: Re: documentation.scm close files
Date: Thu, 22 May 2003 11:59:53 +0200	[thread overview]
Message-ID: <20030522095953.GA10564@www> (raw)
In-Reply-To: <87znlfj54m.fsf@zip.com.au>

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


  reply	other threads:[~2003-05-22  9:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-07 22:58 documentation.scm close files Kevin Ryde
2003-05-17 20:07 ` Marius Vollmer
2003-05-18 22:54   ` Kevin Ryde
2003-05-21 22:40     ` Kevin Ryde
2003-05-22  9:59       ` tomas [this message]
2003-05-24  1:50         ` Kevin Ryde
2003-05-24  8:46           ` tomas
2003-06-05  1:00             ` Kevin Ryde
2003-05-22 15:20       ` Marius Vollmer
2003-05-23 21:20         ` Kevin Ryde
2003-06-01 21:02           ` Marius Vollmer
2003-06-05  1:17         ` doco with-input-from-file, with-output-to-file (was: documentation.scm close files) Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030522095953.GA10564@www \
    --to=tomas@fabula.de \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).