🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.folklore.computers
533 messages
533 total messages Page 1 of 11 Started by Johann 'Myrkraverk' Oskarsson Wed, 14 Oct 2026 11:59
Page 1 of 11 • 533 total messages
Re: “The end of software secrecy is almost upon us"
#1
Author: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 11:59
41 lines
3064 bytes
On 10/14/2026 7:37 PM, De ongekruisigde ds. wrote:
>> Yeah, that one boggles the mind.  Why transpile from Pascal to Rust?
> 
> To bring it into the realm of modern, maintainable software?

Yes, that's a fair question.  And to answer it, I bring your attention
to page 46, section 2.1, /Introduction/, in

   /Data Structures/
   /With Abstract Data Types and Pascal/

published in 1985, written by Stubbs and Webre.

   Chapter 2 deals with an atomic data type and two structured data types
   that will form the basis for representing and implementing almost all
   of the more complex data structures that we shall study.  The atomic
   type is pointer, and the structured types are arrays and records.
   Their occurrences as built-in data types in most modern general-pur-
   pose programming languages such as C, Pascal, Ada, Mesa, Modula-2, and
   PL/I attest to their fundamental nature.  They are at a lower level of
   abstraction than the other data structures we shall study.
       This chapter also introduces linked list data structures.  This is
   done for tow reasons.  First, linked lists illustrate how pointers are
   used to construct linked data structures.  Second, they serve as a re-
   view on the use of Pascal pointers.

And I cannot imagine anything more modern and maintainable than that.

Do you?


PostScript.

% I took the liberty of including alt.folklore.computers, in case some-
% one there wants to comment on a better book on data structures,
% Pascal, and maintainable software.
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Re: “The end of software secrecy is almost upon us"
#2
Author: Peter Flass
Date: Wed, 14 Oct 2026 14:35
49 lines
3714 bytes
On 10/14/26 04:59, Johann 'Myrkraverk' Oskarsson wrote:
> On 10/14/2026 7:37 PM, De ongekruisigde ds. wrote:
>>> Yeah, that one boggles the mind.  Why transpile from Pascal to Rust?
>>
>> To bring it into the realm of modern, maintainable software?
> 
> Yes, that's a fair question.  And to answer it, I bring your attention
> to page 46, section 2.1, /Introduction/, in
> 
>    /Data Structures/
>    /With Abstract Data Types and Pascal/
> 
> published in 1985, written by Stubbs and Webre.
> 
>    Chapter 2 deals with an atomic data type and two structured data types
>    that will form the basis for representing and implementing almost all
>    of the more complex data structures that we shall study.  The atomic
>    type is pointer, and the structured types are arrays and records.
>    Their occurrences as built-in data types in most modern general-pur-
>    pose programming languages such as C, Pascal, Ada, Mesa, Modula-2, and
>    PL/I attest to their fundamental nature.  They are at a lower level of
>    abstraction than the other data structures we shall study.
>        This chapter also introduces linked list data structures.  This is
>    done for tow reasons.  First, linked lists illustrate how pointers are
>    used to construct linked data structures.  Second, they serve as a re-
>    view on the use of Pascal pointers.
> 
> And I cannot imagine anything more modern and maintainable than that.
> 
> Do you?
> 
> 
> PostScript.
> 
> % I took the liberty of including alt.folklore.computers, in case some-
> % one there wants to comment on a better book on data structures,
> % Pascal, and maintainable software.

[added in comp.lang.pl1]

I'm not a Pascal programmer, but the Pascal code is inherently 
maintainable. The problem is that "everyone" has decided that Pascal, 
like PL/I, is "outdated", so no one bothers to learn it any more. I've 
looked at Free Pascal and it's an amazing language and an amazing 
compiler from what I could see.

I don't know anything about Rust, but C is a half-step lower than Pascal 
in readability and maintainability. The only problem I ever had with 
Pascal is that after starting with PL/I it felt like a step backwards.
Re: Re: “The end of software secrecy is almost upon us"
#3
Author: Scott Dorsey
Date: Wed, 14 Oct 2026 15:57
34 lines
2447 bytes
Peter Flass  <Peter@Iron-Spring.com> wrote:
>
>I'm not a Pascal programmer, but the Pascal code is inherently 
>maintainable. The problem is that "everyone" has decided that Pascal, 
>like PL/I, is "outdated", so no one bothers to learn it any more. I've 
>looked at Free Pascal and it's an amazing language and an amazing 
>compiler from what I could see.

Pascal is a teaching language with a lot of restrictions on it, basically
designed to be a more flexible Algol.  

As such, it's not really usable as a development language without extensions,
and everybody's extensions are different.  The Borland extensions are really
good, though, and make Pascal into an excellent development language.

The Delphi extensions were good too... but they were different and not
compatible with the Borland extensions.

The nice thing about Pascal is the restrictions.  It is possible to hurt
yourself with pointers in Pascal, but nowhere near as easily as with C.

>I don't know anything about Rust, but C is a half-step lower than Pascal 
>in readability and maintainability. The only problem I ever had with 
>Pascal is that after starting with PL/I it felt like a step backwards.

I would consider C more than one step lower in terms of readability and
maintainability.

PL/1 was too big for its own sake.... it was so large and so extended that
everyone programmed in their own personal subset which made programmers
reading one another's code difficult.  Ada took this problem and made it
far worse.
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon us"
#4
Author: Cryptoengineer
Date: Wed, 14 Oct 2026 17:07
39 lines
3191 bytes
On 10/14/2026 7:59 AM, Johann 'Myrkraverk' Oskarsson wrote:
> On 10/14/2026 7:37 PM, De ongekruisigde ds. wrote:
>>> Yeah, that one boggles the mind.  Why transpile from Pascal to Rust?
>>
>> To bring it into the realm of modern, maintainable software?
> 
> Yes, that's a fair question.  And to answer it, I bring your attention
> to page 46, section 2.1, /Introduction/, in
> 
>    /Data Structures/
>    /With Abstract Data Types and Pascal/
> 
> published in 1985, written by Stubbs and Webre.
> 
>    Chapter 2 deals with an atomic data type and two structured data types
>    that will form the basis for representing and implementing almost all
>    of the more complex data structures that we shall study.  The atomic
>    type is pointer, and the structured types are arrays and records.
>    Their occurrences as built-in data types in most modern general-pur-
>    pose programming languages such as C, Pascal, Ada, Mesa, Modula-2, and
>    PL/I attest to their fundamental nature.  They are at a lower level of
>    abstraction than the other data structures we shall study.
>        This chapter also introduces linked list data structures.  This is
>    done for tow reasons.  First, linked lists illustrate how pointers are
>    used to construct linked data structures.  Second, they serve as a re-
>    view on the use of Pascal pointers.
> 
> And I cannot imagine anything more modern and maintainable than that.
> 
> Do you?
Depends on the documentation and comments.

