Thread View: comp.lang.c++
529 messages
529 total messages
Page 7 of 11
Started by Lynn McGuire
Wed, 14 Oct 2026 04:18
Page 7 of 11 • 529 total messages
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.
Re: “The end of software secrecy is almost upon
Author: Dan Cross
Date: Sun, 25 Oct 2026 17:18
Date: Sun, 25 Oct 2026 17:18
20 lines
1702 bytes
1702 bytes
In article <11blaoq$2q6jk$1@dont-email.me>, <boltar@caprica.universe> wrote: >On Sun, 25 Oct 2026 16:15:21 -0000 (UTC) >cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>[snip] >>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. One last hint: where do you think those thjngs arw stored? If you could define what a thread is, maybe you'd have a clue about how those are handled. :-) - Dan C.
Re: “The end of software secrecy is almost upon
Author: Robert Woodward
Date: Sun, 25 Oct 2026 17:19
Date: Sun, 25 Oct 2026 17:19
34 lines
2291 bytes
2291 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: > > 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. For that matter, this entire thread has ceased to have anything to do with rec.arts.sf.written. -- "We have advanced to new and surprising levels of bafflement." Imperial Auditor Miles Vorkosigan describes progress in _Komarr_. —----------------------------------------------------- Robert Woodward robertaw@drizzle.com
Re: “The end of software secrecy is almost upon
Author: Cryptoengineer
Date: Sun, 25 Oct 2026 17:58
Date: Sun, 25 Oct 2026 17:58
34 lines
2978 bytes
2978 bytes
On 10/25/2026 8:10 AM, Scott Dorsey wrote: > 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 > The Apple ][ was also integer only. The Apple ][+ had floating point. The top 16k of memory was ROM supporting the OS and BASIC. Relatively roomy compared to the ZX80/81. pt
Re: âThe end of software secrecy is almost upon
Author: Cryptoengineer
Date: Sun, 25 Oct 2026 18:03
Date: Sun, 25 Oct 2026 18:03
35 lines
2794 bytes
2794 bytes
On 10/25/2026 1:19 PM, Robert Woodward wrote: > In article <11bl7vr$3nprb$2@dont-email.me>, > Peter Flass <Peter@Iron-Spring.com> wrote: > >> 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. > > For that matter, this entire thread has ceased to have anything to do > with rec.arts.sf.written. > Based on 40+ years of usenet experience, the only thing which will stop the cross posting is the death of this thread. pt
Re: what's a process, was The end of software secrecy is almost upon
Author: John Levine
Date: Sun, 25 Oct 2026 18:17
Date: Sun, 25 Oct 2026 18:17
20 lines
2038 bytes
2038 bytes
According to <boltar@caprica.universe>: >>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. Copy-on-write (or on some older systems copy-on-touch) is an implementation detail. Neither process can look inside the other even if they share some unwritten or untouched pages. By the way, copy-on-write is quite old. See this blog post I wrote a long time ago: https://obvious.services.net/2011/01/history-of-copy-on-write-memory.html -- Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly
Re: âThe end of software secrecy is almost upon
Author: Blaine
Date: Sun, 25 Oct 2026 18:21
Date: Sun, 25 Oct 2026 18:21
50 lines
3382 bytes
3382 bytes
Cryptoengineer wrote: > On 10/25/2026 1:19 PM, Robert Woodward wrote: >> In article <11bl7vr$3nprb$2@dont-email.me>, >> Peter Flass <Peter@Iron-Spring.com> wrote: >> >>> 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. >> >> For that matter, this entire thread has ceased to have anything to do >> with rec.arts.sf.written. >> > > Based on 40+ years of usenet experience, the only thing which will stop > the cross posting is the death of this thread. > > pt What struck me about Game of Thrones was that the monarchy existed in Game of Thrones for the sole reason of some guys conspiring in Chapter One about taking it for themselves. What a bunch of polymaths. -- 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: David Brown
Date: Sun, 25 Oct 2026 18:26
Date: Sun, 25 Oct 2026 18:26
46 lines
3538 bytes
3538 bytes
On 25/10/2026 18:19, Robert Woodward wrote: > In article <11bl7vr$3nprb$2@dont-email.me>, > Peter Flass <Peter@Iron-Spring.com> wrote: > >> 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. > > For that matter, this entire thread has ceased to have anything to do > with rec.arts.sf.written. > Was it ever relevant to that group? At least one person in this thread is renowned for his irritating habit of adding every newsgroup he can think of to lists. "This post is in English - I'll add alt.languages.english to the list. I see there was a number mentioned - I've added sci.maths for their thoughts. I've just thought about thoughts, so alt.philosophy is needed too". Anyone who feels that might refer to them could do their part towards making the world a nicer place, and either quit that habit, or leave Usenet. As I don't follow any of these groups other than C++, I can't say if it is topical or not in the other groups. I certainly don't mind if irrelevant groups are removed, but there is a real risk that some twit will re-add them. Then you still have the pointless (to you) threads, but now they are also fragmented.
Re: âThe end of software secrecy is almost upon
Author: Blaine
Date: Sun, 25 Oct 2026 18:29
Date: Sun, 25 Oct 2026 18:29
52 lines
3652 bytes
3652 bytes
David Brown wrote: > On 25/10/2026 18:19, Robert Woodward wrote: >> In article <11bl7vr$3nprb$2@dont-email.me>, >> Peter Flass <Peter@Iron-Spring.com> wrote: >> >>> 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. >> >> For that matter, this entire thread has ceased to have anything to do >> with rec.arts.sf.written. >> > > Was it ever relevant to that group? At least one person in this thread > is renowned for his irritating habit of adding every newsgroup he can > think of to lists. "This post is in English - I'll add > alt.languages.english to the list. I see there was a number mentioned - > I've added sci.maths for their thoughts. I've just thought about > thoughts, so alt.philosophy is needed too". Sorry about that. I only did it because Eternal September, if I take away one of the Newsgroups: listings, it won't let me post. In such a case it only allows 3 newsgroups. That won't do for this thread. -- 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: David Brown
Date: Sun, 25 Oct 2026 18:59
Date: Sun, 25 Oct 2026 18:59
56 lines
3909 bytes
3909 bytes
On 25/10/2026 19:29, Blaine wrote: > David Brown wrote: >> On 25/10/2026 18:19, Robert Woodward wrote: >>> In article <11bl7vr$3nprb$2@dont-email.me>, >>> Peter Flass <Peter@Iron-Spring.com> wrote: >>> >>>> 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. >>> >>> For that matter, this entire thread has ceased to have anything to do >>> with rec.arts.sf.written. >>> >> >> Was it ever relevant to that group? At least one person in this >> thread is renowned for his irritating habit of adding every newsgroup >> he can think of to lists. "This post is in English - I'll add >> alt.languages.english to the list. I see there was a number mentioned >> - I've added sci.maths for their thoughts. I've just thought about >> thoughts, so alt.philosophy is needed too". > > Sorry about that. I only did it because Eternal September, if I take > away one of the Newsgroups: listings, it won't let me post. In such a > case it only allows 3 newsgroups. That won't do for this thread. > I was not thinking of you. (And in the case of this thread, the original poster cross-posted wildly to start with.) I've nothing against the occasional cross-post thread, and some threads can be relevant to multiple groups. A comparison to C++ and Fortran could easily be relevant to c.l.fortran and c.l.c++. It's mass cross-posting to irrelevant groups that bugs me (and many others).
Re: “The end of software secrecy is almost upon us"
Author: Lawrence D’Oliveiro
Date: Sun, 25 Oct 2026 20:07
Date: Sun, 25 Oct 2026 20:07
19 lines
2676 bytes
2676 bytes
On Sun, 25 Oct 2026 16:31:56 +0100, Andreas Eder wrote: > On Fr 23 Okt 2026 at 22:49, Lawrence D’Oliveiro wrote: > >> 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. Display PostScript was from Adobe. You could be thinking of NeWS, which was from Sun. It slightly predated X11, and they pretty much abandoned it after adopting X11 wholesale, like the entire rest of the Unix industry. But neither Display PostScript nor NeWS made any changes to the PostScript graphics model; it was still designed around making marks on paper, not for updating pixels on a computer screen.
Re: “The end of software secrecy is almost upon
Author: Michael S
Date: Sun, 25 Oct 2026 20:24
Date: Sun, 25 Oct 2026 20:24
78 lines
4401 bytes
4401 bytes
On Sun, 25 Oct 2026 08:37:22 -0000 (UTC) boltar@caprica.universe wrote: > 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. > In that regard, C and C++ are very similar. Similar primitives modeled mostly on Posix threads were added to both languages at approximately the same time. https://en.cppreference.com/c/thread The difference is not in this specific case, but in generally more conservative attitude of C committee relatively to its C++ counterpart w.r.t. extending Standard library.
Re: âThe end of software secrecy is almost upon
Author: Titus G
Date: Sun, 25 Oct 2026 20:43
Date: Sun, 25 Oct 2026 20:43
19 lines
2259 bytes
2259 bytes
On 26/10/2026 06:19, Robert Woodward wrote: > In article <11bl7vr$3nprb$2@dont-email.me>, > Peter Flass <Peter@Iron-Spring.com> wrote: snip >> I vote that alt.folklore.computers gets pruned from the list of >> recipients, as this discussion seems irrelevant here. > For that matter, this entire thread has ceased to have anything to do > with rec.arts.sf.written. Yes. You are correct, but there are several from r.a.sf.written making a contribution and although it is mainly above my pay grade, I am still reading. In Thunderbird, it is extremely easy to mark a thread as ignored after which you will not be annoyed by further posts on that topic. Easier than complaining.
Re: “The end of software secrecy is almost upon
Author: Michael S
Date: Sun, 25 Oct 2026 20:56
Date: Sun, 25 Oct 2026 20:56
38 lines
2873 bytes
2873 bytes
On Sun, 25 Oct 2026 08:41:48 -0000 (UTC) boltar@caprica.universe wrote: > 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. Actually, implementing C++11 (or C11) threads fully in user space on pre-Vista Win32 (i.e. before addition of support for conditional variables to OS API) would be quite challenging. I don't know if anybody bothered. I think that it is possible, but if you want it robust then it (cond. variables) will cost you significant overhead relatively to "native" synchronization primitives. > 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. > Dick-measuring competitions are integral part of Usenet tradition.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sun, 25 Oct 2026 21:19
Date: Sun, 25 Oct 2026 21:19
22 lines
2509 bytes
2509 bytes
On 10/25/2026 1:34 AM, boltar@caprica.universe wrote: > 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. > > Windows has what we need to run multi process. Even for a Mutex... Remember WAIT_ABANDONED?
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sun, 25 Oct 2026 21:21
Date: Sun, 25 Oct 2026 21:21
21 lines
2461 bytes
2461 bytes
On 10/25/2026 1:34 AM, boltar@caprica.universe wrote: > 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. > > What about separate multi threaded processes?
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sun, 25 Oct 2026 21:22
Date: Sun, 25 Oct 2026 21:22
44 lines
3457 bytes
3457 bytes
On 10/25/2026 1:31 AM, boltar@caprica.universe wrote: > 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. > Ummm... It is relevant. Every process has a single thread of execution, but not all processes have multiple threads.
Re: “The end of software secrecy is almost upon
Author: Peter Moylan
Date: Sun, 25 Oct 2026 21:29
Date: Sun, 25 Oct 2026 21:29
10 lines
1908 bytes
1908 bytes
On 24/10/26 06:49, Lynn McGuire wrote: > > Bill Gates wrote the Microsoft Basic compiler and interpreter for the > Altair 8080 in 2K of ram using assembly language. Take that as you will. Then someone translated it into an African language and called it Mbasic. -- Peter Moylan peter@pmoylan.org http://www.pmoylan.org Newcastle, NSW
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sun, 25 Oct 2026 21:31
Date: Sun, 25 Oct 2026 21:31
40 lines
3290 bytes
3290 bytes
On 10/25/2026 9:29 AM, boltar@caprica.universe wrote: > 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. > Make Fibers in 100% pure C++? But those are not threads. Multiple fibers can run on a single thread. Although, I think they can run on multiple threads as well. So, multiple threads, multiple fibers per thread.
Re: “The end of software secrecy is almost upon us"
Author: Chris M. Thomasson
Date: Sun, 25 Oct 2026 21:36
Date: Sun, 25 Oct 2026 21:36
22 lines
2951 bytes
2951 bytes
On 10/25/2026 1:07 PM, Lawrence D’Oliveiro wrote: > On Sun, 25 Oct 2026 16:31:56 +0100, Andreas Eder wrote: > >> On Fr 23 Okt 2026 at 22:49, Lawrence D’Oliveiro wrote: >> >>> 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. > > Display PostScript was from Adobe. > > You could be thinking of NeWS, which was from Sun. It slightly > predated X11, and they pretty much abandoned it after adopting X11 > wholesale, like the entire rest of the Unix industry. > > But neither Display PostScript nor NeWS made any changes to the > PostScript graphics model; it was still designed around making marks > on paper, not for updating pixels on a computer screen. Updating pixels on a computer screen? Use a frag shader.
Re: Re: “The end of software secrecy is almost upon
Author: Scott Dorsey
Date: Sun, 25 Oct 2026 23:06
Date: Sun, 25 Oct 2026 23:06
21 lines
1612 bytes
1612 bytes
Cryptoengineer <petertrei@gmail.com> wrote: > >The Apple ][ was also integer only. The Apple ][+ had floating point. >The top 16k of memory was ROM supporting the OS and BASIC. Relatively >roomy compared to the ZX80/81. Yes, the INTBASIC was Apple code, while APPLESOFT BASIC was written by Microsoft on contract to Apple. APPLESOFT worked pretty well aside from programmable functions. It could do realtime FFTs at 0.5 samp/sec which was good enough for some interesting things. You could upgrade the roms in your original Apple ][ to the ][+ roms for what seemed like a fortune to me at the time but which was probably quite reasonable. I think you lost Sweet-16 in the process though. --scott > >pt -- "C'est un Nagra. C'est suisse, et tres, tres precis."
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Sun, 25 Oct 2026 23:16
Date: Sun, 25 Oct 2026 23:16
28 lines
2800 bytes
2800 bytes
On 10/22/2026 10:29 PM, 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?
Even analogous, to say, an API that says read n bytes and store into
buffer. Well, the caller has lifetime of said buffer. The caller makes
the buffer, calls into the function. The buffer bounds are known. Say a
metadata stub:
struct foobar_caller_alloc_helper
{
size_t m_size;
size_t m_align;
};
Threads and processes (was: Re: "The end of software secrecy is almost upon)
Author: Nuno Silva
Date: Sun, 25 Oct 2026 23:48
Date: Sun, 25 Oct 2026 23:48
42 lines
3178 bytes
3178 bytes
On 2026-10-25, 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. > 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. It tends to be somewhat easy to get lost in misunderstandings even when using the very same language. So, if you're discussing threads and/or processes, explaining what do you mean by these two concepts at least ensures there's one less source of potential misunderstandings. With that in account, it's less than stellar not to answer. And then kind of pulling rank to do so... "Le langage est source de malentendus." -- Saint-Exupèry -- Nuno Silva
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Mon, 26 Oct 2026 00:07
Date: Mon, 26 Oct 2026 00:07
23 lines
2411 bytes
2411 bytes
On 10/25/2026 4:06 PM, Scott Dorsey wrote: > Cryptoengineer <petertrei@gmail.com> wrote: >> >> The Apple ][ was also integer only. The Apple ][+ had floating point. >> The top 16k of memory was ROM supporting the OS and BASIC. Relatively >> roomy compared to the ZX80/81. > > Yes, the INTBASIC was Apple code, while APPLESOFT BASIC was written by > Microsoft on contract to Apple. APPLESOFT worked pretty well aside from > programmable functions. It could do realtime FFTs at 0.5 samp/sec which > was good enough for some interesting things. > > You could upgrade the roms in your original Apple ][ to the ][+ roms > for what seemed like a fortune to me at the time but which was probably > quite reasonable. I think you lost Sweet-16 in the process though. > --scott >> >> pt > > IIGS with some extra memory, and a HD, beat a Mac back in the say, iirc, Mac SE. The Mac iicx, or iise, well they were pretty fun.
Re: Re: “The end of software secrecy is almost upon
Author: Rich Alderson
Date: Mon, 26 Oct 2026 00:10
Date: Mon, 26 Oct 2026 00:10
26 lines
2186 bytes
2186 bytes
Lynn McGuire <lynnmcguire5@gmail.com> writes:
> 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.
The original Altair BASIC is only an interpreter; there is no compiler
available.
The interpreter requires 4K minimum to run.
The interpreter is assembled from source on a PDP-10 with at least 128K (and
preferably more) of 36 bit words,because it's implemented as local system call
macros in PDP-10 assembler.
Bill wrote the basic framework, Monte Davidoff wrote the transcendental math
functions, and Paul Allen wrote the PDP-10 code to do the assembly.
NB: I worked for Paul building Living Computers: Museum+Labs and working there
as an engineer from 2003-2018, then till 2020 when we closed due to the pandemic.
I've seen the original code, with named attributions.
--
Rich Alderson news@alderson.users.panix.com
Audendum est, et veritas investiganda; quam etiamsi non assequamur,
omnino tamen proprius, quam nunc sumus, ad eam perveniemus.
--Galen
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Mon, 26 Oct 2026 00:22
Date: Mon, 26 Oct 2026 00:22
582 lines
10905 bytes
10905 bytes
On 10/25/2026 1:56 PM, Michael S wrote:
> On Sun, 25 Oct 2026 08:41:48 -0000 (UTC)
> boltar@caprica.universe wrote:
>
>> 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.
>
> Actually, implementing C++11 (or C11) threads fully in user space on
> pre-Vista Win32 (i.e. before addition of support for conditional
> variables to OS API) would be quite challenging. I don't know if
> anybody bothered.
> I think that it is possible, but if you want it robust then it (cond.
> variables) will cost you significant overhead relatively to "native"
> synchronization primitives.
>
>> 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.
>>
>
> Dick-measuring competitions are integral part of Usenet tradition.
>
>
>
>
>
>
I tried to do a little something, no atomics, but, since I am able to
access comp.lang.c++ agai, lets see if I can find it:
https://groups.google.com/g/comp.lang.c/c/WPH7ed5uS4Y/m/ohiP-hUWkcAJ
Content:
___________________________________
________________________________________________________________
#if ! defined (CT_C11_THREADS_H_EMULATION_H)
# define CT_C11_THREADS_H_EMULATION_H 1
# if defined (__cplusplus)
extern "C"
{
# endif
#if defined (CT_C11_THREADS_H_PRINTF_LOG)
# include <stdio.h>
# define CT_C11_THREADS_H_PRINTF(mp_exp) printf mp_exp
#else
# define CT_C11_THREADS_H_PRINTF(mp_exp) ((void)(0))
#endif
#include <stdlib.h>
#include <pthread.h>
#include <assert.h>
typedef int (*ct_thrd_start_t) (void*);
struct ct_thrd_user
{
pthread_t ptid;
};
struct ct_thrd_sys
{
ct_thrd_start_t fp_user;
void* user_ctx;
int user_ret;
};
enum ct_thrd_sys_status
{
ct_thrd_success = 0,
ct_thrd_nomem = 1,
ct_thrd_timedout = 2,
ct_thrd_busy = 3,
ct_thrd_error = 4
};
/* low-level system threading API's
__________________________________________________________________*/
static struct ct_thrd_sys*
ct_thrd_sys_create(
ct_thrd_start_t fp_user,
void* user_ctx
);
static void
ct_thrd_sys_destroy(
struct ct_thrd_sys* const self
);
static void*
ct_thrd_sys_entry(
void* self_raw
);
struct ct_thrd_sys*
ct_thrd_sys_create(
ct_thrd_start_t fp_user,
void* user_ctx
){
struct ct_thrd_sys* const self = malloc(sizeof(*self));
if (self)
{
self->fp_user = fp_user;
self->user_ctx = user_ctx;
self->user_ret = 0;
}
CT_C11_THREADS_H_PRINTF(("ct_thrd_sys_create = %p\r\n", (void*)self));
return self;
}
void
ct_thrd_sys_destroy(
struct ct_thrd_sys* const self
){
free(self);
CT_C11_THREADS_H_PRINTF(
("ct_thrd_sys_destroy(self = %p)\r\n", (void*)self)
);
}
void*
ct_thrd_sys_entry(
void* self_raw
){
struct ct_thrd_sys* const self = self_raw;
CT_C11_THREADS_H_PRINTF(
("ct_thrd_sys_entry(self_raw = %p):Enter\r\n", self_raw)
);
self->user_ret = self->fp_user(self->user_ctx);
CT_C11_THREADS_H_PRINTF(
("ct_thrd_sys_entry(self_raw = %p):Exit = %p\r\n", self_raw,
(void*)self)
);
return self;
}
/* C11 emulation API layer
__________________________________________________________________*/
/* Threading API
______________________________________________________________*/
typedef struct ct_thrd_user ct_thrd_t;
static int
ct_thrd_create(
ct_thrd_t* uself,
ct_thrd_start_t fp_user,
void* user_ctx
);
static int
ct_thrd_join(
ct_thrd_t self,
int* user_retv
);
int
ct_thrd_create(
ct_thrd_t* uself,
ct_thrd_start_t fp_user,
void* user_ctx
){
struct ct_thrd_sys* const self =
ct_thrd_sys_create(fp_user, user_ctx);
if (self)
{
int status = pthread_create(&uself->ptid, NULL, ct_thrd_sys_entry,
self);
if (! status)
{
return ct_thrd_success;
}
ct_thrd_sys_destroy(self);
}
return ct_thrd_nomem;
}
int
ct_thrd_join(
ct_thrd_t self,
int* user_retv
){
void* ptjret = NULL;
pthread_join(self.ptid, &ptjret);
if (ptjret)
{
struct ct_thrd_sys* const self = ptjret;
if (user_retv)
{
*user_retv = self->user_ret;
}
ct_thrd_sys_destroy(self);
return ct_thrd_success;
}
return ct_thrd_error;
}
/* Thread Specific Storage API
______________________________________________________________*/
typedef pthread_key_t ct_tss_t;
typedef void(*ct_tss_dtor_t) (void*);
static int
ct_tss_create(
ct_tss_t* self,
ct_tss_dtor_t fp_user_dtor
);
static void
ct_tss_delete(
ct_tss_t self
);
static int
ct_tss_set(
ct_tss_t self,
void* user_ctx
);
#define ct_tss_get(mp_self) pthread_getspecific((mp_self))
int
ct_tss_create(
ct_tss_t* self,
ct_tss_dtor_t fp_user_dtor
){
int status = pthread_key_create(self, fp_user_dtor);
if (!status)
{
return ct_thrd_success;
}
return ct_thrd_error;
}
void
ct_tss_delete(
ct_tss_t self
){
int status = pthread_key_delete(self);
if (! status)
{
return;
}
assert(! status);
}
int
ct_tss_set(
ct_tss_t self,
void* user_ctx
){
int status = pthread_setspecific(self, user_ctx);
if (!status)
{
return ct_thrd_success;
}
return ct_thrd_error;
}
/* Mutex API
______________________________________________________________*/
typedef pthread_mutex_t ct_mtx_t;
enum {
ct_mtx_plain = 1,
ct_mtx_recursive = 2,
ct_mtx_timed = 4
};
int
ct_mtx_init(
ct_mtx_t* self,
int type
){
if (type == ct_mtx_plain)
{
int status = pthread_mutex_init(self, NULL);
if (! status)
{
return ct_thrd_success;
}
}
return ct_thrd_error;
}
void
ct_mtx_destroy(
ct_mtx_t* self
){
int status = pthread_mutex_destroy(self);
if (! status)
{
return;
}
assert(! status);
}
int
ct_mtx_lock(
ct_mtx_t* self
){
int status = pthread_mutex_lock(self);
if (! status)
{
return ct_thrd_success;
}
assert(! status);
return ct_thrd_error;
}
int
ct_mtx_unlock(
ct_mtx_t* self
){
int status = pthread_mutex_unlock(self);
if (!status)
{
return ct_thrd_success;
}
assert(! status);
return ct_thrd_error;
}
/* Mutex API
______________________________________________________________*/
typedef pthread_cond_t ct_cnd_t;
int
ct_cnd_init(
ct_cnd_t* self
){
int status = pthread_cond_init(self, NULL);
if (! status)
{
return ct_thrd_success;
}
return ct_thrd_error;
}
void
ct_cnd_destroy(
ct_cnd_t* self
){
int status = pthread_cond_destroy(self);
if (! status)
{
return;
}
assert(! status);
}
int
ct_cnd_signal(
ct_cnd_t* self
){
int status = pthread_cond_signal(self);
if (! status)
{
return ct_thrd_success;
}
assert(! status);
return ct_thrd_error;
}
int
ct_cnd_broadcast(
ct_cnd_t* self
){
int status = pthread_cond_broadcast(self);
if (! status)
{
return ct_thrd_success;
}
assert(! status);
return ct_thrd_error;
}
int
ct_cnd_wait(
ct_cnd_t* self,
ct_mtx_t* mtx
){
int status = pthread_cond_wait(self, mtx);
if (! status)
{
return ct_thrd_success;
}
assert(! status);
return ct_thrd_error;
}
/* Mock up the final C11 API with some macros... ;^o
______________________________________________________________*/
/* C11 threading API
_________________________________________________*/
#define thrd_success ct_thrd_success
#define thrd_nomem ct_thrd_nomem
#define thrd_timedout ct_thrd_timedout
#define thrd_busy ct_thrd_busy
#define thrd_error ct_thrd_error
#define thrd_t ct_thrd_t
#define thrd_create ct_thrd_create
#define thrd_join ct_thrd_join
/* C11 thread specific storage API
_________________________________________________*/
#define tss_t ct_tss_t
#define tss_create ct_tss_create
#define tss_delete ct_tss_delete
#define tss_set ct_tss_set
#define tss_get ct_tss_get
/* C11 mutex API
_________________________________________________*/
#define mtx_plain ct_mtx_plain
#define mtx_recursive ct_mtx_recursive
#define mtx_timed ct_mtx_timed
#define mtx_t ct_mtx_t
#define mtx_init ct_mtx_init
#define mtx_destroy ct_mtx_destroy
#define mtx_lock ct_mtx_lock
#define mtx_unlock ct_mtx_unlock
/* C11 condition variable API
_________________________________________________*/
#define cnd_t ct_cnd_t
#define cnd_init ct_cnd_init
#define cnd_destroy ct_cnd_destroy
#define cnd_signal ct_cnd_signal
#define cnd_broadcast ct_cnd_broadcast
#define cnd_wait ct_cnd_wait
# if defined (__cplusplus)
}
# endif
#endif
________________________________________________________________
This is in my personal coding style. I am sorry if it ends up pissing you
off!
;^o
Anyway, what do you think?
:^)
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Mon, 26 Oct 2026 00:42
Date: Mon, 26 Oct 2026 00:42
7 lines
2185 bytes
2185 bytes
On Sun, 25 Oct 2026 16:16:26 -0700, Chris M. Thomasson wrote: > Even analogous, to say, an API that says read n bytes and store into > buffer. Well, the caller has lifetime of said buffer. The caller makes > the buffer, calls into the function. So how is the caller supposed to manage that memory?
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Mon, 26 Oct 2026 02:01
Date: Mon, 26 Oct 2026 02:01
58 lines
3934 bytes
3934 bytes
On 10/25/2026 1:37 AM, boltar@caprica.universe wrote: > 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. > So does C11.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Mon, 26 Oct 2026 02:03
Date: Mon, 26 Oct 2026 02:03
24 lines
2455 bytes
2455 bytes
On 10/25/2026 1:42 AM, boltar@caprica.universe wrote: > 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. > Have you ever tried to sync up multiple processes each running multiple threads? When is the last time you used a robust mutex?
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Mon, 26 Oct 2026 02:11
Date: Mon, 26 Oct 2026 02:11
19 lines
2582 bytes
2582 bytes
On 10/25/2026 5:42 PM, Lawrence D’Oliveiro wrote:
> On Sun, 25 Oct 2026 16:16:26 -0700, Chris M. Thomasson wrote:
>
>> Even analogous, to say, an API that says read n bytes and store into
>> buffer. Well, the caller has lifetime of said buffer. The caller makes
>> the buffer, calls into the function.
>
> So how is the caller supposed to manage that memory?
Ummm, say we wanted to have a buffer and use it.
Say:
{
char buf[2048] = { '\0' };
size_t bytes= foo_read(self, buf, 1024);
}
A caller provided buffer is normal with a lot of API's out there.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Mon, 26 Oct 2026 02:21
Date: Mon, 26 Oct 2026 02:21
12 lines
2573 bytes
2573 bytes
On 10/25/2026 5:42 PM, Lawrence D’Oliveiro wrote: > On Sun, 25 Oct 2026 16:16:26 -0700, Chris M. Thomasson wrote: > >> Even analogous, to say, an API that says read n bytes and store into >> buffer. Well, the caller has lifetime of said buffer. The caller makes >> the buffer, calls into the function. > > So how is the caller supposed to manage that memory? Managing the memory is the caller’s job in C anyway. That’s the trade-off the language makes. read, recv, and mmap all work this way. This just applies the same contract to the lib’s own object.
Re: “The end of software secrecy is almost upon
Author: Chris M. Thomasson
Date: Mon, 26 Oct 2026 02:28
Date: Mon, 26 Oct 2026 02:28
51 lines
4478 bytes
4478 bytes
On 10/24/2026 3:32 PM, Lawrence D’Oliveiro wrote:
> 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.
The graphics case is where the leak is unavoidable, but that’s not why
I’d want it. A lib that never allocates behind your back is what you
want in embedded, kernel, and arena code, and a foo_create wrapper on
top gives you the hidden-allocation version for everyone else. Your
do-once cleanup idiom works fine with it. You just call deinit and
reclaim the block the way you made it. It’s a way to structure the
caller’s error handling, and it doesn’t say anything about who owns the
memory.
Say memory on a threads stack, no free needed.
Re: “The end of software secrecy is almost upon
Author: Cryptoengineer
Date: Mon, 26 Oct 2026 02:54
Date: Mon, 26 Oct 2026 02:54
23 lines
2360 bytes
2360 bytes
On 10/25/2026 7:06 PM, Scott Dorsey wrote: > Cryptoengineer <petertrei@gmail.com> wrote: >> >> The Apple ][ was also integer only. The Apple ][+ had floating point. >> The top 16k of memory was ROM supporting the OS and BASIC. Relatively >> roomy compared to the ZX80/81. > > Yes, the INTBASIC was Apple code, while APPLESOFT BASIC was written by > Microsoft on contract to Apple. APPLESOFT worked pretty well aside from > programmable functions. It could do realtime FFTs at 0.5 samp/sec which > was good enough for some interesting things. > > You could upgrade the roms in your original Apple ][ to the ][+ roms > for what seemed like a fortune to me at the time but which was probably > quite reasonable. I think you lost Sweet-16 in the process though. > --scott >> >> pt I distinctly recall working with Sweet-16 on my ][+ back in the day, but can't recall the details. pt
Re: âThe end of software secrecy is almost upon
Author: Peter Flass
Date: Mon, 26 Oct 2026 02:54
Date: Mon, 26 Oct 2026 02:54
20 lines
2345 bytes
2345 bytes
On 10/25/26 13:43, Titus G wrote: > On 26/10/2026 06:19, Robert Woodward wrote: >> In article <11bl7vr$3nprb$2@dont-email.me>, >> Peter Flass <Peter@Iron-Spring.com> wrote: > > snip > >>> I vote that alt.folklore.computers gets pruned from the list of >>> recipients, as this discussion seems irrelevant here. > >> For that matter, this entire thread has ceased to have anything to do >> with rec.arts.sf.written. > > Yes. You are correct, but there are several from r.a.sf.written making a > contribution and although it is mainly above my pay grade, I am still > reading. In Thunderbird, it is extremely easy to mark a thread as > ignored after which you will not be annoyed by further posts on that > topic. Easier than complaining. But a lot less fun!
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Mon, 26 Oct 2026 03:39
Date: Mon, 26 Oct 2026 03:39
10 lines
2372 bytes
2372 bytes
On Sun, 25 Oct 2026 19:11:48 -0700, Chris M. Thomasson wrote: > A caller provided buffer is normal with a lot of API's out there. No it isn’t. It’s not a good way to manage things, anyway: instead of solving the resource-allocation problem once and for all in the library API, you are pushing the burden onto all the client code, each one of which has to solve it for itself. That’s a dumb way to design things.
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Mon, 26 Oct 2026 03:40
Date: Mon, 26 Oct 2026 03:40
6 lines
2141 bytes
2141 bytes
On Sun, 25 Oct 2026 19:21:00 -0700, Chris M. Thomasson wrote: > Managing the memory is the caller’s job in C anyway. Does that apply to the caller of library APIs like malloc(3) and free(3)?
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Mon, 26 Oct 2026 03:43
Date: Mon, 26 Oct 2026 03:43
16 lines
2845 bytes
2845 bytes
On Sun, 25 Oct 2026 19:28:00 -0700, Chris M. Thomasson wrote: > A lib that never allocates behind your back is what you > want in embedded, kernel, and arena code ... Even kernels want a common memory-management architecture, so addon modules don’t have to reinvent memory management on their own. Think of something like allocating low-priority cache memory, for stuff that can be dumped if necessary: that needs to be managed in the core of the kernel, so that if apps need regular memory for things they want to keep in memory, the kernel can free up cache as necessary to make more memory available. Stop trying to rationalize away the whole point of dynamic memory allocation.
Re: “The end of software secrecy is almost upon
Author: Lawrence D’Oliveiro
Date: Mon, 26 Oct 2026 03:47
Date: Mon, 26 Oct 2026 03:47
10 lines
1825 bytes
1825 bytes
On Sun, 25 Oct 2026 22:54:14 -0400, Cryptoengineer wrote: > I distinctly recall working with Sweet-16 on my ][+ back in the day, > but can't recall the details. Interpreter for 16-bit integer arithmetic, according to <https://en.wikipedia.org/wiki/SWEET16>: ran at 1/10th the speed of native 6502 instructions, but took up just 300 bytes of RAM, but apparently cut the size of the whole Integer BASIC implementation by 20%.
Re: ?The end of software secrecy is almost upon
Author: Jerry Brown
Date: Mon, 26 Oct 2026 07:59
Date: Mon, 26 Oct 2026 07:59
30 lines
2719 bytes
2719 bytes
On Sun, 25 Oct 2026 09:30:12 -0000 (UTC), Thomas Koenig <tkoenig@netcologne.de> 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? That's ringing a vague bell. My time on the 9370 was short compared to the 3090, so all I can remember were things like the file handling was MUCH simpler (no need specify record types and block sizes and the foreground scripting language REXX was much nicer than the CLIST we used on the mainframe - it had stacks for storing and processing data, which was fun. The only command I can remember was when I had my operator hat on and a user wanted to access the 3422 tape drive I had to ATTACH the physical 3 digit id of the tape drive to the logical 3 digit id they were using (in retrospect I see this was its equivalent of unix mount command). -- Jerry Brown A cat may look at a king (but probably won't bother)
Re: “The end of software secrecy is almost upon
Author: boltar
Date: Mon, 26 Oct 2026 09:51
Date: Mon, 26 Oct 2026 09:51
27 lines
2104 bytes
2104 bytes
On Sun, 25 Oct 2026 17:14:18 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >In article <11blaui$2q6vd$1@dont-email.me>, <boltar@caprica.universe> wrote: >>anyway. Whoops, didn't >>turn out quite how you expected did it? > >Actually, it "turned out" juat about exactly as I expected it >would. You have low expectations then. >>Oh dear, you really have no clue! > >You're snotty little attitude aside, I note that you can't even Anyone who equates system() with multiprocess programming doesn't know wtf they're talking about. Hows that for a snotty aside? >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! Go ahead and remain clueless.
Re: “The end of software secrecy is almost upon
Author: boltar
Date: Mon, 26 Oct 2026 09:54
Date: Mon, 26 Oct 2026 09:54
23 lines
2122 bytes
2122 bytes
On Sun, 25 Oct 2026 17:18:32 -0000 (UTC) cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >In article <11blaoq$2q6jk$1@dont-email.me>, <boltar@caprica.universe> wrote: >>On Sun, 25 Oct 2026 16:15:21 -0000 (UTC) >>cross@spitfire.i.gajendra.net (Dan Cross) gabbled: >>>[snip] >>>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. > >One last hint: where do you think those thjngs arw stored? If >you could define what a thread is, maybe you'd have a clue >about how those are handled. :-) Oh please, try a bit harder. You can do anything you want in ring 0 assembler, that doesn't mean its a good idea.
Re: Re: what's a process, was The end of software secrecy is almost upon
Author: boltar
Date: Mon, 26 Oct 2026 09:57
Date: Mon, 26 Oct 2026 09:57
19 lines
2040 bytes
2040 bytes
On Sun, 25 Oct 2026 18:17:44 -0000 (UTC) John Levine <johnl@taugh.com> gabbled: >According to <boltar@caprica.universe>: >>>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. > >Copy-on-write (or on some older systems copy-on-touch) is an implementation >detail. Neither process can look inside the other even if they share some >unwritten or untouched pages. The point is they are sharing memory. In a reference implementation processes don't share any virtual memory at all - everything is copied to a new location at fork - so you can't use sharing memory as a way to demarcate multithreading and multiprocess.
Re: “The end of software secrecy is almost upon
Author: boltar
Date: Mon, 26 Oct 2026 09:59
Date: Mon, 26 Oct 2026 09:59
32 lines
2808 bytes
2808 bytes
On Sun, 25 Oct 2026 22:56:19 +0200 Michael S <already5chosen@yahoo.com> gabbled: >On Sun, 25 Oct 2026 08:41:48 -0000 (UTC) >boltar@caprica.universe wrote: > >> 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. > >Actually, implementing C++11 (or C11) threads fully in user space on >pre-Vista Win32 (i.e. before addition of support for conditional >variables to OS API) would be quite challenging. I don't know if >anybody bothered. >I think that it is possible, but if you want it robust then it (cond. >variables) will cost you significant overhead relatively to "native" >synchronization primitives. C++ threading didn't have 3 level locking until 2017 making it effectively useless IMO. Perhaps that was down to the lowest common denominator called Windows.
Re: Re: “The end of software secrecy is almost upon
Author: boltar
Date: Mon, 26 Oct 2026 10:01
Date: Mon, 26 Oct 2026 10:01
31 lines
2807 bytes
2807 bytes
On Sun, 25 Oct 2026 14:19:14 -0700 "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> gabbled: >On 10/25/2026 1:34 AM, boltar@caprica.universe wrote: >> 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. >> >> > >Windows has what we need to run multi process. Even for a Mutex... >Remember WAIT_ABANDONED? win32 can't do fork() making it effectively a totally useless API for a lot of multiprocess development. Creating a brand new process is fine if you don't need any complicated shared state such as when kicking off something on the command line or creating a pipe (something else win32 is shit at) but thats about it.
Re: Re: “The end of software secrecy is almost upon
Author: boltar
Date: Mon, 26 Oct 2026 10:02
Date: Mon, 26 Oct 2026 10:02
13 lines
1871 bytes
1871 bytes
On Sun, 25 Oct 2026 14:22:34 -0700 "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> gabbled: >On 10/25/2026 1:31 AM, boltar@caprica.universe wrote: >> 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. >> > >Ummm... It is relevant. Every process has a single thread of execution, >but not all processes have multiple threads. No shit sherlock, thanks for the heads up. Your point is?
Re: ?The end of software secrecy is almost upon
Author: Dan Cross
Date: Mon, 26 Oct 2026 10:33
Date: Mon, 26 Oct 2026 10:33
35 lines
2405 bytes
2405 bytes
In article <5e1udl9hs8733aqpjenq0vk71v3pn25q8n@jwbrown.co.uk>, Jerry Brown <jerry@jwbrown.co.uk.invalid> wrote: >On Sun, 25 Oct 2026 09:30:12 -0000 (UTC), Thomas Koenig ><tkoenig@netcologne.de> 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? > >That's ringing a vague bell. > >My time on the 9370 was short compared to the 3090, so all I can >remember were things like the file handling was MUCH simpler (no need >specify record types and block sizes and the foreground scripting >language REXX was much nicer than the CLIST we used on the mainframe - >it had stacks for storing and processing data, which was fun. > >The only command I can remember was when I had my operator hat on and >a user wanted to access the 3422 tape drive I had to ATTACH the >physical 3 digit id of the tape drive to the logical 3 digit id they >were using (in retrospect I see this was its equivalent of unix mount >command). That sounds like VM/ESA, all right. Command list `LIST` and `TYPE` and a three-field file name relative to a "minidisk"? REXX was the "usual" scripting language. VM was kind of neat. - Dan C.
Page 7 of 11 • 529 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads