๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.rust
Article #45

Re: โ€œThe end of software secrecy is almost upon us"

#45
From: Thomas Koenig
Date: Mon, 19 Oct 2026 06:57
34 lines
3016 bytes
Scott Dorsey <kludge@panix.com> schrieb:
> Thomas Koenig  <tkoenig@netcologne.de> wrote:
>>Scott Dorsey <kludge@panix.com> schrieb:
>>> Gary Scott  <garylscott@sbcglobal.net> wrote:
>>>>And you can write high quality code in Fortran more so with modern versions.
>>>
>>> I am not sure I agree with that.  The matrix operations in f90 are wonderful
>>> and make compiler optimizations for vector machines so much easier.  But 
>>> pointers?  Engineers should never be trusted with pointers.
>>
>>You hardly need pointers in modern Fortran.  For very many, if
>>not most, use cases allocatable variables do the job just fine,
>>and the compiler does the memory management for you.
>
> This is true.  But that doesn't mean engineers won't use them.  And they will
> put them in common blocks so they can store something as a pointer and then
> read it as an integer.

Pointers in Fortran are more complicated than C pointers.
For rank-0 (scalar) variables, they are usually implemented as
addresses.  For other ranks, bounds information is included.  Plus,
Fortran does not do address arithmetic on pointers like C or C++.

But you can get at the internal representation of pointers via the
TRANSFER function, or you can pass them via the C interoperability
features.

Putting them in COMMON blocks and then accessing them via type
punning would be a useless thing to do.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Technical Details
Message-ID: <11b4f0o$1qt51$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11amvre$15far$1@dont-email.me> <11aojol$1otlp$1@dont-email.me> <11ap7hm$jf1$1@panix2.panix.com> <11b231j$vf2j$1@dont-email.me> <11b2ldc$5a9$1@panix2.panix.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Thomas Koenig <tkoenig@netcologne.de>
Newsgroups: rec.arts.sf.written,comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers
Subject: Re: โ€œThe end of software secrecy is almost upon
 us"
Date: Mon, 19 Oct 2026 06:57:28 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <11b4f0o$1qt51$1@dont-email.me>
References: <11amvre$15far$1@dont-email.me> <11aojol$1otlp$1@dont-email.me>
 <11ap7hm$jf1$1@panix2.panix.com> <11b231j$vf2j$1@dont-email.me>
 <11b2ldc$5a9$1@panix2.panix.com>
Injection-Date: Mon, 19 Oct 2026 06:57:28 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1930401"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/Ae4qFZETn0BnZAHgkCM6Q+q32pKG92cQ="; posting-host="ceacc5a02aa252f196a3e0a280f0ec67"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:IZHQABRwYvhFWQ/Ub3KZ6wprj3g= sha256:xiUQkQoQCsB+Q5XpMwgQ3bgxv5VcTk16a6kBDNq74UA=
	sha1:/VAlLvRU1nvAJYAIuCeTRkhsI7A= sha256:/BSPu+vGVhjUZVogfvRw+v2kOm4dzxQdljEVwpkcoKE=