I spent the first third of my career writing, maintaining, and
extending software in procedural languages, C, Modula-2, Pascal
(various versions).

"You can write FORTRAN in any language."

pt
Re: “The end of software secrecy is almost upon us"
#5
Author: Gary Scott
Date: Wed, 14 Oct 2026 19:04
44 lines
3410 bytes
On 10/14/2026 12:07 PM, Cryptoengineer wrote:
> On 10/14/2026 7:59 AM, Johann 'Myrkraverk' Oskarsson wrote:
>> On 10/14/2026 7:37 PM, De ongekruisigde ds. wrote:
>>>> Yeah, that one boggles the mind.  Why transpile from Pascal to Rust?
>>>
>>> To bring it into the realm of modern, maintainable software?
>>
>> Yes, that's a fair question.  And to answer it, I bring your attention
>> to page 46, section 2.1, /Introduction/, in
>>
>>    /Data Structures/
>>    /With Abstract Data Types and Pascal/
>>
>> published in 1985, written by Stubbs and Webre.
>>
>>    Chapter 2 deals with an atomic data type and two structured data types
>>    that will form the basis for representing and implementing almost all
>>    of the more complex data structures that we shall study.  The atomic
>>    type is pointer, and the structured types are arrays and records.
>>    Their occurrences as built-in data types in most modern general-pur-
>>    pose programming languages such as C, Pascal, Ada, Mesa, Modula-2, and
>>    PL/I attest to their fundamental nature.  They are at a lower level of
>>    abstraction than the other data structures we shall study.
>>        This chapter also introduces linked list data structures.  This is
>>    done for tow reasons.  First, linked lists illustrate how pointers are
>>    used to construct linked data structures.  Second, they serve as a re-
>>    view on the use of Pascal pointers.
>>
>> And I cannot imagine anything more modern and maintainable than that.
>>
>> Do you?
> Depends on the documentation and comments.
> 
> I spent the first third of my career writing, maintaining, and
> extending software in procedural languages, C, Modula-2, Pascal
> (various versions).
> 
> "You can write FORTRAN in any language."
> 

And you can write high quality code in Fortran more so with modern versions.

> pt
Re: “The end of software secrecy is almost upon us"
#6
Author: Charlie Gibbs
Date: Wed, 14 Oct 2026 19:34
15 lines
1572 bytes
On 2026-10-14, Gary Scott <garylscott@sbcglobal.net> wrote:

> On 10/14/2026 12:07 PM, Cryptoengineer wrote:
>
>> "You can write FORTRAN in any language."
>
> And you can write high quality code in Fortran more so with modern versions.

Unfortunately, you can also write crappy code in any lanuage.

-- 
/~\  Charlie Gibbs                  |  In this world there are
\ /  <cgibbs@kltpzyxm.invalid>      |  two kinds of people:
 X   I'm really at ac.dekanfrus     |  1. Those who can extrapolate
/ \  if you read it the right way.  |  from incomplete data.
Re: “The end of software secrecy is almost upon us"
#7
Author: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 21:55
22 lines
2189 bytes
On 10/15/2026 3:34 AM, Charlie Gibbs wrote:
> On 2026-10-14, Gary Scott <garylscott@sbcglobal.net> wrote:
> 
>> On 10/14/2026 12:07 PM, Cryptoengineer wrote:
>>
>>> "You can write FORTRAN in any language."
>>
>> And you can write high quality code in Fortran more so with modern versions.
> 
> Unfortunately, you can also write crappy code in any lanuage.
> 

I believe people are already complaining about not understanding the
modern dialects of both C++ and Rust.

So, to give credit where credit is due, it seems Stroustrup brought back
incomprehensibility.  He just took the long way about it.
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Re: Re: “The end of software secrecy is almost upon us"
#8
Author: Ted Nolan <tednolan>
Date: Wed, 14 Oct 2026 22:11
28 lines
1964 bytes
In article <8TSzS.2$uT_8.0@fx11.ams4>,
Johann 'Myrkraverk' Oskarsson  <johann@myrkraverk.invalid> wrote:
>On 10/15/2026 3:34 AM, Charlie Gibbs wrote:
>> On 2026-10-14, Gary Scott <garylscott@sbcglobal.net> wrote:
>> 
>>> On 10/14/2026 12:07 PM, Cryptoengineer wrote:
>>>
>>>> "You can write FORTRAN in any language."
>>>
>>> And you can write high quality code in Fortran more so with modern versions.
>> 
>> Unfortunately, you can also write crappy code in any lanuage.
>> 
>
>I believe people are already complaining about not understanding the
>modern dialects of both C++ and Rust.
>
>So, to give credit where credit is due, it seems Stroustrup brought back
>incomprehensibility.  He just took the long way about it.

	"There's an old story about the person who wished his
	computer were as easy to use as his telephone.  That wish
	has come true, since I no longer know how to use my telephone."
	-- B. Stroustrup, AT&T, (inventor of C++)

-- 
columbiaclosings.com
What's not in Columbia anymore..
Re: “The end of software secrecy is almost upon us"
#9
Author: Lawrence D’Oliveiro
Date: Wed, 14 Oct 2026 23:02
9 lines
1665 bytes
On Wed, 14 Oct 2026 07:35:41 -0700, Peter Flass wrote:

> The only problem I ever had with Pascal is that after starting with
> PL/I it felt like a step backwards.

PL/I had structures modelled on COBOL though, didn’t it. In other
words, crap. Also pointer handling was unwieldy.

And also, no typedefs.
Re: “The end of software secrecy is almost upon us"
#10
Author: Peter Flass
Date: Wed, 14 Oct 2026 23:11
16 lines
2197 bytes
On 10/14/26 16:02, Lawrence D’Oliveiro wrote:
> On Wed, 14 Oct 2026 07:35:41 -0700, Peter Flass wrote:
> 
>> The only problem I ever had with Pascal is that after starting with
>> PL/I it felt like a step backwards.
> 
> PL/I had structures modelled on COBOL though, didn’t it. In other
> words, crap. Also pointer handling was unwieldy.
> 
> And also, no typedefs.

I think PL/I and COBOL structures are much more readable than C or 
Pascal. Pointer handling is less cumbersom than C, which sometimes 
requires lots and lots of casts. For structures I convert C's typedefs 
by declaring a base_structure, for example "some_structure_type" and 
then declaring instances "structure_instance like some_structure_type".
Re: “The end of software secrecy is almost upon us"
#11
Author: Keith Thompson
Date: Wed, 14 Oct 2026 23:36
24 lines
2478 bytes
Peter Flass <Peter@Iron-Spring.com> writes:
> On 10/14/26 16:02, Lawrence D’Oliveiro wrote:
>> On Wed, 14 Oct 2026 07:35:41 -0700, Peter Flass wrote:
>>> The only problem I ever had with Pascal is that after starting with
>>> PL/I it felt like a step backwards.
>> PL/I had structures modelled on COBOL though, didn’t it. In other
>> words, crap. Also pointer handling was unwieldy.
>> And also, no typedefs.
>
> I think PL/I and COBOL structures are much more readable than C or
> Pascal. Pointer handling is less cumbersom than C, which sometimes
> requires lots and lots of casts.

If you're using lots and lots of pointer casts in C, either you're
writing some very low-level code or you're probably doing something
wrong.  If you find that you need to cast a pointer of type foo* to
bar*, consider that perhaps it should have been of type bar* in the
first place.

[...]

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Re: “The end of software secrecy is almost upon us"
#13
Author: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 23:47
31 lines
2764 bytes
On 10/15/2026 7:36 AM, Keith Thompson wrote:
> Peter Flass <Peter@Iron-Spring.com> writes:
>> On 10/14/26 16:02, Lawrence D’Oliveiro wrote:
>>> On Wed, 14 Oct 2026 07:35:41 -0700, Peter Flass wrote:
>>>> The only problem I ever had with Pascal is that after starting with
>>>> PL/I it felt like a step backwards.
>>> PL/I had structures modelled on COBOL though, didn’t it. In other
>>> words, crap. Also pointer handling was unwieldy.
>>> And also, no typedefs.
>>
>> I think PL/I and COBOL structures are much more readable than C or
>> Pascal. Pointer handling is less cumbersom than C, which sometimes
>> requires lots and lots of casts.
> 
> If you're using lots and lots of pointer casts in C, either you're
> writing some very low-level code or you're probably doing something
> wrong.  If you find that you need to cast a pointer of type foo* to
> bar*, consider that perhaps it should have been of type bar* in the
> first place.
> 
> [...]
> 

Please forgive Keith, he likes to come across as an experience C pro-
grammer, but seems to have neglected to implement his very own /abstract
data type/ with void *s in C.
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Re: “The end of software secrecy is almost upon us"
#12
Author: Lawrence D’Oliveiro
Date: Thu, 15 Oct 2026 00:22
33 lines
2593 bytes
On Wed, 14 Oct 2026 16:11:47 -0700, Peter Flass wrote:

> On 10/14/26 16:02, Lawrence D’Oliveiro wrote:
>>
>> On Wed, 14 Oct 2026 07:35:41 -0700, Peter Flass wrote:
>>
>>> The only problem I ever had with Pascal is that after starting with
>>> PL/I it felt like a step backwards.
>>
>> PL/I had structures modelled on COBOL though, didn’t it. In other
>> words, crap. Also pointer handling was unwieldy.
>>
>> And also, no typedefs.
>
> I think PL/I and COBOL structures are much more readable than C or
> Pascal.

Nobody else seems to agree.

> Pointer handling is less cumbersom than C, which sometimes
> requires lots and lots of casts.

Casts are only needed because of type incompatibilities. There is also
an issue with C syntax being backwards compared to Pascal, but you
didn’t raise that.

> For structures I convert C's typedefs by declaring a base_structure,
> for example "some_structure_type" and then declaring instances
> "structure_instance like some_structure_type".

The need for “like” means you have to have at least one instance,
which somehow becomes the “canonical” instance. What’s so special
about it?
Re: Re: “The end of software secrecy is almost upon us"
#15
Author: Scott Dorsey
Date: Thu, 15 Oct 2026 00:42
9 lines
1255 bytes
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.
--scott
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon us"
#14
Author: Lynn McGuire
Date: Thu, 15 Oct 2026 02:43
13 lines
1944 bytes
On 10/14/2026 7:42 PM, Scott Dorsey wrote:
> 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.
> --scott

Somewhere, I feel a disturbance in the Force...

Lynn
Re: “The end of software secrecy is almost upon us"
#16
Author: Peter Flass
Date: Thu, 15 Oct 2026 03:25
36 lines
2869 bytes
On 10/14/26 17:22, Lawrence D’Oliveiro wrote:
> On Wed, 14 Oct 2026 16:11:47 -0700, Peter Flass wrote:
> 
>> On 10/14/26 16:02, Lawrence D’Oliveiro wrote:
>>>
>>> On Wed, 14 Oct 2026 07:35:41 -0700, Peter Flass wrote:
>>>
>>>> The only problem I ever had with Pascal is that after starting with
>>>> PL/I it felt like a step backwards.
>>>
>>> PL/I had structures modelled on COBOL though, didn’t it. In other
>>> words, crap. Also pointer handling was unwieldy.
>>>
>>> And also, no typedefs.
>>
>> I think PL/I and COBOL structures are much more readable than C or
>> Pascal.
> 
> Nobody else seems to agree.
> 
>> Pointer handling is less cumbersom than C, which sometimes
>> requires lots and lots of casts.
> 
> Casts are only needed because of type incompatibilities. There is also
> an issue with C syntax being backwards compared to Pascal, but you
> didn’t raise that.
> 
>> For structures I convert C's typedefs by declaring a base_structure,
>> for example "some_structure_type" and then declaring instances
>> "structure_instance like some_structure_type".
> 
> The need for “like” means you have to have at least one instance,
> which somehow becomes the “canonical” instance. What’s so special
> about it?

What;s so special about a typedef. It's all just syntactical sugar.
Re: “The end of software secrecy is almost upon us"
#17
Author: Lawrence D’Oliveiro
Date: Thu, 15 Oct 2026 04:54
17 lines
2266 bytes
On Wed, 14 Oct 2026 20:25:33 -0700, Peter Flass wrote:

