🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.lang.rust
514 messages
514 total messages Page 4 of 11 Started by Lynn McGuire Wed, 14 Oct 2026 04:18
Page 4 of 11 • 514 total messages
Re: “The end of software secrecy is almost upon
#169
Author: Lawrence D’Oliveiro
Date: Thu, 22 Oct 2026 03:35
20 lines
2588 bytes
On Thu, 22 Oct 2026 02:17:59 -0000 (UTC), Steven G. Kargl wrote:

> On Thu, 22 Oct 2026 02:00:29 -0000 (UTC), Lawrence D’Oliveiro wrote:
>
>> On Thu, 22 Oct 2026 01:16:25 -0000 (UTC), Steven G. Kargl wrote:
>>
>>> On Thu, 22 Oct 2026 00:24:48 -0000 (UTC), Lawrence D’Oliveiro wrote:
>>>
>>>> The principle applies to Fortran as it does to any language where
>>>> you have to explicitly manage storage allocations.
>>>
>>> Fortran 77 does not have dynamic memory allocation. So, again, how
>>> *exactly* does using GOTO to break out of a Fortran 77 do loop
>>> require cleanup?
>>
>> Read that again: “explicitly manage storage allocations”.
>
> Sure, what is the EXACT clean up that you envision?

“Storage allocations”.
Re: “The end of software secrecy is almost upon
#155
Author: boltar
Date: Thu, 22 Oct 2026 14:53
21 lines
2345 bytes
On Thu, 22 Oct 2026 00:23:57 -0000 (UTC)
Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> wrote:
>On Wed, 21 Oct 2026 08:05:02 -0000 (UTC), boltar wrote:
>
>> On Wed, 21 Oct 2026 07:55:39 -0000 (UTC), Lawrence D’Oliveiro wrote:
>>>
>>> What about the cleanup?
>> 
>> What about it? you think a flag test in a loop automagically fixes that?
>
>It needs to be done at each level before exiting to the outer level.

That depends on what you've done doesn't it. If you're stupid enough to 
use a raw new or malloc() then thats your lookout. The rest of us will use
stack objects, shared_ptr or similar.

>I can show you some example code, if you like.

No thanks, I'd rather not get any bad habits.

Re: Re: “The end of software secrecy is almost upon
#156
Author: boltar
Date: Thu, 22 Oct 2026 14:54
23 lines
2740 bytes
On Thu, 22 Oct 2026 09:51:46 +0800
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> wrote:
>On 10/22/2026 2:48 AM, boltar@battlestar.co.uk wrote:
>> Not sure why you think its conspiracy anything. I use the language on a
>> daily basis and everytime a new version comes out I hope they've added
>> something useful but since 2014 its been a law of diminishing returns.
>> Plus there's unexplained omissions - eg threads have been part of the core
>> language since 2011. Great, but what about processes? When do we get them?
>> Sure, I could just use fork() but then I could also just use 
>> pthread_create()
>> too.
>
>There are what, three process models to wrap up?  The Unix/Linux model,
>the N.T. model, and OpenVMS.
>
>If you need anything too different from those three, you can just fail
>with a compilation error on #include <process> or whatever.
>
>It isn't too hard to create a modern abstraction that does mostly the
>right thing.

Exactly.
Re: Re: “The end of software secrecy is almost upon
#157
Author: boltar
Date: Thu, 22 Oct 2026 14:58
49 lines
4154 bytes
On Thu, 22 Oct 2026 09:20:53 +0200
David Brown <david.brown@hesbynett.no> wrote:
>On 21/10/2026 20:48, boltar@battlestar.co.uk wrote:
>> Not sure why you think its conspiracy anything. 
>
>When a group of people or entities are working together with a secret 
>agenda that is opposing (or at least independent of) their claimed open 
>agenda, that's a conspiracy.  The phrase "conspiracy theory" is usually 
>applied when someone believes their is a conspiracy without suitable 
>evidence or justification.
>
>Thus your opinion of the C++ standards committee's work and motivation 
>is a conspiracy theory.  It's not a remotely dangerous one - but it is 
>still a daft one.

Only in your mind is it a conspirary theory. You seem unable to tell the
difference between a criticism of being out of touch and a conspiracy. 
You'd probably do well in Maga.

>languages already cover most needs of most users.  /No one/ uses all the 
>features of C++, or Python, or Java.  No one is interested in /all/ the 
>new features they gain.  That does not mean they can't evolve and 
>improve.  If I look at Wikipedia's list of what is new in C++20, there 
>are about 20 language changes and 15 major library changes.  I use 
>perhaps 4 or 5 of these, and am somewhat interested in a couple more. 
>For C++23, the list of changes is much longer, but there is only one 
>that made me change to -std=gnu++23.  But for a much larger proportion 
>of the changes, I can understand how they could be useful to other people.

Constantly adding very nich features to a language is not a sign of the
language evolving, its a sign of it running out of steam.

>> Plus there's unexplained omissions - eg threads have been part of the core
>> language since 2011. Great, but what about processes? When do we get them?
>> Sure, I could just use fork() but then I could also just use 
>> pthread_create()
>> too.
>
>Equally, no language can support all the features that users might want.

Useful core basic features should be done before any niche features.

>For the particular case of why C++ supports threads but not processes, 
>the answer should be obvious.

No, its not obvious because there is no good reason why it couldn't provide
the facility. Whats that you say? Not all platforms support multi process?
Newsflash - not all platforms support threading, eg PICs. HTH.
Re: “The end of software secrecy is almost upon
#158
Author: James Kuyper
Date: Thu, 22 Oct 2026 15:18
38 lines
3657 bytes
On 2026-10-22 00:50, Lawrence D’Oliveiro wrote:
> On Thu, 22 Oct 2026 04:33:04 -0000 (UTC), Steven G. Kargl wrote:
> 
>> On Thu, 22 Oct 2026 03:35:07 -0000 (UTC), Lawrence D’Oliveiro wrote:
>>
>>> On Thu, 22 Oct 2026 02:17:59 -0000 (UTC), Steven G. Kargl wrote:
>>>
>>>> On Thu, 22 Oct 2026 02:00:29 -0000 (UTC), Lawrence D’Oliveiro wrote:
>>>>
>>>>> On Thu, 22 Oct 2026 01:16:25 -0000 (UTC), Steven G. Kargl wrote:
>>>>>
>>>>>> On Thu, 22 Oct 2026 00:24:48 -0000 (UTC), Lawrence D’Oliveiro wrote:
>>>>>>
>>>>>>> The principle applies to Fortran as it does to any language
>>>>>>> where you have to explicitly manage storage allocations.
>>>>>>
>>>>>> Fortran 77 does not have dynamic memory allocation. So, again,
>>>>>> how *exactly* does using GOTO to break out of a Fortran 77 do
>>>>>> loop require cleanup?
>>>>>
>>>>> Read that again: “explicitly manage storage allocations”.
>>>>
>>>> Sure, what is the EXACT clean up that you envision?
>>>
>>> “Storage allocations”.
>>
>> There isn't any "storage allocation" to cleanup.
> 
> Not in your example. Which is why it was irrelevant.

