Thread View: comp.lang.c++
529 messages
529 total messages
Page 5 of 11
Started by Lynn McGuire
Wed, 14 Oct 2026 04:18
Page 5 of 11 • 529 total messages
Re: Re: “The end of software secrecy is almost upon
Author: Scott Lurndal
Date: Fri, 23 Oct 2026 18:24
Date: Fri, 23 Oct 2026 18:24
60 lines
3893 bytes
3893 bytes
Cryptoengineer <petertrei@gmail.com> writes: >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. I got my BSCS in 1983 (which included two years of postgrad CS classes[*]). Never was laid off, and got to work on very advanced projects for the next forty-plus years, many of which leveraged the postgrad coursework (mainframe OS, crypto, distributed systems, MPP systems, virtual machines, etc). [*] three years learning the PDP-8 and HP-3000 architectures and associated languages (self-taught) during High School resulted in blowing through the undergraduate CS requirements by the end of my sophmore year. The postgrad classes were particularly useful, as they were taught from contemporary journal articles (Lamport, Diffie-Hellman, RSA, Hoare (CSP), et alia). Most of my age-mate colleagues at Burroughs Pasadena plant in the 1980s also had CS or EE/CS degrees (mostly from midwestern colleges).
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 19:19
Date: Fri, 23 Oct 2026 19:19
32 lines
3123 bytes
3123 bytes
On Fri, 23 Oct 2026 09:02:50 -0700, Peter Flass wrote: > 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. And what if the object didn’t consist of just *one* dynamically-allocated block, but needed links to other blocks as well? What if it needed objects dynamically allocated by other APIs, the details of which are internal to those APIs? Is the caller required to know about all these implementation details? In short, the concept doesn’t scale, because it completely breaks the concept of data abstraction. And it just pushes the dynamic-allocation problem elsewhere, without making it easier.
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 19:20
Date: Fri, 23 Oct 2026 19:20
26 lines
2917 bytes
2917 bytes
On Fri, 23 Oct 2026 05:54:44 -0000 (UTC), Steven G. Kargl wrote: > 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. Just pointing out (in case you didn’t notice) that the points you were raising were already addressed in the posting you were (supposedly) replying to ...
Re: “The end of software secrecy is almost upon us"
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 19:25
Date: Fri, 23 Oct 2026 19:25
24 lines
2813 bytes
2813 bytes
On Fri, 23 Oct 2026 09:55:48 -0700, Peter Flass 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 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. Cairo is not exactly a large API, you know. And it already has a full open-source implementation that can be copied. For reference, I had the basics of my pure-Python wrapper <https://gitlab.com/ldo/qahirah> working in about the first 3 weeks.
Re: “The end of software secrecy is almost upon us"
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 19:30
Date: Fri, 23 Oct 2026 19:30
25 lines
2459 bytes
2459 bytes
On Fri, 23 Oct 2026 16:37:37 GMT, Charlie Gibbs wrote: > 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. Remember that current “Windows” actually means “Windows NT”. Which was primarily the brainchild of Dave Cutler, who came from the nest of Unix-haters at DEC. Perhaps it was the corporate culture with Bill Gates at the helm that attracted Cutler to Microsoft. But look at some of the boneheaded decisions he made (or propagated from old DOS-based Windows), just so NT wouldn’t look like Unix, which continue to haunt Microsoft to this day. In short, Gates couldn’t have done what Microsoft achieved on his own.
Re: “The end of software secrecy is almost upon
Author: Steven G. Kargl
Date: Fri, 23 Oct 2026 19:38
Date: Fri, 23 Oct 2026 19:38
37 lines
3520 bytes
3520 bytes
On Fri, 23 Oct 2026 19:20:50 -0000 (UTC), Lawrence D’Oliveiro wrote: > On Fri, 23 Oct 2026 05:54:44 -0000 (UTC), Steven G. Kargl wrote: >> 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. > > Just pointing out (in case you didn’t notice) that the points you were > raising were already addressed in the posting you were (supposedly) > replying to ... And, we are still waiting for your definition of "storage allocation" and its needed cleanup in the context of Fortran 77. It as been pointed out to you multiple times that Fortran 77 does not have dynamic memory allocation. Fortran 77 does not have pointers and it does not have objects. So, what is this mythical cleanup of storage allocation in Fortran 77? It's okay to admit that you were making a some generalization that does not apply to Fortran 77. -- steve
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 19:48
Date: Fri, 23 Oct 2026 19:48
28 lines
2959 bytes
2959 bytes
On 10/22/2026 11:27 PM, Lawrence D’Oliveiro wrote: > 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. Fwiw, Cairo is up on vcpkg, so its really easy to build and integrate with any MSVC project. https://vcpkg.io/en/package/cairo
Re: “The end of software secrecy is almost upon
Author: Lynn McGuire
Date: Fri, 23 Oct 2026 19:49
Date: Fri, 23 Oct 2026 19:49
45 lines
3135 bytes
3135 bytes
On 10/23/2026 11:06 AM, Peter Flass wrote: > 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. Bill Gates wrote the Microsoft Basic compiler and interpreter for the Altair 8080 in 2K of ram using assembly language. Take that as you will. Lynn
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 19:55
Date: Fri, 23 Oct 2026 19:55
41 lines
3392 bytes
3392 bytes
On 10/23/2026 2:34 AM, 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/>. > Fwiw, vcpkg has a lot of them, ready to automatically build and integrate. vcpkg is actually... Well, its pretty nice and so far... Seems to work for me. Want to use Cairo, just do it. https://vcpkg.io/en/package/cairo Actually vcpkg just builds the sucker. No manually installing mingw and/or cygwin or whatever fiddling on windows. Ugggg... Iirc, I think Bart got pissed off about manually building and/or installing certain things on Windows. Don't get me wrong, it was a bitch! But, vcpkg can help for sure. So far, works pretty damn nice.
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 19:56
Date: Fri, 23 Oct 2026 19:56
12 lines
2263 bytes
2263 bytes
On Fri, 23 Oct 2026 12:48:58 -0700, Chris M. Thomasson wrote: > Fwiw, Cairo is up on vcpkg, so its really easy to build and > integrate with any MSVC project. > > https://vcpkg.io/en/package/cairo Do you get Fontconfig and FreeType as well? I thought Windows had native equivalents to all this functionality anyway, yet here you are, reimplementing the entire Free Software stack in parallel to it.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 19:57
Date: Fri, 23 Oct 2026 19:57
28 lines
2953 bytes
2953 bytes
On 10/22/2026 11:27 PM, Lawrence D’Oliveiro wrote: > 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. For a gui, a pretty good one for opengl, directx, etc, is imgui. vcpkg has it as well: https://vcpkg.io/en/package/imgui
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 19:58
Date: Fri, 23 Oct 2026 19:58
20 lines
2485 bytes
2485 bytes
On 10/23/2026 1:03 AM, boltar@caprica.universe wrote: > 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? > Well, a process lib needs to have certain things. Imvvho, at least access to robust mutex?
Re: “The end of software secrecy is almost upon us"
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 19:59
Date: Fri, 23 Oct 2026 19:59
12 lines
1982 bytes
1982 bytes
On Fri, 23 Oct 2026 14:49:23 -0500, Lynn McGuire wrote: > Bill Gates wrote the Microsoft Basic compiler and interpreter for > the Altair 8080 in 2K of ram using assembly language. Take that as > you will. Did he do that on his own? Or did Paul Allen do some or possibly even most or all of the work? And how do you explain that Microsoft Windows (both the old DOS-based Windows and current NT-based Windows) manages to carry over so many bits of cruft from the 8-bit era, when it never ran on 8-bit machines?
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 20:02
Date: Fri, 23 Oct 2026 20:02
38 lines
3130 bytes
3130 bytes
On 10/23/2026 1:01 AM, 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. Agreed. Well, for me. I had LOGO, PILOT and BASIC on my first Atari when I was a little kiddo in the early to mid 80's. Born in 1977. I had some books to go with them. So, I read the damn books. Started programming! Now, wrt AI, well, perhaps nobody needs to buy books anymore because the damn thing has already "ripped them off", so to speak? >> 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
Author: Charlie Gibbs
Date: Fri, 23 Oct 2026 20:28
Date: Fri, 23 Oct 2026 20:28
27 lines
2199 bytes
2199 bytes
On 2026-10-23, John Ames <commodorejohn@gmail.com> wrote: > 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. Still, somebody had to decide to make the MS-DOS COPY command refuse to copy zero-length files - something which CP/M's PIP did happily. -- /~\ Charlie Gibbs | In this world there are \ / <cgibbs@kltpzyxm.invalid> | two kinds of people: X I'm really at ac.dekanfrus | 1. Those who can extrapolate / \ if you read it the right way. | from incomplete data.
Re: “The end of software secrecy is almost upon us"
Author: Charlie Gibbs
Date: Fri, 23 Oct 2026 20:28
Date: Fri, 23 Oct 2026 20:28
31 lines
2278 bytes
2278 bytes
On 2026-10-23, Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > On Fri, 23 Oct 2026 16:37:37 GMT, Charlie Gibbs wrote: > >> 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. > > Remember that current “Windows” actually means “Windows NT”. Which was > primarily the brainchild of Dave Cutler, who came from the nest of > Unix-haters at DEC. Still, much of the cruft I had to deal with was present in 3.1. > In short, Gates couldn’t have done what Microsoft achieved on his own. Sort of like an evil genius commanding his legion of minions... -- /~\ 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
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 20:30
Date: Fri, 23 Oct 2026 20:30
15 lines
2495 bytes
2495 bytes
On 10/23/2026 12:56 PM, Lawrence D’Oliveiro wrote: > On Fri, 23 Oct 2026 12:48:58 -0700, Chris M. Thomasson wrote: > >> Fwiw, Cairo is up on vcpkg, so its really easy to build and >> integrate with any MSVC project. >> >> https://vcpkg.io/en/package/cairo > > Do you get Fontconfig and FreeType as well? > > I thought Windows had native equivalents to all this functionality > anyway, yet here you are, reimplementing the entire Free Software > stack in parallel to it. Yeah. It builds all dependencies.
Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Fri, 23 Oct 2026 20:36
Date: Fri, 23 Oct 2026 20:36
26 lines
2196 bytes
2196 bytes
In article <11bg7sj$l93$1@panix2.panix.com>, Scott Dorsey <kludge@panix.com> wrote: >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. Code reviews? For what? I can't imagine him reviewing Windows code; that was Dave C's baby. I had heard of him doing design reviews, and people I know who went through some of them said he was amazingly sharp, but also extremely critical and brooked no nonsense. A friend of mine did find a bug in Windows that was attributed to a bug he'd introduced back in MS-DOS. Wild times. - Dan C.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 20:43
Date: Fri, 23 Oct 2026 20:43
96 lines
4783 bytes
4783 bytes
On 10/23/2026 9:57 AM, Peter Flass wrote:
> 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,
if a dynamic object is returned, we need to handle its lifetime.
__________________________
// pseudo code
struct foo
{
struct bar* m_bar = nullptr;
int m_a = 0;
double m_b = .42;
};
foo_init(
struct foo* const self
) {
// assume foobar_lib_create succeeded...
self->m_bar = foobar_lib_create(...);
// now we must destroy it in foo_destroy after
// the caller logic is done with it.
}
foo_destroy(
struct foo const* const self
) {
foobar_lib_destroy(self->m_bar);
}
__________________________
Re: Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Fri, 23 Oct 2026 20:45
Date: Fri, 23 Oct 2026 20:45
33 lines
2325 bytes
2325 bytes
In article <11bf4d1$skul$1@dont-email.me>, <boltar@caprica.universe> wrote: >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. So write a simulator in your language of choice. You don't need the language to standardize a process model for that. >How do you think pure software versions of virtual machines work? By trapping and emulating accesses to privileged state, taking care to ensure that the environment that the guest sees faithfully emulates its expectations. You think that's something a programming _language_ like _C_ of all things should standardize? Why? - Dan C.
Re: Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Fri, 23 Oct 2026 20:49
Date: Fri, 23 Oct 2026 20:49
22 lines
1907 bytes
1907 bytes
In article <11bfqh6$1sa3g$1@dont-email.me>, James Kuyper <jameskuyper@alumni.caltech.edu> wrote: >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. The danger of being overly pedantic is that one then lacks the ability to comprehend the difference between an abstract concept like a virtual machine **model** and a concrete manifestation of that concept, like the "abstract machine" described in the C standard. - Dan C.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 20:50
Date: Fri, 23 Oct 2026 20:50
84 lines
4651 bytes
4651 bytes
On 10/23/2026 9:57 AM, Peter Flass wrote:
> 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,
Or have an API that can give us the size of the object the caller needs
to create. So, again pseudo code:
size = foolib_create_get_size(...);
foo_alloc_req fareq = { };
foolib_create_get_alloc_req(&fareq);
foo = create_on_the_stack_etc(size, &fareq);
// The API would have all of that as prerequisites so the caller knows
// about it. Alignment requirements, etc.
foolib_init(foo);
...
foolib_destroy(foo);
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 20:56
Date: Fri, 23 Oct 2026 20:56
57 lines
4028 bytes
4028 bytes
On 10/23/2026 12:19 PM, Lawrence D’Oliveiro wrote:
> On Fri, 23 Oct 2026 09:02:50 -0700, Peter Flass wrote:
>
>> 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.
>
> And what if the object didn’t consist of just *one*
> dynamically-allocated block, but needed links to other blocks as well?
> What if it needed objects dynamically allocated by other APIs, the
> details of which are internal to those APIs? Is the caller required to
> know about all these implementation details?
>
> In short, the concept doesn’t scale, because it completely breaks the
> concept of data abstraction.
>
> And it just pushes the dynamic-allocation problem elsewhere, without
> making it easier.
It can be made to work, and if it fits in with your "scheme", okay, if
not so what? Have an API that can give us the size of the object the
caller needs to create. So, again pseudo code:
size = foolib_create_get_size(...);
foo_alloc_req fareq = { };
foolib_create_get_alloc_req(&fareq);
foo = create_on_the_stack_etc(size, &fareq);
// The API would have all of that as prerequisites so the caller knows
// about it. Alignment requirements, etc.
foolib_init(foo);
...
foolib_destroy(foo);
The caller can gain the size, and the alignment requirements up front.
It can allocate it using any of its means. Then use that to call into
the lib. It works.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 21:00
Date: Fri, 23 Oct 2026 21:00
25 lines
3133 bytes
3133 bytes
On 10/23/2026 9:02 AM, Peter Flass wrote: > 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. Knowing a size and an alignment requirement doesn't mean the caller knows how the object works or what fields it holds. It just means they know the dimensions of the box. They get a handle or a raw pointer, while the internal layout remains entirely hidden behind the API. That is textbook encapsulation
Re: “The end of software secrecy is almost upon
Author: Thomas Koenig
Date: Fri, 23 Oct 2026 21:00
Date: Fri, 23 Oct 2026 21:00
29 lines
2891 bytes
2891 bytes
David Brown <david.brown@hesbynett.no> schrieb: > 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. I have one Fortran program which has an excellent graphics API, it writes Postscript. Works fine. Can't do any mouse clicks on it and expect anything to happen, though :-) Works for all programming languages as long as they do text I/O. > 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. I guess mine is an example rather restricted graphics API, then :-) -- This USENET posting was made without artificial intelligence, artificial impertinence, artificial arrogance, artificial stupidity, artificial flavorings or artificial colorants.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 21:06
Date: Fri, 23 Oct 2026 21:06
29 lines
2730 bytes
2730 bytes
On 10/23/2026 12:58 PM, Chris M. Thomasson wrote: > On 10/23/2026 1:03 AM, boltar@caprica.universe wrote: >> 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? >> > > Well, a process lib needs to have certain things. Imvvho, at least > access to robust mutex? Fwiw. Akin to: https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutexattr_getrobust.html
Re: “The end of software secrecy is almost upon
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 21:14
Date: Fri, 23 Oct 2026 21:14
36 lines
3170 bytes
3170 bytes
On 10/24/2026 5:00 AM, Thomas Koenig wrote: > David Brown <david.brown@hesbynett.no> schrieb: >> 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. > > I have one Fortran program which has an excellent graphics API, > it writes Postscript. Works fine. Can't do any mouse clicks on > it and expect anything to happen, though :-) > > Works for all programming languages as long as they do text I/O. > >> 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. > > I guess mine is an example rather restricted graphics API, then :-) > If I remember the manual correctly, Open Watcom Fortran 77 has Win 3.1 abstractions. Those never got ported to Win 95+, as far as I know of, so didn't last. I should try it one of these days, and see if it still works. -- 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
Author: Johann 'Myrkraverk' Oskarsson
Date: Fri, 23 Oct 2026 21:19
Date: Fri, 23 Oct 2026 21:19
51 lines
4172 bytes
4172 bytes
On 10/24/2026 3:38 AM, Steven G. Kargl wrote: > On Fri, 23 Oct 2026 19:20:50 -0000 (UTC), Lawrence D’Oliveiro wrote: > >> On Fri, 23 Oct 2026 05:54:44 -0000 (UTC), Steven G. Kargl wrote: >>> 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. >> >> Just pointing out (in case you didn’t notice) that the points you were >> raising were already addressed in the posting you were (supposedly) >> replying to ... > > And, we are still waiting for your definition of "storage allocation" > and its needed cleanup in the context of Fortran 77. It as been pointed > out to you multiple times that Fortran 77 does not have dynamic memory > allocation. Fortran 77 does not have pointers and it does not have > objects. So, what is this mythical cleanup of storage allocation in > Fortran 77? > > It's okay to admit that you were making a some generalization that > does not apply to Fortran 77. > Dear Steven, I'm sure you're well aware of the nerd-posturing that prohibits people from accepting their mistakes, or admit lacking in any programming ca- pacity. I believe Lawrence will never cop to any fault, because it'll /lower his social standing/ among the trolls of comp.lang.c++. So best wishes, and happy waiting forever for the nerds to apologize! -- 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
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 21:29
Date: Fri, 23 Oct 2026 21:29
5 lines
2185 bytes
2185 bytes
On 10/23/2026 12:19 PM, Lawrence D’Oliveiro wrote: > That obviously wouldn't work, since then the caller would have to > know something about the object beforehand. non sequitur?
Re: “The end of software secrecy is almost upon
Author: William Hyde
Date: Fri, 23 Oct 2026 21:40
Date: Fri, 23 Oct 2026 21:40
36 lines
2859 bytes
2859 bytes
Michael S wrote: > 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. In the 70s and early 80s there was little demand for people with graduate degrees in physics. Most of my fellow students went on to work in computer science or drove taxis when their postdoctoral positions expired. I am a lousy driver and so-so programmer (at best) so I was forced to stick with it. William Hyde
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 22:42
Date: Fri, 23 Oct 2026 22:42
18 lines
2636 bytes
2636 bytes
On Fri, 23 Oct 2026 13:56:49 -0700, Chris M. Thomasson wrote: > On 10/23/2026 12:19 PM, Lawrence D’Oliveiro wrote: >> >> In short, the concept doesn’t scale, because it completely breaks >> the concept of data abstraction. >> >> And it just pushes the dynamic-allocation problem elsewhere, >> without making it easier. > > It can be made to work ... I’m sure it’s *possible*, but what is the *point*? The whole aim of levels of abstraction is to tame the multi-headed beast of complexity that is computer programming. What you are doing here is breaking down those levels, all in the aid of, I don’t know, just to keep using gotos in your code, or something.
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 22:43
Date: Fri, 23 Oct 2026 22:43
10 lines
2262 bytes
2262 bytes
On Fri, 23 Oct 2026 14:29:22 -0700, Chris M. Thomasson wrote: > On 10/23/2026 12:19 PM, Lawrence D’Oliveiro wrote: >> >> That obviously wouldn't work, since then the caller would have to >> know something about the object beforehand. > > non sequitur? I don’t care, because ... I didn’t say that.
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 22:46
Date: Fri, 23 Oct 2026 22:46
9 lines
2190 bytes
2190 bytes
On Fri, 23 Oct 2026 12:55:02 -0700, Chris M. Thomasson wrote: > Fwiw, vcpkg has a lot of them, ready to automatically build and > integrate. vcpkg is actually... Well, its pretty nice and so far... > Seems to work for me. How does it work for end-users? Are your dependencies automatically brought in when they install your package? How are they kept up-to-date?
Re: “The end of software secrecy is almost upon us"
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 22:49
Date: Fri, 23 Oct 2026 22:49
13 lines
2452 bytes
2452 bytes
On Fri, 23 Oct 2026 21:00:30 -0000 (UTC), Thomas Koenig wrote: > I have one Fortran program which has an excellent graphics API, it > writes Postscript. Works fine. Can't do any mouse clicks on it and > expect anything to happen, though :-) PostScript was a very influential graphics API, but it is only fit for the museum nowadays. It was designed for putting marks on paper, not for updating pixels on a computer screen. Also its Unicode support was never really satisfactory. Look at successors like Cairo, and you clearly see the PostScript influence. And yet they are definitely more modern in their approach.
Re: “The end of software secrecy is almost upon us"
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 22:50
Date: Fri, 23 Oct 2026 22:50
11 lines
1895 bytes
1895 bytes
On Fri, 23 Oct 2026 20:28:07 GMT, Charlie Gibbs wrote: > On 2026-10-23, Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > >> In short, Gates couldn’t have done what Microsoft achieved on his own. > > Sort of like an evil genius commanding his legion of minions... He set the standard for the corporate culture at Microsoft! A culture which persists to this day ...
Re: “The end of software secrecy is almost upon
Author: James Kuyper
Date: Fri, 23 Oct 2026 22:50
Date: Fri, 23 Oct 2026 22:50
22 lines
2817 bytes
2817 bytes
On 2026-10-23 17:40, William Hyde wrote: > Michael S wrote: ...>> My experience in industry beats yours by few years. >> And my statistics differ - CS graduates are not majority of computer >> programmers. > > In the 70s and early 80s there was little demand for people with > graduate degrees in physics. Most of my fellow students went on to work > in computer science or drove taxis when their postdoctoral positions > expired. > > I am a lousy driver and so-so programmer (at best) so I was forced to > stick with it. I studied to be a physicist, got a BS from Caltech, and did postgraduate work at Cambridge. I reached that point in the 90s. I learned computer programming only with the intent of using it as a tool in support of my physics. That idea foundered on two rocks: while I am very good at understanding advanced physics, I'm not particularly good at the practicalities of experimental physics, and my imagination isn't good enough to make a good theoretical physicist. I ended up being a programmer who specialized in scientific programming, rather than a scientist who uses computer programs.
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Fri, 23 Oct 2026 22:57
Date: Fri, 23 Oct 2026 22:57
22 lines
2393 bytes
2393 bytes
On Fri, 23 Oct 2026 13:02:44 -0700, Chris M. Thomasson wrote:
> Well, for me. I had LOGO, PILOT and BASIC on my first Atari when I
> was a little kiddo in the early to mid 80's. Born in 1977. I had
> some books to go with them. So, I read the damn books. Started
> programming!
My first exposure to a real computer system was a DEC PDP-11. I
remember the first time I saw an Apple II running LOGO. Somebody tried
telling it to do a file I/O command without a floppy in the drive. It
ground away for a few seconds, and then produced an error message --
of course.
What was that error message? I was expecting something like “DISK
ERROR” or “I/O ERROR”. Instead, it said
I’m having trouble with the disk.
To me, that was like a splash in the face with a pail of cold water.
The idea of an error message phrased in plain, approachable language
(using a first-person pronoun, even) instead of technical terms?? That
was a revelation.
Re: “The end of software secrecy is almost upon
Author: Charlie Gibbs
Date: Fri, 23 Oct 2026 23:31
Date: Fri, 23 Oct 2026 23:31
51 lines
3519 bytes
3519 bytes
On 2026-10-23, Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > On Fri, 23 Oct 2026 13:02:44 -0700, Chris M. Thomasson wrote: > >> Well, for me. I had LOGO, PILOT and BASIC on my first Atari when I >> was a little kiddo in the early to mid 80's. Born in 1977. I had >> some books to go with them. So, I read the damn books. Started >> programming! > > My first exposure to a real computer system was a DEC PDP-11. I > remember the first time I saw an Apple II running LOGO. Somebody tried > telling it to do a file I/O command without a floppy in the drive. It > ground away for a few seconds, and then produced an error message -- > of course. > > What was that error message? I was expecting something like “DISK > ERROR” or “I/O ERROR”. Instead, it said > > I’m having trouble with the disk. > > To me, that was like a splash in the face with a pail of cold water. > The idea of an error message phrased in plain, approachable language > (using a first-person pronoun, even) instead of technical terms?? That > was a revelation. Unfortunately it's not the kind of revelation I welcome. Back in my mainframe days, I learned to hate catch-all error messages; they're the sign of a programmer who's too lazy to try to help the user. If something goes wrong, I want to be given some clues as to where to look. But more and more these days, your typical error message is "Something went wrong." Nothing more. This kind of conduct should be condemned. Think of it from a support person's point of view. A user calls and says, "I have an error message." "OK," you reply, "what is the message?" "It doesn't work." That's what the user would have said anyway - we've just wasted some time, and we still have to start the same old game of Twenty Questions. I'm not saying that we should go back to the days of cryptic error codes. But an error message can be both friendly and helpful. For your case, how about something like "There is no disk in the drive" or "The disk is write-protected"? And then follow it with an error code for those of us who know how to interpret them. Users shouldn't be made to guess what the computer already knows. -- /~\ 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
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 23:56
Date: Fri, 23 Oct 2026 23:56
32 lines
3288 bytes
3288 bytes
On 10/23/2026 3:50 PM, James Kuyper wrote: > On 2026-10-23 17:40, William Hyde wrote: >> Michael S wrote: > ...>> My experience in industry beats yours by few years. >>> And my statistics differ - CS graduates are not majority of computer >>> programmers. >> >> In the 70s and early 80s there was little demand for people with >> graduate degrees in physics. Most of my fellow students went on to work >> in computer science or drove taxis when their postdoctoral positions >> expired. >> >> I am a lousy driver and so-so programmer (at best) so I was forced to >> stick with it. > I studied to be a physicist, got a BS from Caltech, and did postgraduate > work at Cambridge. I reached that point in the 90s. I learned computer > programming only with the intent of using it as a tool in support of my > physics. That idea foundered on two rocks: while I am very good at > understanding advanced physics, I'm not particularly good at the > practicalities of experimental physics, and my imagination isn't good > enough to make a good theoretical physicist. I ended up being a > programmer who specialized in scientific programming, rather than a > scientist who uses computer programs. Sounds good! When I got into fractals and vector fields back in 2010'ish, I started getting really happy. It was funner than lock/wait free systems stuff. Here is an older work of mine from 12 years ago: https://youtu.be/D9XBDNVTlFE My vector field work is neat. It can be used for different things. It can use real sensor data.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Fri, 23 Oct 2026 23:58
Date: Fri, 23 Oct 2026 23:58
15 lines
2557 bytes
2557 bytes
On 10/23/2026 3:46 PM, Lawrence D’Oliveiro wrote: > On Fri, 23 Oct 2026 12:55:02 -0700, Chris M. Thomasson wrote: > >> Fwiw, vcpkg has a lot of them, ready to automatically build and >> integrate. vcpkg is actually... Well, its pretty nice and so far... >> Seems to work for me. > > How does it work for end-users? Are your dependencies automatically > brought in when they install your package? How are they kept > up-to-date? Oh yeah. In your build directory, say Debug or Release, it has all of the built shared libs and everything you need to run it. Keeping them up to date is, afaict, manual.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sat, 24 Oct 2026 00:00
Date: Sat, 24 Oct 2026 00:00
20 lines
2857 bytes
2857 bytes
On 10/23/2026 4:58 PM, Chris M. Thomasson wrote: > On 10/23/2026 3:46 PM, Lawrence D’Oliveiro wrote: >> On Fri, 23 Oct 2026 12:55:02 -0700, Chris M. Thomasson wrote: >> >>> Fwiw, vcpkg has a lot of them, ready to automatically build and >>> integrate. vcpkg is actually... Well, its pretty nice and so far... >>> Seems to work for me. >> >> How does it work for end-users? Are your dependencies automatically >> brought in when they install your package? How are they kept >> up-to-date? > > Oh yeah. In your build directory, say Debug or Release, it has all of > the built shared libs and everything you need to run it. > > Keeping them up to date is, afaict, manual. In the sense of going back to vcpkg, seeing if there is a new version, building it, and it updates everything. Then go back to your project(s), and rebuild them, or they might just link up.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sat, 24 Oct 2026 00:01
Date: Sat, 24 Oct 2026 00:01
23 lines
3046 bytes
3046 bytes
On 10/23/2026 3:42 PM, Lawrence D’Oliveiro wrote: > On Fri, 23 Oct 2026 13:56:49 -0700, Chris M. Thomasson wrote: > >> On 10/23/2026 12:19 PM, Lawrence D’Oliveiro wrote: >>> >>> In short, the concept doesn’t scale, because it completely breaks >>> the concept of data abstraction. >>> >>> And it just pushes the dynamic-allocation problem elsewhere, >>> without making it easier. >> >> It can be made to work ... > > I’m sure it’s *possible*, but what is the *point*? > > The whole aim of levels of abstraction is to tame the multi-headed > beast of complexity that is computer programming. What you are doing > here is breaking down those levels, all in the aid of, I don’t know, > just to keep using gotos in your code, or something. Well, not about goto's and such. Just so a lib can inform the caller as to what it needs to work with. The caller sets it up, then calls into the init etc. Its being used in a lot of places. Take Vulkan.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sat, 24 Oct 2026 00:01
Date: Sat, 24 Oct 2026 00:01
13 lines
2460 bytes
2460 bytes
On 10/23/2026 3:43 PM, Lawrence D’Oliveiro wrote: > On Fri, 23 Oct 2026 14:29:22 -0700, Chris M. Thomasson wrote: > >> On 10/23/2026 12:19 PM, Lawrence D’Oliveiro wrote: >>> >>> That obviously wouldn't work, since then the caller would have to >>> know something about the object beforehand. >> >> non sequitur? > > I don’t care, because ... I didn’t say that. Oh sorry.
Re: “The end of software secrecy is almost upon
Author: Peter Flass
Date: Sat, 24 Oct 2026 00:04
Date: Sat, 24 Oct 2026 00:04
49 lines
3920 bytes
3920 bytes
On 10/23/26 16:31, Charlie Gibbs wrote: > On 2026-10-23, Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > >> On Fri, 23 Oct 2026 13:02:44 -0700, Chris M. Thomasson wrote: >> >>> Well, for me. I had LOGO, PILOT and BASIC on my first Atari when I >>> was a little kiddo in the early to mid 80's. Born in 1977. I had >>> some books to go with them. So, I read the damn books. Started >>> programming! >> >> My first exposure to a real computer system was a DEC PDP-11. I >> remember the first time I saw an Apple II running LOGO. Somebody tried >> telling it to do a file I/O command without a floppy in the drive. It >> ground away for a few seconds, and then produced an error message -- >> of course. >> >> What was that error message? I was expecting something like “DISK >> ERROR” or “I/O ERROR”. Instead, it said >> >> I’m having trouble with the disk. >> >> To me, that was like a splash in the face with a pail of cold water. >> The idea of an error message phrased in plain, approachable language >> (using a first-person pronoun, even) instead of technical terms?? That >> was a revelation. > > Unfortunately it's not the kind of revelation I welcome. Back > in my mainframe days, I learned to hate catch-all error messages; > they're the sign of a programmer who's too lazy to try to help > the user. If something goes wrong, I want to be given some clues > as to where to look. But more and more these days, your typical > error message is "Something went wrong." Nothing more. This kind > of conduct should be condemned. > > Think of it from a support person's point of view. A user calls > and says, "I have an error message." "OK," you reply, "what is > the message?" "It doesn't work." That's what the user would have > said anyway - we've just wasted some time, and we still have to > start the same old game of Twenty Questions. > > I'm not saying that we should go back to the days of cryptic error > codes. But an error message can be both friendly and helpful. > For your case, how about something like "There is no disk in the > drive" or "The disk is write-protected"? And then follow it with > an error code for those of us who know how to interpret them. > Users shouldn't be made to guess what the computer already knows. > I like messages with codes AND descriptive text.
Whilst All The Computer Experts are Visiting r.a.sf.w.
Author: Titus G
Date: Sat, 24 Oct 2026 03:12
Date: Sat, 24 Oct 2026 03:12
15 lines
2436 bytes
2436 bytes
Why does Mozilla Firefox update itself just about every week? I use Firefox because it came installed with the Linux version I use. The most recent update now requires me to sign in with my Firefox account address ...@yahooxtra that I lost without warning over ten years ago when Yahoo and Xtra parted company and my address became ...@xtra.co.nz Google Chrome has over 60% of the market. Is there any reason why I shouldn't change to Chrome? Why does the Freedesktop Platform replace everything, (999 MB) every time Calibre is updated? How do I find out if this Platform services anything other than Calibre on my desktop? I can't think of any reason not to update Calibre using Calibre itself when it advises of updates.
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 03:33
Date: Sat, 24 Oct 2026 03:33
30 lines
3257 bytes
3257 bytes
On Fri, 23 Oct 2026 17:01:28 -0700, Chris M. Thomasson wrote: > On 10/23/2026 3:42 PM, Lawrence D’Oliveiro wrote: >> >> On Fri, 23 Oct 2026 13:56:49 -0700, Chris M. Thomasson wrote: >> >>> On 10/23/2026 12:19 PM, Lawrence D’Oliveiro wrote: >>>> >>>> In short, the concept doesn’t scale, because it completely breaks >>>> the concept of data abstraction. >>>> >>>> And it just pushes the dynamic-allocation problem elsewhere, >>>> without making it easier. >>> >>> It can be made to work ... >> >> I’m sure it’s *possible*, but what is the *point*? >> >> The whole aim of levels of abstraction is to tame the multi-headed >> beast of complexity that is computer programming. What you are >> doing here is breaking down those levels, all in the aid of, I >> don’t know, just to keep using gotos in your code, or something. > > Well, not about goto's and such. Just so a lib can inform the caller > as to what it needs to work with. The caller sets it up, then calls > into the init etc. Its being used in a lot of places. Take Vulkan. Where in Vulkan? Exposing implementation details to the caller not only increases complexity, it also limits the implementor’s ability to change those details later.
Re: “The end of software secrecy is almost upon us”
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 03:39
Date: Sat, 24 Oct 2026 03:39
48 lines
4010 bytes
4010 bytes
On Fri, 23 Oct 2026 16:58:04 -0700, Chris M. Thomasson wrote:
> On 10/23/2026 3:46 PM, Lawrence D’Oliveiro wrote:
>>
>> On Fri, 23 Oct 2026 12:55:02 -0700, Chris M. Thomasson wrote:
>>
>>> Fwiw, vcpkg has a lot of them, ready to automatically build and
>>> integrate. vcpkg is actually... Well, its pretty nice and so
>>> far... Seems to work for me.
>>
>> How does it work for end-users? Are your dependencies automatically
>> brought in when they install your package? How are they kept
>> up-to-date?
>
> Oh yeah. In your build directory, say Debug or Release, it has all
> of the built shared libs and everything you need to run it.
>
> Keeping them up to date is, afaict, manual.
In the Linux world, we have “development” packages versus “runtime”
packages.
The development package contains the source includes, pkg-config info etc.
The runtime version includes the actual shared library. So your built package
has a dependency on the latter; when a user tries to install your package,
it should automatically pull in the latter as necessary.
Example from my system:
lrwxrwxrwx 1 root root 13 Apr 24 2026 /usr/lib/x86_64-linux-gnu/libcairo.so -> libcairo.so.2
lrwxrwxrwx 1 root root 21 Apr 24 2026 /usr/lib/x86_64-linux-gnu/libcairo.so.2 -> libcairo.so.2.11804.4
-rw-r--r-- 1 root root 1366728 Apr 24 2026 /usr/lib/x86_64-linux-gnu/libcairo.so.2.11804.4
Where did these come from?
root@theon:~ # dpkg-query -S /usr/lib/x86_64-linux-gnu/libcairo.so.2
libcairo2:amd64: /usr/lib/x86_64-linux-gnu/libcairo.so.2
root@theon:~ # dpkg-query -S /usr/lib/x86_64-linux-gnu/libcairo.so
libcairo2-dev:amd64: /usr/lib/x86_64-linux-gnu/libcairo.so
Notice how the development library is not versioned, but is just a
symlink to a versioned library.
The runtime library is always versioned. This allows multiple versions
of the library to be present at once, with some older packages, that haven’t
been rebuilt, still depending on an older version, while up-to-date packages
make use of the newer version.
Re: “The end of software secrecy is almost upon us”
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 03:44
Date: Sat, 24 Oct 2026 03:44
39 lines
3272 bytes
3272 bytes
On Fri, 23 Oct 2026 23:31:41 GMT, Charlie Gibbs wrote: > On 2026-10-23, Lawrence D’Oliveiro <ldo@nz.invalid> wrote: > >> What was that error message? I was expecting something like “DISK >> ERROR” or “I/O ERROR”. Instead, it said >> >> I’m having trouble with the disk. >> >> The idea of an error message phrased in plain, approachable >> language (using a first-person pronoun, even) instead of technical >> terms?? That was a revelation. > > Unfortunately it's not the kind of revelation I welcome. Back in my > mainframe days, I learned to hate catch-all error messages; they're > the sign of a programmer who's too lazy to try to help the user. If > something goes wrong, I want to be given some clues as to where to > look. But more and more these days, your typical error message is > "Something went wrong." Nothing more. This kind of conduct should be > condemned. This was not like that though, was it? On systems of that era, you would typically get something like “DISK ERROR” or “I/O ERROR”. The plain-language message was no less specific than that. Do you want more detail about what went wrong? Perhaps a CRC validation failure? Sector-addressing failure? Missing address/data marks? Invalid GCR/RLL encoding? That kind of low-level detail might be helpful to somebody (perhaps a hardware engineer) trying to fix the problem. And perhaps it should appear in a system log somewhere. And it wouldn’t have mattered much in this case, anyway, since it would have been obvious to anybody‡ sitting or standing in front of the machine, that the most likely cause was the fact that there was no disk in the drive. ‡Anybody who had made much use of floppy disks on micros, anyway.
Re: “The end of software secrecy is almost upon us"
Author: Lynn McGuire
Date: Sat, 24 Oct 2026 05:27
Date: Sat, 24 Oct 2026 05:27
43 lines
2997 bytes
2997 bytes
On 10/15/2026 8:35 PM, Jay Morris wrote: > On 10/15/2026 2:13 PM, Lynn McGuire wrote: >> On 10/15/2026 10:05 AM, Scott Dorsey wrote: >>> Lynn McGuire <lynnmcguire5@gmail.com> wrote: >>>> Huh, so somebody has actually built a decent decompiler. Why do I >>>> doubt >>>> this even though ESR says otherwise? >>> >>> Because decompiling some languages isn't that hard. Humans can do it >>> pretty >>> well, although it's harder for machines. It helps a lot if you have >>> a symbol >>> table (which it sounds like they did in the example ESR cites). >>> >>> Now... that said... I wouldn't trust anything ESR ever says and I >>> would not >>> hold him up as an authority. >>> >>>> And he has a translator from Borland Pascal to Rust? >>> >>> That seems like a step down, doesn't it? >>> --scott >> >> Yes on the step down to Rust. I wrote a lot of Turbo Pascal code back >> in the 1980s but I have to admit that I am a C++ fanboi through and >> through. And at my age, it will hard to change my mind on that unless >> you are writing embedded code. >> >> I have translated over 200,000 lines of Fortran 66/77 code to C++ this >> year so far. Trying to get to 300,000 lines of Fortran 66/77 code >> before the end of the year. >> >> Lynn > > Be sure to let us know, we'll throw a party. > > Actually, I'm close enough that that's possible. I would not hold my breath. This week has been slogging through the mud of 2,000 line Fortran 66 subroutines with hundreds of gotos. Lynn
Re: “The end of software secrecy is almost upon us"
Author: boltar
Date: Sat, 24 Oct 2026 08:18
Date: Sat, 24 Oct 2026 08:18
33 lines
2859 bytes
2859 bytes
On Fri, 23 Oct 2026 19:30:58 -0000 (UTC) Lawrence =?iso-8859-13?q?D=FFOliveiro?= <ldo@nz.invalid> gabbled: >On Fri, 23 Oct 2026 16:37:37 GMT, Charlie Gibbs wrote: > >> 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. > >Remember that current “Windows” actually means “Windows NT”. Which was >primarily the brainchild of Dave Cutler, who came from the nest of >Unix-haters at DEC. > >Perhaps it was the corporate culture with Bill Gates at the helm that >attracted Cutler to Microsoft. But look at some of the boneheaded >decisions he made (or propagated from old DOS-based Windows), just so >NT wouldn’t look like Unix, which continue to haunt Microsoft to this >day. People forget that Microsoft had its own version of unix - xenix (which it eventually sold to SCO). They could easily have put a Windows-like GUI on top with or without X Windows underneath, and a DOS compat API to run DOS programs. But they didn't - they wasted time and money creating NT which was a piss poor imitation and even today, no sane IT manager would use Windows Server in a mission critical 24/7/265 rack setup.
Page 5 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