Article View: comp.lang.c
Article #1549Re: Inversion-of-control and dependency-injection in C
From: Tristan Wibberley
Date: Sun, 15 Nov 2026 10:26
Date: Sun, 15 Nov 2026 10:26
38 lines
3502 bytes
3502 bytes
On 13/11/2026 22:50, Ross Finlayson wrote: > So, here's one. Say you got a server process for sockets of the > connection-oriented or datagram-wise or association-oriented like > TCP, UDP, or SCTP, and it manages the connecting and the sending and > receiving about a million of those and is sort of fixed-size and > stable in a usual runtime. So, how do you design the interface, > about stuff like the state-machine of _protocols_, all about > _protocols_, in the application-layer and above, say, for example > the incremental-parsing and the state-machine of the protocol > and sub-protocols and upgrade-protocols and the like, what sort > of abstraction with suitable-defaults and reasonable-opinions > makes for having any sort protocol as a composable library. For anyone who either doesn't understand that text or doesn't get how valuable it is just as a question unanswered: please know that it is super. To Ross: nobody using Usenet is going to be able to give an adequate answer. Maybe a dozen people on the planet can give such an answer and maybe each of a dozen teams of academics could do it with several years work. Now that IBM, Sun and Oracle are all dead I suppose they all work for Google now. -- Tristan Wibberley The message body is Copyright (C) 2026 Tristan Wibberley except citations and quotations noted. All Rights Reserved except that you may, of course, cite it academically giving credit to me, distribute it verbatim as part of a usenet system or its archives, and use it to promote my greatness and general superiority without misrepresentation of my opinions other than my opinion of my greatness and general superiority which you _may_ misrepresent. You definitely MAY NOT train any production AI system with it but you may train experimental AI that will only be used for evaluation of the AI methods it implements.
Technical Details
Message-ID:
<11dc1cj$2lp70$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> <11d56gl$3ud5q$1@dont-email.me> <11d6vjp$qhu8$1@raubtier-asyl.eternal-september.org> <dsednTD-Fblclmr3nZ2dnZfqnPWdnZ2d@giganews.com> <11d738r$ru7a$1@dont-email.me> <11d75i7$spj0$1@dont-email.me> <11d7c8k$173nk$1@dont-email.me> <11d7fbv$1839o$2@dont-email.me> <nrecnTdvuvbACWr3nZ2dnZfqn_adnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Tristan Wibberley <tristan.wibberley+netnews2@alumni.manchester.ac.uk> Newsgroups: comp.lang.c Subject: Re: Inversion-of-control and dependency-injection in C Date: Sun, 15 Nov 2026 10:26:26 +0000 Organization: A noiseless patient Spider Lines: 38 Message-ID: <11dc1cj$2lp70$1@dont-email.me> References: <yQOdnQ-qnKiiZ2j3nZ2dnZfqn_udnZ2d@giganews.com> <11d56gl$3ud5q$1@dont-email.me> <11d6vjp$qhu8$1@raubtier-asyl.eternal-september.org> <dsednTD-Fblclmr3nZ2dnZfqnPWdnZ2d@giganews.com> <11d738r$ru7a$1@dont-email.me> <11d75i7$spj0$1@dont-email.me> <11d7c8k$173nk$1@dont-email.me> <11d7fbv$1839o$2@dont-email.me> <nrecnTdvuvbACWr3nZ2dnZfqn_adnZ2d@giganews.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 15 Nov 2026 10:26:27 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2811104"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eTKQV/fi/1DFy/u9qZCalidOhzFtYNqXyjj3sn3Zo1g=="; posting-host="b1a8a25511d53f4732f886f02fc645de" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:pylf0Tcxm5Cb/eFvGsu3Pu2BMEY= sha256:5OSbbKkYwAQj40EZRhmE4GR5dlrF6dRPfR6tyzjiEks= sha1:8EVgddW7M7CkyyLGCfqtWY75e4I= sha256:jCi6SoQaMsrrUphtT4y/1RcS4oR6pXeI5zQmHmHduGo= In-Reply-To: <nrecnTdvuvbACWr3nZ2dnZfqn_adnZ2d@giganews.com> Content-Language: en-GB