> On 10/14/26 17:22, Lawrence D’Oliveiro wrote:
>>
>> The need for “like” means you have to have at least one instance,
>> which somehow becomes the “canonical” instance. What’s so special
>> about it?
>
> What;s so special about a typedef. It's all just syntactical sugar.

So how do you write your code without it? Do you create some
“canonical” variable that is referenced only for “like” purposes, its
storage is not actually used for anything -- wasted if not optimized
away? Or do you add this role to some variable that is actually used
to store values? Which means changes are needed to all “like” clauses
referencing that variable, if it should be refactored out of
existence?
Re: “The end of software secrecy is almost upon us"
#19
Author: Keith Thompson
Date: Thu, 15 Oct 2026 05:50
23 lines
2660 bytes
Lawrence D’Oliveiro <ldo@nz.invalid> writes:
> On Wed, 14 Oct 2026 20:25:33 -0700, Peter Flass wrote:
>> On 10/14/26 17:22, Lawrence D’Oliveiro wrote:
>>> The need for “like” means you have to have at least one instance,
>>> which somehow becomes the “canonical” instance. What’s so special
>>> about it?
>>
>> What;s so special about a typedef. It's all just syntactical sugar.
>
> So how do you write your code without it? Do you create some
> “canonical” variable that is referenced only for “like” purposes, its
> storage is not actually used for anything -- wasted if not optimized
> away? Or do you add this role to some variable that is actually used
> to store values? Which means changes are needed to all “like” clauses
> referencing that variable, if it should be refactored out of
> existence?

This discussion is excessively cross-posted.  If I knew which
language has this "like" feature, it would be easier to discuss it.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Re: “The end of software secrecy is almost upon us"
#18
Author: Peter Flass
Date: Thu, 15 Oct 2026 14:26
21 lines
2575 bytes
On 10/14/26 21:54, Lawrence D’Oliveiro wrote:
> On Wed, 14 Oct 2026 20:25:33 -0700, Peter Flass wrote:
> 
>> On 10/14/26 17:22, Lawrence D’Oliveiro wrote:
>>>
>>> The need for “like” means you have to have at least one instance,
>>> which somehow becomes the “canonical” instance. What’s so special
>>> about it?
>>
>> What;s so special about a typedef. It's all just syntactical sugar.
> 
> So how do you write your code without it? Do you create some
> “canonical” variable that is referenced only for “like” purposes, its
> storage is not actually used for anything -- wasted if not optimized
> away? Or do you add this role to some variable that is actually used
> to store values? Which means changes are needed to all “like” clauses
> referencing that variable, if it should be refactored out of
> existence?

This is a PL/I BASED variable, for which no storage is used unless it is 
allocated. Essentially it's a typedef struct.
Re: Re: “The end of software secrecy is almost upon us"
#20
Author: Scott Dorsey
Date: Thu, 15 Oct 2026 15:22
17 lines
1465 bytes
Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>On 10/14/2026 7:42 PM, Scott Dorsey wrote:
>> 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.
>
>Somewhere, I feel a disturbance in the Force...

CHECK DAYFILE FOR ERRORS
REVERT,ABORT.CCL
--scott

-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon us"
#21
Author: Gary Scott
Date: Thu, 15 Oct 2026 15:40
10 lines
1994 bytes
On 10/14/2026 7:42 PM, Scott Dorsey wrote:
> 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.
> --scott
So don't use them.  "High quality" code is a bit subjective.  Define the 
standards to be used and use them.
Re: “The end of software secrecy is almost upon us"
#22
Author: Lawrence D’Oliveiro
Date: Thu, 15 Oct 2026 21:14
26 lines
2683 bytes
On Thu, 15 Oct 2026 07:26:11 -0700, Peter Flass wrote:

> On 10/14/26 21:54, Lawrence D’Oliveiro wrote:
>>
>> On Wed, 14 Oct 2026 20:25:33 -0700, Peter Flass wrote:
>>
>>> On 10/14/26 17:22, Lawrence D’Oliveiro wrote:
>>>>
>>>> The need for “like” means you have to have at least one instance,
>>>> which somehow becomes the “canonical” instance. What’s so special
>>>> about it?
>>>
>>> What;s so special about a typedef. It's all just syntactical sugar.
>>
>> So how do you write your code without it? Do you create some
>> “canonical” variable that is referenced only for “like” purposes,
>> its storage is not actually used for anything -- wasted if not
>> optimized away? Or do you add this role to some variable that is
>> actually used to store values? Which means changes are needed to
>> all “like” clauses referencing that variable, if it should be
>> refactored out of existence?
>
> This is a PL/I BASED variable, for which no storage is used unless
> it is allocated. Essentially it's a typedef struct.

It’s not a typedef unless you can have more than one variable.
Re: “The end of software secrecy is almost upon us"
#24
Author: Peter Flass
Date: Thu, 15 Oct 2026 21:21
29 lines
2907 bytes
On 10/15/26 14:14, Lawrence D’Oliveiro wrote:
> On Thu, 15 Oct 2026 07:26:11 -0700, Peter Flass wrote:
> 
>> On 10/14/26 21:54, Lawrence D’Oliveiro wrote:
>>>
>>> On Wed, 14 Oct 2026 20:25:33 -0700, Peter Flass wrote:
>>>
>>>> On 10/14/26 17:22, Lawrence D’Oliveiro wrote:
>>>>>
>>>>> The need for “like” means you have to have at least one instance,
>>>>> which somehow becomes the “canonical” instance. What’s so special
>>>>> about it?
>>>>
>>>> What;s so special about a typedef. It's all just syntactical sugar.
>>>
>>> So how do you write your code without it? Do you create some
>>> “canonical” variable that is referenced only for “like” purposes,
>>> its storage is not actually used for anything -- wasted if not
>>> optimized away? Or do you add this role to some variable that is
>>> actually used to store values? Which means changes are needed to
>>> all “like” clauses referencing that variable, if it should be
>>> refactored out of existence?
>>
>> This is a PL/I BASED variable, for which no storage is used unless
>> it is allocated. Essentially it's a typedef struct.
> 
> It’s not a typedef unless you can have more than one variable.

You can have as many a you want.
Re: “The end of software secrecy is almost upon us"
#23
Author: Lawrence D’Oliveiro
Date: Thu, 15 Oct 2026 21:41
37 lines
3128 bytes
On Thu, 15 Oct 2026 14:21:31 -0700, Peter Flass wrote:

> On 10/15/26 14:14, Lawrence D’Oliveiro wrote:
>>
>> On Thu, 15 Oct 2026 07:26:11 -0700, Peter Flass wrote:
>>
>>> On 10/14/26 21:54, Lawrence D’Oliveiro wrote:
>>>>
>>>> On Wed, 14 Oct 2026 20:25:33 -0700, Peter Flass wrote:
>>>>
>>>>> On 10/14/26 17:22, Lawrence D’Oliveiro wrote:
>>>>>>
>>>>>> The need for “like” means you have to have at least one instance,
>>>>>> which somehow becomes the “canonical” instance. What’s so special
>>>>>> about it?
>>>>>
>>>>> What;s so special about a typedef. It's all just syntactical sugar.
>>>>
>>>> So how do you write your code without it? Do you create some
>>>> “canonical” variable that is referenced only for “like” purposes,
>>>> its storage is not actually used for anything -- wasted if not
>>>> optimized away? Or do you add this role to some variable that is
>>>> actually used to store values? Which means changes are needed to
>>>> all “like” clauses referencing that variable, if it should be
>>>> refactored out of existence?
>>>
>>> This is a PL/I BASED variable, for which no storage is used unless
>>> it is allocated. Essentially it's a typedef struct.
>>
>> It’s not a typedef unless you can have more than one variable.
>
> You can have as many a you want.

Multiple “BASED” variables? Isn’t that the same problem as with “LIKE”
-- “BASED” on what? A canonical template variable? Or one that is in
actual use?
Re: “The end of software secrecy is almost upon us"
#26
Author: Keith Thompson
Date: Thu, 15 Oct 2026 23:29
30 lines
3042 bytes
Lawrence D’Oliveiro <ldo@nz.invalid> writes:
> On Thu, 15 Oct 2026 07:26:11 -0700, Peter Flass wrote:
>> On 10/14/26 21:54, Lawrence D’Oliveiro wrote:
>>> On Wed, 14 Oct 2026 20:25:33 -0700, Peter Flass wrote:
>>>> On 10/14/26 17:22, Lawrence D’Oliveiro wrote:
>>>>> The need for “like” means you have to have at least one instance,
>>>>> which somehow becomes the “canonical” instance. What’s so special
>>>>> about it?
>>>>
>>>> What;s so special about a typedef. It's all just syntactical sugar.
>>>
>>> So how do you write your code without it? Do you create some
>>> “canonical” variable that is referenced only for “like” purposes,
>>> its storage is not actually used for anything -- wasted if not
>>> optimized away? Or do you add this role to some variable that is
>>> actually used to store values? Which means changes are needed to
>>> all “like” clauses referencing that variable, if it should be
>>> refactored out of existence?
>>
>> This is a PL/I BASED variable, for which no storage is used unless
>> it is allocated. Essentially it's a typedef struct.
>
> It’s not a typedef unless you can have more than one variable.

Lawrence, how familiar are you with PL/I?  Consider reading a PL/I
reference before making assumptions.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Re: “The end of software secrecy is almost upon us"
#25
Author: Thomas Koenig
Date: Sun, 18 Oct 2026 09:20
16 lines
2049 bytes
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 USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: “The end of software secrecy is almost upon us"
#27
Author: Scott Dorsey
Date: Sun, 18 Oct 2026 14:34
20 lines
1712 bytes
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.
--scott

-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon us"
#28
Author: Thomas Koenig
Date: Mon, 19 Oct 2026 06:57
34 lines
2867 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.
Re: “The end of software secrecy is almost upon us"
#29
Author: Scott Dorsey
Date: Mon, 19 Oct 2026 19:44
13 lines
1240 bytes
Thomas Koenig  <tkoenig@netcologne.de> wrote:
>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.

Don't ask me, I just fix this stuff.
--scott

-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon us"
#31
Author: Thomas Koenig
Date: Mon, 19 Oct 2026 20:09
19 lines
2017 bytes
Scott Dorsey <kludge@panix.com> schrieb:
> Thomas Koenig  <tkoenig@netcologne.de> wrote:
>>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.
>
> Don't ask me, I just fix this stuff.

Do you actually encounter such code?  Pointers in COMMON blocks
sounds extremely weird.  Or do you mean Cray pointers?
Do you have an example?

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: “The end of software secrecy is almost upon us"
#30
Author: Chris M. Thomasson
Date: Mon, 19 Oct 2026 20:09
11 lines
1902 bytes
On 10/19/2026 12:44 PM, Scott Dorsey wrote:
> Thomas Koenig  <tkoenig@netcologne.de> wrote:
>> 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.
> 
> Don't ask me, I just fix this stuff.
;^D
Re: “The end of software secrecy is almost upon us"
#32
Author: Lynn McGuire
Date: Mon, 19 Oct 2026 21:10
22 lines
2288 bytes
On 10/19/2026 3:09 PM, Thomas Koenig wrote:
> Scott Dorsey <kludge@panix.com> schrieb:
>> Thomas Koenig  <tkoenig@netcologne.de> wrote:
>>> 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.
>>
>> Don't ask me, I just fix this stuff.
> 
> Do you actually encounter such code?  Pointers in COMMON blocks
> sounds extremely weird.  Or do you mean Cray pointers?
> Do you have an example?

We have thousands of C pointers stored in Fortran common blocks.  That 
is one of the many reasons that I am converting my simulation software 
to C++.

Lynn
Re: “The end of software secrecy is almost upon us"
#33
Author: Scott Dorsey
Date: Mon, 19 Oct 2026 22:08
22 lines
1673 bytes
Thomas Koenig  <tkoenig@netcologne.de> wrote:
>Scott Dorsey <kludge@panix.com> schrieb:
>> Thomas Koenig  <tkoenig@netcologne.de> wrote:
>>>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.
>>
>> Don't ask me, I just fix this stuff.
>
>Do you actually encounter such code?  Pointers in COMMON blocks
>sounds extremely weird.  Or do you mean Cray pointers?

I encounter a LOT of code written by engineers who think they know about
new language features but don't really.  

But what they lose in missing comments, they make up for in spurious gotos.
--scott
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon us"
#34
Author: Lynn McGuire
Date: Mon, 19 Oct 2026 22:10
29 lines
2587 bytes
On 10/19/2026 5:08 PM, Scott Dorsey wrote:
> Thomas Koenig  <tkoenig@netcologne.de> wrote:
>> Scott Dorsey <kludge@panix.com> schrieb:
>>> Thomas Koenig  <tkoenig@netcologne.de> wrote:
>>>> 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.
>>>
>>> Don't ask me, I just fix this stuff.
>>
>> Do you actually encounter such code?  Pointers in COMMON blocks
>> sounds extremely weird.  Or do you mean Cray pointers?
> 
> I encounter a LOT of code written by engineers who think they know about
> new language features but don't really.
> 
> But what they lose in missing comments, they make up for in spurious gotos.
> --scott