So, why can't you provide an example of storage allocation, where
cleanup is relevant, so that using a GOTO would be problematic. That way
we could have some idea what you're talking about.
This discussion is currently cross-posted to four newsgroups, only one
of which is specifically about Fortran. You can reasonably assume that
many people here are unfamiliar with Fortran. I've earned money writing
Fortran, but very little, and most of it was a decades ago. I personally
have no idea what you're referring to.
Re: Re: “The end of software secrecy is almost upon
#159
Author: Scott Lurndal
Date: Thu, 22 Oct 2026 16:02
36 lines
2764 bytes
boltar@battlestar.co.uk writes:
>On Wed, 21 Oct 2026 19:01:38 -0000 (UTC)
>cross@spitfire.i.gajendra.net (Dan Cross) wrote:
>>In article <11bb1da$qfn9$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>>>Not sure why you think its conspiracy anything. I use the language on a
>>>daily basis and everytime a new version comes out I hope they've added
>>>something useful but since 2014 its been a law of diminishing returns.
>>>Plus there's unexplained omissions - eg threads have been part of the core
>>>language since 2011. Great, but what about processes? When do we get them?
>>>Sure, I could just use fork() but then I could also just use pthread_create()
>>>too. 
>>
>>One can implement a pretty reasonable threads library given the
>>virtual machine model of standard C or C++.  Processes?  With
>
>Virtual machine? Wrong language , comp.lang.java is that way --->

The C/C++ "Virtual Machine Model" as described in the language
specifications is an apple.

A virtual machine (vmware, kvm, xen, et alia) is an orange.

    assert(apples != oranges);
>
>>their own address spaces, credentials, resource limits, IPC
>>mechanisms, potentially running different programs, and so on?
>>
>>Not so much.  You need an operating system for that, son.
>
>You need an OS to do threading properly too. Theres a reason green threads
>in java were a joke.

There have been, in the past, threading models that support both
hardware threads and pure software threads (e.g. SVR4.2ES/MP)
in a single application.  It was not a joke then, it's not a joke now.
Re: Re: “The end of software secrecy is almost upon
#160
Author: Scott Dorsey
Date: Thu, 22 Oct 2026 16:19
20 lines
1757 bytes
In article <11bd7tj$rh4f$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>
>Most of us have a CS degree. But then we go out into the real world, get a
>job and find out what real programming on real products entails, not a load
>of virtual academic naval gazing.

That's because it's not a trade school degree.  It's not there to teach
you to program, it's there to teach you the fundamentals that you need to
properly understand programming.

Engineering schools are even more that way.  They don't teach you much
engineering, but they give you all the background that you need to learn
engineering.

If you just want a job, getting one of these degrees is not for you.  It's
not there for that.
--scott

-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: Re: “The end of software secrecy is almost upon
#161
Author: Dan Cross
Date: Thu, 22 Oct 2026 16:22
43 lines
3191 bytes
In article <11bd7rg$2cvfs$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>On Wed, 21 Oct 2026 19:01:38 -0000 (UTC)
>cross@spitfire.i.gajendra.net (Dan Cross) wrote:
>>In article <11bb1da$qfn9$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>>>Not sure why you think its conspiracy anything. I use the language on a
>>>daily basis and everytime a new version comes out I hope they've added
>>>something useful but since 2014 its been a law of diminishing returns.
>>>Plus there's unexplained omissions - eg threads have been part of the core
>>>language since 2011. Great, but what about processes? When do we get them?
>>>Sure, I could just use fork() but then I could also just use pthread_create()
>>>too. 
>>
>>One can implement a pretty reasonable threads library given the
>>virtual machine model of standard C or C++.  Processes?  With
>
>Virtual machine? Wrong language , comp.lang.java is that way --->

Scott addressed this.  I guess we can be all pedantic and should
properly call it the "abstract machine", but I assumed most
people here would understand that THE "abstract machine" defined
in the C standard is AN INSTANCE of using a "virtual machine
*model*" applied to a specific task: defining the behavior of C.
That is qualitatively different than a "virtual machine" that is
virtualizing a CPU, real or theoretical.

On well, you know what they say about assuming....

>>their own address spaces, credentials, resource limits, IPC
>>mechanisms, potentially running different programs, and so on?
>>
>>Not so much.  You need an operating system for that, son.
>
>You need an OS to do threading properly too. Theres a reason green threads
>in java were a joke.

Weird that you think you need a operating system for threads,
yet you want C to standardize processes which also ... need an
operating system.  I mean, POSIX already does an ok job of
standardizing the sorts of process-y things you would expect
from, you know, an operating system.

	- Dan C.
Re: “The end of software secrecy is almost upon
#162
Author: Charlie Gibbs
Date: Thu, 22 Oct 2026 19:05
21 lines
2083 bytes
On 2026-10-22, Lawrence D’Oliveiro <ldo@nz.invalid> wrote:

> On Wed, 21 Oct 2026 08:05:02 -0000 (UTC), boltar wrote:
>
>> On Wed, 21 Oct 2026 07:55:39 -0000 (UTC), Lawrence D’Oliveiro wrote:
>>
>>> What about the cleanup?
>> 
>> What about it? you think a flag test in a loop automagically fixes that?
>
> It needs to be done at each level before exiting to the outer level.
>
> I can show you some example code, if you like.

Maybe the flag needs to be global.  <g,d&r>

-- 
/~\  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
#163
Author: Charlie Gibbs
Date: Thu, 22 Oct 2026 19:05
17 lines
1892 bytes
On 2026-10-22, boltar@battlestar.co.uk <boltar@battlestar.co.uk> wrote:

> Most of us have a CS degree. But then we go out into the real world, get a
> job and find out what real programming on real products entails, not a load
> of virtual academic naval gazing.

I was in the CS program - but I found a part-time programming
job and found that I preferred the Real World, so I dropped out
and turned that part-time job into a full-time career.

I wasn't much into staring at battleships either.  ;-)

-- 
/~\  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
#164
Author: Michael S
Date: Thu, 22 Oct 2026 19:44
53 lines
3747 bytes
On Thu, 22 Oct 2026 14:54:21 -0000 (UTC)
boltar@battlestar.co.uk wrote:

> On Thu, 22 Oct 2026 09:51:46 +0800
> Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> wrote:
> >On 10/22/2026 2:48 AM, boltar@battlestar.co.uk wrote:  
> >> Not sure why you think its conspiracy anything. I use the language
> >> on a daily basis and everytime a new version comes out I hope
> >> they've added something useful but since 2014 its been a law of
> >> diminishing returns. Plus there's unexplained omissions - eg
> >> threads have been part of the core language since 2011. Great, but
> >> what about processes? When do we get them? Sure, I could just use
> >> fork() but then I could also just use pthread_create()
> >> too.  
> >
> >There are what, three process models to wrap up?  The Unix/Linux
> >model, the N.T. model, and OpenVMS.
> >
> >If you need anything too different from those three, you can just
> >fail with a compilation error on #include <process> or whatever.
> >
> >It isn't too hard to create a modern abstraction that does mostly the
> >right thing.  
> 
> Exactly.
> 

C++ (and C) standard library provides minimal and limited support
for processes:
https://en.cppreference.com/cpp/utility/program/system

I suppose that you want more.
Of course it is possible to standardize either
https://www.man7.org/linux/man-pages/man3/posix_spawn.3.html
or
https://en.wikibooks.org/wiki/C_programming/POSIX_reference/spawn
or something in the middle.

May be, it would be even a little useful.
But if C++ committee tasked with that I am afraid that they will end up
with unnecessary complicated stuff, like they did with time
measurements.
If C committee does it, I'd expect better results. But then, I don't
expect that C committee will be bothered.








Re: “The end of software secrecy is almost upon
#165
Author: Michael S
Date: Thu, 22 Oct 2026 19:48
44 lines
3256 bytes
On Thu, 22 Oct 2026 14:51:31 -0000 (UTC)
boltar@battlestar.co.uk wrote:

> On Wed, 21 Oct 2026 14:12:47 -0700
> Peter Flass <Peter@Iron-Spring.com> wrote:
> >On 10/21/26 10:50, boltar@battlestar.co.uk wrote:  
> >> On Wed, 21 Oct 2026 11:06:19 -0400 (EDT)
> >> kludge@panix.com (Scott Dorsey) wrote:  
> >>> In article <11b9qna$pqb8$1@dont-email.me>,
> >>> <boltar@battlestar.co.uk> wrote:  
> >  
> >>>> David Brown <david.brown@hesbynett.no> wrote:  
> >>>>> And people /do/ use concepts, even if you do not.  
> >>>>
> >>>> Yeah, on university CS courses. They're just more
> >>>> metaprogramming fucking about and add nothing of actual value
> >>>> for the jobbing programmer trying to solve a problem.  
> >>>
> >>> I kind of thought that way once.  Then I worked with someone who
> >>> decided to solve a problem that was NP-hard.  I mentioned to him,
> >>> "you know this is NP-hard, you'll never make it work for a
> >>> reasonable number of elements" but he was convinced there was a
> >>> solution.  He worked on it for about a year  
> >  
> >>> before getting fired.  
> >> 
> >> I've no idea what point you're trying to make there.  
> >
> >He's trying to say that his university CS work paid off.
> >
> >I agree that the work for a CS degree is useful. If nothing else I 
> >understand more now.  
> 
> Most of us have a CS degree.

I don't have it.
How do you know about most?

> But then we go out into the real world,
> get a job and find out what real programming on real products
> entails, not a load of virtual academic naval gazing.
> 

Re: “The end of software secrecy is almost upon
#166
Author: Johann 'Myrkraverk' Oskarsson
Date: Thu, 22 Oct 2026 19:52
72 lines
4966 bytes
On 10/22/2026 10:58 PM, boltar@battlestar.co.uk wrote:
> On Thu, 22 Oct 2026 09:20:53 +0200
> David Brown <david.brown@hesbynett.no> wrote:
>> On 21/10/2026 20:48, boltar@battlestar.co.uk wrote:
>>> Not sure why you think its conspiracy anything. 
>>
>> When a group of people or entities are working together with a secret 
>> agenda that is opposing (or at least independent of) their claimed 
>> open agenda, that's a conspiracy.  The phrase "conspiracy theory" is 
>> usually applied when someone believes their is a conspiracy without 
>> suitable evidence or justification.
>>
>> Thus your opinion of the C++ standards committee's work and motivation 
>> is a conspiracy theory.  It's not a remotely dangerous one - but it is 
>> still a daft one.
> 
> Only in your mind is it a conspirary theory. You seem unable to tell the
> difference between a criticism of being out of touch and a conspiracy. 
> You'd probably do well in Maga.
> 
>> languages already cover most needs of most users.  /No one/ uses all 
>> the features of C++, or Python, or Java.  No one is interested in / 
>> all/ the new features they gain.  That does not mean they can't evolve 
>> and improve.  If I look at Wikipedia's list of what is new in C++20, 
>> there are about 20 language changes and 15 major library changes.  I 
>> use perhaps 4 or 5 of these, and am somewhat interested in a couple 
>> more. For C++23, the list of changes is much longer, but there is only 
>> one that made me change to -std=gnu++23.  But for a much larger 
>> proportion of the changes, I can understand how they could be useful 
>> to other people.
> 
> Constantly adding very nich features to a language is not a sign of the
> language evolving, its a sign of it running out of steam.
> 
>>> Plus there's unexplained omissions - eg threads have been part of the 
>>> core
>>> language since 2011. Great, but what about processes? When do we get 
>>> them?
>>> Sure, I could just use fork() but then I could also just use 
>>> pthread_create()
>>> too.
>>
>> Equally, no language can support all the features that users might want.
> 
> Useful core basic features should be done before any niche features.
> 
>> For the particular case of why C++ supports threads but not processes, 
>> the answer should be obvious.
> 
> No, its not obvious because there is no good reason why it couldn't provide
> the facility. Whats that you say? Not all platforms support multi process?
> Newsflash - not all platforms support threading, eg PICs. HTH.

Dear boltar,

I am delighted you've met some of the trolls of comp.lang.c; well, I
guess comp.lang.c++ in your case.

They pretend to have a lot to say, but we both know they don't.

So take it easy, think of good flames, and reinterpret_cast< flame >
   ( with.precision ) ; and enjoy.

Or if not, stop replying, and move on with your life.  They won't stop.


Best wishes, and happy 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
#167
Author: James Kuyper
Date: Thu, 22 Oct 2026 20:25
8 lines
2044 bytes
On 2026-10-22 12:02, Scott Lurndal wrote:
...> The C/C++ "Virtual Machine Model" as described in the language
> specifications is an apple.

And could you tell me where I might find that description? The word
"virtual" appears in the C standard only when describing one of the
committee meetings. No two of words in "virtual machine model" appear
consecutively anywhere in the C++ standard.
Re: “The end of software secrecy is almost upon
#168
Author: Cryptoengineer
Date: Thu, 22 Oct 2026 20:27
46 lines
3465 bytes
On 10/22/2026 10:51 AM, boltar@battlestar.co.uk wrote:
> On Wed, 21 Oct 2026 14:12:47 -0700
> Peter Flass <Peter@Iron-Spring.com> wrote:
>> On 10/21/26 10:50, boltar@battlestar.co.uk wrote:
>>> On Wed, 21 Oct 2026 11:06:19 -0400 (EDT)
>>> kludge@panix.com (Scott Dorsey) wrote:
>>>> In article <11b9qna$pqb8$1@dont-email.me>,  
>>>> <boltar@battlestar.co.uk> wrote:
>>
>>>>> David Brown <david.brown@hesbynett.no> wrote:
>>>>>> And people /do/ use concepts, even if you do not.
>>>>>
>>>>> Yeah, on university CS courses. They're just more metaprogramming 
>>>>> fucking
>>>>> about and add nothing of actual value for the jobbing programmer 
>>>>> trying to
>>>>> solve a problem.
>>>>
>>>> I kind of thought that way once.  Then I worked with someone who 
>>>> decided
>>>> to solve a problem that was NP-hard.  I mentioned to him, "you know 
>>>> this is
>>>> NP-hard, you'll never make it work for a reasonable number of elements"
>>>> but he was convinced there was a solution.  He worked on it for 
>>>> about a year
>>
>>>> before getting fired.
>>>
>>> I've no idea what point you're trying to make there.
>>
>> He's trying to say that his university CS work paid off.
>>
>> I agree that the work for a CS degree is useful. If nothing else I 
>> understand more now.
> 
> Most of us have a CS degree. But then we go out into the real world, get a
> job and find out what real programming on real products entails, not a load
> of virtual academic naval gazing.

That's new. When I started programming professionally, CS degrees were
rare as hen's teeth. At the Wall Street bank where I worked, we did get
one employee with a CS degree, of which he was extremely proud.

He lasted 6 months before being laid off.

