X-Recipient: archive-cygwin@delorie.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:to:cc:subject:message-id:references
	:mime-version:content-type:in-reply-to; q=dns; s=default; b=UU2Q
	xVZ8HJ86Ho9IXRqH6hQ9cACTgixhWdK+OKSb26Vscw29Ubj+LfoXVI/UBzl3nfVG
	8n/rxb9yBBItr9LxFqQob4VrOsUmy3IJ7JXdORiqW7cIUHcDAT5ppte/vdcTydUN
	heR6K37899GlbBjFLaTbdgenA0JfAsTY9Nn7PZo=
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:to:cc:subject:message-id:references
	:mime-version:content-type:in-reply-to; s=default; bh=9gTixr1rbP
	HOmbpBbXeaYCy+4+o=; b=EAovMgXx3J7v+9yiNSkHsItYGAXJpqhtdu56N7i3gs
	TNnqf8hbqY+oREo21Hr9/ppmVRDeU08frx3QThUbDGostnW76VbLpkqaKuu+4Ox4
	iQGNDvnk64M4WE1heG/vwD5DxSwOH7VyKS9iRWpL35ELG2yCbfkAsxzI/qqbtESC
	w=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.1
Date: Thu, 11 Apr 2013 16:00:41 -0700
From: Steve Kargl <sgk@troutmask.apl.washington.edu>
To: "N.M. Maclaren" <nmm1@cam.ac.uk>
Cc: cygwin@cygwin.com, fortran@gcc.gnu.org
Subject: Re: Cygwin with clock_gettime and CLOCK_MONOTONIC - gives always 0
Message-ID: <20130411230041.GA30988@troutmask.apl.washington.edu>
References: <5166A0B3.70801@net-b.de> <5166BCA1.5040204@net-b.de> <20130411134835.GD18333@calimero.vinschen.de> <51670B6B.3000503@net-b.de> <20130411195200.GJ18333@calimero.vinschen.de> <51671EAA.8030901@net-b.de> <20130411213934.GA30487@troutmask.apl.washington.edu> <Prayer.1.3.5.1304112323420.8772@hermes-2.csi.cam.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Prayer.1.3.5.1304112323420.8772@hermes-2.csi.cam.ac.uk>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Thu, Apr 11, 2013 at 11:23:42PM +0100, N.M. Maclaren wrote:
> On Apr 11 2013, Steve Kargl wrote:
> >On Thu, Apr 11, 2013 at 10:35:54PM +0200, Tobias Burnus wrote:
> >> 
> >> * 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:

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

-- 
Steve

--
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