One of the things that I am enjoying is that F2C gets rid of about 75% 
of the Fortran Gotos.  The remaining 25% Gotos usually make some sense. 
Ok, a little sense that any C or C++ programmer would have never used a 
goto there.

Lynn
Re: “The end of software secrecy is almost upon us"
#36
Author: Blaine
Date: Mon, 19 Oct 2026 22:26
53 lines
3858 bytes
Scott Dorsey wrote:
> Thomas Koenig  <tkoenig@netcologne.de> wrote:
>> Scott Dorsey <kludge@panix.com> schrieb:
>>> Thomas Koenig  <tkoenig@netcologne.de> wrote:
>>>> 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.
>>>
>>> Don't ask me, I just fix this stuff.
>>
>> Do you actually encounter such code?  Pointers in COMMON blocks
>> sounds extremely weird.  Or do you mean Cray pointers?
> 
> I encounter a LOT of code written by engineers who think they know about
> new language features but don't really.
> 
> But what they lose in missing comments, they make up for in spurious gotos.
> --scott
> 
Jim Geekie, EE, was my mate in graduate school. We also attended the 
same undergraduate university. He was quite averse to code. He decided 
to take a job offer before even completing his masters.

Jay, CE, was my mate in graduate school. We also attended the same 
undergraduate university. He was content to let me write the entire web 
browser for Microcomputers class. I think I paused from time to time in 
case he was going to write something but I went ahead. Unfortunately I 
had a big error: e.g. I thought you could do -7 % 10 and it would give 
you +3. Unfortunately at the time, a % b in c returns negative for 
negative a, except maybe in some zero cases.

I'm an engineer, but I completed a minor in computer science. I also was 
aiming high for a double major, including CS, but course load knocked me 
on my ass senior year.

I broke this habit of writing the entire project in my second group 
project at Northface University (now Neumont College in SLC, UT). After 
doing the entire first project myself, and getting embarrassed when one 
of the teachers mocked me for a small part of it, I was ready to work as 
a team on the second project.

I guess I take umbrage at your goto statement. I do nothing of the like.

-- 
Can you strip away so we may start again?
"There’s a switch and they don't
seem authentic or themselves. It
feels like I’m an unnecessary
body and it’s a waste of time to
even be there." -- Grim, playful Blaine.
Re: Re: “The end of software secrecy is almost upon us"
#37
Author: Scott Dorsey
Date: Mon, 19 Oct 2026 22:57
12 lines
1353 bytes
Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>One of the things that I am enjoying is that F2C gets rid of about 75% 
>of the Fortran Gotos.  The remaining 25% Gotos usually make some sense. 
>Ok, a little sense that any C or C++ programmer would have never used a 
>goto there.

It drives me up the wall when people use a goto to jump out of a do loop.
The compiler is doing so much cleanup work that the programmer never sees.
--scott

-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: Re: “The end of software secrecy is almost upon us"
#35
Author: Scott Dorsey
Date: Mon, 19 Oct 2026 23:01
16 lines
1371 bytes
Blaine  <cactus_DAC@yahoo.com> wrote:
>I guess I take umbrage at your goto statement. I do nothing of the like.

It gets worse than that.

> groovy::                      ; do that groovy thing
> 	.call_entry	max_args=33,home_args=true,preserve=<r3,r5>
> 	movl	(ap),r3       ; boogity boogity boogity
> 	moval	4(ap),r5      ; yeah, you got it baby
> 	ret                   ; go back and do it again
> 	.psect	idata,wrt,noexe,quad
> 	.align	quad
 
--scott
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon us"
#38
Author: Thomas Koenig
Date: Tue, 20 Oct 2026 05:28
15 lines
1994 bytes
Scott Dorsey <kludge@panix.com> schrieb:
> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>One of the things that I am enjoying is that F2C gets rid of about 75% 
>>of the Fortran Gotos.  The remaining 25% Gotos usually make some sense. 
>>Ok, a little sense that any C or C++ programmer would have never used a 
>>goto there.
>
> It drives me up the wall when people use a goto to jump out of a do loop.
> The compiler is doing so much cleanup work that the programmer never sees.

Again, care to give an example?
-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: “The end of software secrecy is almost upon us"
#39
Author: Titus G
Date: Tue, 20 Oct 2026 05:46
16 lines
2260 bytes
On 20/10/2026 18:28, Thomas Koenig wrote:
> Scott Dorsey <kludge@panix.com> schrieb:
>> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>> One of the things that I am enjoying is that F2C gets rid of about 75% 
>>> of the Fortran Gotos.  The remaining 25% Gotos usually make some sense. 
>>> Ok, a little sense that any C or C++ programmer would have never used a 
>>> goto there.
>>
>> It drives me up the wall when people use a goto to jump out of a do loop.
>> The compiler is doing so much cleanup work that the programmer never sees.
> 
> Again, care to give an example?

I thought that what was called Structured Programming became an
inviolable law when invented by whom I do not know but suspect that
bugger for the bottle or even earlier.
Re: “The end of software secrecy is almost upon us"
#40
Author: Lynn McGuire
Date: Tue, 20 Oct 2026 05:48
16 lines
2126 bytes
On 10/19/2026 5:57 PM, Scott Dorsey wrote:
> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>> One of the things that I am enjoying is that F2C gets rid of about 75%
>> of the Fortran Gotos.  The remaining 25% Gotos usually make some sense.
>> Ok, a little sense that any C or C++ programmer would have never used a
>> goto there.
> 
> It drives me up the wall when people use a goto to jump out of a do loop.
> The compiler is doing so much cleanup work that the programmer never sees.
> --scott

Why do you care about unseen work that the compiler is doing?  I 
guarantee that most programmers in these 64 bit days do not care.

Lynn
Re: Re: “The end of software secrecy is almost upon us"
#41
Author: Scott Dorsey
Date: Tue, 20 Oct 2026 13:39
19 lines
1705 bytes
Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>On 10/19/2026 5:57 PM, Scott Dorsey wrote:
>> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>> One of the things that I am enjoying is that F2C gets rid of about 75%
>>> of the Fortran Gotos.  The remaining 25% Gotos usually make some sense.
>>> Ok, a little sense that any C or C++ programmer would have never used a
>>> goto there.
>> 
>> It drives me up the wall when people use a goto to jump out of a do loop.
>> The compiler is doing so much cleanup work that the programmer never sees.
>
>Why do you care about unseen work that the compiler is doing?  I 
>guarantee that most programmers in these 64 bit days do not care.