pt
Re: “The end of software secrecy is almost upon
#170
Author: Lynn McGuire
Date: Thu, 22 Oct 2026 20:36
48 lines
3614 bytes
On 10/22/2026 9:51 AM, boltar@battlestar.co.uk wrote:
> On Wed, 21 Oct 2026 14:12:47 -0700
> Peter Flass <Peter@Iron-Spring.com> wrote:
>> On 10/21/26 10:50, boltar@battlestar.co.uk wrote:
>>> On Wed, 21 Oct 2026 11:06:19 -0400 (EDT)
>>> kludge@panix.com (Scott Dorsey) wrote:
>>>> In article <11b9qna$pqb8$1@dont-email.me>,  
>>>> <boltar@battlestar.co.uk> wrote:
>>
>>>>> David Brown <david.brown@hesbynett.no> wrote:
>>>>>> And people /do/ use concepts, even if you do not.
>>>>>
>>>>> Yeah, on university CS courses. They're just more metaprogramming 
>>>>> fucking
>>>>> about and add nothing of actual value for the jobbing programmer 
>>>>> trying to
>>>>> solve a problem.
>>>>
>>>> I kind of thought that way once.  Then I worked with someone who 
>>>> decided
>>>> to solve a problem that was NP-hard.  I mentioned to him, "you know 
>>>> this is
>>>> NP-hard, you'll never make it work for a reasonable number of elements"
>>>> but he was convinced there was a solution.  He worked on it for 
>>>> about a year
>>
>>>> before getting fired.
>>>
>>> I've no idea what point you're trying to make there.
>>
>> He's trying to say that his university CS work paid off.
>>
>> I agree that the work for a CS degree is useful. If nothing else I 
>> understand more now.
> 
> Most of us have a CS degree. But then we go out into the real world, get a
> job and find out what real programming on real products entails, not a load
> of virtual academic naval gazing.

My bachelor degree is in Mechanical Engineering from TAMU.  I started 
working for my father's engineering software company writing Fortran in 
1975 when I was 14.  I tested out of the Fortran courses at TAMU and did 
take a course in IBM 370 assembly language programming to see what 
assembly language was about.  Of course I never took programming courses 
in Algorithms or Compiler Design.

Lynn
Re: “The end of software secrecy is almost upon
#171
Author: Lynn McGuire
Date: Thu, 22 Oct 2026 20:41
45 lines
3875 bytes
On 10/21/2026 8:51 PM, Johann 'Myrkraverk' Oskarsson wrote:
> On 10/22/2026 2:48 AM, boltar@battlestar.co.uk wrote:
>> On Wed, 21 Oct 2026 20:26:29 +0200
>> David Brown <david.brown@hesbynett.no> wrote:
>>> On 21/10/2026 20:02, boltar@battlestar.co.uk wrote:
>>>> Take a look around you. How many new startups are recruiting C++ devs?
>>>>
>>>
>>> We see it all the time.  Of course, different programming fields want 
>>> different languages - C++ is suitable for some things, and less so 
>>> for other things.  There is no one language to fit all usage.
>>>
>>> There's plenty I don't like about C++ too.  But I don't have some 
>>> weird conspiracy theory about how it is being destroyed by some ivory 
>>> tower academics that want C++ to be hard so that they can look smart, 
>>> or whatever your delusions are.
>>
>> Not sure why you think its conspiracy anything. I use the language on a
>> daily basis and everytime a new version comes out I hope they've added
>> something useful but since 2014 its been a law of diminishing returns.
>> Plus there's unexplained omissions - eg threads have been part of the 
>> core
>> language since 2011. Great, but what about processes? When do we get 
>> them?
>> Sure, I could just use fork() but then I could also just use 
>> pthread_create()
>> too.
> 
> There are what, three process models to wrap up?  The Unix/Linux model,
> the N.T. model, and OpenVMS.
> 
> If you need anything too different from those three, you can just fail
> with a compilation error on #include <process> or whatever.
> 
> It isn't too hard to create a modern abstraction that does mostly the
> right thing.

Now add the User Interface systems for the operating systems.  And the 
current Apple system does not even have a C++ user interface.

I have been advocating for quite a while that C++ should add a user 
interface programming model for quite a long time.

Lynn
Re: Re: “The end of software secrecy is almost upon
#172
Author: Dan Cross
Date: Thu, 22 Oct 2026 22:01
21 lines
2019 bytes
In article <11bdrgn$16ne1$1@dont-email.me>,
James Kuyper  <jameskuyper@alumni.caltech.edu> wrote:
>On 2026-10-22 12:02, Scott Lurndal wrote:
>...> The C/C++ "Virtual Machine Model" as described in the language
>> specifications is an apple.
>
>And could you tell me where I might find that description? The word
>"virtual" appears in the C standard only when describing one of the
>committee meetings. No two of words in "virtual machine model" appear
>consecutively anywhere in the C++ standard.

Addressed in an earlier post: the term of art is in the actual
text of the standard is, "abstract machine."  But that is an
example of using a model of a virtual machine to describe
something; in this case, the semantics of executing a C program.

It's a more abstract reading, sure, but again I'd have thought
it was intuitive.

	- Dan C.
Re: “The end of software secrecy is almost upon
#173
Author: Keith Thompson
Date: Thu, 22 Oct 2026 23:54
23 lines
2744 bytes
Thomas Koenig <tkoenig@netcologne.de> writes:
[...]
> Somebody who knows the first thing about Fortran, which you
> clearly don't, might have realized that scope is the only
> way to mandate storage allocation/deallocation in Fortran.

Is that true in more recent versions of Fortran?

A quick web search indicates that Fortran 90 added "allocate"
and "deallocate".  If I understand correctly, you might have an
"allocate" inside a DO loop, and breaking out of the loop could
bypass the corresponding "deallocate".

LDO doesn't write coherently enough to know whether that's what
he's talking about.

Disclaimer: I do know the first thing about Fortran, and probably
the second, but not the third and fourth.  Ironically, I happen
to know the seventeenth, but I'll never tell.

-- 
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
#174
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 03:19
8 lines
2221 bytes
On Thu, 22 Oct 2026 07:26:21 -0700, Peter Flass wrote:

> That's why I try to use PL/I AUTOMATIC (stack) storage and not
> allocate a lot of stuff. You need to have a disciplined approach if
> you allocate random stuff here and there.

What if you’re building an object that needs to be returned to the
caller?
Re: “The end of software secrecy is almost upon
#175
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 03:21
10 lines
2223 bytes
On Thu, 22 Oct 2026 15:41:15 -0500, Lynn McGuire wrote:

> I have been advocating for quite a while that C++ should add a user
> interface programming model for quite a long time.

First they need a standardized graphics API.

I gather there’s been a proposal that’s been kicking around for some
years, to adopt something based on Cairo
<https://www.cairographics.org/>.
Re: “The end of software secrecy is almost upon
#176
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 03:33
33 lines
3266 bytes
On Thu, 22 Oct 2026 11:18:03 -0400, James Kuyper wrote:

> On Thu, 22 Oct 2026 00:24:48 -0000 (UTC), Lawrence D’Oliveiro wrote:
>
>> The principle applies to Fortran as it does to any language where
>> you have to explicitly manage storage allocations.
>
> So, why can't you provide an example of storage allocation, where
> cleanup is relevant, so that using a GOTO would be problematic. That
> way we could have some idea what you're talking about.

