🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: rec.arts.sf.written
313 messages
313 total messages Page 1 of 7 Started by Lynn McGuire Wed, 14 Oct 2026 04:18
Page 1 of 7 • 313 total messages
“The end of software secrecy is almost upon us"
#14
Author: Lynn McGuire
Date: Wed, 14 Oct 2026 04:18
18 lines
2002 bytes
“The end of software secrecy is almost upon us. The death of closed 
source, and the final triumph of open source. ” -Eric S. Raymond.
    https://www.battleswarmblog.com/?p=73639

"I should have realized this a few months ago when I successfully 
decompiled the game of Firefighter from an ancient DOS shareware binary. 
My robot friend was able to tell it had been written in Borland Pascal 
from looking at the data layout; it gave me back very readable Pascal 
code with sensibly chosen function and variable names. I transpiled it 
to Rust and now ship it as part of my heritage games collection."

Huh, so somebody has actually built a decent decompiler.  Why do I doubt 
this even though ESR says otherwise?

And he has a translator from Borland Pascal to Rust?

Lynn
Re: “The end of software secrecy is almost upon us"
#16
Author: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 10:30
34 lines
2645 bytes
On 10/14/2026 12:18 PM, Lynn McGuire wrote:
> “The end of software secrecy is almost upon us. The death of closed 
> source, and the final triumph of open source. ” -Eric S. Raymond.
>     https://www.battleswarmblog.com/?p=73639
> 
> "I should have realized this a few months ago when I successfully 
> decompiled the game of Firefighter from an ancient DOS shareware binary. 
> My robot friend was able to tell it had been written in Borland Pascal 
> from looking at the data layout; it gave me back very readable Pascal 
> code with sensibly chosen function and variable names. I transpiled it 
> to Rust and now ship it as part of my heritage games collection."
> 
> Huh, so somebody has actually built a decent decompiler.  Why do I doubt 
> this even though ESR says otherwise?
> 
> And he has a translator from Borland Pascal to Rust?
> 
> Lynn

Yeah, that one boggles the mind.  Why transpile from Pascal to Rust?

I just don't see anything, not even this, as a /victory/ over closed
source.  Nor have I seen the promised "software quality" in open source.

I won't read the whole article now, so I may have more to say on this
subject at a later date.


Best wishes, and happy Pascal coding!
-- 
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
Transpiling from Pascal to Rust (was: Re: “The end of software secrecy is almost upon us")
#17
Author: Stefan Ram
Date: Wed, 14 Oct 2026 11:35
20 lines
2542 bytes
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> wrote or quoted:
>Yeah, that one boggles the mind.  Why transpile from Pascal to Rust?

  I can imagine many reasons. Maybe it helps to integrate a Pascal 
  library into a Rust project, or enables a Rust programmer who has
  never learned Pascal to read, use, and modify it.

>I just don't see anything, not even this, as a /victory/ over closed
>source.  Nor have I seen the promised "software quality" in open source.

  Today, chatbots can generate code quite well, but to get a high-
  quality software product their output or pull requests still re-
  quires human review and managment. So that might be a reason why
  the quality of the end products does not grow as much as the 
  amount of output chatbots produce grows.

Newsgroups: rec.arts.sf.written,comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust
Followup-To: alt.comp.lang.rust

Re: “The end of software secrecy is almost upon us"
#18
Author: De ongekruisigde ds.
Date: Wed, 14 Oct 2026 11:37
38 lines
2918 bytes
On 2026-10-14, Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> wrote:
> On 10/14/2026 12:18 PM, Lynn McGuire wrote:
>> “The end of software secrecy is almost upon us. The death of closed 
>> source, and the final triumph of open source. ” -Eric S. Raymond.
>>     https://www.battleswarmblog.com/?p=73639
>> 
>> "I should have realized this a few months ago when I successfully 
>> decompiled the game of Firefighter from an ancient DOS shareware binary. 
>> My robot friend was able to tell it had been written in Borland Pascal 
>> from looking at the data layout; it gave me back very readable Pascal 
>> code with sensibly chosen function and variable names. I transpiled it 
>> to Rust and now ship it as part of my heritage games collection."
>> 
>> Huh, so somebody has actually built a decent decompiler.  Why do I doubt 
>> this even though ESR says otherwise?
>> 
>> And he has a translator from Borland Pascal to Rust?
>> 
>> Lynn
>
> Yeah, that one boggles the mind.  Why transpile from Pascal to Rust?

To bring it into the realm of modern, maintainable software?


> I just don't see anything, not even this, as a /victory/ over closed
> source.  Nor have I seen the promised "software quality" in open source.
>
> I won't read the whole article now, so I may have more to say on this
> subject at a later date.
>
>
> Best wishes, and happy Pascal coding!


-- 
I am a disgrace to all possible and impossible universes and all
that is not a universe. -- Gemini AI
Re: “The end of software secrecy is almost upon us"
#19
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"
#20
Author: WolfFan
Date: Wed, 14 Oct 2026 12:52
36 lines
2884 bytes
On Oct 14, 2026, Johann 'Myrkraverk' Oskarsson wrote
(in article <VQIzS.207675$koK3.204253@fx01.ams4>):

> On 10/14/2026 12:18 PM, Lynn McGuire wrote:
> > “The end of software secrecy is almost upon us. The death of closed
> > source, and the final triumph of open source. ” -Eric S. Raymond.
> > https://www.battleswarmblog.com/?p=73639
> >
> > "I should have realized this a few months ago when I successfully
> > decompiled the game of Firefighter from an ancient DOS shareware binary.
> > My robot friend was able to tell it had been written in Borland Pascal
> > from looking at the data layout; it gave me back very readable Pascal
> > code with sensibly chosen function and variable names. I transpiled it
> > to Rust and now ship it as part of my heritage games collection."
> >
> > Huh, so somebody has actually built a decent decompiler. Why do I doubt
> > this even though ESR says otherwise?
> >
> > And he has a translator from Borland Pascal to Rust?
> >
> > Lynn
>
> Yeah, that one boggles the mind. Why transpile from Pascal to Rust?

Wake me when they can move FOTRAN IV programs to Rust.
>
>
> I just don't see anything, not even this, as a /victory/ over closed
> source. Nor have I seen the promised "software quality" in open source.
>
> I won't read the whole article now, so I may have more to say on this
> subject at a later date.
>
> Best wishes, and happy Pascal coding!

Re: “The end of software secrecy is almost upon us"
#21
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"
#22
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"
#24
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"
#25
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"
#23
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"
#28
Author: Chris M. Thomasson
Date: Wed, 14 Oct 2026 21:26
21 lines
2379 bytes
On 10/13/2026 9:18 PM, Lynn McGuire wrote:
> “The end of software secrecy is almost upon us. The death of closed 
> source, and the final triumph of open source. ” -Eric S. Raymond.
>     https://www.battleswarmblog.com/?p=73639
> 
> "I should have realized this a few months ago when I successfully 
> decompiled the game of Firefighter from an ancient DOS shareware binary. 
> My robot friend was able to tell it had been written in Borland Pascal 
> from looking at the data layout; it gave me back very readable Pascal 
> code with sensibly chosen function and variable names. I transpiled it 
> to Rust and now ship it as part of my heritage games collection."
> 
> Huh, so somebody has actually built a decent decompiler.  Why do I doubt 
> this even though ESR says otherwise?
> 
> And he has a translator from Borland Pascal to Rust?

The hackers already knew about that... Fwiw, check this out when you get 
some free time to burn:

http://dmweb.free.fr/community/documentation/copy-protection/copy-protection/
Re: “The end of software secrecy is almost upon us"
#29
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"
#31
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"
#30
Author: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 22:15
45 lines
3110 bytes
On 10/14/2026 8:52 PM, WolfFan wrote:
>>> And he has a translator from Borland Pascal to Rust?
>>>
>>> Lynn
>> Yeah, that one boggles the mind. Why transpile from Pascal to Rust?
> Wake me when they can move FOTRAN IV programs to Rust.

Now that is a great idea.  And would like to see -- before we tackle
this problem -- /arithmetic if/ in Rust.  It's a programming language
that has accumulated almost but not quite all control structures from
other programming languages, except the /arithmetic if/.

I am only a beginner in Rust, so I'm not sure what the syntax should
look like, but the application of an /arithmetic if/ with complete safe-
ty is too tempting.

As I understand it, Rust does not use the braces after if, unlike C, so
it could look something like -- using /Rust by Example/ as guide --
the following.

   if n < 10 && n > -10 left, middle, right ;
      /* .--------------^  */
      /* Lack of { here clearly points out this is /arithmetic if/. */

Where the /left/, /middle/, and /right/, are user defined labels, some-
where in the code.  There already is a macro that applies goto with com-
plete safety guarantees, so there is only a matter of time before it
shows up in the /rustc/ compiler proper.

   https://docs.rs/goto/latest/goto/

I imagine a /rustc/ provided labels, unlike this macro, would not need
the ' prefix, so I left them out.

It goes without saying that having this feature in the Rust programming
language allows easy and direct machine translation from Fortran IV to
Rust with /complete safety guarantees/.


Best wishes, and happy Fortran IV!
-- 
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"
#33
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"
#32
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
#34
Author: Richard
Date: Thu, 15 Oct 2026 14:56
30 lines
2274 bytes
Lynn McGuire <lynnmcguire5@gmail.com> spake the secret code
<11amvre$15far$1@dont-email.me> thusly:

>Huh, so somebody has actually built a decent decompiler.

It's been around for decades.  It's called Ida Pro.  The NSA published
an open source one called Ghidra.  It's actually not hard to recognize
the output of a particular compiler and reverse engineer stack frames,
arguments, etc.

What the LLM brings to the picture is speculating meaningful
datatypes, names, patterns, etc., on top of the mechanical
decompilation.

>Why do I doubt 
>this even though ESR says otherwise?

Maybe because you don't have experience with existing reverse
compilers (try Ghidra, since it's free) and LLMs?

>And he has a translator from Borland Pascal to Rust?

It's not like he converted to Prolog.  Mapping from one procedurally
oriented block structured language to another is not particularly
difficult.
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
            The Terminals Wiki <http://terminals-wiki.org>
     The Computer Graphics Museum <http://computergraphicsmuseum.org>
  Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
Re: “The end of software secrecy is almost upon us"
#35
Author: Scott Dorsey
Date: Thu, 15 Oct 2026 15:05
17 lines
1367 bytes
Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>Huh, so somebody has actually built a decent decompiler.  Why do I doubt 
>this even though ESR says otherwise?

Because decompiling some languages isn't that hard.  Humans can do it pretty
well, although it's harder for machines.  It helps a lot if you have a symbol
table (which it sounds like they did in the example ESR cites).

Now... that said... I wouldn't trust anything ESR ever says and I would not
hold him up as an authority.

>And he has a translator from Borland Pascal to Rust?

That seems like a step down, doesn't it?
--scott
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: Re: “The end of software secrecy is almost upon us"
#36
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"
#39
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
#42
Author: Lynn McGuire
Date: Thu, 15 Oct 2026 19:07
33 lines
2430 bytes
On 10/15/2026 9:56 AM, Richard wrote:
> Lynn McGuire <lynnmcguire5@gmail.com> spake the secret code
> <11amvre$15far$1@dont-email.me> thusly:
> 
>> Huh, so somebody has actually built a decent decompiler.
> 
> It's been around for decades.  It's called Ida Pro.  The NSA published
> an open source one called Ghidra.  It's actually not hard to recognize
> the output of a particular compiler and reverse engineer stack frames,
> arguments, etc.
> 
> What the LLM brings to the picture is speculating meaningful
> datatypes, names, patterns, etc., on top of the mechanical
> decompilation.
> 
>> Why do I doubt
>> this even though ESR says otherwise?
> 
> Maybe because you don't have experience with existing reverse
> compilers (try Ghidra, since it's free) and LLMs?
> 
>> And he has a translator from Borland Pascal to Rust?
> 
> It's not like he converted to Prolog.  Mapping from one procedurally
> oriented block structured language to another is not particularly
> difficult.

I tried Ida Pro several years ago.  It was crap.

I have never tried Ghidra.  Maybe someday.

Lynn
Re: “The end of software secrecy is almost upon us"
#43
Author: Lynn McGuire
Date: Thu, 15 Oct 2026 19:13
28 lines
2462 bytes
On 10/15/2026 10:05 AM, Scott Dorsey wrote:
> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>> Huh, so somebody has actually built a decent decompiler.  Why do I doubt
>> this even though ESR says otherwise?
> 
> Because decompiling some languages isn't that hard.  Humans can do it pretty
> well, although it's harder for machines.  It helps a lot if you have a symbol
> table (which it sounds like they did in the example ESR cites).
> 
> Now... that said... I wouldn't trust anything ESR ever says and I would not
> hold him up as an authority.
> 
>> And he has a translator from Borland Pascal to Rust?
> 
> That seems like a step down, doesn't it?
> --scott

Yes on the step down to Rust.  I wrote a lot of Turbo Pascal code back 
in the 1980s but I have to admit that I am a C++ fanboi through and 
through.  And at my age, it will hard to change my mind on that unless 
you are writing embedded code.

I have translated over 200,000 lines of Fortran 66/77 code to C++ this 
year so far.  Trying to get to 300,000 lines of Fortran 66/77 code 
before the end of the year.

Lynn
Re: The_end_of_software_secrecy_is_almost_upon_us
#44
Author: Ted Nolan <tednolan>
Date: Thu, 15 Oct 2026 19:18
39 lines
2263 bytes
In article <11ar89j$2mdpm$2@dont-email.me>,
Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>On 10/15/2026 9:56 AM, Richard wrote:
>> Lynn McGuire <lynnmcguire5@gmail.com> spake the secret code
>> <11amvre$15far$1@dont-email.me> thusly:
>> 
>>> Huh, so somebody has actually built a decent decompiler.
>> 
>> It's been around for decades.  It's called Ida Pro.  The NSA published
>> an open source one called Ghidra.  It's actually not hard to recognize
>> the output of a particular compiler and reverse engineer stack frames,
>> arguments, etc.
>> 
>> What the LLM brings to the picture is speculating meaningful
>> datatypes, names, patterns, etc., on top of the mechanical
>> decompilation.
>> 
>>> Why do I doubt
>>> this even though ESR says otherwise?
>> 
>> Maybe because you don't have experience with existing reverse
>> compilers (try Ghidra, since it's free) and LLMs?
>> 
>>> And he has a translator from Borland Pascal to Rust?
>> 
>> It's not like he converted to Prolog.  Mapping from one procedurally
>> oriented block structured language to another is not particularly
>> difficult.
>
>I tried Ida Pro several years ago.  It was crap.
>
>I have never tried Ghidra.  Maybe someday.
>

Turbo Pascal was kind of amazing.  Lightning fast compile on 8086, and
ran on oddball hardware like the DEC Rainbow.
-- 
columbiaclosings.com
What's not in Columbia anymore..
Re: The_end_of_software_secrecy_is_almost_upon_us
#46
Author: Lynn McGuire
Date: Thu, 15 Oct 2026 20:02
45 lines
3120 bytes
On 10/15/2026 2:18 PM, Ted Nolan <tednolan> wrote:
> In article <11ar89j$2mdpm$2@dont-email.me>,
> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>> On 10/15/2026 9:56 AM, Richard wrote:
>>> Lynn McGuire <lynnmcguire5@gmail.com> spake the secret code
>>> <11amvre$15far$1@dont-email.me> thusly:
>>>
>>>> Huh, so somebody has actually built a decent decompiler.
>>>
>>> It's been around for decades.  It's called Ida Pro.  The NSA published
>>> an open source one called Ghidra.  It's actually not hard to recognize
>>> the output of a particular compiler and reverse engineer stack frames,
>>> arguments, etc.
>>>
>>> What the LLM brings to the picture is speculating meaningful
>>> datatypes, names, patterns, etc., on top of the mechanical
>>> decompilation.
>>>
>>>> Why do I doubt
>>>> this even though ESR says otherwise?
>>>
>>> Maybe because you don't have experience with existing reverse
>>> compilers (try Ghidra, since it's free) and LLMs?
>>>
>>>> And he has a translator from Borland Pascal to Rust?
>>>
>>> It's not like he converted to Prolog.  Mapping from one procedurally
>>> oriented block structured language to another is not particularly
>>> difficult.
>>
>> I tried Ida Pro several years ago.  It was crap.
>>
>> I have never tried Ghidra.  Maybe someday.
>>
> 
> Turbo Pascal was kind of amazing.  Lightning fast compile on 8086, and
> ran on oddball hardware like the DEC Rainbow.

Turbo Pascal was freaking AWESOME.  The 1983 IDE (interactive 
development environment) was a revolutionary step ahead to this guy who 
started writing Fortran on key punch machines and a leased line 4800 
baud card reader / printer / teletype in 1975 connected to a Univac 1108.

Lynn
Re: “The end of software secrecy is almost upon us"
#57
Author: Jay Morris
Date: Fri, 16 Oct 2026 01:35
35 lines
2844 bytes
On 10/15/2026 2:13 PM, Lynn McGuire wrote:
> On 10/15/2026 10:05 AM, Scott Dorsey wrote:
>> Lynn McGuire  <lynnmcguire5@gmail.com> wrote:
>>> Huh, so somebody has actually built a decent decompiler.  Why do I doubt
>>> this even though ESR says otherwise?
>>
>> Because decompiling some languages isn't that hard.  Humans can do it 
>> pretty
>> well, although it's harder for machines.  It helps a lot if you have a 
>> symbol
>> table (which it sounds like they did in the example ESR cites).
>>
>> Now... that said... I wouldn't trust anything ESR ever says and I 
>> would not
>> hold him up as an authority.
>>
>>> And he has a translator from Borland Pascal to Rust?
>>
>> That seems like a step down, doesn't it?
>> --scott
> 
> Yes on the step down to Rust.  I wrote a lot of Turbo Pascal code back 
> in the 1980s but I have to admit that I am a C++ fanboi through and 
> through.  And at my age, it will hard to change my mind on that unless 
> you are writing embedded code.
> 
> I have translated over 200,000 lines of Fortran 66/77 code to C++ this 
> year so far.  Trying to get to 300,000 lines of Fortran 66/77 code 
> before the end of the year.
> 
> Lynn

Be sure to let us know, we'll throw a party.

Actually, I'm close enough that that's possible.
Re: “The end of software secrecy is almost upon us"
#142
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"
#150
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"
#214
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"
#263
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"
#265
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"
#264
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"
#276
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"
#287
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"
#288
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"
#286
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"
#289
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"
#291
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"
#300
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"
#304
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"
#305
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"
#319
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"
#321
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"
#328
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"
#335
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"
#336
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
#337
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"
#338
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
#339
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
#340
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: “The end of software secrecy is almost upon us"
#341
Author: William Hyde
Date: Tue, 20 Oct 2026 18:48
42 lines
3379 bytes
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.

We simply didn't have the computer resources to run my PhD code 
normally.  I spoke to more experienced programmers and learned many 
tricks to speed things up.  This probably knocked a year off my PhD, to 
the great benefit of my sanity and financial health.

And in climate modelling, these tricks proved useful again and again.  A 
month spent optimizing code could save a year on a big project. We were 
always pushing the limits of whatever our computers could do.


The first general circulation model I worked with was a spectral model 
using spherical harmonics out to order twenty or so.  The last went to 
order 178.  Give us a faster computer and we'll bog it down immediately.

Mind you the movie of the T178 storm tracks in the last ice age was a 
wonder to behold.

As a coder I was at best 3/10 in scientific code.  At accelerating 
scientific code, maybe 5.

At game development, 0.01.

William Hyde
Page 1 of 7 • 313 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