๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #359

Re: โ€œThe end of software secrecy is almost upon

#359
From: Dan Cross
Date: Sun, 25 Oct 2026 16:15
31 lines
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.
Technical Details
Message-ID: <11bl9up$bh1$1@reader2.panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
References: <11amvre$15far$1@dont-email.me> <20261025084234.0000449c@yahoo.com> <11bl0e6$68c$1@reader2.panix.com> <YHpDS.27364$9b8f.4666@fx39.iad>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail
From: cross@spitfire.i.gajendra.net (Dan Cross)
Newsgroups: rec.arts.sf.written,comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers
Subject: Re: โ€œThe end of software secrecy is almost upon
Date: Sun, 25 Oct 2026 16:15:21 -0000 (UTC)
Organization: PANIX Public Access Internet and UNIX, NYC
Message-ID: <11bl9up$bh1$1@reader2.panix.com>
References: <11amvre$15far$1@dont-email.me> <20261025084234.0000449c@yahoo.com> <11bl0e6$68c$1@reader2.panix.com> <YHpDS.27364$9b8f.4666@fx39.iad>
Injection-Date: Sun, 25 Oct 2026 16:15:21 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80";
	logging-data="11809"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: cross@spitfire.i.gajendra.net (Dan Cross)