Thread View: alt.comp.lang.rust
514 messages
514 total messages
Page 1 of 11
Started by Lynn McGuire
Wed, 14 Oct 2026 04:18
Page 1 of 11 • 514 total messages
“The end of software secrecy is almost upon us"
Author: Lynn McGuire
Date: Wed, 14 Oct 2026 04:18
Date: Wed, 14 Oct 2026 04:18
18 lines
2121 bytes
2121 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"
Author: De ongekruisigde ds.
Date: Wed, 14 Oct 2026 06:36
Date: Wed, 14 Oct 2026 06:36
32 lines
2321 bytes
2321 bytes
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? Are ye blind to the age of AI then? > And he has a translator from Borland Pascal to Rust? Again: AI > Lynn -- 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"
Author: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 10:30
Date: Wed, 14 Oct 2026 10:30
34 lines
2764 bytes
2764 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")
Author: Stefan Ram
Date: Wed, 14 Oct 2026 11:35
Date: Wed, 14 Oct 2026 11:35
20 lines
2661 bytes
2661 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"
Author: De ongekruisigde ds.
Date: Wed, 14 Oct 2026 11:37
Date: Wed, 14 Oct 2026 11:37
38 lines
3037 bytes
3037 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"
Author: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 11:59
Date: Wed, 14 Oct 2026 11:59
41 lines
3213 bytes
3213 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"
Author: WolfFan
Date: Wed, 14 Oct 2026 12:52
Date: Wed, 14 Oct 2026 12:52
36 lines
3003 bytes
3003 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"
Author: Peter Flass
Date: Wed, 14 Oct 2026 14:35
Date: Wed, 14 Oct 2026 14:35
49 lines
3883 bytes
3883 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"
Author: Scott Dorsey
Date: Wed, 14 Oct 2026 15:57
Date: Wed, 14 Oct 2026 15:57
34 lines
2616 bytes
2616 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"
Author: Cryptoengineer
Date: Wed, 14 Oct 2026 17:07
Date: Wed, 14 Oct 2026 17:07
39 lines
3340 bytes
3340 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"
Author: Gary Scott
Date: Wed, 14 Oct 2026 19:04
Date: Wed, 14 Oct 2026 19:04
44 lines
3559 bytes
3559 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"
Author: Charlie Gibbs
Date: Wed, 14 Oct 2026 19:34
Date: Wed, 14 Oct 2026 19:34
15 lines
1721 bytes
1721 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"
Author: Chris M. Thomasson
Date: Wed, 14 Oct 2026 21:26
Date: Wed, 14 Oct 2026 21:26
21 lines
2498 bytes
2498 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"
Author: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 21:55
Date: Wed, 14 Oct 2026 21:55
22 lines
2338 bytes
2338 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"
Author: Ted Nolan <tednolan>
Date: Wed, 14 Oct 2026 22:11
Date: Wed, 14 Oct 2026 22:11
28 lines
2113 bytes
2113 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"
Author: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 22:15
Date: Wed, 14 Oct 2026 22:15
45 lines
3229 bytes
3229 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: “The end of software secrecy is almost upon us"
Author: Lawrence D’Oliveiro
Date: Wed, 14 Oct 2026 23:02
Date: Wed, 14 Oct 2026 23:02
9 lines
1760 bytes
1760 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"
Author: Peter Flass
Date: Wed, 14 Oct 2026 23:11
Date: Wed, 14 Oct 2026 23:11
16 lines
2292 bytes
2292 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"
Author: Keith Thompson
Date: Wed, 14 Oct 2026 23:36
Date: Wed, 14 Oct 2026 23:36
24 lines
2573 bytes
2573 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"
Author: Johann 'Myrkraverk' Oskarsson
Date: Wed, 14 Oct 2026 23:47
Date: Wed, 14 Oct 2026 23:47
31 lines
2859 bytes
2859 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"
Author: Lawrence D’Oliveiro
Date: Thu, 15 Oct 2026 00:22
Date: Thu, 15 Oct 2026 00:22
33 lines
2688 bytes
2688 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"
Author: Scott Dorsey
Date: Thu, 15 Oct 2026 00:42
Date: Thu, 15 Oct 2026 00:42
9 lines
1404 bytes
1404 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"
Author: Lynn McGuire
Date: Thu, 15 Oct 2026 02:43
Date: Thu, 15 Oct 2026 02:43
13 lines
2093 bytes
2093 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"
Author: Peter Flass
Date: Thu, 15 Oct 2026 03:25
Date: Thu, 15 Oct 2026 03:25
36 lines
2964 bytes
2964 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"
Author: Lawrence D’Oliveiro
Date: Thu, 15 Oct 2026 04:54
Date: Thu, 15 Oct 2026 04:54
17 lines
2361 bytes
2361 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"
Author: Keith Thompson
Date: Thu, 15 Oct 2026 05:50
Date: Thu, 15 Oct 2026 05:50
23 lines
2755 bytes
2755 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"
Author: Peter Flass
Date: Thu, 15 Oct 2026 14:26
Date: Thu, 15 Oct 2026 14:26
21 lines
2670 bytes
2670 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: The_end_of_software_secrecy_is_almost_upon_us
Author: Richard
Date: Thu, 15 Oct 2026 14:56
Date: Thu, 15 Oct 2026 14:56
30 lines
2393 bytes
2393 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"
Author: Scott Dorsey
Date: Thu, 15 Oct 2026 15:05
Date: Thu, 15 Oct 2026 15:05
17 lines
1486 bytes
1486 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"
Author: Scott Dorsey
Date: Thu, 15 Oct 2026 15:22
Date: Thu, 15 Oct 2026 15:22
17 lines
1614 bytes
1614 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"
Author: Gary Scott
Date: Thu, 15 Oct 2026 15:40
Date: Thu, 15 Oct 2026 15:40
10 lines
2143 bytes
2143 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
Author: Lynn McGuire
Date: Thu, 15 Oct 2026 19:07
Date: Thu, 15 Oct 2026 19:07
33 lines
2549 bytes
2549 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"
Author: Lynn McGuire
Date: Thu, 15 Oct 2026 19:13
Date: Thu, 15 Oct 2026 19:13
28 lines
2581 bytes
2581 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
Author: Ted Nolan <tednolan>
Date: Thu, 15 Oct 2026 19:18
Date: Thu, 15 Oct 2026 19:18
39 lines
2382 bytes
2382 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
Author: Lynn McGuire
Date: Thu, 15 Oct 2026 20:02
Date: Thu, 15 Oct 2026 20:02
45 lines
3239 bytes
3239 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"
Author: Lawrence D’Oliveiro
Date: Thu, 15 Oct 2026 21:14
Date: Thu, 15 Oct 2026 21:14
26 lines
2778 bytes
2778 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"
Author: Peter Flass
Date: Thu, 15 Oct 2026 21:21
Date: Thu, 15 Oct 2026 21:21
29 lines
3002 bytes
3002 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"
Author: Lawrence D’Oliveiro
Date: Thu, 15 Oct 2026 21:41
Date: Thu, 15 Oct 2026 21:41
37 lines
3223 bytes
3223 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"
Author: Keith Thompson
Date: Thu, 15 Oct 2026 23:29
Date: Thu, 15 Oct 2026 23:29
30 lines
3137 bytes
3137 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"
Author: Jay Morris
Date: Fri, 16 Oct 2026 01:35
Date: Fri, 16 Oct 2026 01:35
35 lines
2963 bytes
2963 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"
Author: Thomas Koenig
Date: Sun, 18 Oct 2026 09:20
Date: Sun, 18 Oct 2026 09:20
16 lines
2198 bytes
2198 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"
Author: Scott Dorsey
Date: Sun, 18 Oct 2026 14:34
Date: Sun, 18 Oct 2026 14:34
20 lines
1861 bytes
1861 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"
Author: Thomas Koenig
Date: Mon, 19 Oct 2026 06:57
Date: Mon, 19 Oct 2026 06:57
34 lines
3016 bytes
3016 bytes
Scott Dorsey <kludge@panix.com> schrieb: > Thomas Koenig <tkoenig@netcologne.de> wrote: >>Scott Dorsey <kludge@panix.com> schrieb: >>> Gary Scott <garylscott@sbcglobal.net> wrote: >>>>And you can write high quality code in Fortran more so with modern versions. >>> >>> I am not sure I agree with that. The matrix operations in f90 are wonderful >>> and make compiler optimizations for vector machines so much easier. But >>> pointers? Engineers should never be trusted with pointers. >> >>You hardly need pointers in modern Fortran. For very many, if >>not most, use cases allocatable variables do the job just fine, >>and the compiler does the memory management for you. > > This is true. But that doesn't mean engineers won't use them. And they will > put them in common blocks so they can store something as a pointer and then > read it as an integer. Pointers in Fortran are more complicated than C pointers. For rank-0 (scalar) variables, they are usually implemented as addresses. For other ranks, bounds information is included. Plus, Fortran does not do address arithmetic on pointers like C or C++. But you can get at the internal representation of pointers via the TRANSFER function, or you can pass them via the C interoperability features. Putting them in COMMON blocks and then accessing them via type punning would be a useless thing to do. -- This USENET posting was made without artificial intelligence, artificial impertinence, artificial arrogance, artificial stupidity, artificial flavorings or artificial colorants.
Re: “The end of software secrecy is almost upon us"
Author: Scott Dorsey
Date: Mon, 19 Oct 2026 19:44
Date: Mon, 19 Oct 2026 19:44
13 lines
1389 bytes
1389 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"
Author: Thomas Koenig
Date: Mon, 19 Oct 2026 20:09
Date: Mon, 19 Oct 2026 20:09
19 lines
2166 bytes
2166 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"
Author: Chris M. Thomasson
Date: Mon, 19 Oct 2026 20:09
Date: Mon, 19 Oct 2026 20:09
11 lines
2051 bytes
2051 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"
Author: Lynn McGuire
Date: Mon, 19 Oct 2026 21:10
Date: Mon, 19 Oct 2026 21:10
22 lines
2437 bytes
2437 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"
Author: Scott Dorsey
Date: Mon, 19 Oct 2026 22:08
Date: Mon, 19 Oct 2026 22:08
22 lines
1822 bytes
1822 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"
Author: Lynn McGuire
Date: Mon, 19 Oct 2026 22:10
Date: Mon, 19 Oct 2026 22:10
29 lines
2736 bytes
2736 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"
Author: Blaine
Date: Mon, 19 Oct 2026 22:26
Date: Mon, 19 Oct 2026 22:26
53 lines
4007 bytes
4007 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"
Author: Scott Dorsey
Date: Mon, 19 Oct 2026 22:57
Date: Mon, 19 Oct 2026 22:57
12 lines
1502 bytes
1502 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."
Page 1 of 11 • 514 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