Thread View: alt.folklore.computers
533 messages
533 total messages
Page 6 of 11
Started by Johann 'Myrkraverk' Oskarsson
Wed, 14 Oct 2026 11:59
Page 6 of 11 • 533 total messages
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
3328 bytes
3328 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
2334 bytes
2334 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
2838 bytes
2838 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
2773 bytes
2773 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
3630 bytes
3630 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
2493 bytes
2493 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
1180 bytes
1180 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
1625 bytes
1625 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
2710 bytes
2710 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
2613 bytes
2613 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
3178 bytes
3178 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
3639 bytes
3639 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
3097 bytes
3097 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
3200 bytes
3200 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
4018 bytes
4018 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
2878 bytes
2878 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
3076 bytes
3076 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
3627 bytes
3627 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
1685 bytes
1685 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
4479 bytes
4479 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
4883 bytes
4883 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
2325 bytes
2325 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
7012 bytes
7012 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
8273 bytes
8273 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
2456 bytes
2456 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
2326 bytes
2326 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
2935 bytes
2935 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
2228 bytes
2228 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
2051 bytes
2051 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
3515 bytes
3515 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
2050 bytes
2050 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
2008 bytes
2008 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
1806 bytes
1806 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
6989 bytes
6989 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.)
Re: Re: “The end of software secrecy is almost upon
Author: Scott Dorsey
Date: Sun, 25 Oct 2026 12:10
Date: Sun, 25 Oct 2026 12:10
29 lines
2138 bytes
2138 bytes
In article <11bker0$2pa7q$1@dont-email.me>, <boltar@caprica.universe> wrote: >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. I did not realize that the ZX80 was integer only! I thought it was more or less like the ZX81 with everything stuffed into an asic. --scott -- "C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Sun, 25 Oct 2026 13:32
Date: Sun, 25 Oct 2026 13:32
46 lines
2723 bytes
2723 bytes
In article <20261025084234.0000449c@yahoo.com>, Michael S <already5chosen@yahoo.com> wrote: >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: >> >[snip] >> >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. (This statement remains true.) >[snip history showing a long line of "OS Threads" implemented > as a library] > >How any of this trivia has anything to do with real-world >implementations of C++11 threads? Your statement, "while in theory threads can be implemented by C++ compilers+language support library, in practice I had never seen it done" is probably strictly true: you, individually, have never seen it done. But that does not imply that it has never been done. In fact, it has; many times over. There are complications, but it can be done. That is what I was telling you, supported by examples. The thread models adopted by both C and C++ are based on all of that prior art. >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. Let me reiterate the questions above: what do you think that a thread is? What do you think that a process is? And let me add to that, what do you think that a "shell" is? - Dan C.
Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Sun, 25 Oct 2026 13:34
Date: Sun, 25 Oct 2026 13:34
17 lines
1623 bytes
1623 bytes
In article <11bkfcc$104cc$1@dont-email.me>, <boltar@caprica.universe> wrote: >On Sun, 25 Oct 2026 00:28:19 -0000 (UTC) >cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >> [snip] > >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. You didn't answer my questions. What do you think that a "thread" is? What do you think that a "process" is? - Dan C.
Re: “The end of software secrecy is almost upon us"
Author: Andreas Eder
Date: Sun, 25 Oct 2026 15:31
Date: Sun, 25 Oct 2026 15:31
17 lines
2513 bytes
2513 bytes
On Fr 23 Okt 2026 at 22:49, Lawrence D’Oliveiro wrote: > 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. There was also display postscript from SUN. 'Andreas -- ceterum censeo redmondinem esse delendam
Re: The end of software secrecy is almost upon
Author: Peter Flass
Date: Sun, 25 Oct 2026 15:37
Date: Sun, 25 Oct 2026 15:37
15 lines
2091 bytes
2091 bytes
On 10/25/26 02:30, Thomas Koenig wrote: > 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? > Or some version of DOD/360? They had a couple of versions, I think. They kept trying to make it easier to install and maintain, but it was still DOS. Those times I want to run something now I use VM, because it is so much simpler.
Re: “The end of software secrecy is almost upon
Author: Peter Flass
Date: Sun, 25 Oct 2026 15:41
Date: Sun, 25 Oct 2026 15:41
20 lines
2241 bytes
2241 bytes
On 10/25/26 06:34, Dan Cross wrote: > In article <11bkfcc$104cc$1@dont-email.me>, <boltar@caprica.universe> wrote: >> On Sun, 25 Oct 2026 00:28:19 -0000 (UTC) >> cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>> [snip] >> >> 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. > > You didn't answer my questions. > > What do you think that a "thread" is? > What do you think that a "process" is? > > - Dan C. I vote that alt.folklore.computers gets pruned from the list of recipients, as this discussion seems irrelevant here.
Re: The end of software secrecy is almost upon
Author: Peter Flass
Date: Sun, 25 Oct 2026 15:42
Date: Sun, 25 Oct 2026 15:42
19 lines
2205 bytes
2205 bytes
On 10/25/26 08:37, Peter Flass wrote: > On 10/25/26 02:30, Thomas Koenig wrote: >> 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? >> > > Or some version of DOD/360? They had a couple of versions, I think. They > kept trying to make it easier to install and maintain, but it was still > DOS. > > Those times I want to run something now I use VM, because it is so much > simpler. DOS, sorry typo.
Re: “The end of software secrecy is almost upon
Author: Scott Lurndal
Date: Sun, 25 Oct 2026 15:56
Date: Sun, 25 Oct 2026 15:56
30 lines
2251 bytes
2251 bytes
Michael S <already5chosen@yahoo.com> writes: >On Sat, 24 Oct 2026 21:24:58 -0000 (UTC) >cross@spitfire.i.gajendra.net (Dan Cross) wrote: > >> >> 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... For which we, thankfully, have POSIX on most non-windows operating systems.
Re: “The end of software secrecy is almost upon
Author: Scott Lurndal
Date: Sun, 25 Oct 2026 15:59
Date: Sun, 25 Oct 2026 15:59
19 lines
1807 bytes
1807 bytes
cross@spitfire.i.gajendra.net (Dan Cross) writes: >In article <20261025084234.0000449c@yahoo.com>, >Michael S <already5chosen@yahoo.com> wrote: <snip> >>How any of this trivia has anything to do with real-world >>implementations of C++11 threads? > >Your statement, "while in theory threads can be implemented by >C++ compilers+language support library, in practice I had never >seen it done" is probably strictly true: you, individually, have >never seen it done. > >But that does not imply that it has never been done. In >fact, it has; many times over. There are complications, but it >can be done. That is what I was telling you, supported by >examples. Although it does, generally, rely on specific operating system interfaces (e.g. makecontext, setcontext, et alia).
Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sun, 25 Oct 2026 16:13
Date: Sun, 25 Oct 2026 16:13
28 lines
2439 bytes
2439 bytes
On Sun, 25 Oct 2026 13:34:58 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >In article <11bkfcc$104cc$1@dont-email.me>, <boltar@caprica.universe> wrote: >>On Sun, 25 Oct 2026 00:28:19 -0000 (UTC) >>cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>> [snip] >> >>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. > >You didn't answer my questions. > >What do you think that a "thread" is? >What do you think that a "process" is? Stop playing games - you don't get to answer a question with a question. Given I've been programming on unix for over 30 years and have written dozens of applications using multi process and multi threading and sometimes using both I'm quite well aware of the differences. Perhaps you arn't which is why you need me to tell you. Well go do your own research. In the meantime I'll ask one last time - why do you think C++ can provide a threading wrapper API but not a multi process one? Take your time.
Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Sun, 25 Oct 2026 16:15
Date: Sun, 25 Oct 2026 16:15
31 lines
2195 bytes
2195 bytes
In article <YHpDS.27364$9b8f.4666@fx39.iad>, Scott Lurndal <slp53@pacbell.net> wrote: >cross@spitfire.i.gajendra.net (Dan Cross) writes: >>In article <20261025084234.0000449c@yahoo.com>, >>Michael S <already5chosen@yahoo.com> wrote: > <snip> >>>How any of this trivia has anything to do with real-world >>>implementations of C++11 threads? >> >>Your statement, "while in theory threads can be implemented by >>C++ compilers+language support library, in practice I had never >>seen it done" is probably strictly true: you, individually, have >>never seen it done. >> >>But that does not imply that it has never been done. In >>fact, it has; many times over. There are complications, but it >>can be done. That is what I was telling you, supported by >>examples. > >Although it does, generally, rely on specific operating system >interfaces (e.g. makecontext, setcontext, et alia). That's true. But no one said that one can use strict ISO C++ to implement the C++ standard library. Regardless, if you can set the stack pointer, you can build a reasonable cooperative threading library purely in userspace, without the OS caring. - Dan C.
Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Sun, 25 Oct 2026 16:17
Date: Sun, 25 Oct 2026 16:17
41 lines
2595 bytes
2595 bytes
In article <11bl9qm$10h8f$1@dont-email.me>, <boltar@caprica.universe> wrote: >On Sun, 25 Oct 2026 13:34:58 -0000 (UTC) >cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>In article <11bkfcc$104cc$1@dont-email.me>, <boltar@caprica.universe> wrote: >>>On Sun, 25 Oct 2026 00:28:19 -0000 (UTC) >>>cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>>> [snip] >>> >>>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. >> >>You didn't answer my questions. >> >>What do you think that a "thread" is? >>What do you think that a "process" is? > >Stop playing games - you don't get to answer a question with a question. In other words, you don't know. >Given I've been programming on unix for over 30 years and have written dozens >of applications using multi process and multi threading and sometimes using both >I'm quite well aware of the differences. Perhaps you arn't which is why you >need me to tell you. Well go do your own research. I'm quite sure you don't actually know. >In the meantime I'll ask one last time - why do you think C++ can provide >a threading wrapper API but not a multi process one? You've got system(), right? What, precisely, do you want this "multi process" API to look like? >Take your time. If you want a serious answer, you've got to define your terms. - Dan C.
Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sun, 25 Oct 2026 16:29
Date: Sun, 25 Oct 2026 16:29
35 lines
2672 bytes
2672 bytes
On Sun, 25 Oct 2026 16:15:21 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >In article <YHpDS.27364$9b8f.4666@fx39.iad>, >Scott Lurndal <slp53@pacbell.net> wrote: >>cross@spitfire.i.gajendra.net (Dan Cross) writes: >>>In article <20261025084234.0000449c@yahoo.com>, >>>Michael S <already5chosen@yahoo.com> wrote: >> <snip> >>>>How any of this trivia has anything to do with real-world >>>>implementations of C++11 threads? >>> >>>Your statement, "while in theory threads can be implemented by >>>C++ compilers+language support library, in practice I had never >>>seen it done" is probably strictly true: you, individually, have >>>never seen it done. >>> >>>But that does not imply that it has never been done. In >>>fact, it has; many times over. There are complications, but it >>>can be done. That is what I was telling you, supported by >>>examples. >> >>Although it does, generally, rely on specific operating system >>interfaces (e.g. makecontext, setcontext, et alia). > >That's true. But no one said that one can use strict ISO C++ to >implement the C++ standard library. > >Regardless, if you can set the stack pointer, you can build a >reasonable cooperative threading library purely in userspace, >without the OS caring. Oh really? You seem to have forgotten about the program counter not to mentioning pushing and popping all the other cpu registers and flags at context switch.
Re: “The end of software secrecy is almost upon
Author: boltar
Date: Sun, 25 Oct 2026 16:32
Date: Sun, 25 Oct 2026 16:32
39 lines
2788 bytes
2788 bytes
On Sun, 25 Oct 2026 16:17:40 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >In article <11bl9qm$10h8f$1@dont-email.me>, <boltar@caprica.universe> wrote: >>On Sun, 25 Oct 2026 13:34:58 -0000 (UTC) >>cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>>In article <11bkfcc$104cc$1@dont-email.me>, <boltar@caprica.universe> wrote: > >>>>On Sun, 25 Oct 2026 00:28:19 -0000 (UTC) >>>>cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>>>> [snip] >>>> >>>>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. >>> >>>You didn't answer my questions. >>> >>>What do you think that a "thread" is? >>>What do you think that a "process" is? >> >>Stop playing games - you don't get to answer a question with a question. > >In other words, you don't know. Oh do piss off you bore, i'm not going to humour you while you try to unpaint yourself from a corner. You clearly have no idea why C++ implements one API but not the other but you wanted to try and sound clever anyway. Whoops, didn't turn out quite how you expected did it? >>In the meantime I'll ask one last time - why do you think C++ can provide >>a threading wrapper API but not a multi process one? > >You've got system(), right? What, precisely, do you want this system?? ROTFL!! :) Oh dear, you really have no clue!
Re: Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Sun, 25 Oct 2026 17:06
Date: Sun, 25 Oct 2026 17:06
17 lines
1630 bytes
1630 bytes
In article <11bl7vr$3nprb$2@dont-email.me>, Peter Flass <Peter@Iron-Spring.com> wrote: >On 10/25/26 06:34, Dan Cross wrote: >> [snip] >> What do you think that a "thread" is? >> What do you think that a "process" is? > >I vote that alt.folklore.computers gets pruned from the list of >recipients, as this discussion seems irrelevant here. I'm happy defer to others here, but I disagree with the premise. Concurrency and parallelism are useful abstractions with a rich history encompassing both languages and operating systems. In that sense they seem eminently relevant to a.f.c. - Dan C.
Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Sun, 25 Oct 2026 17:14
Date: Sun, 25 Oct 2026 17:14
45 lines
2423 bytes
2423 bytes
In article <11blaui$2q6vd$1@dont-email.me>, <boltar@caprica.universe> wrote: >On Sun, 25 Oct 2026 16:17:40 -0000 (UTC) >cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>>> [snip] >>>>You didn't answer my questions. >>>> >>>>What do you think that a "thread" is? >>>>What do you think that a "process" is? >>> >>>Stop playing games - you don't get to answer a question >with a question. >> >>In other words, you don't know. > >Oh do piss off you bore, i'm not going to humour you while >you try to unpaint >yourself from a corner. You clearly have no idea why C++ >implements one API >but not the other but you wanted to try and sound clever >anyway. Whoops, didn't >turn out quite how you expected did it? Actually, it "turned out" juat about exactly as I expected it would. >>>In the meantime I'll ask one last time - why do you think >C++ can provide >>>a threading wrapper API but not a multi process one? >> >>You've got system(), right? What, precisely, do you want this > >system?? ROTFL!! :) > >Oh dear, you really have no clue! You're snotty little attitude aside, I note that you can't even arriculate what, exactly, it is that you want. "Argument by insult" seems about par for the course here, but using that to hide your ignorance both doesn't work and makes you look incredbily insecure. Anyway, go ahead and keep flailing. Ta! - Dan C.
Page 6 of 11 • 533 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