🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1580

Re: Inversion-of-control and dependency-injection in C

#1580
From: Ross Finlayson
Date: Mon, 16 Nov 2026 17:35
88 lines
4769 bytes
On 11/14/2026 09:05 AM, Ross Finlayson wrote:
> On 11/12/2026 01:44 PM, Ross Finlayson wrote:
>> On 11/12/2026 12:55 PM, Richard Harnden wrote:
>>> On 12/11/2026 20:11, Lew Pitcher wrote:
>>>> On Thu, 12 Nov 2026 09:41:04 -0800, Ross Finlayson wrote:
>>>>
>>>>> Hello, dear C experts, I'm hoping you can tell me a story about
>>>>> modularity and composability, about the concerns of
>>>>> inversion-of-control
>>>>> and dependency-injection in C, basically about wiring
>>>>> test-time and run-time targets, for example about conditional-includes
>>>>> and various build-targets, probably mostly about function pointers.
>>>>
>>>> Pardon my impertinence, but this sounds like a homework problem to me.
>>>>
>>>> Could you rephrase your question without the academic wording?
>>>>
>>>
>>> Or get an AI do to your homework?
>>>
>>> Be careful to remove the white-on-white-very-small-font gotcha your
>>> professor doubtlessly put in.
>>>
>>>
>>
>>
>> When I use "A.I." it's framed as a dialogue and I just copy the
>> transcripts directly, with the attributions.
>>
>> I.e., I've never submitted anything to Usenet written by a bot
>> on my behalf.
>>
>>
>> I'm not sure whether I'd call it "distance learning", or,
>> "distance learning", say, ....
>>
>>
>>
>>
>> Like say for example I'm looking at something like this that I tapped
>> up this morning, and I want to figure out then how to make it so that
>> the guts of the workers have a nice real quality of covering all the
>> bases of covering all the cases, when for example according to the C
>> host as it were or POSIX there's signals and traps to be figured out
>> in accounts of "asynchronous concurrency".
>>
>>
>>
>>
>>
>>
>> Outline of "I/O-handle-bound process model"
>>
>> The "I/O-handle-bound process model", is an account of a process group
>> in a process tree,
>> that works up to the bounds of 1024 many file-descriptors that a
>> pselect() call can poll,
>> with up to 1000-many file-descriptors in up to 1000-many worker
>> processes, for up to
>> 1,000,000-many open connections.
>>  [ ... ]


I posted another long and discursive bot-chat on
comp.theory/comp.unix.programmer about "Portable, Safe,
Parallel-Semantic Protocol Servers", basically getting into concepts of
modules and module-ry (like pattern-ry) about config and protocol
and resource models in a runtime this "I/O-handle-bound process-model"
of a C11 (C++11-friendly) POSIX-platform framework account of
"what are modules for componentry about the composable then
the component-registry and service-discovery for configuration
the code the process-model of a runtime of a high-performance
high-reliability re-purposable run-time of protocols and resources".


I wondered if they had anything to cure OCD yet then I'd figure
they'd forget it, ....,



So, this sort of account about C11 (obligatory relevance to
a discussion about C) of pattern-ry of module-ry (that's a new
one) of component-ry, mostly is about design, then also about
the fact that a rather simple and uncomplicated footprint of
code, is quite most the guts of "the server" (application layer).


Technical Details
Message-ID: <dqycndgK3olto2b3nZ2dnZfqnPqdnZ2d@giganews.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> <11d56gl$3ud5q$1@dont-email.me> <11d594d$9qh8$1@dont-email.me> <YS2dnRFBYqynrmv3nZ2dnZfqn_SdnZ2d@giganews.com> <UKycnSLJ2_luCWX3nZ2dnZfqnPqdnZ2d@giganews.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 16 Nov 2026 17:35:44 +0000
Subject: Re: Inversion-of-control and dependency-injection in C
Newsgroups: comp.lang.c
References: <yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com>
 <11d56gl$3ud5q$1@dont-email.me> <11d594d$9qh8$1@dont-email.me>
 <YS2dnRFBYqynrmv3nZ2dnZfqn_SdnZ2d@giganews.com>
 <UKycnSLJ2_luCWX3nZ2dnZfqnPqdnZ2d@giganews.com>
From: Ross Finlayson <ross.a.finlayson@gmail.com>
Date: Mon, 16 Nov 2026 09:35:44 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <UKycnSLJ2_luCWX3nZ2dnZfqnPqdnZ2d@giganews.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <dqycndgK3olto2b3nZ2dnZfqnPqdnZ2d@giganews.com>
Lines: 88
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-yfWZSEm0o7y7zsJpDEw/Q6PHOXhgzR1S08gSCd5el32/9uxKi7bvfsoU3o6GxRBdI0EmrqReo1McJmw!yKcgvJxFN3yyfs01BJv4ppiMoNhqkkwXMN4p5JCaDkgiy3PnwP5INRfEQ2Ac7ck7MW/f2GE2zF1B
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40