Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Thank heaven for startups; without them we'd never have any advances." -- Seymour Cray


devel / comp.lang.fortran / Re: Standardize real*8 as real(kind=real64)?

SubjectAuthor
* Standardize real*8 as real(kind=real64)?Beliavsky
+* Re: Standardize real*8 as real(kind=real64)?Beliavsky
|+* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
||`- Re: Standardize real*8 as real(kind=real64)?pehache
|+* Re: Standardize real*8 as real(kind=real64)?gah4
||`* Re: Standardize real*8 as real(kind=real64)?Beliavsky
|| `* Re: Standardize real*8 as real(kind=real64)?gah4
||  `- Re: Standardize real*8 as real(kind=real64)?Dick Hendrickson
|`- Re: Standardize real*8 as real(kind=real64)?John Collins
+- Re: Standardize real*8 as real(kind=real64)?FortranFan
+* Re: Standardize real*8 as real(kind=real64)?gah4
|+- Re: Standardize real*8 as real(kind=real64)?John Collins
|`* Re: Standardize real*8 as real(kind=real64)?Thomas Koenig
| `* Re: Standardize real*8 as real(kind=real64)?gah4
|  +* Re: Standardize real*8 as real(kind=real64)?Thomas Koenig
|  |`- Re: Standardize real*8 as real(kind=real64)?gah4
|  `- Re: Standardize real*8 as real(kind=real64)?Ron Shepard
+* Re: Standardize real*8 as real(kind=real64)?Ron Shepard
|+- Re: Standardize real*8 as real(kind=real64)?Robin Vowels
|`* Re: Standardize real*8 as real(kind=real64)?pehache
| +* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| |`* Re: Standardize real*8 as real(kind=real64)?pehache
| | `* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| |  `- Re: Standardize real*8 as real(kind=real64)?pehache
| +* Re: Standardize real*8 as real(kind=real64)?pehache
| |`* Re: Standardize real*8 as real(kind=real64)?pehache
| | `* Re: Standardize real*8 as real(kind=real64)?Phillip Helbig (undress to reply
| |  +* Re: Standardize real*8 as real(kind=real64)?gah4
| |  |+* Re: Standardize real*8 as real(kind=real64)?jfh
| |  ||`* Re: Standardize real*8 as real(kind=real64)?FortranFan
| |  || `- Re: Standardize real*8 as real(kind=real64)?jfh
| |  |`- Re: Standardize real*8 as real(kind=real64)?Phillip Helbig (undress to reply
| |  `* Re: Standardize real*8 as real(kind=real64)?pehache
| |   `- Re: Standardize real*8 as real(kind=real64)?Phillip Helbig (undress to reply
| `* Re: Standardize real*8 as real(kind=real64)?Ron Shepard
|  `* Re: Standardize real*8 as real(kind=real64)?pehache
|   `* Re: Standardize real*8 as real(kind=real64)?Ron Shepard
|    +* Re: Standardize real*8 as real(kind=real64)?pehache
|    |`* Re: Standardize real*8 as real(kind=real64)?Ron Shepard
|    | `* Re: Standardize real*8 as real(kind=real64)?pehache
|    |  +* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
|    |  |`- Re: Standardize real*8 as real(kind=real64)?pehache
|    |  `- Re: Standardize real*8 as real(kind=real64)?gah4
|    +* Re: Standardize real*8 as real(kind=real64)?gah4
|    |`- Re: Standardize real*8 as real(kind=real64)?Ron Shepard
|    `* Re: Standardize real*8 as real(kind=real64)?Quadibloc
|     `- Re: Standardize real*8 as real(kind=real64)?gah4
+* Re: Standardize real*8 as real(kind=real64)?John Collins
|+* Re: Standardize real*8 as real(kind=real64)?FortranFan
||`- Re: Standardize real*8 as real(kind=real64)?Robin Vowels
|`- Re: Standardize real*8 as real(kind=real64)?Robin Vowels
+* Re: Standardize real*8 as real(kind=real64)?JCampbell
|+* Re: Standardize real*8 as real(kind=real64)?Thomas Koenig
||+* Re: Standardize real*8 as real(kind=real64)?Ron Shepard
|||`- Re: Standardize real*8 as real(kind=real64)?Robin Vowels
||`* Re: Standardize real*8 as real(kind=real64)?jfh
|| `* Re: Standardize real*8 as real(kind=real64)?JCampbell
||  `* Re: Standardize real*8 as real(kind=real64)?steve kargl
||   `* Re: Standardize real*8 as real(kind=real64)?Ron Shepard
||    `* Re: Standardize real*8 as real(kind=real64)?steve kargl
||     `- Re: Standardize real*8 as real(kind=real64)?Quadibloc
|`* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| +* Re: Standardize real*8 as real(kind=real64)?John Collins
| |+* Re: Standardize real*8 as real(kind=real64)?gah4
| ||`* Re: Standardize real*8 as real(kind=real64)?Ron Shepard
| || `* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| ||  `* Re: Standardize real*8 as real(kind=real64)?John Collins
| ||   +- Re: Standardize real*8 as real(kind=real64)?gah4
| ||   +* Re: Standardize real*8 as real(kind=real64)?FortranFan
| ||   |+- Re: Standardize real*8 as real(kind=real64)?gah4
| ||   |`* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| ||   | `- Re: Standardize real*8 as real(kind=real64)?FortranFan
| ||   +- Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| ||   `* Re: Standardize real*8 as real(kind=real64)?Quadibloc
| ||    `- Re: Standardize real*8 as real(kind=real64)?jfh
| |+* Re: Standardize real*8 as real(kind=real64)?steve kargl
| ||+* Re: Standardize real*8 as real(kind=real64)?Phillip Helbig (undress to reply
| |||`- Re: Standardize real*8 as real(kind=real64)?Ron Shepard
| ||+- Re: Standardize real*8 as real(kind=real64)?gah4
| ||+* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| |||`* Re: Standardize real*8 as real(kind=real64)?gah4
| ||| +- Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| ||| `* Re: Standardize real*8 as real(kind=real64)?Ron Shepard
| |||  +- Re: Standardize real*8 as real(kind=real64)?gah4
| |||  `* Re: Standardize real*8 as real(kind=real64)?pehache
| |||   +* Re: Standardize real*8 as real(kind=real64)?gah4
| |||   |`- Re: Standardize real*8 as real(kind=real64)?Ron Shepard
| |||   `* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| |||    +* Re: Standardize real*8 as real(kind=real64)?pehache
| |||    |`* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| |||    | `* Re: Standardize real*8 as real(kind=real64)?pehache
| |||    |  `* Re: Standardize real*8 as real(kind=real64)?Ron Shepard
| |||    |   +* Re: Standardize real*8 as real(kind=real64)?pehache
| |||    |   |`- Re: Standardize real*8 as real(kind=real64)?Quadibloc
| |||    |   `- Re: Standardize real*8 as real(kind=real64)?Thomas Koenig
| |||    `- Re: Standardize real*8 as real(kind=real64)?Ron Shepard
| ||`* Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| || `- Re: Standardize real*8 as real(kind=real64)?steve kargl
| |`- Re: Standardize real*8 as real(kind=real64)?Robin Vowels
| `* Re: Standardize real*8 as real(kind=real64)?Quadibloc
|  `- Re: Standardize real*8 as real(kind=real64)?Thomas Koenig
+* Re: Standardize real*8 as real(kind=real64)?pehache
`* Re: Standardize real*8 as real(kind=real64)?gah4

Pages:12345
Re: Standardize real*8 as real(kind=real64)?

<d45d04fb-dbed-4e62-a01b-501798017d1dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2467&group=comp.lang.fortran#2467

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a1c:f20b:0:b0:39e:f4b9:24e3 with SMTP id s11-20020a1cf20b000000b0039ef4b924e3mr5720910wmc.51.1656008141135;
Thu, 23 Jun 2022 11:15:41 -0700 (PDT)
X-Received: by 2002:a05:690c:443:b0:317:8859:fe1a with SMTP id
bj3-20020a05690c044300b003178859fe1amr12119672ywb.245.1656008140550; Thu, 23
Jun 2022 11:15:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 23 Jun 2022 11:15:40 -0700 (PDT)
In-Reply-To: <dd1f7d59-6fde-4e91-a225-98d400b951b7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:56a:fb70:6300:1987:e4f3:1313:d73c;
posting-account=1nOeKQkAAABD2jxp4Pzmx9Hx5g9miO8y
NNTP-Posting-Host: 2001:56a:fb70:6300:1987:e4f3:1313:d73c
References: <c56c4a4c-161f-4608-9a30-756894030f29n@googlegroups.com>
<f520ba36-83fe-4ba1-a444-64c82a92559cn@googlegroups.com> <392becf1-044b-4800-b85c-1d744e91a55cn@googlegroups.com>
<07c52bfd-9b23-4672-adf4-ba24cad094b5n@googlegroups.com> <2a3c9189-379c-4ea8-8227-eeaaf70ee84en@googlegroups.com>
<yRs5K.351418$Gojc.341861@fx99.iad> <33c2adf0-f82f-433a-997e-ea1f89532a83n@googlegroups.com>
<dd1f7d59-6fde-4e91-a225-98d400b951b7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d45d04fb-dbed-4e62-a01b-501798017d1dn@googlegroups.com>
Subject: Re: Standardize real*8 as real(kind=real64)?
From: jsavard@ecn.ab.ca (Quadibloc)
Injection-Date: Thu, 23 Jun 2022 18:15:41 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Quadibloc - Thu, 23 Jun 2022 18:15 UTC

On Wednesday, April 13, 2022 at 12:41:22 PM UTC-6, john.c...@simconglobal.com wrote:
> To that end REAL*8 is the best we have got, it works everywhere (at least that I know of)
> and doesn't need to be in the standard if everyone understands it.

On the FORTRAN compiler for the IBM System/360, IBM added length specifications as
an extension to the standard. It allowed them to define COMPLEX*16, since DOUBLE
COMPLEX was not yet part of the standard at the time. And it allowed them to define
LOGICAL*1 in addition to LOGICAL*4 (the default), and INTEGER*2 in addition to
INTEGER*4.

This extension served a purpose in its day. But it was not intended to be _portable_.

So on a machine with addressable 6-bit characters, REAL might be REAL*6 or REAL*8,
and DOUBLE PRECISION might be REAL*12 or REAL*16. Or even REAL*10.

Of course, these days, byte addressing and power-of-two word sizes are nigh universal.

John Savard

Re: Standardize real*8 as real(kind=real64)?

<5fc94d88-21b2-4fa6-96ac-28edccf3dcben@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2468&group=comp.lang.fortran#2468

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a5d:5c03:0:b0:21b:90e6:42bc with SMTP id cc3-20020a5d5c03000000b0021b90e642bcmr9999129wrb.36.1656009973266;
Thu, 23 Jun 2022 11:46:13 -0700 (PDT)
X-Received: by 2002:a05:6902:154b:b0:669:40a9:bdcc with SMTP id
r11-20020a056902154b00b0066940a9bdccmr11481677ybu.238.1656009972782; Thu, 23
Jun 2022 11:46:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 23 Jun 2022 11:46:12 -0700 (PDT)
In-Reply-To: <jh9i03Frj06U1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:56a:fb70:6300:1987:e4f3:1313:d73c;
posting-account=1nOeKQkAAABD2jxp4Pzmx9Hx5g9miO8y
NNTP-Posting-Host: 2001:56a:fb70:6300:1987:e4f3:1313:d73c
References: <c56c4a4c-161f-4608-9a30-756894030f29n@googlegroups.com>
<f520ba36-83fe-4ba1-a444-64c82a92559cn@googlegroups.com> <392becf1-044b-4800-b85c-1d744e91a55cn@googlegroups.com>
<07c52bfd-9b23-4672-adf4-ba24cad094b5n@googlegroups.com> <t34lac$utb$1@dont-email.me>
<f112d480-3ecf-4d92-84e0-56176111738dn@googlegroups.com> <ee6e22a7-f32c-4177-9edb-14c032b9ea05n@googlegroups.com>
<BJB5K.428392$t2Bb.353109@fx98.iad> <jh4bvjFu004U1@mid.individual.net>
<881886a1-5d05-46c3-806d-cba5be43566cn@googlegroups.com> <jh566rF38puU1@mid.individual.net>
<6f328b30-4e4a-4e2a-bdf2-cadc159d9895n@googlegroups.com> <jh6clvFbu3vU1@mid.individual.net>
<svHrK.3615$El2.3447@fx45.iad> <jh9i03Frj06U1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5fc94d88-21b2-4fa6-96ac-28edccf3dcben@googlegroups.com>
Subject: Re: Standardize real*8 as real(kind=real64)?
From: jsavard@ecn.ab.ca (Quadibloc)
Injection-Date: Thu, 23 Jun 2022 18:46:13 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Quadibloc - Thu, 23 Jun 2022 18:46 UTC

On Sunday, June 19, 2022 at 3:15:52 PM UTC-6, pehache wrote:

> Early support for f90, maybe... But even in the 1990s f90 was not that
> popular in high performance computing (for sometimes good, sometimes bad
> reasons). The recommandation where I was working (as a PhD student) was
> to stick to f77. So the lack of f90 features on the Cray was not a big
> problem I guess.

And that is history repeating itself. IBM's FORTRAN II compiler for the 7090
had the same excellent optimization as the original FORTRAN for the 704,
but when IBM brought in a FORTRAN IV compiler, it wasn't optimized. So
people had to use FORTRAN II for serious work.

John Savard

Re: Standardize real*8 as real(kind=real64)?

<8fce60ad-36cd-4316-aad7-47f09d326e17n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2469&group=comp.lang.fortran#2469

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:6000:1b8d:b0:219:8930:6e54 with SMTP id r13-20020a0560001b8d00b0021989306e54mr9413650wru.99.1656010639338;
Thu, 23 Jun 2022 11:57:19 -0700 (PDT)
X-Received: by 2002:a25:f506:0:b0:669:aee8:8510 with SMTP id
a6-20020a25f506000000b00669aee88510mr4737651ybe.523.1656010638712; Thu, 23
Jun 2022 11:57:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 23 Jun 2022 11:57:18 -0700 (PDT)
In-Reply-To: <%g2sK.299020$5fVf.236326@fx09.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=2001:56a:fb70:6300:1987:e4f3:1313:d73c;
posting-account=1nOeKQkAAABD2jxp4Pzmx9Hx5g9miO8y
NNTP-Posting-Host: 2001:56a:fb70:6300:1987:e4f3:1313:d73c
References: <c56c4a4c-161f-4608-9a30-756894030f29n@googlegroups.com>
<1bj4K.210690$OT%7.139979@fx07.iad> <jh4f2uFueg7U1@mid.individual.net>
<HKHrK.297617$5fVf.72976@fx09.iad> <rMGCRyTFBmLLtWj7fPdgphNZX4U@jntp> <%g2sK.299020$5fVf.236326@fx09.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8fce60ad-36cd-4316-aad7-47f09d326e17n@googlegroups.com>
Subject: Re: Standardize real*8 as real(kind=real64)?
From: jsavard@ecn.ab.ca (Quadibloc)
Injection-Date: Thu, 23 Jun 2022 18:57:19 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Quadibloc - Thu, 23 Jun 2022 18:57 UTC

On Monday, June 20, 2022 at 11:39:10 AM UTC-6, Ron Shepard wrote:

> The problem I see with fortran isn't the kind system, which allows the
> programmer to mix kinds within expressions with complete control, rather
> it is the complications that come from the library support of those
> kinds. If a compiler has, say 10 different real kinds, then it is
> required to support all of the intrinsics for each of those kinds, all
> the exp and log functions, all the trig functions, all the Bessel
> functions, and so on, for both real and complex types. That seems like a
> high hurdle. I don't know what the answer is for this. Maybe the
> language should have two types of support, one just a subset for simple
> operations, and the other level being the full support as it is now.

Generally speaking, though, that isn't a problem one encounters in
real life. FORTRAN compilers would allow use of those hardware floating-point
types that are relevant to the kinds of computation FORTRAN is for.

The kind system deals with another problem: since some machines
might have 32-bit single precision, and 64-bit double precision, and others
might have 64-bit single precision and 128-bit double precision, a way is
provided to use the 64-bit reals on both kinds of machine by specifying that
one wants at least 15 (or even 12) decimal digits of precision.

John Savard

Re: Standardize real*8 as real(kind=real64)?

<89c3fa4a-f1fa-4276-8183-53b89746d72en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2470&group=comp.lang.fortran#2470

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:adf:e196:0:b0:219:f3c7:fd88 with SMTP id az22-20020adfe196000000b00219f3c7fd88mr9900933wrb.402.1656014565010;
Thu, 23 Jun 2022 13:02:45 -0700 (PDT)
X-Received: by 2002:a25:bb4a:0:b0:669:7107:b6d7 with SMTP id
b10-20020a25bb4a000000b006697107b6d7mr11211693ybk.98.1656014564383; Thu, 23
Jun 2022 13:02:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 23 Jun 2022 13:02:42 -0700 (PDT)
In-Reply-To: <8fce60ad-36cd-4316-aad7-47f09d326e17n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:4061:ee0a:4352:f7a3;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:4061:ee0a:4352:f7a3
References: <c56c4a4c-161f-4608-9a30-756894030f29n@googlegroups.com>
<1bj4K.210690$OT%7.139979@fx07.iad> <jh4f2uFueg7U1@mid.individual.net>
<HKHrK.297617$5fVf.72976@fx09.iad> <rMGCRyTFBmLLtWj7fPdgphNZX4U@jntp>
<%g2sK.299020$5fVf.236326@fx09.iad> <8fce60ad-36cd-4316-aad7-47f09d326e17n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <89c3fa4a-f1fa-4276-8183-53b89746d72en@googlegroups.com>
Subject: Re: Standardize real*8 as real(kind=real64)?
From: gah4@u.washington.edu (gah4)
Injection-Date: Thu, 23 Jun 2022 20:02:45 +0000
Content-Type: text/plain; charset="UTF-8"
 by: gah4 - Thu, 23 Jun 2022 20:02 UTC

On Thursday, June 23, 2022 at 11:57:22 AM UTC-7, Quadibloc wrote:

(snip)

> The kind system deals with another problem: since some machines
> might have 32-bit single precision, and 64-bit double precision, and others
> might have 64-bit single precision and 128-bit double precision, a way is
> provided to use the 64-bit reals on both kinds of machine by specifying that
> one wants at least 15 (or even 12) decimal digits of precision.

Most of those are now in museums, running or not.

It looks to me, though, that IEEE 754 decimal floating point considers
the 64 bit form single precision, and the 128 bit as double precision.

There are 16 bit binary, 256 bit binary, and 32 bit decimal forms that
are called "not-basic".

It looks to me that Fortran compilers implementing it would use
the 64 bit and 128 bit formats for REAL and DOUBLE PRECISION.

We will have to see when those compilers come out.

Re: Standardize real*8 as real(kind=real64)?

<t92j80$h6l$1@newsreader4.netcologne.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2471&group=comp.lang.fortran#2471

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2001-4dd7-3fa9-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de!not-for-mail
From: tkoenig@netcologne.de (Thomas Koenig)
Newsgroups: comp.lang.fortran
Subject: Re: Standardize real*8 as real(kind=real64)?
Date: Thu, 23 Jun 2022 20:42:40 -0000 (UTC)
Organization: news.netcologne.de
Distribution: world
Message-ID: <t92j80$h6l$1@newsreader4.netcologne.de>
References: <c56c4a4c-161f-4608-9a30-756894030f29n@googlegroups.com>
<f520ba36-83fe-4ba1-a444-64c82a92559cn@googlegroups.com>
<392becf1-044b-4800-b85c-1d744e91a55cn@googlegroups.com>
<329d85df-8cb3-4b0a-802b-1781c821e563n@googlegroups.com>
Injection-Date: Thu, 23 Jun 2022 20:42:40 -0000 (UTC)
Injection-Info: newsreader4.netcologne.de; posting-host="2001-4dd7-3fa9-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de:2001:4dd7:3fa9:0:7285:c2ff:fe6c:992d";
logging-data="17621"; mail-complaints-to="abuse@netcologne.de"
User-Agent: slrn/1.0.3 (Linux)
 by: Thomas Koenig - Thu, 23 Jun 2022 20:42 UTC

Quadibloc <jsavard@ecn.ab.ca> schrieb:
> On Monday, April 11, 2022 at 3:21:33 AM UTC-6, Robin Vowels wrote:
>> On Sunday, April 10, 2022 at 3:35:25 PM UTC+10, JCampbell wrote:
>
>> > real(dp) or real(kind=dp) is not clear,
>> .
>> in what way? "dp" is used often enough that it is immediately clear
>> that it signifies double precision.
>
> My quarrel with it is that it is redundant. DOUBLE PRECISION is already
> in existence in the language; the syntax real(...) is for when you want to
> specify by length instead.

Not with all compilers (nagfor being one example).

Re: Standardize real*8 as real(kind=real64)?

<c2353ecb-3198-4c62-ad52-3cb011f99e30n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2472&group=comp.lang.fortran#2472

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a5d:6212:0:b0:21b:b0ec:3777 with SMTP id y18-20020a5d6212000000b0021bb0ec3777mr811127wru.692.1656017045903;
Thu, 23 Jun 2022 13:44:05 -0700 (PDT)
X-Received: by 2002:a05:6902:246:b0:668:e28b:721f with SMTP id
k6-20020a056902024600b00668e28b721fmr11257430ybs.180.1656017045388; Thu, 23
Jun 2022 13:44:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Thu, 23 Jun 2022 13:44:05 -0700 (PDT)
In-Reply-To: <d45d04fb-dbed-4e62-a01b-501798017d1dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=115.189.81.122; posting-account=KnYfEgoAAAD1tUJTvdAUZ3XojNa5tezZ
NNTP-Posting-Host: 115.189.81.122
References: <c56c4a4c-161f-4608-9a30-756894030f29n@googlegroups.com>
<f520ba36-83fe-4ba1-a444-64c82a92559cn@googlegroups.com> <392becf1-044b-4800-b85c-1d744e91a55cn@googlegroups.com>
<07c52bfd-9b23-4672-adf4-ba24cad094b5n@googlegroups.com> <2a3c9189-379c-4ea8-8227-eeaaf70ee84en@googlegroups.com>
<yRs5K.351418$Gojc.341861@fx99.iad> <33c2adf0-f82f-433a-997e-ea1f89532a83n@googlegroups.com>
<dd1f7d59-6fde-4e91-a225-98d400b951b7n@googlegroups.com> <d45d04fb-dbed-4e62-a01b-501798017d1dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c2353ecb-3198-4c62-ad52-3cb011f99e30n@googlegroups.com>
Subject: Re: Standardize real*8 as real(kind=real64)?
From: harperjf2@gmail.com (jfh)
Injection-Date: Thu, 23 Jun 2022 20:44:05 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: jfh - Thu, 23 Jun 2022 20:44 UTC

On Friday, June 24, 2022 at 6:15:44 AM UTC+12, Quadibloc wrote:
> On Wednesday, April 13, 2022 at 12:41:22 PM UTC-6, john.c...@simconglobal..com wrote:
> > To that end REAL*8 is the best we have got, it works everywhere (at least that I know of)
> > and doesn't need to be in the standard if everyone understands it.
>
> On the FORTRAN compiler for the IBM System/360, IBM added length specifications as
> an extension to the standard. It allowed them to define COMPLEX*16, since DOUBLE
> COMPLEX was not yet part of the standard at the time. And it allowed them to define
> LOGICAL*1 in addition to LOGICAL*4 (the default), and INTEGER*2 in addition to
> INTEGER*4.
>
> This extension served a purpose in its day. But it was not intended to be _portable_.
>
> So on a machine with addressable 6-bit characters, REAL might be REAL*6 or REAL*8,
> and DOUBLE PRECISION might be REAL*12 or REAL*16. Or even REAL*10.
>
> Of course, these days, byte addressing and power-of-two word sizes are nigh universal.
>
> John Savard

DOUBLE COMPLEX was not standard f77 and is not standard f18. Last time I looked at NAG Fortran it did not use 4 and 8 for single and double precision unless one asked for a particular compiling option. When I don't know in advance what precision a given calculation will need I try all four of wp=selected_real_kind(n) where n is 6,15,18 or 33. That works well with gfortran but ifort treats 18 as if it were 33 because that compiler offers only three real kinds. I no longer have access to NAG because my university's systems people thought not enough people were using it to justify the cost.

Re: Standardize real*8 as real(kind=real64)?

<jhl3huFnis4U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2474&group=comp.lang.fortran#2474

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pehache.7@gmail.com (pehache)
Newsgroups: comp.lang.fortran
Subject: Re: Standardize real*8 as real(kind=real64)?
Date: Fri, 24 Jun 2022 08:22:54 +0200
Lines: 12
Message-ID: <jhl3huFnis4U1@mid.individual.net>
References: <c56c4a4c-161f-4608-9a30-756894030f29n@googlegroups.com>
<1bj4K.210690$OT%7.139979@fx07.iad> <jh4f2uFueg7U1@mid.individual.net>
<HKHrK.297617$5fVf.72976@fx09.iad> <rMGCRyTFBmLLtWj7fPdgphNZX4U@jntp>
<%g2sK.299020$5fVf.236326@fx09.iad> <jhdmt7FhkrbU1@mid.individual.net>
<SolsK.180149$JVi.25417@fx17.iad> <YsPWVntry677-SHJWzh95p6LirA@jntp>
<69d0e789-6567-45c6-9667-6e15a4f16842n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net Q+ihmH1+Xqrrby/Cn/+U4wmqgaCQDvMbHlafdQ1EYBoErTWZBz
Cancel-Lock: sha1:IEnPkI3IEh6rt8F38h4qEqUZme0=
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:91.0)
Gecko/20100101 Thunderbird/91.10.0
Content-Language: fr
In-Reply-To: <69d0e789-6567-45c6-9667-6e15a4f16842n@googlegroups.com>
 by: pehache - Fri, 24 Jun 2022 06:22 UTC

Le 23/06/2022 à 14:21, Robin Vowels a écrit :

>
> The point of using the kind system is that you don't need to know in advance
> what kinds are available. SELECTED_REAL_KIND helps to do that.

I get that, and that's not my point.

--
"...sois ouvert aux idées des autres pour peu qu'elles aillent dans le
même sens que les tiennes.", ST sur fr.bio.medecine
ST passe le mur du çon : <j3nn2hFmqj7U1@mid.individual.net>

Pages:12345
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor