🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

[added in comp.lang.pl1]

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

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

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

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

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

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

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

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

PL/1 was too big for its own sake.... it was so large and so extended that
everyone programmed in their own personal subset which made programmers
reading one another's code difficult.  Ada took this problem and made it
far worse.
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon us"
#4
Author: Lawrence D’Oliveiro
Date: Wed, 14 Oct 2026 23:02
9 lines
1665 bytes
On Wed, 14 Oct 2026 07:35:41 -0700, Peter Flass wrote:

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

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

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

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

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

[...]

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

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

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

Nobody else seems to agree.

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

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

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

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

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

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

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

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

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

This is a PL/I BASED variable, for which no storage is used unless it is 
allocated. Essentially it's a typedef struct.
Re: “The end of software secrecy is almost upon us"
#13
Author: Lawrence D’Oliveiro
Date: Thu, 15 Oct 2026 21:14
26 lines
2683 bytes
On Thu, 15 Oct 2026 07:26:11 -0700, Peter Flass wrote:

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

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

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

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

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

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

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
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