delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/04/11/22:35:22

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=Kt0iDEKsKTIJ7dzI
gQbbQVgdvQ8Jm7ZCb7ZfwwcSro7WiI2Oz8FvP/Cha2ikoxTRVcC/JC7K/3TL2pVV
htuB5kUIMBetWNpr4OP5J9/iHaQgyKDX49TBKtQxCViqKKQSJgBAwtK0r85fNthn
ipMG8RQG/wp01DsK1ImGUnrc5LQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=B5TwkiB1yHCEnHY35ZvNgj
DyY08=; b=bXs9dmq5nE7Bsh9R0Hon7KoKc919F3Q2WUdCZbzwrBBmAZcE8kj01C
/xjrG7ya5g12P2NbC0PL9ulGsmxFhbynV2PP+AHw/KgrtRPCiIv6eQk6RWWcsnT1
qq/MbTNajXqPScuCOuPkv6BMEanFdeVJk/axCM2XLPzD1kBaqoDX4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,SPF_SOFTFAIL autolearn=no version=3.3.1
Date: Fri, 12 Apr 2013 06:31:32 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <583204587.20130412063132@mtu-net.ru>
To: Steve Kargl <sgk AT troutmask DOT apl DOT washington DOT edu>, cygwin AT cygwin DOT com
Subject: Re: Cygwin with clock_gettime and CLOCK_MONOTONIC - gives always 0
In-Reply-To: <20130411230041.GA30988@troutmask.apl.washington.edu>
References: <5166A0B3 DOT 70801 AT net-b DOT de> <5166BCA1 DOT 5040204 AT net-b DOT de> <20130411134835 DOT GD18333 AT calimero DOT vinschen DOT de> <51670B6B DOT 3000503 AT net-b DOT de> <20130411195200 DOT GJ18333 AT calimero DOT vinschen DOT de> <51671EAA DOT 8030901 AT net-b DOT de> <20130411213934 DOT GA30487 AT troutmask DOT apl DOT washington DOT edu> <Prayer DOT 1 DOT 3 DOT 5 DOT 1304112323420 DOT 8772 AT hermes-2 DOT csi DOT cam DOT ac DOT uk> <20130411230041 DOT GA30988 AT troutmask DOT apl DOT washington DOT edu>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Steve Kargl!

>> >> * gfortran's example for random_see should be change to not use
>> >> system_clock for the random seed.
>> >
>> >I disagree.  The example is just that a short example
>> >that demonstrates how to use random_seed.  Anyone using
>> >that example in his/her code without testing the results
>> >in his/her potentially broken environment should not be
>> >programming.
>> 
>> That is unfair.  Few scientists will know that system clocks are
>> an iffy aspect of a programming language, especially as there are
>> no fundamental reasons that should be the case.

> This has nothing to do with the iffy-ness of system clocks.  My
> disagreemnet is predicated on the stupidity of using a 10 line
> example subroutine without actually inspecting what it does on 
> whatever OS that one chooses to use.  Perhaps, my expectations
> for the IQ of scientists is too high.  Are you suggesting that
> every code snippet in the manual should contain a cautionary
> comment of the form:

No, I expect a code snippet in manual to produce sensible, reliable and
predictable results across the board, especially for such generic cases.

> ! 
> ! This is only an example.  Use with extreme caution.
> !



--
WBR,
Andrey Repin (anrdaemon AT freemail DOT ru) 12.04.2013, <06:29>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019