The technique I use is based on a form of structured programming
called a “Nassi-Shneiderman diagram”. The overall structure looks like

    ... initialize object pointer to NULL ...
    do /*once*/
      {
        ... possible other stuff ...
        ... allocate object pointer ...
        if (error occurred)
            break;
        ... possible other stuff using object pointer ...
      }
    while (false);
    ... call free(3) (or equivalent) on object pointer ...

So you can see there is no way out of the inner block without passing
through the dispose call. Using gotos would contribute nothing except
make it harder to assure yourself of the simplicity of the control
flow.

Looks deceptively simple. But the same technique can scale up to quite
complex cases. Which we can get to, if you want.
Re: “The end of software secrecy is almost upon
#177
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 04:22
16 lines
2582 bytes
On Fri, 23 Oct 2026 04:10:39 -0000 (UTC), Steven G. Kargl wrote:

> On Fri, 23 Oct 2026 03:33:44 -0000 (UTC), Lawrence D’Oliveiro wrote:
>>
>> So you can see there is no way out of the inner block without passing
>> through the dispose call.
>
> 'break' is just another name for 'goto label'.
>
>> Using gotos would contribute nothing except make it harder to
>> assure yourself of the simplicity of the control flow.

> PS: We're still waiting on a definition of "storage allocation"
>
>>         ... allocate object pointer ...
>>
Re: “The end of software secrecy is almost upon
#178
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 05:29
12 lines
2496 bytes
On 10/22/2026 8:19 PM, Lawrence D’Oliveiro wrote:
> On Thu, 22 Oct 2026 07:26:21 -0700, Peter Flass wrote:
> 
>> That's why I try to use PL/I AUTOMATIC (stack) storage and not
>> allocate a lot of stuff. You need to have a disciplined approach if
>> you allocate random stuff here and there.
> 
> What if you’re building an object that needs to be returned to the
> caller?

Have the caller have the object before hand and call a function to 
initialize it?
Re: “The end of software secrecy is almost upon
#179
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 05:31
13 lines
2446 bytes
On 10/22/2026 8:21 PM, Lawrence D’Oliveiro wrote:
> On Thu, 22 Oct 2026 15:41:15 -0500, Lynn McGuire wrote:
> 
>> I have been advocating for quite a while that C++ should add a user
>> interface programming model for quite a long time.
> 
> First they need a standardized graphics API.
> 
> I gather there’s been a proposal that’s been kicking around for some
> years, to adopt something based on Cairo
> <https://www.cairographics.org/>.

That's a fairly decent one.
Re: “The end of software secrecy is almost upon
#180
Author: Steven G. Kargl
Date: Fri, 23 Oct 2026 05:54
27 lines
2922 bytes
On Fri, 23 Oct 2026 04:22:13 -0000 (UTC), Lawrence D’Oliveiro wrote:

> On Fri, 23 Oct 2026 04:10:39 -0000 (UTC), Steven G. Kargl wrote:
> 
>> On Fri, 23 Oct 2026 03:33:44 -0000 (UTC), Lawrence D’Oliveiro wrote:
>>>
>>> So you can see there is no way out of the inner block without passing
>>> through the dispose call.
>>
>> 'break' is just another name for 'goto label'.
>>
>>> Using gotos would contribute nothing except make it harder to
>>> assure yourself of the simplicity of the control flow.
> 
>> PS: We're still waiting on a definition of "storage allocation"
>>
>>>         ... allocate object pointer ...
>>>

Nice use of quoting without adding context.

It's okay to admit that you have no idea how Fortran
works when one uses a goto to jump out of a do loop.
There is no cleanup of "storage allocation".

-- 
steve
Re: “The end of software secrecy is almost upon
#181
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 06:25
18 lines
2629 bytes
On Thu, 22 Oct 2026 22:29:45 -0700, Chris M. Thomasson wrote:

> On 10/22/2026 8:19 PM, Lawrence D’Oliveiro wrote:
>>
>> On Thu, 22 Oct 2026 07:26:21 -0700, Peter Flass wrote:
>>
>>> That's why I try to use PL/I AUTOMATIC (stack) storage and not
>>> allocate a lot of stuff. You need to have a disciplined approach
>>> if you allocate random stuff here and there.
>>
>> What if you’re building an object that needs to be returned to the
>> caller?
>
> Have the caller have the object before hand and call a function to
> initialize it?

I’m assuming that all that BASIC programming hasn’t got to your head,
and you’re not serious. ;)
Re: “The end of software secrecy is almost upon
#182
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 06:27
22 lines
2740 bytes
On Thu, 22 Oct 2026 22:31:07 -0700, Chris M. Thomasson wrote:

> On 10/22/2026 8:21 PM, Lawrence D’Oliveiro wrote:
>>
>> On Thu, 22 Oct 2026 15:41:15 -0500, Lynn McGuire wrote:
>>
>>> I have been advocating for quite a while that C++ should add a
>>> user interface programming model for quite a long time.
>>
>> First they need a standardized graphics API.
>>
>> I gather there’s been a proposal that’s been kicking around for
>> some years, to adopt something based on Cairo
>> <https://www.cairographics.org/>.
>
> That's a fairly decent one.

It is (based on PostScript but goes beyond it), but the draft proposal
I’ve seen is somewhat butchered. No text/font API, for a start.

The JavaScript browser-based 2D Canvas API is also based on Cairo, and
that was also butchered, albeit in a different way.
Re: “The end of software secrecy is almost upon
#183
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 06:29
16 lines
2631 bytes
On Fri, 23 Oct 2026 05:43:56 -0000 (UTC), Thomas Koenig wrote:

> Keith Thompson <Keith.S.Thompson+u@gmail.com> schrieb:
>>
>> But "break" is useful because it can't branch to any arbitrary
>> point in the enclosing function. It can only break out of a
>> specific enclosing construct. That makes the code easier to read
>> and write.
>
> The goto usually isn't the problem, you see it and you see where its
> target is.

It doesn’t scale.

My example was starting simple, but I intend to work my way gradually
up as others ask for it.
Re: Re: “The end of software secrecy is almost upon
#184
Author: boltar
Date: Fri, 23 Oct 2026 07:58
22 lines
2329 bytes
On Thu, 22 Oct 2026 16:02:35 GMT
scott@slp53.sl.home (Scott Lurndal) gabbled:
>boltar@battlestar.co.uk writes:
>>Virtual machine? Wrong language , comp.lang.java is that way --->
>
>The C/C++ "Virtual Machine Model" as described in the language
>specifications is an apple.

Its a fictious apple. All it means in reality is intermediate code output
by the compiler - but then in the gnu and llvm tool chains for example ALL the 
compilers AFAIK do that, there's nothing unique to C/C++.

>>You need an OS to do threading properly too. Theres a reason green threads
>>in java were a joke.
>
>There have been, in the past, threading models that support both
>hardware threads and pure software threads (e.g. SVR4.2ES/MP)
>in a single application.  It was not a joke then, it's not a joke now.

It was a joke because as soon as garbage collection happened all the green
threads hung.
Re: Re: “The end of software secrecy is almost upon
#185
Author: boltar
Date: Fri, 23 Oct 2026 08:01
28 lines
2533 bytes
On Thu, 22 Oct 2026 12:19:49 -0400 (EDT)
kludge@panix.com (Scott Dorsey) gabbled:
>In article <11bd7tj$rh4f$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>>
>>Most of us have a CS degree. But then we go out into the real world, get a
>>job and find out what real programming on real products entails, not a load
>>of virtual academic naval gazing.
>
>That's because it's not a trade school degree.  It's not there to teach
>you to program, it's there to teach you the fundamentals that you need to
>properly understand programming.

