🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.c++
529 messages
529 total messages Page 4 of 11 Started by Lynn McGuire Wed, 14 Oct 2026 04:18
Page 4 of 11 • 529 total messages
Re: “The end of software secrecy is almost upon
#199
Author: Cryptoengineer
Date: Thu, 22 Oct 2026 20:27
46 lines
3316 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
#201
Author: Lynn McGuire
Date: Thu, 22 Oct 2026 20:36
48 lines
3465 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
#202
Author: Lynn McGuire
Date: Thu, 22 Oct 2026 20:41
45 lines
3726 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
#200
Author: Dan Cross
Date: Thu, 22 Oct 2026 22:01
21 lines
1870 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
#203
Author: Nuno Silva
Date: Thu, 22 Oct 2026 23:23
37 lines
2832 bytes
[ Keeping the C++ group because that's at least in context, but I'm not
  subscribing to it at the moment. I suppose this could eventually go to
  folklore or alt.unix.geeks? ]

On 2026-10-22, Scott Lurndal wrote:

> 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);

And here I think "virtual machine" was mistaken to be the Java Virtual
Machine, not the orange type above?

(A grapefruit? Pineapple? Banana?)

-- 
Nuno Silva
Re: “The end of software secrecy is almost upon
#205
Author: Keith Thompson
Date: Thu, 22 Oct 2026 23:54
23 lines
2623 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
#204
Author: Dan Cross
Date: Fri, 23 Oct 2026 00:41
41 lines
2613 bytes
In article <11be5t7$19jbi$4@dont-email.me>,
Nuno Silva  <nunojsilva@invalid.invalid> wrote:
>[ Keeping the C++ group because that's at least in context, but I'm not
>  subscribing to it at the moment. I suppose this could eventually go to
>  folklore or alt.unix.geeks? ]
>
>On 2026-10-22, Scott Lurndal wrote:
>
>> 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);
>
>And here I think "virtual machine" was mistaken to be the Java Virtual
>Machine, not the orange type above?
>
>(A grapefruit? Pineapple? Banana?)

The JVM is obviously a lemon.  (Hey-O!)

	- Dan C.
Re: “The end of software secrecy is almost upon
#207
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 03:19
8 lines
2100 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
#209
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 03:21
10 lines
2102 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
#208
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 03:33
33 lines
3145 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
#212
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 04:22
16 lines
2461 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
#215
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 05:29
12 lines
2375 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
#213
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 05:31
13 lines
2325 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
#217
Author: Steven G. Kargl
Date: Fri, 23 Oct 2026 05:54
27 lines
2801 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
#218
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 06:25
18 lines
2508 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
#219
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 06:27
22 lines
2619 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
#220
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 06:29
16 lines
2510 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
#221
Author: boltar
Date: Fri, 23 Oct 2026 07:58
22 lines
2180 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
#223
Author: boltar
Date: Fri, 23 Oct 2026 08:01
28 lines
2384 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
#224
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 08:02
63 lines
4456 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
#222
Author: boltar
Date: Fri, 23 Oct 2026 08:03
16 lines
2025 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
#225
Author: boltar
Date: Fri, 23 Oct 2026 08:05
15 lines
1857 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
#226
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 08:06
28 lines
2538 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
#227
Author: boltar
Date: Fri, 23 Oct 2026 08:10
22 lines
2648 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
#228
Author: boltar
Date: Fri, 23 Oct 2026 08:14
17 lines
2465 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
#229
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 08:15
13 lines
1867 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
#230
Author: boltar
Date: Fri, 23 Oct 2026 08:16
11 lines
1690 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
#231
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 08:22
42 lines
3476 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
#232
Author: Michael S
Date: Fri, 23 Oct 2026 08:42
25 lines
2401 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
#233
Author: Michael S
Date: Fri, 23 Oct 2026 08:56
34 lines
2678 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
#234
Author: Michael S
Date: Fri, 23 Oct 2026 09:06
43 lines
3161 bytes
On Fri, 23 Oct 2026 00:23:10 +0100
Nuno Silva <nunojsilva@invalid.invalid> wrote:

> [ Keeping the C++ group because that's at least in context, but I'm
> not subscribing to it at the moment. I suppose this could eventually
> go to folklore or alt.unix.geeks? ]
> 
> On 2026-10-22, Scott Lurndal wrote:
> 
> > 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);  
> 
> And here I think "virtual machine" was mistaken to be the Java Virtual
> Machine, not the orange type above?
> 
> (A grapefruit? Pineapple? Banana?)
> 

The fruit of coffee tree is most commonly called cherry.

Re: “The end of software secrecy is almost upon
#235
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 09:15
43 lines
3079 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
#236
Author: boltar
Date: Fri, 23 Oct 2026 09:15
20 lines
2536 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
#237
Author: boltar
Date: Fri, 23 Oct 2026 09:18
35 lines
2877 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
#238
Author: David Brown
Date: Fri, 23 Oct 2026 09:28
14 lines
2228 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
#239
Author: David Brown
Date: Fri, 23 Oct 2026 09:34
23 lines
2704 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
#240
Author: David Brown
Date: Fri, 23 Oct 2026 09:45
63 lines
3626 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
#242
Author: boltar
Date: Fri, 23 Oct 2026 10:11
21 lines
2505 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
#243
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 10:15
30 lines
2950 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
Re: “The end of software secrecy is almost upon
#241
Author: James Kuyper
Date: Fri, 23 Oct 2026 14:21
11 lines
2062 bytes
On 2026-10-23 05:28, David Brown wrote:
> 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.
...> 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". ... 

