unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mike Gran <spk121@yahoo.com>
To: Andy Wingo <wingo@pobox.com>, Mark H Weaver <mhw@netris.org>
Cc: "guile-devel@gnu.org" <guile-devel@gnu.org>
Subject: Re: Improve `seed->random-state' in stable-2.0?
Date: Fri, 20 Jan 2012 15:46:04 -0800 (PST)	[thread overview]
Message-ID: <1327103164.6054.YahooMailNeo@web37901.mail.mud.yahoo.com> (raw)
In-Reply-To: <874nvqt8n0.fsf@pobox.com>

> From: Andy Wingo wingo@pobox.com

>How about, we extend seed->random-state to operate on bytevectors, and
>have that interface do the right thing.  We deprecate the number
>interface.  At some point in the future we deprecate the string
>interface as well.

The number or string argument to seed->random-state is not unique to
Guile.  Slib uses it, too.
 
The string argument always seemed strange to me and seems to be seldom
used.  But a websearch says that the integer argument is quite common.
 
(seed->random-state (current-time)) seems to be a common idiom that
you would end up breaking.
 
Regards,
 
Mike



  parent reply	other threads:[~2012-01-20 23:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20  3:28 Improve `seed->random-state' in stable-2.0? Mark H Weaver
2012-01-20  8:37 ` David Kastrup
2012-01-20 14:54 ` Andy Wingo
2012-01-20 18:52   ` Mark H Weaver
2012-01-20 20:35     ` Andy Wingo
2012-01-20 22:45       ` Mark H Weaver
2012-01-21  7:38         ` David Kastrup
2012-01-21  8:20           ` Mark H Weaver
2012-01-23  9:52         ` Andy Wingo
2012-01-20 23:46       ` Mike Gran [this message]
2012-01-23  9:55         ` Andy Wingo
2012-01-23 13:06           ` Mike Gran
2012-01-23 14:06             ` Andy Wingo
2012-01-24  6:08               ` Mike Gran
2012-01-24  9:56                 ` Andy Wingo

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=1327103164.6054.YahooMailNeo@web37901.mail.mud.yahoo.com \
    --to=spk121@yahoo.com \
    --cc=guile-devel@gnu.org \
    --cc=mhw@netris.org \
    --cc=wingo@pobox.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).