No, it teaches you fundamentals of certain aspects of computer paradigms such
as databases, graphics, AI. Most people into computers learn actual programming
long before they hit university.

>Engineering schools are even more that way.  They don't teach you much
>engineering, but they give you all the background that you need to learn
>engineering.

Programming isn't pure engineering - its a combination of engineering, logic,
art and a trade.

>If you just want a job, getting one of these degrees is not for you.  It's
>not there for that.

Bill Gates never earned a degree. He seemed to do ok.
Re: “The end of software secrecy is almost upon
#186
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 08:02
63 lines
4605 bytes
On 10/23/2026 4:41 AM, Lynn McGuire wrote:
> On 10/21/2026 8:51 PM, Johann 'Myrkraverk' Oskarsson wrote:
>> On 10/22/2026 2:48 AM, boltar@battlestar.co.uk wrote:
>>> On Wed, 21 Oct 2026 20:26:29 +0200
>>> David Brown <david.brown@hesbynett.no> wrote:
>>>> On 21/10/2026 20:02, boltar@battlestar.co.uk wrote:
>>>>> Take a look around you. How many new startups are recruiting C++ devs?
>>>>>
>>>>
>>>> We see it all the time.  Of course, different programming fields 
>>>> want different languages - C++ is suitable for some things, and less 
>>>> so for other things.  There is no one language to fit all usage.
>>>>
>>>> There's plenty I don't like about C++ too.  But I don't have some 
>>>> weird conspiracy theory about how it is being destroyed by some 
>>>> ivory tower academics that want C++ to be hard so that they can look 
>>>> smart, or whatever your delusions are.
>>>
>>> Not sure why you think its conspiracy anything. I use the language on a
>>> daily basis and everytime a new version comes out I hope they've added
>>> something useful but since 2014 its been a law of diminishing returns.
>>> Plus there's unexplained omissions - eg threads have been part of the 
>>> core
>>> language since 2011. Great, but what about processes? When do we get 
>>> them?
>>> Sure, I could just use fork() but then I could also just use 
>>> pthread_create()
>>> too.
>>
>> There are what, three process models to wrap up?  The Unix/Linux model,
>> the N.T. model, and OpenVMS.
>>
>> If you need anything too different from those three, you can just fail
>> with a compilation error on #include <process> or whatever.
>>
>> It isn't too hard to create a modern abstraction that does mostly the
>> right thing.
> 
> Now add the User Interface systems for the operating systems.  And the 
> current Apple system does not even have a C++ user interface.
> 
> I have been advocating for quite a while that C++ should add a user 
> interface programming model for quite a long time.
> 
> Lynn

In my opinion, it was a tragedy they didn't in C++98.

In the mean time, I've been using IUP.  Mostly because I use C, and not
C++ for my own projects.  And since it's C, it should be usable in both
Rust and Fortran with a simple foreign function wrapper; but I have not
done that yet.

Note, IUP already existed in 1997, and could have been used as a base
for a C++ GUI -- though I would expect the interface to be STL-ified to
be consistent with the rest of C++.

Best wishes, and happy user interfaces.
-- 
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
#187
Author: boltar
Date: Fri, 23 Oct 2026 08:03
16 lines
2174 bytes
On Thu, 22 Oct 2026 16:22:30 -0000 (UTC)
cross@spitfire.i.gajendra.net (Dan Cross) gabbled:
>In article <11bd7rg$2cvfs$1@dont-email.me>,  <boltar@battlestar.co.uk> wrote:
>>You need an OS to do threading properly too. Theres a reason green threads
>>in java were a joke.
>
>Weird that you think you need a operating system for threads,
>yet you want C to standardize processes which also ... need an
>operating system.  I mean, POSIX already does an ok job of
>standardizing the sorts of process-y things you would expect
>from, you know, an operating system.

I'm simply pointing out the inconsistency in having a threading library but
not a process library. Its perfectly possible to simulate a multiprocess 
enviroment. How do you think pure software versions of virtual machines work?
Re: “The end of software secrecy is almost upon
#189
Author: boltar
Date: Fri, 23 Oct 2026 08:05
15 lines
2006 bytes
On Thu, 22 Oct 2026 22:48:29 +0300
Michael S <already5chosen@yahoo.com> gabbled:
>On Thu, 22 Oct 2026 14:51:31 -0000 (UTC)
>boltar@battlestar.co.uk wrote:
>> >I agree that the work for a CS degree is useful. If nothing else I 
>> >understand more now.  
>> 
>> Most of us have a CS degree.
>
>I don't have it.
>How do you know about most?

Oh I dunno, maybe 30 years in the industry working with probably hundreds
of different programmers.
Re: “The end of software secrecy is almost upon
#188
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 08:06
28 lines
2687 bytes
On 10/23/2026 3:58 PM, boltar@caprica.universe wrote:
> On Thu, 22 Oct 2026 16:02:35 GMT
> scott@slp53.sl.home (Scott Lurndal) gabbled:

>> boltar@battlestar.co.uk writes:

>>> Virtual machine? Wrong language , comp.lang.java is that way --->

>> The C/C++ "Virtual Machine Model" as described in the language
>> specifications is an apple.

> Its a fictious apple. All it means in reality is intermediate code output
> by the compiler - but then in the gnu and llvm tool chains for example ALL the
> compilers AFAIK do that, there's nothing unique to C/C++.

There is at least one -- now quite old -- C++ compiler that goes direct-
ly to machine code, and doesn't output any assembly at all.  That's Open
Watcom.

And if you want to use that compiler abstractly, you can use DOS [1] as
a physical manifestation of the /abstract machine/.

[1] MS-DOS, PC-DOS, DR-DOS, FreeDOS -- I'm not picky.
-- 
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
#190
Author: boltar
Date: Fri, 23 Oct 2026 08:10
22 lines
2797 bytes
On Thu, 22 Oct 2026 15:41:15 -0500
Lynn McGuire <lynnmcguire5@gmail.com> gabbled:
>On 10/21/2026 8:51 PM, Johann 'Myrkraverk' Oskarsson wrote:
>> It isn't too hard to create a modern abstraction that does mostly the
>> right thing.
>
>Now add the User Interface systems for the operating systems.  And the 
>current Apple system does not even have a C++ user interface.

Apple have their typical walled garden approach to OS development. They 
support the basic posix system and a subset of their OS specific system API
as a C API, but if you want to do anything more in depth and not resort to a
higher level language such as Python you'll have to use Objective-C (god help 
us) or Swift. Consequently very few people bother.

>I have been advocating for quite a while that C++ should add a user 
>interface programming model for quite a long time.

Problem with that is you end up with a lowest common denominator version that
Java has. Looks awful and often doesn't do what you want.

Re: Re: “The end of software secrecy is almost upon
#191
Author: boltar
Date: Fri, 23 Oct 2026 08:14
17 lines
2614 bytes
On Fri, 23 Oct 2026 16:02:51 +0800
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> gabbled:
>On 10/23/2026 4:41 AM, Lynn McGuire wrote:
>> I have been advocating for quite a while that C++ should add a user 
>> interface programming model for quite a long time.
>> 
>> Lynn
>
>In my opinion, it was a tragedy they didn't in C++98.

In Windows the graphics system just starts up. On the unix X windows system
initial startup requires a server IP address with optional screen number then
doing a network connect. Also I don't know the win32 graphics subsystem but
I suspect it differs fundamentally from the X Windows model so I have no idea
how you'd square that circle unless the only API you provide is for top level
GUI components as per libraries such as Gtk and Qt.
Re: “The end of software secrecy is almost upon
#192
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 08:15
13 lines
2016 bytes
On 10/23/2026 4:01 PM, boltar@caprica.universe wrote:
> Programming isn't pure engineering - its a combination of engineering, logic,
> art and a trade.

And sometimes mathematics.  More than one programmer has had to invent
or simplify a mathematical formula to get things to run.

I have anecdata, and I presume everyone else here does too.
-- 
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
#193
Author: boltar
Date: Fri, 23 Oct 2026 08:16
11 lines
1839 bytes
On Fri, 23 Oct 2026 16:15:23 +0800
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> gabbled:
>On 10/23/2026 4:01 PM, boltar@caprica.universe wrote:
>> Programming isn't pure engineering - its a combination of engineering, logic,
>
>> art and a trade.
>
>And sometimes mathematics.  More than one programmer has had to invent

True.
Re: “The end of software secrecy is almost upon
#194
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 08:22
42 lines
3625 bytes
On 10/23/2026 4:14 PM, boltar@caprica.universe wrote:
> On Fri, 23 Oct 2026 16:02:51 +0800
> Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> gabbled:
>> On 10/23/2026 4:41 AM, Lynn McGuire wrote:
>>> I have been advocating for quite a while that C++ should add a user 
>>> interface programming model for quite a long time.
>>>
>>> Lynn
>>
>> In my opinion, it was a tragedy they didn't in C++98.
> 
> In Windows the graphics system just starts up. On the unix X windows system
> initial startup requires a server IP address with optional screen number 
> then
> doing a network connect. Also I don't know the win32 graphics subsystem but
> I suspect it differs fundamentally from the X Windows model so I have no 
> idea
> how you'd square that circle unless the only API you provide is for top 
> level
> GUI components as per libraries such as Gtk and Qt.

The point I was trying to make was that in 1997, when the C++ standard
got finalized, IUP,

   https://iup.sf.net/

already existed, and abstracted both X11 and Win32, and -- presumably --
Win 3.1 as well.  Note that some of that circle is squared with Canvas-
Draw and an image library, as separate projcets; both on sf.net.

Nowadays, or last time I was paying attention to the mailing list, some-
one else is supplying a backend for Apple computers.  So all of this ex-
ists, and has since the mid-90s.


So my take on it, is that the C++ standards committee has been lazy for
the past thirty years.
-- 
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
#195
Author: Michael S
Date: Fri, 23 Oct 2026 08:42
25 lines
2550 bytes
On Fri, 23 Oct 2026 08:05:13 -0000 (UTC)
boltar@caprica.universe wrote:

> On Thu, 22 Oct 2026 22:48:29 +0300
> Michael S <already5chosen@yahoo.com> gabbled:
> >On Thu, 22 Oct 2026 14:51:31 -0000 (UTC)
> >boltar@battlestar.co.uk wrote:  
> >> >I agree that the work for a CS degree is useful. If nothing else
> >> >I understand more now.    
> >> 
> >> Most of us have a CS degree.  
> >
> >I don't have it.
> >How do you know about most?  
> 
> Oh I dunno, maybe 30 years in the industry working with probably
> hundreds of different programmers.
> 

My experience in industry beats yours by few years.
And my statistics differ - CS graduates are not majority of computer
programmers. At best, they are plurality.
Regardless, the point was not industry, but audience of five particular
newsgroups.
Re: “The end of software secrecy is almost upon
#196
Author: Michael S
Date: Fri, 23 Oct 2026 08:56
34 lines
2827 bytes
On Fri, 23 Oct 2026 16:06:47 +0800
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> wrote:

> On 10/23/2026 3:58 PM, boltar@caprica.universe wrote:
> > On Thu, 22 Oct 2026 16:02:35 GMT
> > scott@slp53.sl.home (Scott Lurndal) gabbled:  
> 
> >> boltar@battlestar.co.uk writes:  
> 
> >>> Virtual machine? Wrong language , comp.lang.java is that way --->
> >>>  
> 
> >> The C/C++ "Virtual Machine Model" as described in the language
> >> specifications is an apple.  
> 
> > Its a fictious apple. All it means in reality is intermediate code
> > output by the compiler - but then in the gnu and llvm tool chains
> > for example ALL the compilers AFAIK do that, there's nothing unique
> > to C/C++.  
> 
> There is at least one -- now quite old -- C++ compiler that goes
> direct- ly to machine code, and doesn't output any assembly at all.
> That's Open Watcom.
> 
> And if you want to use that compiler abstractly, you can use DOS [1]
> as a physical manifestation of the /abstract machine/.
> 
> [1] MS-DOS, PC-DOS, DR-DOS, FreeDOS -- I'm not picky.


DOS/360 (originally simply DOS) would not do it?


Re: “The end of software secrecy is almost upon
#197
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 09:15
43 lines
3228 bytes
On 10/23/2026 4:56 PM, Michael S wrote:
> On Fri, 23 Oct 2026 16:06:47 +0800
> Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> wrote:
> 
>> On 10/23/2026 3:58 PM, boltar@caprica.universe wrote:
>>> On Thu, 22 Oct 2026 16:02:35 GMT
>>> scott@slp53.sl.home (Scott Lurndal) gabbled:
>>
>>>> boltar@battlestar.co.uk writes:
>>
>>>>> Virtual machine? Wrong language , comp.lang.java is that way --->
>>>>>   
>>
>>>> The C/C++ "Virtual Machine Model" as described in the language
>>>> specifications is an apple.
>>
>>> Its a fictious apple. All it means in reality is intermediate code
>>> output by the compiler - but then in the gnu and llvm tool chains
>>> for example ALL the compilers AFAIK do that, there's nothing unique
>>> to C/C++.
>>
>> There is at least one -- now quite old -- C++ compiler that goes
>> direct- ly to machine code, and doesn't output any assembly at all.
>> That's Open Watcom.
>>
>> And if you want to use that compiler abstractly, you can use DOS [1]
>> as a physical manifestation of the /abstract machine/.
>>
>> [1] MS-DOS, PC-DOS, DR-DOS, FreeDOS -- I'm not picky.
> 
> 
> DOS/360 (originally simply DOS) would not do it?

Not without some effort.  If I understand this correctly, and I may not,
the Open Watcom compiler suite has the 360 code generator, but it's not
in a functional state.

So, in that case, it's an /exercise for the reader/.
-- 
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
#198
Author: boltar
Date: Fri, 23 Oct 2026 09:15
20 lines
2685 bytes
On Fri, 23 Oct 2026 16:22:06 +0800
Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> gabbled:
>On 10/23/2026 4:14 PM, boltar@caprica.universe wrote:
>> In Windows the graphics system just starts up. On the unix X windows system
>> initial startup requires a server IP address with optional screen number 
>> then
>> doing a network connect. Also I don't know the win32 graphics subsystem but
>> I suspect it differs fundamentally from the X Windows model so I have no 
>> idea
>> how you'd square that circle unless the only API you provide is for top 
>> level
>> GUI components as per libraries such as Gtk and Qt.
>
>The point I was trying to make was that in 1997, when the C++ standard
>got finalized, IUP,
>
>   https://iup.sf.net/

