๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#363
From: boltar
Date: Sun, 25 Oct 2026 16:29
35 lines
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.
Technical Details
Message-ID: <11blaoq$2q6jk$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!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> <11bl9up$bh1$1@reader2.panix.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: boltar@caprica.universe
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:29:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <11blaoq$2q6jk$1@dont-email.me>
References: <11amvre$15far$1@dont-email.me> <20261025084234.0000449c@yahoo.com> <11bl0e6$68c$1@reader2.panix.com> <YHpDS.27364$9b8f.4666@fx39.iad> <11bl9up$bh1$1@reader2.panix.com>
Injection-Date: Sun, 25 Oct 2026 16:29:15 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2955892"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18u9FZXnw46wNF+bawkT55C"; posting-host="8df40857cfe383a2308aecee50406a0b"
Cancel-Lock: sha1:gjE0NMoMzn2Vpe/XdRvT7iYip6A= sha256:6w78ZTQfeS0bYi9egl9jw4jb4TFOnoDW0vYhNRHFfqM=
	sha1:grZ+yrAb26RFol58EvHbNbCvAHo= sha256:h0jaVOyNy8eHwQlHKd0T7pH+5aREXtMEwYrgGCnTx+4=