I suspected as much, but it seemed a sufficiently odd mistake that I
wasn't sure.
Re: “The end of software secrecy is almost upon
#246
Author: Peter Flass
Date: Fri, 23 Oct 2026 16:02
18 lines
2689 bytes
On 10/22/26 22:29, 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?

That obviously wouldn't work, since then the caller would have to know 
something about the object beforehand. I think you'd have to depend on 
the compiler to destroy the object when it goes out of scope, unless the 
caller destroys it itself.
Re: “The end of software secrecy is almost upon
#248
Author: Peter Flass
Date: Fri, 23 Oct 2026 16:06
30 lines
2805 bytes
On 10/23/26 01:01, boltar@caprica.universe wrote:
> 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.

 From what I understand, he wasn't a very good programmer, though.
Re: “The end of software secrecy is almost upon
#247
Author: Charlie Gibbs
Date: Fri, 23 Oct 2026 16:37
17 lines
1692 bytes
On 2026-10-23, Peter Flass <Peter@Iron-Spring.com> wrote:

> On 10/23/26 01:01, boltar@caprica.universe wrote:
>
>> Bill Gates never earned a degree. He seemed to do ok.
>
>  From what I understand, he wasn't a very good programmer, though.

Considering how much of my career I've spent working around
poor design decisions and outright bugs in Windows,
I'd say that is self-evident.

-- 
/~\  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
#249
Author: Peter Flass
Date: Fri, 23 Oct 2026 16:55
28 lines
2998 bytes
On 10/23/26 02:34, David Brown wrote:
> 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/>.
> 

You need something with subsets. At least a "basic" subset, a "full" 
subset, and something in between that satisfies most uses. Or maybe 
subsets for different purposes, but they should all be compatible.
Re: “The end of software secrecy is almost upon
#250
Author: Peter Flass
Date: Fri, 23 Oct 2026 16:57
65 lines
4039 bytes
On 10/23/26 02:45, David Brown wrote:
> 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.

That last sentence is why it would not work fine,
Re: “The end of software secrecy is almost upon
#251
Author: Cryptoengineer
Date: Fri, 23 Oct 2026 16:57
47 lines
3503 bytes
On 10/23/2026 5:18 AM, boltar@caprica.universe wrote:
> 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.
> 

I have a degree in Biochemistry, and spent 5 year in a medical research
lab being professionally unpleasant to rats before switch careers to
software.

It helped that at that time (early 80s) almost no one had a CS degree.

My wife never finished college, but had a very successful programming
career regardless.

pt
Re: “The end of software secrecy is almost upon
#252
Author: John Ames
Date: Fri, 23 Oct 2026 17:32
17 lines
2226 bytes
On Fri, 23 Oct 2026 16:37:37 GMT
Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:

> > > Bill Gates never earned a degree. He seemed to do ok.  
> >
> > From what I understand, he wasn't a very good programmer, though.  
> 
> Considering how much of my career I've spent working around poor
> design decisions and outright bugs in Windows, I'd say that is
> self-evident.

AFAIK you can't pin that one on him; the Tandy Model 100 was the last
product he actually wrote code for, and that came out in '83, right at
the beginning of development on Windows 1.0. Dunno that he did much on
MS-DOS, either, as the core of that was Tim Paterson's work in, erm,
"adapating" the design of CP/M to the 8086.
Re: Re: “The end of software secrecy is almost upon
#254
Author: Scott Dorsey
Date: Fri, 23 Oct 2026 18:01
12 lines
1319 bytes
In article <11bf48l$skng$1@dont-email.me>,  <boltar@caprica.universe> wrote:
>>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.

He is the best example I can ever give for why having an actual CS degree
is a good idea.  His lack of understanding of some basic concepts set the
microcomputer industry back a decade.
--scott
-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon
#255
Author: Scott Dorsey
Date: Fri, 23 Oct 2026 18:09
15 lines
1527 bytes
John Ames  <commodorejohn@gmail.com> wrote:
>AFAIK you can't pin that one on him; the Tandy Model 100 was the last
>product he actually wrote code for, and that came out in '83, right at
>the beginning of development on Windows 1.0. Dunno that he did much on
>MS-DOS, either, as the core of that was Tim Paterson's work in, erm,
>"adapating" the design of CP/M to the 8086.

He continued doing code reviews well into the Win 7 era, and a lot of
people wound up having to clean up after him.  He was always very hands-on.
I remember in 1978 him being the third tier tech support hotline for 
MBASIC bugs.  He was incredibly rude.
--scott

-- 
"C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon
#253
Author: John Ames
Date: Fri, 23 Oct 2026 19:02
10 lines
1797 bytes
On Fri, 23 Oct 2026 14:09:23 -0400 (EDT)
kludge@panix.com (Scott Dorsey) wrote:

> He continued doing code reviews well into the Win 7 era, and a lot of
> people wound up having to clean up after him.  He was always very
> hands-on. I remember in 1978 him being the third tier tech support
> hotline for MBASIC bugs.  He was incredibly rude.

Hm, the more you know...!
Page 4 of 11 • 529 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