Because I want my code to run fast!  I do very much seem to be in the 
minority today, it is true.
--scott
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon us"
#42
Author: Johann 'Myrkraverk' Oskarsson
Date: Tue, 20 Oct 2026 13:51
37 lines
3018 bytes
On 10/20/2026 9:39 PM, Scott Dorsey wrote:
> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>> On 10/19/2026 5:57 PM, Scott Dorsey wrote:
>>> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>>> One of the things that I am enjoying is that F2C gets rid of about 75%
>>>> of the Fortran Gotos.  The remaining 25% Gotos usually make some sense.
>>>> Ok, a little sense that any C or C++ programmer would have never used a
>>>> goto there.
>>>
>>> It drives me up the wall when people use a goto to jump out of a do loop.
>>> The compiler is doing so much cleanup work that the programmer never sees.
>>
>> Why do you care about unseen work that the compiler is doing?  I
>> guarantee that most programmers in these 64 bit days do not care.
> 
> Because I want my code to run fast!  I do very much seem to be in the
> minority today, it is true.
> --scott

I presume you're working on some /hot code/, and will comment according-
ly.

I've come across complaints -- that I don't have handy -- that compilers
sometimes under-optimize, or otherwise cannot be told to do the right
thing.  One memorable complaint was the inability of then-GCC to align
a specific loop to the cache -- I believe a 16 byte boundary -- it was
only everything -- with the resulting drop in performance everywhere
else -- or nothing because there was no #pragma nor [[attribute]] to say
/this loop needs to be cache aligned/.


What do you do in these circumstances?  Has this happened to you at all?
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Re: “The end of software secrecy is almost upon us"
#44
Author: Thomas Koenig
Date: Tue, 20 Oct 2026 15:50
14 lines
2131 bytes
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> schrieb:

> I've come across complaints -- that I don't have handy -- that compilers
> sometimes under-optimize, or otherwise cannot be told to do the right
> thing.

https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=SUSPENDED&bug_status=WAITING&bug_status=REOPENED&cf_known_to_fail_type=allwords&cf_known_to_work_type=allwords&keywords=missed-optimization%2C%20&keywords_type=allwords&limit=0&list_id=536399&order=priority%2Cbug_severity&query_format=advanced

gives you (as of now) 4588 exammples.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: “The end of software secrecy is almost upon us"
#43
Author: Thomas Koenig
Date: Tue, 20 Oct 2026 17:15
48 lines
3507 bytes
Lynn McGuire <lynnmcguire5@gmail.com> schrieb:
> On 10/19/2026 5:57 PM, Scott Dorsey wrote:
>> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>> One of the things that I am enjoying is that F2C gets rid of about 75%
>>> of the Fortran Gotos.  The remaining 25% Gotos usually make some sense.
>>> Ok, a little sense that any C or C++ programmer would have never used a
>>> goto there.
>> 
>> It drives me up the wall when people use a goto to jump out of a do loop.
>> The compiler is doing so much cleanup work that the programmer never sees.

I'd really like to know what that cleanup work is supposed to be (as
somebody who is involved with Fortran compiler development).

I am beginning to suspect that Scott is the only person in the
world who sees this supposed inefficiency.

>> --scott
>
> Why do you care about unseen work that the compiler is doing?  I 
> guarantee that most programmers in these 64 bit days do not care.

For very many problems, there is no need to be efficient - it very
certainly does not matter if a program that is executed once takes
0.01 s or 0.1s.

But the attitude of not caring about speed can have grave results
when the inefficiencies pile up.  People who use Python for
everything may find that instead of 0.1 s, their code suddenly
runs for hours, when it would need seconds in a compiled language.

Or look at the pile of resource-wasting junk like Microsoft
Teams runnig on top of the pile of resource-wasting junk called
Microsoft Windows.  Teams grabs a humungous amount of memory so 16
GB is borderline unusable in a commercial enviroment.  Makes the
recent memory price hike all the more interesting...

Don't know about your code, but I remember waiting a long time
for Aspen simulations... but then again, those diverge from
a converged solution, which shows that if Aspen has the first
clue about numerical methods, they are very good at hiding it.

I just hope your software is better, at least in that respect.

-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Re: “The end of software secrecy is almost upon us"
#46
Author: Cryptoengineer
Date: Tue, 20 Oct 2026 17:20
25 lines
2492 bytes
On 10/20/2026 1:46 AM, Titus G wrote:
> On 20/10/2026 18:28, Thomas Koenig wrote:
>> Scott Dorsey <kludge@panix.com> schrieb:
>>> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>>> One of the things that I am enjoying is that F2C gets rid of about 75%
>>>> of the Fortran Gotos.  The remaining 25% Gotos usually make some sense.
>>>> Ok, a little sense that any C or C++ programmer would have never used a
>>>> goto there.
>>>
>>> It drives me up the wall when people use a goto to jump out of a do loop.
>>> The compiler is doing so much cleanup work that the programmer never sees.
>>
>> Again, care to give an example?
> 
> I thought that what was called Structured Programming became an
> inviolable law when invented by whom I do not know but suspect that
> bugger for the bottle or even earlier.

ITYM:

Edgar Dijkstra: Go To Statement Considered Harmful

https://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.pdf

pt
Re: “The end of software secrecy is almost upon
#45
Author: boltar
Date: Tue, 20 Oct 2026 17:24
25 lines
2590 bytes
On Tue, 20 Oct 2026 17:15:28 -0000 (UTC)
Thomas Koenig <tkoenig@netcologne.de> wrote:
>Lynn McGuire <lynnmcguire5@gmail.com> schrieb:
>> On 10/19/2026 5:57 PM, Scott Dorsey wrote:
>>> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>>> One of the things that I am enjoying is that F2C gets rid of about 75%
>>>> of the Fortran Gotos.  The remaining 25% Gotos usually make some sense.
>>>> Ok, a little sense that any C or C++ programmer would have never used a
>>>> goto there.
>>> 
>>> It drives me up the wall when people use a goto to jump out of a do loop.
>>> The compiler is doing so much cleanup work that the programmer never sees.
>
>I'd really like to know what that cleanup work is supposed to be (as
>somebody who is involved with Fortran compiler development).

