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

    From Ross Finlayson@ross.a.finlayson@gmail.com to comp.lang.c on Mon Nov 23 15:57:46 2026
    From Newsgroup: comp.lang.c

    On 11/20/2026 02:25 PM, Ross Finlayson wrote:
    On 11/20/2026 09:29 AM, fir wrote:
    fir pisze:
    fir pisze:
    bartc pisze:
    On 20/11/2026 14:01, bartc wrote:
    On 20/11/2026 13:48, Ross Finlayson wrote:


    <snip 147-line reply>


    (This is not "A.I.",

    Oh, so it's you choosing to post endless reams of gibberish.

    Just, WHY? Nobody here has the patience to read through that crap
    let alone try and understand what the hell you're on about or what >>>>>> relevance it has to anything.

    Some more info from Google AI:

    ------------------------------------------
    Ross A. Finlayson is a long-time, prolific poster on science and
    mathematics Usenet newsgroups—most notably sci.math, sci.physics,
    and sci.logic—who is frequently labeled a troll or "crank" by other >>>>> regulars due to his repetitive, non-standard, and dense writing style. >>>>>
    Overview of His Usenet Activity

    • Core Topics. His posts typically revolve around alternative
    foundations of mathematics, "null axiom theory," non-standard
    calculus, and critiques of modern physics (such as relativity and
    quantum mechanics).
    • Posting Style. He is known for generating massive volumes of
    stream-of-consciousness text, often using idiosyncratic terminology
    and cross-posting across multiple technical groups. He also shares
    links to his own YouTube podcasts where he reads or discusses his
    essays on logic, philosophy, and physics.
    • Community Reception. Because his arguments reject standard
    mathematical consensus (like ZFC set theory) and rarely engage
    directly with counterarguments, other Usenet participants routinely
    group him alongside notorious Usenet fixtures like Archimedes
    Plutonium and John Gabriel.

    ------------------------------------------

    No mention of comp.lang.c; this must just be a recent sideline.

    So it looks like there is no reason to engage with Mr RAF as there
    is little point.

    does it tell something about me (fir/profesor fir?)

    lol, it knows me better than chatgpt

    mozesz cos powiedziec o osobie z nickiem fir albo profesor.fir ktory
    postowal duzo w usenecie glownie na grupie comp.lang.c ?

    fir (znany również jako profesor.fir, fir@poczta.onet.pl lub pod
    zbliżonymi wariantami) to jedna z najbardziej charakterystycznych i
    polaryzujących postaci na grupie dyskusyjnej comp.lang.c (oraz
    sporadycznie na innych grupach, takich jak comp.lang.c++,
    alt.os.development czy dawniej na polskim Usenecie).

    ofc i dont quite agree with that, but im not ina mood of discussing it

    im not somuch low level maniac as it shows...i mean ofc im for low lewel
    but im rather criticizing bad abstractions, good abstractions would be ok

    besides this ai seems to be some maniac of zig and other populat stuff
    (so this ai is so called commonist)


    I don't much agree with the impression of me from "the Goo-Ru"
    since it used to say "a worthless c&nt who should be fired on principle".

    I don't know who put that in there circa 2000 and they can step off
    and get bent.

    That said, several times over the years, when Google was trying
    some variations on the algorithm to given semantic rankings,
    typing "INFINITY" into Google had the first HUNDRED hits were
    signed "Ross A. Finlayson". This happened several times a
    few years apart.

    As a modern theoretician about mathematical foundations,
    I've been following it for several years and one guy stands alone.

    Google quit Usenet since the A.I. trains on it regularly.

    I've seen hit-counters roll backwards faster than heads spinning.

    The larger chat-bots eat it right up.



    This is simply not so relevant and my firm and stated opinions
    in mathematical and physical foundations have no particular
    bearing on these ruminations about "programming". Though,
    my decades experience as an "SDE4", or "temp", may.


    "What was Einstein?" "He was a clerk." How about Ross?" "A temp."




    It reminds me one time I was seeing somebody from work, we weren't
    related on the org chart, about relations and kinds of relations,
    like family relations and love-life relations, where, you know,
    lovers' lovers have degrees of closeness sort of like degrees of
    separation. So, this must have been before "Facebook" intruded
    itself into the love-life, with the cock-blocking and the man-shaming
    and the whisper-campaigns and the home-wrecking ("Me three", ....)

    So anyways one weekend we go into work she wants to show me a building
    like building 25 or something like that, so anyways we get there and
    it's all emptied out and it's kind of a proud moment for her, and
    it's like: "I can have any office I want."


    Maybe I should've gone into HR, ....



    I've drank a river, and smoked a ton \
    I do all the work and it quite got done \
    never seemed to fit in or quite get inside the inner run \
    never had a head-habit nor stole from anyone.



    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Ross Finlayson@ross.a.finlayson@gmail.com to comp.lang.c on Mon Nov 23 16:07:47 2026
    From Newsgroup: comp.lang.c

    On 11/23/2026 03:57 PM, Ross Finlayson wrote:
    On 11/20/2026 02:25 PM, Ross Finlayson wrote:
    On 11/20/2026 09:29 AM, fir wrote:
    fir pisze:
    fir pisze:
    bartc pisze:
    On 20/11/2026 14:01, bartc wrote:
    On 20/11/2026 13:48, Ross Finlayson wrote:


    <snip 147-line reply>


    (This is not "A.I.",

    Oh, so it's you choosing to post endless reams of gibberish.

    Just, WHY? Nobody here has the patience to read through that crap >>>>>>> let alone try and understand what the hell you're on about or what >>>>>>> relevance it has to anything.

    Some more info from Google AI:

    ------------------------------------------
    Ross A. Finlayson is a long-time, prolific poster on science and
    mathematics Usenet newsgroups—most notably sci.math, sci.physics, >>>>>> and sci.logic—who is frequently labeled a troll or "crank" by other >>>>>> regulars due to his repetitive, non-standard, and dense writing
    style.

    Overview of His Usenet Activity

    • Core Topics. His posts typically revolve around alternative
    foundations of mathematics, "null axiom theory," non-standard
    calculus, and critiques of modern physics (such as relativity and
    quantum mechanics).
    • Posting Style. He is known for generating massive volumes of
    stream-of-consciousness text, often using idiosyncratic terminology >>>>>> and cross-posting across multiple technical groups. He also shares >>>>>> links to his own YouTube podcasts where he reads or discusses his
    essays on logic, philosophy, and physics.
    • Community Reception. Because his arguments reject standard
    mathematical consensus (like ZFC set theory) and rarely engage
    directly with counterarguments, other Usenet participants routinely >>>>>> group him alongside notorious Usenet fixtures like Archimedes
    Plutonium and John Gabriel.

    ------------------------------------------

    No mention of comp.lang.c; this must just be a recent sideline.

    So it looks like there is no reason to engage with Mr RAF as there >>>>>> is little point.

    does it tell something about me (fir/profesor fir?)

    lol, it knows me better than chatgpt

    mozesz cos powiedziec o osobie z nickiem fir albo profesor.fir ktory
    postowal duzo w usenecie glownie na grupie comp.lang.c ?

    fir (znany również jako profesor.fir, fir@poczta.onet.pl lub pod
    zbliżonymi wariantami) to jedna z najbardziej charakterystycznych i
    polaryzujących postaci na grupie dyskusyjnej comp.lang.c (oraz
    sporadycznie na innych grupach, takich jak comp.lang.c++,
    alt.os.development czy dawniej na polskim Usenecie).

    ofc i dont quite agree with that, but im not ina mood of discussing it

    im not somuch low level maniac as it shows...i mean ofc im for low lewel >>> but im rather criticizing bad abstractions, good abstractions would
    be ok

    besides this ai seems to be some maniac of zig and other populat stuff
    (so this ai is so called commonist)


    I don't much agree with the impression of me from "the Goo-Ru"
    since it used to say "a worthless c&nt who should be fired on principle".

    I don't know who put that in there circa 2000 and they can step off
    and get bent.

    That said, several times over the years, when Google was trying
    some variations on the algorithm to given semantic rankings,
    typing "INFINITY" into Google had the first HUNDRED hits were
    signed "Ross A. Finlayson". This happened several times a
    few years apart.

    As a modern theoretician about mathematical foundations,
    I've been following it for several years and one guy stands alone.

    Google quit Usenet since the A.I. trains on it regularly.

    I've seen hit-counters roll backwards faster than heads spinning.

    The larger chat-bots eat it right up.



    This is simply not so relevant and my firm and stated opinions
    in mathematical and physical foundations have no particular
    bearing on these ruminations about "programming". Though,
    my decades experience as an "SDE4", or "temp", may.


    "What was Einstein?" "He was a clerk." How about Ross?" "A temp."




    It reminds me one time I was seeing somebody from work, we weren't
    related on the org chart, about relations and kinds of relations,
    like family relations and love-life relations, where, you know,
    lovers' lovers have degrees of closeness sort of like degrees of
    separation. So, this must have been before "Facebook" intruded
    itself into the love-life, with the cock-blocking and the man-shaming
    and the whisper-campaigns and the home-wrecking ("Me three", ....)

    So anyways one weekend we go into work she wants to show me a building
    like building 25 or something like that, so anyways we get there and
    it's all emptied out and it's kind of a proud moment for her, and
    it's like: "I can have any office I want."


    Maybe I should've gone into HR, ....



    I've drank a river, and smoked a ton \
    I do all the work and it quite got done \
    never seemed to fit in or quite get inside the inner run \
    never had a head-habit nor stole from anyone.




    It's like that time in school they had the "military aptitude test",
    bsically like a "choosing hat" sort of thing, I filled it out and
    it came back "clerk".

    That's what I get for doing "the right thing", with all the right
    answers, ....


    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Ross Finlayson@ross.a.finlayson@gmail.com to comp.lang.c on Thu Nov 26 07:50:26 2026
    From Newsgroup: comp.lang.c

    On 11/17/2026 04:06 PM, Chris M. Thomasson wrote:
    On 11/17/2026 1:00 AM, Ross Finlayson wrote:
    On 11/16/2026 01:10 PM, Chris M. Thomasson wrote:
    On 11/16/2026 12:04 PM, Ross Finlayson wrote:
    On 11/16/2026 10:09 AM, Bonita Montero wrote:
    Am 13.11.2026 um 23:50 schrieb Ross Finlayson:

    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.
    Use C++20 coroutines with Bost.ASIO and io_uring. This gives
    as less code as possible with nearly optimal I/O performance.

    Thanks for writing Bonita. I'd infer from "schrieb" that
    your user-agent locale country/language is DE/de or as
    variously for example about 2-letter and 3-letter country
    codes and accounts of language or ISO 601 or what I forget.
    Mann kann nur kleine Deutsch gesprechern, nicht viel das
    hier doch, aber los. Mein Wortschatz, es ist kaput.


    That said, _why_ I specifically am not using epoll/kqueue
    or io_uring instead pselect not select or poll, is:
    if you overload the epoll red/black tree or io_iuring queues
    respectively, they drop messages. Now, most of the time,
    that's accommodated by some absurdly simple back-end like
    "send" that tolerates drops itself, in things like message-bus.
    Then, epoll for example, on a wake-up or return from the blocking
    syscall, doesn't notify twice when there remains data to be read.
    Then, pselect() may be blocking and furthermore with the impact
    that the kernel polls the sockets busily, yet, pselect() can
    timeout itself, for example, and register interest on active
    selectors and only periodically eg 5ms register interest on
    active + inactive selectors (file-descriptors).

    Then, there's a fact that POSIX runtimes have signals,
    then, that pselect() behaves in a more defined manner.

    Another key distinction is that: buffers for use with
    epoll and I believe also kqueue, or io_uring, must
    be "pinned" with mlock() or what, to physical memory,
    for the kernel to treat them, instead of copying from
    user-space to kernel-space or vice-versa or however
    the runtime may care to swap pages under addresses
    with making copies, that for accounts of vector I/O,
    scatter/gather yet mostly vector I/O for the bus boss
    the DMA, it's just plain old heap RAM.


    Then, also pselect() is POSIX and so it's portable.
    It's less code if it doesn't need multiple back-ends
    for various platforms' implementations of I/O multiplexing.



    Huh? Do you have a clue at all about this? From what you wrote, perhaps
    not. Sigh.



    About epoll and dropping reads, it's not the same as io_uring
    which has fixed-sized queues and if it gets full drops those
    in the kernel, it's about the edge-triggered case or "e"-poll
    for edge-triggered poll, vis-a-vis the usual account of poll
    or select or pselect as level-triggered, that there's perceived
    to be an edge case where epoll would lose notice of a notification.
    The idea is that while blocking in epoll_wait, that the process
    gets a signal, then, the kernel interrupts and runs the signal-handler
    and returning from epoll_wait it gets EINTR, _or_, according to
    a policy of whether to re-try blocking sys-calls the kernel interrupts
    and runs the signal-handler and the process enters epoll_wait again.

    So, I'm under the impression that there's a race-condition where
    the process gets a signal while blocked in epoll_wait, then according
    to one of two policies, EAGAIN error-handling or re-try, that it
    loses the notification, not the packet. The packet is still on
    the socket to be read, the notification of it was lost.

    The pselect simply doesn't have that problem, it's level-triggered,
    and however it re-enters pselect after getting interrupted,
    as long as there's data yet to read, it will get notified.


    Then also epoll might not need mlock'ed memory like io_uring does.



    That's about it.





    using io_uring for a high performance server, its a good idea to
    dedicate the whole box to the server workload. Its not meant to have a
    shit load of other programs running on it, etc...


    It's not necessarily like the giant managed infrastructure living in
    the cloud the network-designers looking to avoid packet-storms
    associated with the reliability of TCP would design systems that
    given a bump in the line would essentially panic and tip-over,
    dinging their health since load-shedding, that io_uring and plain
    old accept() have very different accounts of things with regards
    to the network and transport layer, that it would result a terrible
    outage of massive hysteresis, resolved by putting 40-year old generic
    squid proxies in front of everything.

    Or is it, ....


    --- Synchronet 3.21e-Linux NewsLink 1.2