Had a look, requires Lua. No thanks.
Re: “The end of software secrecy is almost upon
#199
Author: boltar
Date: Fri, 23 Oct 2026 09:18
35 lines
3026 bytes
On Fri, 23 Oct 2026 11:42:38 +0300
Michael S <already5chosen@yahoo.com> gabbled:
>On Fri, 23 Oct 2026 08:05:13 -0000 (UTC)
>boltar@caprica.universe wrote:
>
>> On Thu, 22 Oct 2026 22:48:29 +0300
>> Michael S <already5chosen@yahoo.com> gabbled:
>> >On Thu, 22 Oct 2026 14:51:31 -0000 (UTC)
>> >boltar@battlestar.co.uk wrote:  
>> >> >I agree that the work for a CS degree is useful. If nothing else
>> >> >I understand more now.    
>> >> 
>> >> Most of us have a CS degree.  
>> >
>> >I don't have it.
>> >How do you know about most?  
>> 
>> Oh I dunno, maybe 30 years in the industry working with probably
>> hundreds of different programmers.
>> 
>
>My experience in industry beats yours by few years.
>And my statistics differ - CS graduates are not majority of computer
>programmers. At best, they are plurality.
>Regardless, the point was not industry, but audience of five particular
>newsgroups.

Well, the majority of people in programming have some kind of STEM degree,
not necessarily CS. For example if you can do electronic engineering or 
advance maths then programming concepts probably arn't going to be a big deal 
for you though I have seen plenty of code written by engineers and while it
works it tends to be messy. More a case of get the job done fast so we can 
get on with the real work rather than create something efficient and 
maintainable.
Re: “The end of software secrecy is almost upon
#200
Author: David Brown
Date: Fri, 23 Oct 2026 09:28
14 lines
2377 bytes
On 22/10/2026 22:25, James Kuyper wrote:
> On 2026-10-22 12:02, Scott Lurndal wrote:
> ...> The C/C++ "Virtual Machine Model" as described in the language
>> specifications is an apple.
> 
> And could you tell me where I might find that description? The word
> "virtual" appears in the C standard only when describing one of the
> committee meetings. No two of words in "virtual machine model" appear
> consecutively anywhere in the C++ standard.

The term in both the C and C++ standards is "abstract machine", but I 
think it was quite obvious that this is Dan meant when he wrote "virtual 
machine".  Using the accurate term would have been better, of course.
Re: “The end of software secrecy is almost upon
#201
Author: David Brown
Date: Fri, 23 Oct 2026 09:34
23 lines
2825 bytes
On 23/10/2026 05:21, Lawrence D’Oliveiro wrote:
> On Thu, 22 Oct 2026 15:41:15 -0500, Lynn McGuire wrote:
> 
>> I have been advocating for quite a while that C++ should add a user
>> interface programming model for quite a long time.
> 
> First they need a standardized graphics API.
> 

I hope that never happens.  There are large numbers of graphics APIs, 
with huge ranges of what they support, how they work and their balance 
between features, efficiency, portability, size, hardware support, and 
what they are used for.

People who think C++ should have a standardised graphics API usually 
mean they want to standardise the API they use on the one application 
type that they write.


> I gather there’s been a proposal that’s been kicking around for some
> years, to adopt something based on Cairo
> <https://www.cairographics.org/>.
Re: “The end of software secrecy is almost upon
#202
Author: David Brown
Date: Fri, 23 Oct 2026 09:45
63 lines
3747 bytes
On 23/10/2026 08:25, Lawrence D’Oliveiro wrote:
> On Thu, 22 Oct 2026 22:29:45 -0700, Chris M. Thomasson wrote:
> 
>> On 10/22/2026 8:19 PM, Lawrence D’Oliveiro wrote:
>>>
>>> On Thu, 22 Oct 2026 07:26:21 -0700, Peter Flass wrote:
>>>
>>>> That's why I try to use PL/I AUTOMATIC (stack) storage and not
>>>> allocate a lot of stuff. You need to have a disciplined approach
>>>> if you allocate random stuff here and there.
>>>
>>> What if you’re building an object that needs to be returned to the
>>> caller?
>>
>> Have the caller have the object before hand and call a function to
>> initialize it?
> 
> I’m assuming that all that BASIC programming hasn’t got to your head,
> and you’re not serious. ;)

Chris' wording is perhaps poor, but the principle is right.

I don't know PL/I or Fortran, but in C if you have :

	typedef struct data_struct { int a; int xs[20]; } S ;

	S build_some_data(void) {
		S s;

		s.a = 123;
		for (int i = 0; i < 20; i++) s.xs[i] = i;
		
		return s;
	}

	void foo() {
		S s = build_some_data();
	}


then it is typically handled as though you had written :

	void build_some_data(S * p) {
		p->a = 123;
		for (int i = 0; i < 20; i++) p->xs[i] = i;
		
		return;
	}

	void foo() {
		S s;
		build_some_data(&s);
	}


That is - the caller creates the /space/ for the returned object, but 
does not do any kind of initialisation.  It passes a pointer to that 
space as a hidden parameter to the function that wants to return the object.

That principle should work fine in any language, as long as the size of 
the returned object is known by the caller code.

Re: Re: “The end of software secrecy is almost upon
#204
Author: boltar
Date: Fri, 23 Oct 2026 10:11
21 lines
2626 bytes
On Fri, 23 Oct 2026 11:34:00 +0200
David Brown <david.brown@hesbynett.no> gabbled:
>On 23/10/2026 05:21, Lawrence D’Oliveiro wrote:
>> On Thu, 22 Oct 2026 15:41:15 -0500, Lynn McGuire wrote:
>> 
>>> I have been advocating for quite a while that C++ should add a user
>>> interface programming model for quite a long time.
>> 
>> First they need a standardized graphics API.
>> 
>
>I hope that never happens.  There are large numbers of graphics APIs, 
>with huge ranges of what they support, how they work and their balance 
>between features, efficiency, portability, size, hardware support, and 
>what they are used for.
>
>People who think C++ should have a standardised graphics API usually 
>mean they want to standardise the API they use on the one application 

For once we're in agreement.
Re: “The end of software secrecy is almost upon
#203
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 10:15
30 lines
3099 bytes
On 10/23/2026 5:15 PM, boltar@caprica.universe wrote:
> On Fri, 23 Oct 2026 16:22:06 +0800
> Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> gabbled:
>> On 10/23/2026 4:14 PM, boltar@caprica.universe wrote:
>>> In Windows the graphics system just starts up. On the unix X windows 
>>> system
>>> initial startup requires a server IP address with optional screen 
>>> number then
>>> doing a network connect. Also I don't know the win32 graphics 
>>> subsystem but
>>> I suspect it differs fundamentally from the X Windows model so I have 
>>> no idea
>>> how you'd square that circle unless the only API you provide is for 
>>> top level
>>> GUI components as per libraries such as Gtk and Qt.
>>
>> The point I was trying to make was that in 1997, when the C++ standard
>> got finalized, IUP,
>>
>>   https://iup.sf.net/
> 
> Had a look, requires Lua. No thanks.

It doesn't require Lua.  It comes with a Lua binding, which you can
ignore.
-- 
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
Page 4 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