If C/C++ had multi level break and continue keywords goto would almost
never be needed**. There's no reason they can't be added - along with a lot of
other useful but basic fatures (eg non POD switch, native concatting numbers to 
std::string without calling to_string) - but I guess the committee are too busy
circle jerking with esoteric crap no one will ever use (eg concepts) to bother.

** The setting a flag method which has to be checked in every nested loop test 
   is just an assinine way to code.
Re: “The end of software secrecy is almost upon us"
#47
Author: Johann 'Myrkraverk' Oskarsson
Date: Tue, 20 Oct 2026 17:27
46 lines
3060 bytes
On 10/21/2026 1:20 AM, Cryptoengineer wrote:
> On 10/20/2026 1:46 AM, Titus G wrote:
>> On 20/10/2026 18:28, Thomas Koenig wrote:
>>> Scott Dorsey <kludge@panix.com> schrieb:
>>>> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>>>> One of the things that I am enjoying is that F2C gets rid of about 75%
>>>>> of the Fortran Gotos.  The remaining 25% Gotos usually make some 
>>>>> sense.
>>>>> Ok, a little sense that any C or C++ programmer would have never 
>>>>> used a
>>>>> goto there.
>>>>
>>>> It drives me up the wall when people use a goto to jump out of a do 
>>>> loop.
>>>> The compiler is doing so much cleanup work that the programmer never 
>>>> sees.
>>>
>>> Again, care to give an example?
>>
>> I thought that what was called Structured Programming became an
>> inviolable law when invented by whom I do not know but suspect that
>> bugger for the bottle or even earlier.
> 
> ITYM:
> 
> Edgar Dijkstra: Go To Statement Considered Harmful
> 
> https://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.pdf
> 
> pt

Some people think Michael Jackson invented structured programming, but
he merely wrote about it.

   https://en.wikipedia.org/wiki/Jackson_structured_programming

I admit not to have gotten myself a copy of /Principles of Program
Design/ but it's on my to-be-tsundoku list.


Best wishes, and happy structured programming!
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;
Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Re: Re: “The end of software secrecy is almost upon
#49
Author: boltar
Date: Tue, 20 Oct 2026 18:14
26 lines
2416 bytes
On Tue, 20 Oct 2026 13:20:40 -0400
Cryptoengineer <petertrei@gmail.com> wrote:
>On 10/20/2026 1:46 AM, Titus G wrote:
>> On 20/10/2026 18:28, Thomas Koenig wrote:
>>> Scott Dorsey <kludge@panix.com> schrieb:
>>>> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>>>> One of the things that I am enjoying is that F2C gets rid of about 75%
>>>>> of the Fortran Gotos.  The remaining 25% Gotos usually make some sense.
>>>>> Ok, a little sense that any C or C++ programmer would have never used a
>>>>> goto there.
>>>>
>>>> It drives me up the wall when people use a goto to jump out of a do loop.
>>>> The compiler is doing so much cleanup work that the programmer never sees.
>>>
>>> Again, care to give an example?
>> 
>> I thought that what was called Structured Programming became an
>> inviolable law when invented by whom I do not know but suspect that
>> bugger for the bottle or even earlier.
>
>ITYM:
>
>Edgar Dijkstra: Go To Statement Considered Harmful

A man who clearly never programmed in assembler.
Re: Re: “The end of software secrecy is almost upon
#48
Author: Scott Dorsey
Date: Tue, 20 Oct 2026 18:22
14 lines
1362 bytes
In article <11b8b2k$p44i$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>Cryptoengineer <petertrei@gmail.com> wrote:
>>Edgar Dijkstra: Go To Statement Considered Harmful
>
>A man who clearly never programmed in assembler.

I have seen a structured assembler class and it's actually not a bad way
to think at all.  Having LOOPZ and REP* and similar instructions make it 
easier to think about do loops.

The key to writing structured assembly is commenting.
--scott
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: Re: “The end of software secrecy is almost upon
#50
Author: boltar
Date: Tue, 20 Oct 2026 18:29
16 lines
1888 bytes
On Tue, 20 Oct 2026 14:22:02 -0400 (EDT)
kludge@panix.com (Scott Dorsey) wrote:
>In article <11b8b2k$p44i$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>>Cryptoengineer <petertrei@gmail.com> wrote:
>>>Edgar Dijkstra: Go To Statement Considered Harmful
>>
>>A man who clearly never programmed in assembler.
>
>I have seen a structured assembler class and it's actually not a bad way
>to think at all.  Having LOOPZ and REP* and similar instructions make it 
>easier to think about do loops.

Great if the cpu supports those sorts of instructions. Most however rely
on some version of jump-on-flag-set/not-set for flow of control apart from
call-ret.
Re: “The end of software secrecy is almost upon us"
#51
Author: William Hyde
Date: Tue, 20 Oct 2026 18:36
44 lines
3138 bytes
Cryptoengineer wrote:
> On 10/20/2026 1:46 AM, Titus G wrote:
>> On 20/10/2026 18:28, Thomas Koenig wrote:
>>> Scott Dorsey <kludge@panix.com> schrieb:
>>>> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>>>> One of the things that I am enjoying is that F2C gets rid of about 75%
>>>>> of the Fortran Gotos.  The remaining 25% Gotos usually make some 
>>>>> sense.
>>>>> Ok, a little sense that any C or C++ programmer would have never 
>>>>> used a
>>>>> goto there.
>>>>
>>>> It drives me up the wall when people use a goto to jump out of a do 
>>>> loop.
>>>> The compiler is doing so much cleanup work that the programmer never 
>>>> sees.
>>>
>>> Again, care to give an example?
>>
>> I thought that what was called Structured Programming became an
>> inviolable law when invented by whom I do not know but suspect that
>> bugger for the bottle or even earlier.
> 
> ITYM:
> 
> Edgar Dijkstra: Go To Statement Considered Harmful
> 
> https://homepages.cwi.nl/~storm/teaching/reader/Dijkstra68.pdf
>
First year computer science prof:

"When I first learned to program I thanked god for the goto statement. 
Now I hate the very sight of it".

Luckily I took German instead.

My own code was liberally festooned with goto statments, but as far as I 
can recall I never put a pointer in common.

Using goto to exit loops?  I can't recall doing that.  But I can't rule 
it out.

William Hyde
Page 1 of 11 • 533 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads