Thread View: alt.comp.lang.rust
514 messages
514 total messages
Page 6 of 11
Started by Lynn McGuire
Wed, 14 Oct 2026 04:18
Page 6 of 11 • 514 total messages
Re: “The end of software secrecy is almost upon
Author: Peter Flass
Date: Fri, 23 Oct 2026 16:02
Date: Fri, 23 Oct 2026 16:02
18 lines
2810 bytes
2810 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
Author: Chris M. Thomasson
Date: Sat, 24 Oct 2026 00:00
Date: Sat, 24 Oct 2026 00:00
20 lines
2978 bytes
2978 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
3167 bytes
3167 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
2581 bytes
2581 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
4041 bytes
4041 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
2585 bytes
2585 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
3378 bytes
3378 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
4131 bytes
4131 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
3393 bytes
3393 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
3116 bytes
3116 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: Whilst All The Computer Experts are Visiting r.a.sf.w.
Author: Johann 'Myrkraverk' Oskarsson
Date: Sat, 24 Oct 2026 07:22
Date: Sat, 24 Oct 2026 07:22
28 lines
2863 bytes
2863 bytes
On 10/24/2026 11:12 AM, Titus G wrote: > Why does Mozilla Firefox update itself just about every week? There was an emergency Firefox update a few days ago, I believe, because of the e-something-or-other in India screwed up root key generation for their certificate authority. You can read the details at Ars Technica or elsewhere. https://arstechnica.com/security/2026/10/disgraced-emudhra-drops-out-of-tls-business-following-certificate-debacle/ One of the keys was literally 4, according to the article. I wonder if they threw a six sided die? I cannot help with your Firefox account, other than say I am not using one yet, so there may still be a way to bypass the need. However, I cannot say how since I don't care about the Firefox user interface after they started to move everything around all the time. If you bring back Netscape 7 let me know. Best wishes, and happy browser wars! -- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:; Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Re: “The end of software secrecy is almost upon us"
Author: boltar
Date: Sat, 24 Oct 2026 08:18
Date: Sat, 24 Oct 2026 08:18
33 lines
2980 bytes
2980 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.
Re: Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sat, 24 Oct 2026 08:20
Date: Sat, 24 Oct 2026 08:20
15 lines
2148 bytes
2148 bytes
On Fri, 23 Oct 2026 14:49:23 -0500 Lynn McGuire <lynnmcguire5@gmail.com> gabbled: >On 10/23/2026 11:06 AM, Peter Flass wrote: >>> 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. Gates when he put his mind to it could certainly program. Even Sinclair required 4K for BASIC in the ZX80 for example. But some of his technical (and business) decisions leave a lot to be desired.
Re: Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sat, 24 Oct 2026 08:21
Date: Sat, 24 Oct 2026 08:21
27 lines
2523 bytes
2523 bytes
On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >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. Ditto threads. So why does C++ have a threading library? Take your time...
Re: “The end of software secrecy is almost upon
Author: David Brown
Date: Sat, 24 Oct 2026 10:38
Date: Sat, 24 Oct 2026 10:38
56 lines
4563 bytes
4563 bytes
On 23/10/2026 18:55, Peter Flass wrote: > 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. You can't do that for GUI's. All you get is a collection of subsets that are wrong for many people, and not nearly enough for most of them. Look at Python. It has a standard gui interface in the standard library - TKInter. Of serious Python programs with guis, it probably has a market share of a few percent - it's pretty much pointless having it in the standard library. There are a large number of gui toolkits used - QT, wx, GTK, SDL, "immediate mode" guis, embedded web browsers, etc. I have no statistics, but I doubt if there are any that have more than about 10% "market" share. Any many of these have wildly different paradigms - you can't easily combine them for a subset or abstraction. A standardised gui for C++ always sounds like a nice idea, but I can't see it being at all practical as part of the C++ standards process. At best, it could be a parallel setup with its own scheduling and its own publications. Trying to fit a gui into the model use for creating and maintaining the C++ standards would 5 years to produce a document that is 4 times the size of the current standard, 8 years out of date, and would be ignored by 95% of people writing gui programs in C++. And that's assuming you ignore one of the major users of C++ - the embedded world.
Re: “The end of software secrecy is almost upon
Author: David Brown
Date: Sat, 24 Oct 2026 10:43
Date: Sat, 24 Oct 2026 10:43
74 lines
4721 bytes
4721 bytes
On 23/10/2026 18:57, 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,
OK. Knowing the size of the returned object is an absolute requirement
for pre-allocation by the caller, and it is a requirement that is fine
for a lot of situations and a lot of languages. But if it is not the
case for PL/I, Fortran, or any other particular language (or particular
function in any language), then I fully agree - the object's space can't
be handled by the caller.
Re: “The end of software secrecy is almost upon
Author: Gary R. Schmidt
Date: Sat, 24 Oct 2026 14:03
Date: Sat, 24 Oct 2026 14:03
55 lines
3477 bytes
3477 bytes
On 24/10/2026 03:06, 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. A story I heard thirty-odd years ago about Bill Gates' purported programming ability: When MS started making money from their MSBASIC compiler, they started hiring real staff. One of them was tasked with working through the various functions that BASIC does, such as opening files, sorting arrays, and the like. When he looked at the sort routine, he exclaimed, loudly, "What idiot wrote this, it doesn't do anything!" Bill was in the room at the time, wandered over and had a look at what they were working on, and said, "Oh, the sort routine. I could never get that to work." Apparently it was not a career-limiting action by the programmer. Cheers, Gary B-)
Re: Re: “The end of software secrecy is almost upon
Author: Scott Lurndal
Date: Sat, 24 Oct 2026 14:25
Date: Sat, 24 Oct 2026 14:25
28 lines
2483 bytes
2483 bytes
boltar@caprica.universe writes: >On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>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. > >Ditto threads. So why does C++ have a threading library? It doesn't. It does have an abstraction wrapper around whatever threading support the target host has.
Re: “The end of software secrecy is almost upon
Author: Peter Flass
Date: Sat, 24 Oct 2026 14:26
Date: Sat, 24 Oct 2026 14:26
30 lines
2987 bytes
2987 bytes
On 10/24/26 01:21, boltar@caprica.universe wrote: > On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) > cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >> 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. > > Ditto threads. So why does C++ have a threading library? > > Take your time... You can have co-operative threads. IBM CICS used to run lots of threads (tasks) concurrently, and ran them well.
Re: Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sat, 24 Oct 2026 14:51
Date: Sat, 24 Oct 2026 14:51
35 lines
2922 bytes
2922 bytes
On Sat, 24 Oct 2026 14:25:36 GMT scott@slp53.sl.home (Scott Lurndal) gabbled: >boltar@caprica.universe writes: >>On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >>cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>>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. >> >>Ditto threads. So why does C++ have a threading library? > >It doesn't. It does have an abstraction wrapper around >whatever threading support the target host has. And iostream is an abstraction around low level C I/O, whats your point?
Re: “The end of software secrecy is almost upon
Author: Johann 'Myrkraverk' Oskarsson
Date: Sat, 24 Oct 2026 14:55
Date: Sat, 24 Oct 2026 14:55
49 lines
3779 bytes
3779 bytes
On 10/24/2026 10:25 PM, Scott Lurndal wrote: > boltar@caprica.universe writes: >> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>> 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. >> >> Ditto threads. So why does C++ have a threading library? > > It doesn't. It does have an abstraction wrapper around > whatever threading support the target host has. I don't think that's true. I currently believe, and I'm very welcoming of an alt.folklore.computers expert to correct me, that the Vista+ threading model that looks extremely much like the Posix threads, only the names of the routines were changed, was put in place exactly to sup- port the C++ threading model. I mean, /why else/ would Microsoft bend backwards and admit their ear- lier Win32 threading model was flawed? And why have a subset of the Po- six threads and not the full thing? A side by side comparison of the C++ threading model might be enlightening, but I have not done this textbook exercise myself just yet. What do you think, Scott? -- 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
Author: Dan Cross
Date: Sat, 24 Oct 2026 16:41
Date: Sat, 24 Oct 2026 16:41
36 lines
2642 bytes
2642 bytes
In article <11bhppd$2lpkc$1@dont-email.me>, <boltar@caprica.universe> wrote: >On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>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. > >Ditto threads. So why does C++ have a threading library? > >Take your time... What, pray tell, do you think that a _thread_ is? And how is it different from a _process_? For that matter, what do you think that a _process_ is? Please, take all the time you need to answer. - Dan C.
Re: “The end of software secrecy is almost upon
Author: Scott Dorsey
Date: Sat, 24 Oct 2026 17:47
Date: Sat, 24 Oct 2026 17:47
10 lines
1329 bytes
1329 bytes
Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote: > >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. That's a bug and not a feature. Sometimes you want to have a zero-length file in place as a semaphore. --scott -- "C'est un Nagra. C'est suisse, et tres, tres precis."
Re: Re: “The end of software secrecy is almost upon
Author: Scott Dorsey
Date: Sat, 24 Oct 2026 17:53
Date: Sat, 24 Oct 2026 17:53
18 lines
1774 bytes
1774 bytes
In article <11bhpo6$2lpjl$1@dont-email.me>, <boltar@caprica.universe> wrote: >Lynn McGuire <lynnmcguire5@gmail.com> gabbled: >>On 10/23/2026 11:06 AM, Peter Flass wrote: >>>> 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. > >Gates when he put his mind to it could certainly program. Even Sinclair >required 4K for BASIC in the ZX80 for example. But some of his technical >(and business) decisions leave a lot to be desired. But the ZX80 (and most later MBASICs) had floating point. --scott -- "C'est un Nagra. C'est suisse, et tres, tres precis."
Re: Re: “The end of software secrecy is almost upon
Author: Scott Dorsey
Date: Sat, 24 Oct 2026 17:57
Date: Sat, 24 Oct 2026 17:57
41 lines
2859 bytes
2859 bytes
In article <11bif5s$2pam0$1@dont-email.me>, Peter Flass <Peter@Iron-Spring.com> wrote: >On 10/24/26 01:21, boltar@caprica.universe wrote: >> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>> 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. >> >> Ditto threads. So why does C++ have a threading library? >> >> Take your time... > >You can have co-operative threads. IBM CICS used to run lots of threads >(tasks) concurrently, and ran them well. When I learned C, there was no threading and there were only different processes, so you had to do a fork and then synchronize with the other process. This wasn't a dealbreaker and we did plenty of stuff that way, but having threads available was very nice and made for many operations becoming more convenient to write. --scott -- "C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon
Author: Blaine
Date: Sat, 24 Oct 2026 18:07
Date: Sat, 24 Oct 2026 18:07
28 lines
2762 bytes
2762 bytes
Scott Dorsey wrote: > In article <11bhpo6$2lpjl$1@dont-email.me>, <boltar@caprica.universe> wrote: >> Lynn McGuire <lynnmcguire5@gmail.com> gabbled: >>> On 10/23/2026 11:06 AM, Peter Flass wrote: >>>>> 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. >> >> Gates when he put his mind to it could certainly program. Even Sinclair >> required 4K for BASIC in the ZX80 for example. But some of his technical >> (and business) decisions leave a lot to be desired. > > But the ZX80 (and most later MBASICs) had floating point. > --scott > Gates had a guy from Harvard do the math works. He was only with the company 10 weeks. -- Can you strip away so we may start again? "There’s a switch and they don't seem authentic or themselves. It feels like I’m an unnecessary body and it’s a waste of time to even be there." -- Grim, playful Blaine.
Re: “The end of software secrecy is almost upon
Author: Peter Flass
Date: Sat, 24 Oct 2026 19:17
Date: Sat, 24 Oct 2026 19:17
40 lines
3327 bytes
3327 bytes
On 10/24/26 09:41, Dan Cross wrote: > In article <11bhppd$2lpkc$1@dont-email.me>, <boltar@caprica.universe> wrote: >> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>> 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. >> >> Ditto threads. So why does C++ have a threading library? >> >> Take your time... > > What, pray tell, do you think that a _thread_ is? And how is it > different from a _process_? For that matter, what do you think > that a _process_ is? > > Please, take all the time you need to answer. > > - Dan C. Threads share resources such as address space, files, etc. A process runs in its own address space. (at least these days, before virtual memory, who knows?)
Re: “The end of software secrecy is almost upon us”
Author: Chris M. Thomasson
Date: Sat, 24 Oct 2026 20:04
Date: Sat, 24 Oct 2026 20:04
43 lines
3760 bytes
3760 bytes
On 10/23/2026 8:44 PM, Lawrence D’Oliveiro wrote: > 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. Iirc, BASIC had a fun error. I cannot remember the damn exact phrase, it was something like expression too complex or something.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sat, 24 Oct 2026 20:07
Date: Sat, 24 Oct 2026 20:07
34 lines
3246 bytes
3246 bytes
On 10/24/2026 7:25 AM, Scott Lurndal wrote: > boltar@caprica.universe writes: >> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>> 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. >> >> Ditto threads. So why does C++ have a threading library? > > It doesn't. It does have an abstraction wrapper around > whatever threading support the target host has. But at least they are std now since C++11? Before it was use POSIX and hope the compiler is compliant. Actually, the most import aspect, imvvho, is std::atomic.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sat, 24 Oct 2026 20:12
Date: Sat, 24 Oct 2026 20:12
39 lines
3349 bytes
3349 bytes
On 10/24/2026 9:41 AM, Dan Cross wrote: > In article <11bhppd$2lpkc$1@dont-email.me>, <boltar@caprica.universe> wrote: >> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>> 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. >> >> Ditto threads. So why does C++ have a threading library? >> >> Take your time... > > What, pray tell, do you think that a _thread_ is? And how is it > different from a _process_? For that matter, what do you think > that a _process_ is? Well, if a thread crashes, segfaults, etc it can destroy the whole process. But, in multi process. If a process dies, the things can be recovered and still run. Take a look at robust mutexes. EOWNERDEAD ? [...]
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sat, 24 Oct 2026 20:26
Date: Sat, 24 Oct 2026 20:26
43 lines
4139 bytes
4139 bytes
On 10/23/2026 8:33 PM, Lawrence D’Oliveiro wrote: > 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. Iiic, vkGetBufferMemoryRequirements and vkGetImageMemoryRequirements, which return a VkMemoryRequirements struct containing size, alignment, and memoryTypeBits. The caller allocates the memory with vkAllocateMemory and binds it with vkBindBufferMemory. Also, iirc io_uring: IORING_SETUP_NO_MMAP (Linux 6.5+) lets the caller supply the memory for the rings and SQE array. It must be suitably aligned (page or huge page), and the caller has to compute how big it needs to be from the entry count and flags. So it can be made to work.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sat, 24 Oct 2026 20:27
Date: Sat, 24 Oct 2026 20:27
15 lines
2999 bytes
2999 bytes
On 10/24/2026 1:26 PM, Chris M. Thomasson wrote: > Iiic, vkGetBufferMemoryRequirements and vkGetImageMemoryRequirements, > which return a VkMemoryRequirements struct containing size, alignment, > and memoryTypeBits. The caller allocates the memory with > vkAllocateMemory and binds it with vkBindBufferMemory. > > Also, iirc io_uring: IORING_SETUP_NO_MMAP (Linux 6.5+) lets the caller > supply the memory for the rings and SQE array. It must be suitably > aligned (page or huge page), and the caller has to compute how big it > needs to be from the entry count and flags. > > So it can be made to work. Or what about miniaudio’s ma_engine_get_heap_size plus ma_engine_init_preallocated
Re: Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Sat, 24 Oct 2026 21:24
Date: Sat, 24 Oct 2026 21:24
47 lines
3225 bytes
3225 bytes
In article <11bj08r$309uk$1@dont-email.me>, Peter Flass <Peter@Iron-Spring.com> wrote: >On 10/24/26 09:41, Dan Cross wrote: >> In article <11bhppd$2lpkc$1@dont-email.me>, <boltar@caprica.universe> wrote: >>> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >>> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>>> 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. >>> >>> Ditto threads. So why does C++ have a threading library? >>> >>> Take your time... >> >> What, pray tell, do you think that a _thread_ is? And how is it >> different from a _process_? For that matter, what do you think >> that a _process_ is? >> >> Please, take all the time you need to answer. > >Threads share resources such as address space, files, etc. A process >runs in its own address space. (at least these days, before virtual >memory, who knows?) Indeed, but I'm hoping Mr Boltar will chime in with his answers, so that we can understand why thinks that a language like C should introduce a *process* model, and how threads are similar. - Dan C.
Re: “The end of software secrecy is almost upon us”
Author: Charlie Gibbs
Date: Sat, 24 Oct 2026 21:38
Date: Sat, 24 Oct 2026 21:38
54 lines
3748 bytes
3748 bytes
On 2026-10-24, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote: > On 10/23/2026 8:44 PM, Lawrence D’Oliveiro wrote: > >> 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. > > Iirc, BASIC had a fun error. I cannot remember the damn exact phrase, it > was something like expression too complex or something. "Who is General Failure and why is he reading my disk?" -- /~\ 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: Charlie Gibbs
Date: Sat, 24 Oct 2026 21:38
Date: Sat, 24 Oct 2026 21:38
21 lines
1834 bytes
1834 bytes
On 2026-10-24, Scott Dorsey <kludge@panix.com> wrote: > Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote: > >> 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. > > That's a bug and not a feature. Sometimes you want to have a zero-length > file in place as a semaphore. Exactly. Another case is a month-to-date accumulator at the beginning of the month. Still, I've heard some pretty amazing attempts to justify this design flaw as a feature. -- /~\ 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: Michael S
Date: Sat, 24 Oct 2026 22:11
Date: Sat, 24 Oct 2026 22:11
84 lines
4628 bytes
4628 bytes
On Sat, 24 Oct 2026 21:24:58 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) wrote: > In article <11bj08r$309uk$1@dont-email.me>, > Peter Flass <Peter@Iron-Spring.com> wrote: > >On 10/24/26 09:41, Dan Cross wrote: > >> In article <11bhppd$2lpkc$1@dont-email.me>, > >> <boltar@caprica.universe> wrote: > >>> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) > >>> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: > >>>> 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. > >>> > >>> Ditto threads. So why does C++ have a threading library? > >>> > >>> Take your time... > >> > >> What, pray tell, do you think that a _thread_ is? And how is it > >> different from a _process_? For that matter, what do you think > >> that a _process_ is? > >> > >> Please, take all the time you need to answer. > > > >Threads share resources such as address space, files, etc. A process > >runs in its own address space. (at least these days, before virtual > >memory, who knows?) > > Indeed, but I'm hoping Mr Boltar will chime in with his answers, > so that we can understand why thinks that a language like C > should introduce a *process* model, and how threads are similar. > > - Dan C. > First, he was talking about C++. Unlike me, he does not appear to care about C. Second, while in theory threads can be implemented by C++ compilers+language support library, in practice I had never seen it done. All I had seen is C++ threads implemented in library as thin wrapper atop of the OS (or RT executive) implementation. I can not see while the same can't be done for processes, with API modeled on posix_spawn() or Windows CreateProcess(). It does not look like variety in this field is bigger than in case of threads. More like it is smaller. Now, would it be the first thing I would want like addition to C++ standard library? No it would not be. The first thing would be IPv4 communication, sockets, poll etc...
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 22:32
Date: Sat, 24 Oct 2026 22:32
67 lines
5004 bytes
5004 bytes
On Sat, 24 Oct 2026 13:26:07 -0700, Chris M. Thomasson wrote:
> On 10/23/2026 8:33 PM, Lawrence D’Oliveiro wrote:
>>
>> On Fri, 23 Oct 2026 17:01:28 -0700, Chris M. Thomasson wrote:
>>
>>> On 10/23/2026 3:42 PM, Lawrence D’Oliveiro wrote:
>>>>
>>>> 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.
>
> Iiic, vkGetBufferMemoryRequirements and
> vkGetImageMemoryRequirements, which return a VkMemoryRequirements
> struct containing size, alignment, and memoryTypeBits. The caller
> allocates the memory with vkAllocateMemory and binds it with
> vkBindBufferMemory.
I had a quick look at that. It seems to have to do with the reality of
graphics hardware implementing different kinds of memory with
different kinds of characteristics, and the impossibility of
completely such ignoring such issues in real-time 3D rendering.
I expect higher-level APIs (e.g. game engines) will wrap all this
behind their own higher-level abstractions, so regular
programmers/game creators don’t have to worry about it.
In short, it’s an abstraction that leaks that you accept only because
you have to, not because it’s a good idea for abstractions in general.
If you can successfully hide issues of memory and other resource
allocation behind your abstraction, you would still rather do it than
not.
So, to get back to my point, 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.
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Sat, 24 Oct 2026 22:32
Date: Sat, 24 Oct 2026 22:32
6 lines
2446 bytes
2446 bytes
On Sat, 24 Oct 2026 13:27:30 -0700, Chris M. Thomasson wrote: > Or what about miniaudio’s ma_engine_get_heap_size plus > ma_engine_init_preallocated No idea about that, but the same principle would apply.
Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Sun, 25 Oct 2026 00:28
Date: Sun, 25 Oct 2026 00:28
137 lines
7161 bytes
7161 bytes
In article <20261025011151.000038ef@yahoo.com>, Michael S <already5chosen@yahoo.com> wrote: >On Sat, 24 Oct 2026 21:24:58 -0000 (UTC) >cross@spitfire.i.gajendra.net (Dan Cross) wrote: > >> In article <11bj08r$309uk$1@dont-email.me>, >> Peter Flass <Peter@Iron-Spring.com> wrote: >> >On 10/24/26 09:41, Dan Cross wrote: >> >> In article <11bhppd$2lpkc$1@dont-email.me>, >> >> <boltar@caprica.universe> wrote: >> >>> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >> >>> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >> >>>> 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. >> >>> >> >>> Ditto threads. So why does C++ have a threading library? >> >>> >> >>> Take your time... >> >> >> >> What, pray tell, do you think that a _thread_ is? And how is it >> >> different from a _process_? For that matter, what do you think >> >> that a _process_ is? >> >> >> >> Please, take all the time you need to answer. >> > >> >Threads share resources such as address space, files, etc. A process >> >runs in its own address space. (at least these days, before virtual >> >memory, who knows?) >> >> Indeed, but I'm hoping Mr Boltar will chime in with his answers, >> so that we can understand why thinks that a language like C >> should introduce a *process* model, and how threads are similar. >> >> - Dan C. >> > >First, he was talking about C++. Unlike me, he does not appear to care >about C. First, he's a big boy, and I'm sure he can answer for himself. But ok then, C++, not C. The questions still stand. >Second, while in theory threads can be implemented by C++ >compilers+language support library, in practice I had never seen it >done. This is not saying much about anything aside from the countours of your own experience, I'm afraid. >All I had seen is C++ threads implemented in library as thin >wrapper atop of the OS (or RT executive) implementation. In the late 1990s, into the early 2000s, most "threads" on Unix-style systems were implemented in userspace, in the C library, often by exposing the "normal" system call endpoints in the library, but making them thin wrappers around equivalent asynchronous system calls. There was even a paper about using the Xinu pedagogical system from Doug Comer to implement something very close to threads on 4.2BSD, with signals and a context saving/restoration primitive to approximate a timer interrupt. For a more recent historical example the FreeBSD MP library was initially implemented this way, as were pre-LinuxThreasd threads on Linux; Solaris threads up until Solaris 2.6 or so similarly. Of course, it wasn't a great way to do things because if something _did_ block...well, there went your concurrency. Making Unix systems multithreaded was challenging because of decades of software that was written assuming a single-threaded userspace environment (the kernel had been "multithreaded" since very near the start, even if much of the system was written assuming a single processor; but parallelism is not the same thing as concurrency), and this was compounded because people were trying to implement complex M:N threading models; Sun did this, and FreeBSD tried with their KSEs; the Linux people did not. While cool in theory, M:N threading relied on very specific usage patterns to work well in practice, and almost no one actually wrote software that way, so you ended up with userspace threads fighting the kernel scheeduler, and vice versa. More recently, the Akaros research system introduced the notion of a "many-core process" and pushed fine-grained "thread" scheduling entirely to userspace; the kernel is totally unaware of how userspace schedules anything. That system uses an N:C model, where $C$ is the number of *cores* assigned to a process (all system calls in Akaros are asychronous by design, to avoid the pitfalls of user-threads blocking on synchronous kernel services that beset Unix). >I can not see while the same can't be done for processes, with >API modeled on posix_spawn() or Windows CreateProcess(). C, and C++, have had `system()` for as long as I can remember, if you just want to run a program (note that both `posix_spawn` and `CreateProcess` take the names of programs to run in that new process). >It does not look like variety in this field is bigger than in case of >threads. More like it is smaller. Nope. But if you think differently, see the questions above. >Now, would it be the first thing I would want like addition to C++ >standard library? No it would not be. >The first thing would be IPv4 communication, sockets, poll etc... POSIX has all of that. POSIX also has a process model. Why not just make POSIX a part of the language, then? (Answer that and you may start to understand why this is harder than it looks for C++ [and C].) - Dan C.
Re: “The end of software secrecy is almost upon
Author: Michael S
Date: Sun, 25 Oct 2026 06:42
Date: Sun, 25 Oct 2026 06:42
158 lines
8422 bytes
8422 bytes
On Sun, 25 Oct 2026 00:28:19 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) wrote: > In article <20261025011151.000038ef@yahoo.com>, > Michael S <already5chosen@yahoo.com> wrote: > >On Sat, 24 Oct 2026 21:24:58 -0000 (UTC) > >cross@spitfire.i.gajendra.net (Dan Cross) wrote: > > > >> In article <11bj08r$309uk$1@dont-email.me>, > >> Peter Flass <Peter@Iron-Spring.com> wrote: > >> >On 10/24/26 09:41, Dan Cross wrote: > >> >> In article <11bhppd$2lpkc$1@dont-email.me>, > >> >> <boltar@caprica.universe> wrote: > >> >>> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) > >> >>> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: > >> >>>> 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. > >> >>> > >> >>> Ditto threads. So why does C++ have a threading library? > >> >>> > >> >>> Take your time... > >> >> > >> >> What, pray tell, do you think that a _thread_ is? And how is it > >> >> different from a _process_? For that matter, what do you think > >> >> that a _process_ is? > >> >> > >> >> Please, take all the time you need to answer. > >> > > >> >Threads share resources such as address space, files, etc. A > >> >process runs in its own address space. (at least these days, > >> >before virtual memory, who knows?) > >> > >> Indeed, but I'm hoping Mr Boltar will chime in with his answers, > >> so that we can understand why thinks that a language like C > >> should introduce a *process* model, and how threads are similar. > >> > >> - Dan C. > >> > > > >First, he was talking about C++. Unlike me, he does not appear to > >care about C. > > First, he's a big boy, and I'm sure he can answer for himself. > But ok then, C++, not C. The questions still stand. > > >Second, while in theory threads can be implemented by C++ > >compilers+language support library, in practice I had never seen it > >done. > > This is not saying much about anything aside from the countours > of your own experience, I'm afraid. > > >All I had seen is C++ threads implemented in library as thin > >wrapper atop of the OS (or RT executive) implementation. > > In the late 1990s, into the early 2000s, most "threads" on > Unix-style systems were implemented in userspace, in the C > library, often by exposing the "normal" system call endpoints > in the library, but making them thin wrappers around equivalent > asynchronous system calls. > > There was even a paper about using the Xinu pedagogical system > from Doug Comer to implement something very close to threads on > 4.2BSD, with signals and a context saving/restoration primitive > to approximate a timer interrupt. > > For a more recent historical example the FreeBSD MP library was > initially implemented this way, as were pre-LinuxThreasd threads > on Linux; Solaris threads up until Solaris 2.6 or so similarly. > > Of course, it wasn't a great way to do things because if > something _did_ block...well, there went your concurrency. > > Making Unix systems multithreaded was challenging because of > decades of software that was written assuming a single-threaded > userspace environment (the kernel had been "multithreaded" since > very near the start, even if much of the system was written > assuming a single processor; but parallelism is not the same > thing as concurrency), and this was compounded because people > were trying to implement complex M:N threading models; Sun did > this, and FreeBSD tried with their KSEs; the Linux people did > not. While cool in theory, M:N threading relied on very > specific usage patterns to work well in practice, and almost no > one actually wrote software that way, so you ended up with > userspace threads fighting the kernel scheeduler, and vice > versa. > > More recently, the Akaros research system introduced the notion > of a "many-core process" and pushed fine-grained "thread" > scheduling entirely to userspace; the kernel is totally unaware > of how userspace schedules anything. That system uses an N:C > model, where $C$ is the number of *cores* assigned to a process > (all system calls in Akaros are asychronous by design, to avoid > the pitfalls of user-threads blocking on synchronous kernel > services that beset Unix). > How any of this trivia has anything to do with real-world implementations of C++11 threads? > >I can not see while the same can't be done for processes, with > >API modeled on posix_spawn() or Windows CreateProcess(). > > C, and C++, have had `system()` for as long as I can remember, > if you just want to run a program (note that both `posix_spawn` > and `CreateProcess` take the names of programs to run in that > new process). > I mentioned that in one of my earlier responses to boltar. However there exist situation in which system() is not a satisfactory replacement for spawn(), most often because overhead of launching shell sometimes matters. > >It does not look like variety in this field is bigger than in case of > >threads. More like it is smaller. > > Nope. But if you think differently, see the questions above. > > >Now, would it be the first thing I would want like addition to C++ > >standard library? No it would not be. > >The first thing would be IPv4 communication, sockets, poll etc... > > POSIX has all of that. POSIX also has a process model. Why not > just make POSIX a part of the language, then? (Answer that and > you may start to understand why this is harder than it looks > for C++ [and C].) > > - Dan C. > It (both spawn and IPv4) is not harder (and not easier) than fopen/fread/fwrite or than time-related functions.
Re: The end of software secrecy is almost upon
Author: Jerry Brown
Date: Sun, 25 Oct 2026 08:11
Date: Sun, 25 Oct 2026 08:11
28 lines
2605 bytes
2605 bytes
On Sat, 24 Oct 2026 21:38:43 GMT, Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote: >On 2026-10-24, Scott Dorsey <kludge@panix.com> wrote: > >> Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote: >> >>> 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. >> >> That's a bug and not a feature. Sometimes you want to have a zero-length >> file in place as a semaphore. > >Exactly. Another case is a month-to-date accumulator >at the beginning of the month. > >Still, I've heard some pretty amazing attempts to justify this >design flaw as a feature. I supported an IBM 9370 back in the 90s and whatever operating system it ran (completely different to the 3090 mainframe with JCL, etc it was supposed to replace) didn't allow zero length files. -- Jerry Brown A cat may look at a king (but probably won't bother)
Re: “The end of software secrecy is almost upon
Author: Ian
Date: Sun, 25 Oct 2026 08:22
Date: Sun, 25 Oct 2026 08:22
24 lines
2475 bytes
2475 bytes
On 2026-10-24, Scott Dorsey <kludge@panix.com> wrote: > In article <11bhpo6$2lpjl$1@dont-email.me>, <boltar@caprica.universe> wrote: >>Lynn McGuire <lynnmcguire5@gmail.com> gabbled: >>>On 10/23/2026 11:06 AM, Peter Flass wrote: >>>>> 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. >> >>Gates when he put his mind to it could certainly program. Even Sinclair >>required 4K for BASIC in the ZX80 for example. But some of his technical >>(and business) decisions leave a lot to be desired. > > But the ZX80 (and most later MBASICs) had floating point. > --scott The ZX80 did not have floating point in its stock BASIC ROM. The ZX81 did. -- Ian "Tamahome!!!" - "Miaka!!!"
Re: Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sun, 25 Oct 2026 08:31
Date: Sun, 25 Oct 2026 08:31
40 lines
3084 bytes
3084 bytes
On Sat, 24 Oct 2026 16:41:22 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >In article <11bhppd$2lpkc$1@dont-email.me>, <boltar@caprica.universe> wrote: >>On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >>cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>>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. >> >>Ditto threads. So why does C++ have a threading library? >> >>Take your time... > >What, pray tell, do you think that a _thread_ is? And how is it >different from a _process_? For that matter, what do you think >that a _process_ is? The differences are utterly irrelevant when it comes to prividing a common API to the functionality but thank you for demonstrating you had no answer to my question.
Re: Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sun, 25 Oct 2026 08:32
Date: Sun, 25 Oct 2026 08:32
22 lines
2377 bytes
2377 bytes
On Sat, 24 Oct 2026 13:53:39 -0400 (EDT) kludge@panix.com (Scott Dorsey) gabbled: >In article <11bhpo6$2lpjl$1@dont-email.me>, <boltar@caprica.universe> wrote: >>Lynn McGuire <lynnmcguire5@gmail.com> gabbled: >>>On 10/23/2026 11:06 AM, Peter Flass wrote: >>>>> 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. >> >>Gates when he put his mind to it could certainly program. Even Sinclair >>required 4K for BASIC in the ZX80 for example. But some of his technical >>(and business) decisions leave a lot to be desired. > >But the ZX80 (and most later MBASICs) had floating point. The ZX80 ran Sinclair Basic, it had nothing to do with MS and it was integer only. The ZX81 had flowing point basic and had an 8K ROM which is still bloody impressive.
Re: Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sun, 25 Oct 2026 08:34
Date: Sun, 25 Oct 2026 08:34
18 lines
2200 bytes
2200 bytes
On Sat, 24 Oct 2026 13:57:02 -0400 (EDT) kludge@panix.com (Scott Dorsey) gabbled: >In article <11bif5s$2pam0$1@dont-email.me>, >Peter Flass <Peter@Iron-Spring.com> wrote: >>You can have co-operative threads. IBM CICS used to run lots of threads >>(tasks) concurrently, and ran them well. > >When I learned C, there was no threading and there were only different >processes, so you had to do a fork and then synchronize with the other >process. This wasn't a dealbreaker and we did plenty of stuff that way, >but having threads available was very nice and made for many operations >becoming more convenient to write. Unfortunately most win32 programmers don't really understand multiprocess programming because the w32 API is so borked so use threads even when seperate process would be more appropriate.
Re: Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sun, 25 Oct 2026 08:37
Date: Sun, 25 Oct 2026 08:37
55 lines
3664 bytes
3664 bytes
On Sat, 24 Oct 2026 21:24:58 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >In article <11bj08r$309uk$1@dont-email.me>, >Peter Flass <Peter@Iron-Spring.com> wrote: >>On 10/24/26 09:41, Dan Cross wrote: >>> In article <11bhppd$2lpkc$1@dont-email.me>, <boltar@caprica.universe> >wrote: >>>> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >>>> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>>>> 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. >>>> >>>> Ditto threads. So why does C++ have a threading library? >>>> >>>> Take your time... >>> >>> What, pray tell, do you think that a _thread_ is? And how is it >>> different from a _process_? For that matter, what do you think >>> that a _process_ is? >>> >>> Please, take all the time you need to answer. >> >>Threads share resources such as address space, files, etc. A process >>runs in its own address space. (at least these days, before virtual >>memory, who knows?) > >Indeed, but I'm hoping Mr Boltar will chime in with his answers, >so that we can understand why thinks that a language like C >should introduce a *process* model, and how threads are similar. Who mentioned C? I was talking about C++ which has a threading API already. Do try and keep up.
Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sun, 25 Oct 2026 08:41
Date: Sun, 25 Oct 2026 08:41
17 lines
2199 bytes
2199 bytes
On Sun, 25 Oct 2026 00:28:19 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >In article <20261025011151.000038ef@yahoo.com>, >>Now, would it be the first thing I would want like addition to C++ >>standard library? No it would not be. >>The first thing would be IPv4 communication, sockets, poll etc... > >POSIX has all of that. POSIX also has a process model. Why not >just make POSIX a part of the language, then? (Answer that and >you may start to understand why this is harder than it looks >for C++ [and C].) No, it isn't. How similar do you think the posix and windows threading model/api are? Yet somehow C++ provides a common wrapper for both. There is no reason the same can't be done for processes and your irrelevant waffle about past issues of threading on *nix don't change that.
Re: Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sun, 25 Oct 2026 08:42
Date: Sun, 25 Oct 2026 08:42
19 lines
2157 bytes
2157 bytes
On Sat, 24 Oct 2026 12:17:47 -0700 Peter Flass <Peter@Iron-Spring.com> gabbled: >On 10/24/26 09:41, Dan Cross wrote: >> In article <11bhppd$2lpkc$1@dont-email.me>, <boltar@caprica.universe> wrote: >> What, pray tell, do you think that a _thread_ is? And how is it >> different from a _process_? For that matter, what do you think >> that a _process_ is? >> >> Please, take all the time you need to answer. >> >> - Dan C. > >Threads share resources such as address space, files, etc. A process >runs in its own address space. (at least these days, before virtual >memory, who knows?) With copy-on-write process models the actual difference is a bit less clear cut.
Re: The end of software secrecy is almost upon
Author: Thomas Koenig
Date: Sun, 25 Oct 2026 09:30
Date: Sun, 25 Oct 2026 09:30
12 lines
1955 bytes
1955 bytes
Jerry Brown <jerry@jwbrown.co.uk.invalid> schrieb: > I supported an IBM 9370 back in the 90s and whatever operating system > it ran (completely different to the 3090 mainframe with JCL, etc it > was supposed to replace) didn't allow zero length files. VM/CMS? -- 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: David Brown
Date: Sun, 25 Oct 2026 09:45
Date: Sun, 25 Oct 2026 09:45
119 lines
7138 bytes
7138 bytes
On 25/10/2026 00:11, Michael S wrote: > On Sat, 24 Oct 2026 21:24:58 -0000 (UTC) > cross@spitfire.i.gajendra.net (Dan Cross) wrote: > >> In article <11bj08r$309uk$1@dont-email.me>, >> Peter Flass <Peter@Iron-Spring.com> wrote: >>> On 10/24/26 09:41, Dan Cross wrote: >>>> In article <11bhppd$2lpkc$1@dont-email.me>, >>>> <boltar@caprica.universe> wrote: >>>>> On Fri, 23 Oct 2026 20:45:27 -0000 (UTC) >>>>> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>>>>> 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. >>>>> >>>>> Ditto threads. So why does C++ have a threading library? >>>>> >>>>> Take your time... >>>> >>>> What, pray tell, do you think that a _thread_ is? And how is it >>>> different from a _process_? For that matter, what do you think >>>> that a _process_ is? >>>> >>>> Please, take all the time you need to answer. >>> >>> Threads share resources such as address space, files, etc. A process >>> runs in its own address space. (at least these days, before virtual >>> memory, who knows?) >> >> Indeed, but I'm hoping Mr Boltar will chime in with his answers, >> so that we can understand why thinks that a language like C >> should introduce a *process* model, and how threads are similar. >> >> - Dan C. >> > > First, he was talking about C++. Unlike me, he does not appear to care > about C. > Second, while in theory threads can be implemented by C++ > compilers+language support library, in practice I had never seen it > done. All I had seen is C++ threads implemented in library as thin > wrapper atop of the OS (or RT executive) implementation. > I can not see while the same can't be done for processes, with > API modeled on posix_spawn() or Windows CreateProcess(). > It does not look like variety in this field is bigger than in case of > threads. More like it is smaller. > No one is suggesting that the threads themselves are implemented in pure, standard, portable C++. You need an underlying OS or support of some sort if you are going to have preemptable threads. It's the same principle as IO and file access. But the difference between threads and processes is very simple from the viewpoint of C and C++. Suppose you have a global (i.e., external linkage) variable : int x; Two threads that have "int a = x;" see the same "x" (ignoring data races and synchronisation). Two processes see completely different "x". With threads, you are still within the same program execution - the same code, the same data. Thus it is appropriate that the language can describe the threads, and provide an execution model that can describe what is safe and unsafe for sharing the data. It is then highly useful for the programmer to have some standard data types and functions for doing this safe access, and wrappers around common OS functions for threads. With processes, you have two separate programs. Usually it is different code and data (with a spawn), sometimes it is the same code and a copy of the data (with a fork). But the programs are separate. C and C++ model programs, not systems of programs. It is not more part of C and C++ than details of the filesystem. Of course the standard library could provide some standard wrappers for spawn, fork, and related process control functions. But what use would they be? Many of the details are OS-specific - for example, you'd either have to say that C++ programmers on Linux don't get "fork", or that C++ programmers on Windows get "fork" without realising the massive overheads involved in emulating it. It would be possible, of course, to have some standard library classes and functions here - with optional parts to make it useable on common OS'es. But it is very different from threading, which is integral to the execution model of C++ and C (since C++11 and C11) - it is that model that makes threading integration important. Wrappers around common OS calls is unlikely to give programmers anything significant. > Now, would it be the first thing I would want like addition to C++ > standard library? No it would not be. > The first thing would be IPv4 communication, sockets, poll etc... > That's more realistic, and potentially more useful. And it is in progress. (I haven't tracked the progress for the networking TS - but it seems to be a lot more work than originally anticipated.)
Page 6 of 11 • 514 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads