unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Greg Troxel <gdt@ir.bbn.com>
Subject: Re: 1.6.8 release candidate 0 available for testing.
Date: 24 Oct 2005 21:29:38 -0400	[thread overview]
Message-ID: <rmi1x2ajse5.fsf@fnord.ir.bbn.com> (raw)
In-Reply-To: <878xwj50or.fsf@zip.com.au>

Kevin Ryde <user42@zip.com.au> writes:

> Greg Troxel <gdt@ir.bbn.com> writes:
> 
> Straight "pass through" to libc sounds good to me.
> 
> >    and make the implementation set TZ before calling
> >    strftime (perhaps unless an implementation which guarantees to read
> >    tm_zone is detected).
> 
> That might be slow.  I notice what localtime does changing TZ is a
> noticable slowdown with glibc.  (It re-reads the timezone file(s) on
> every TZ change.)
> 
> I wonder if munging the global tzname[] variable would be enough.  Bad
> for multi-threading, but we've got issues with that in the time funcs
> already.

If we munge the variable or set TZ, then scheme strftime will have
stricter semantics than C99.  Also, I wonder if setting the variable
is safe according to the standard which defines it; that seems
dangerous.

> >    Perhaps don't set
> >    the non-C99 fields in what is used for the libc call to avoid
> >    nonportable expectations.
> 
> I wouldn't deliberately break something just because it's not
> portable.
> 
> > The meta-issue I see here is about guile providing consistent behavior
> > on all platforms.
> 
> Though I see your point.

I realize this is a tough call, but declining to provide more behavior
than the relevant standard ensures that the original programmer finds
the 'bug', rather than it later being a portability problem.

> PS. I added "man 3 strftime" to the manual.

Thanks, that will be helpful to some I think.


-- 
        Greg Troxel <gdt@ir.bbn.com>


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2005-10-25  1:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-15 20:55 1.6.8 release candidate 0 available for testing Rob Browning
2005-10-16 21:02 ` Greg Troxel
2005-10-16 22:38   ` Kevin Ryde
2005-10-18 19:53     ` Greg Troxel
2005-10-19  1:27       ` Kevin Ryde
2005-10-19 17:10         ` Greg Troxel
2005-10-20  7:32           ` Ludovic Courtès
2005-10-19  1:34       ` Kevin Ryde
2005-10-19 17:18         ` Greg Troxel
2005-10-23 22:27           ` Kevin Ryde
2005-10-25  1:29             ` Greg Troxel [this message]
2005-10-31 23:41               ` Kevin Ryde
2005-10-23 22:41       ` 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=rmi1x2ajse5.fsf@fnord.ir.bbn.com \
    --to=gdt@ir.bbn.com \
    /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).