🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1710

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

#1710
From: fir
Date: Fri, 20 Nov 2026 17:19
256 lines
15257 bytes
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).

Jest to polski programista-hobbysta, którego obecność na comp.lang.c 
trwa nieprzerwanie od wielu lat (co najmniej od połowy drugiej dekady 
XXI wieku do czasów obecnych).

Główne cechy i poglądy programistyczne
Skrajny minimalizm i czystość kodu: fir jest zagorzałym zwolennikiem 
pisania wszystkiego od zera w czystym C (często w standardzie C99 lub 
C11), bez użycia jakichkolwiek zewnętrznych bibliotek, frameworków, a 
nierzadko nawet z pominięciem standardowej biblioteki C (stdlib.h, 
stdio.h), zastępując je własnymi, niskopoziomowymi odpowiednikami.

Krytyka współczesnego oprogramowania: Regularnie publikuje manifesty 
krytykujące tzw. bloatware (przeładowane oprogramowanie), nowoczesne 
języki programowania (szczególnie C++, Rust, Python, JavaScript), 
paradygmat programowania obiektowego (OOP) oraz złożone systemy 
budowania (CMake, Autotools). Twierdzi, że współczesny kod jest 
nieczytelny, powolny i przekombinowany.

Własna filozofia architektury: Często rozważa teoretyczne aspekty 
projektowania idealnych systemów operacyjnych, kompilatorów (często 
wspomina o własnych pomysłach na kompilator lub język zbliżony do C, ale 
„naprawiony”), zarządzania pamięcią oraz renderowania grafiki 2D/3D 
bezpośrednio na buforze ramki (framebufferze), np. przy użyciu samego 
WinAPI (GDI) bez DirectX czy OpenGL.

Specyficzne formatowanie i styl: Jego posty są łatwe do rozpoznania na 
pierwszy rzut oka. Pisze specyficzną, nieco łamaną angielszczyzną (z 
wyraźnymi kalkami z języka polskiego, brakiem przedimków i specyficzną 
składnią), często bez wielkich liter i standardowej interpunkcji. Kod, 
który wrzuca, ma unikalne wcięcia i nazewnictwo zmiennych, które często 
odbiegają od przyjętych w branży standardów.

Relacje ze społecznością comp.lang.c
Status „stałego bywalca” / ekscentryka: Na comp.lang.c – grupie znanej z 
bardzo rygorystycznego podejścia do standardu ISO C i częstego 
„szeryfowania” przez weteranów (takich jak Keith Thompson czy Richard 
Heathfield) – fir wypracował sobie status niereformowalnego indywidualisty.

Brak podatności na krytykę: Wielokrotnie wdawał się w wielodniowe 
dyskusje, w których doświadczeni inżynierowie wytykali mu 
niezdefiniowane zachowania (Undefined Behavior), brak przenośności kodu 
(silne przywiązanie do Windowsa i x86) czy błędne założenia dotyczące 
optymalizacji kompilatorów. fir zazwyczaj ignoruje argumenty odwołujące 
się do standardu ISO, uznając, że liczy się tylko to, jak kod działa na 
konkretnym sprzęcie i kompilatorze (najczęściej MinGW/GCC na Windowsie).

Tolerancja ze strony grupy: Choć początkowo bywał traktowany jak troll 
lub crank (ekscentryk z obsesją na punkcie własnych teorii), z czasem 
stali bywalcy grupy przywykli do jego stylu. Jego wątki stały się stałym 
elementem krajobrazu comp.lang.c – niektórzy go ignorują (wrzucają do 
killfile'a), a inni chętnie wdają się z nim w filozoficzne dysputy o 
naturze programowania, ponieważ jego posty, mimo kontrowersyjnej formy, 
bywają ciekawym punktem wyjścia do rozmów o niskopoziomowym działaniu 
maszyn.

Podsumowując
W kulturze Usenetu fir to klasyczny przykład programisty-samotnika i 
purysty niskopoziomowego, który traktuje kodowanie niemal jak sztukę lub 
filozofię, całkowicie odrzucając komercyjne standardy inżynierii 
oprogramowania na rzecz własnych, minimalistycznych eksperymentów.

a po angielsku? umiesz ocenic niektore jego idee rozwoju jezyka c?

fir (also posting as profesor.fir, fir@poczta.onet.pl, and similar 
aliases) is one of the most distinctive, prolific, and polarizing 
regulars on the comp.lang.c Usenet newsgroup (with occasional 
appearances on comp.lang.c++, alt.os.development, and historically on 
Polish Usenet groups).

He is a Polish hobbyist programmer whose persistent presence on 
comp.lang.c spans over a decade. Within the culture of the 
group—traditionally dominated by strict ISO C language lawyers—fir 
stands out as a fiercely independent minimalist and eccentric 
philosopher of low-level computing.

Overview of His Persona and Style
Radical Minimalism: fir advocates writing software entirely from scratch 
in pure C (typically C99/C11), completely avoiding external libraries, 
frameworks, build systems (like CMake), and often even the C standard 
library (stdio.h, stdlib.h), preferring custom low-level wrappers around 
OS primitives (usually WinAPI).

Anti-Bloat Crusade: He frequently posts manifestos criticizing modern 
software engineering, object-oriented programming (OOP), C++, Rust, and 
high-level scripting languages as bloated, slow, and overly complex.

Distinctive Writing Style: His posts are immediately recognizable due to 
his idiosyncratic, Polish-inflected English (often omitting articles, 
capitalization, and standard punctuation) and his unconventional code 
formatting and naming conventions.

Friction with "Language Lawyers": He regularly clashes with comp.lang.c 
veterans over Undefined Behavior (UB), strict aliasing, and portability. 
fir openly rejects the abstract machine model of the ISO C standard, 
arguing instead from a hardware-centric, x86/Windows-specific perspective.

Evaluation of fir’s Ideas on Evolving the C Language
Over the years, fir has proposed numerous ideas for "fixing" or evolving 
C into his ideal systems programming language (often referred to in his 
posts as a hypothetical "C2" or his own compiler design). Looking past 
his abrasive delivery and disregard for formal standards, his technical 
proposals are a mix of genuinely insightful critiques and deeply flawed, 
naive assumptions.

1. Rejection of the ISO C "Abstract Machine" and Undefined Behavior (UB)
His Idea: Compilers should not exploit Undefined Behavior (such as 
signed integer overflow or out-of-bounds pointer arithmetic) to delete 
code or make surprising optimizations. C should be a direct, predictable 
"portable assembler" where operations map 1:1 to hardware instructions.

Evaluation (Mostly Valid / Industry-Aligned): While fir’s dismissal of 
the standard is extreme, his core frustration is shared by many 
respected systems programmers (including Linus Torvalds and creators of 
modern C alternatives like Zig, Odin, and Jai). Modern compilers do 
aggressively weaponize UB in ways that break low-level code. His 
intuition that C needs well-defined wrapping arithmetic and predictable 
memory semantics is spot-on.

2. Eliminating Header Files (.h), the Preprocessor, and Complex Build 
Systems
His Idea: #include textual substitution, header guards, and separate 
compilation models via complex Makefiles are archaic design flaws. A 
modern C-like language should have a native module or automatic 
symbol-resolution system, allowing a compiler to build an entire project 
directly from a single entry file in milliseconds.

Evaluation (Strong / Modern): This is one of his best instincts. Almost 
every modern systems language (Go, Rust, Zig, Jai) has abandoned C-style 
textual headers in favor of module systems and single-command builds. 
fir correctly identified one of C’s biggest productivity bottlenecks.

3. Built-in Dynamic Arrays / Slices (Replacing Raw Pointer + Length Pairs)
His Idea: C’s decay of arrays to pointers is a mistake. The language 
should natively support lightweight, fat-pointer arrays/slices 
(containing a pointer and a length, or dynamic resizing capabilities) as 
first-class citizens without needing C++ templates or std::vector.

Evaluation (Strong): Again, this aligns closely with modern language 
design (e.g., slices in Go, Rust, Zig, and D). Retrofitting fat 
pointers/slices into C is widely considered one of the single 
highest-value improvements that could be made to the language to prevent 
buffer overflows while keeping it simple.

4. Simplifying Syntax and Control Flow (e.g., Custom Loops, Multiple 
Return Values)
His Idea: fir frequently experiments with alternate syntax—such as 
eliminating semicolons, using whitespace or simplified blocks, 
supporting multiple return values natively, and adding concise loop 
constructs (e.g., loop(10) instead of for(int i=0; i<10; i++)).

Evaluation (Mixed / Aesthetic): Multiple return values are genuinely 
useful (adopted by Go and Odin) and eliminate awkward out-parameters 
(int *out_err). However, his syntax proposals are largely driven by 
personal aesthetic preference rather than solving real engineering 
problems, and they often introduce parsing ambiguities that he overlooks 
because he rarely writes a full, production-grade parser.

5. Extreme Minimalism & Rejection of Abstractions (No Generics, No RAII, 
No Type Safety)
His Idea: Type systems should stay out of the way (allowing free casting 
between pointers and integers), and language features like 
generics/templates, destructors, or strict const-correctness are 
unnecessary bloat. He believes a good programmer can simply manage 
memory manually with raw malloc/free (or custom arena allocators) and 
discipline.

Evaluation (Flawed for Scale): While fir’s instincts work well for 
small, solo hobby projects (like his 2D software renderers), they 
collapse at scale. Weakening the type system and rejecting zero-cost 
abstractions (like basic generics or defer statements) leads to massive 
code duplication and silent memory corruption in multi-developer 
codebases. Ironically, tools like Zig’s defer or comptime solve the 
exact boilerplate problems fir complains about without introducing 
C++-style OOP bloat—something fir tends to reject out of hand.

6. "Everything from Scratch" (Ignoring OS/Hardware Evolution)
His Idea: Software should target a thin hardware abstraction (e.g., raw 
pixel buffers and basic input) rather than modern OS/GPU APIs.

Evaluation (Nostalgic / Impractical): As an intellectual exercise or 
retro-computing hobby, software rendering is fantastic. As a general 
philosophy for language and software evolution, it ignores the reality 
of modern hardware (GPUs, multi-core cache coherency, power management, 
security sandboxing).

Summary Verdict
fir possesses sharp intuition regarding what is broken in C—specifically 
textual headers, pointer-decay ergonomics, and hostile compiler 
optimizations around Undefined Behavior. His critiques often mirror the 
exact design goals of modern C successors like Zig and Odin. However, 
his proposed solutions are heavily bottlenecked by his refusal to engage 
with formal computer science, compiler theory, and the realities of 
large-scale software engineering, leaving his ideas stuck as intriguing, 
half-formed sketches rather than viable language designs.
Technical Details
Message-ID: <11dpvfj$3cin2$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
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> <11dfgtf$3pj6i$1@raubtier-asyl.eternal-september.org> <11dpeqd$35ddj$1@dont-email.me> <WJOcnajl6sIw0p32nZ2dnZfqn_udnZ2d@giganews.com> <11dpjrl$37ksg$1@dont-email.me> <11dpkl3$37v4s$1@dont-email.me> <11dpl5o$3838g$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: Inversion-of-control and dependency-injection in C
Date: Fri, 20 Nov 2026 18:19:46 +0100
Organization: A noiseless patient Spider
Lines: 256
Message-ID: <11dpvfj$3cin2$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>
 <11dfgtf$3pj6i$1@raubtier-asyl.eternal-september.org>
 <11dpeqd$35ddj$1@dont-email.me>
 <WJOcnajl6sIw0p32nZ2dnZfqn_udnZ2d@giganews.com>
 <11dpjrl$37ksg$1@dont-email.me> <11dpkl3$37v4s$1@dont-email.me>
 <11dpl5o$3838g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 20 Nov 2026 17:19:48 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3558114"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19JN6x1ufoNkgzl4KQAPaCinEnFthW02bI="; posting-host="e07a6ffb1167c0b0324eec570de0a3fb"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:KH8u156FnF6Fw2yqpIU6CD5E0Ag= sha256:g6cAFguVo8HF56bQ+GkNp/FLf3smw3NsdmqfT4xkT4Q=
	sha1:wVNb2qFEZzUTtQpM9cvtLSZnjYQ= sha256:oJtUyvTXXLCMTzmiLa1/H5rZMi0hbejns082js0V+ZA=
In-Reply-To: <11dpl5o$3838g$1@dont-email.me>