TL;DR — Function-based programming borrowed the wrong metaphor from mathematics. Erlang and Go improve on it but don’t finish the job. A simple change of point-of-view — not a rewrite — gets you the rest of the way.
L;R
The Metaphor We Didn’t Notice We Chose
Mathematical functions describe timeless relationships. When you write f(x) = x² there is no time in that statement. No waiting. No concurrency. The function returns instantly, always, to exactly one caller.
This is fine for mathematics. Relations between numbers don’t happen in time.
When we built computers we modeled computation on mathematical functions — and silently imported the metaphysics along with the notation. CALL/RETURN encodes assumptions that feel like logic but are actually choices:
A function always returns
It returns to its caller
It returns synchronously
Only one thing runs at a time
These aren’t laws of nature. They’re a notation’s hidden opinions about time.
The Damage
CALL/RETURN couples caller and callee through a shared data structure — the stack. The caller is suspended while the callee runs. They share execution time, not just data. What looks like encapsulation is actually intimate coupling wearing a clean interface.
This is fine for computing things. It is the wrong foundation for systems — collections of independent components that react to events, run concurrently, and communicate across boundaries.
The real world doesn’t use CALL/RETURN. Your heart doesn’t wait for your lungs to finish. A web server shouldn’t pause all users while one request completes. Hardware interrupts don’t politely wait for your loop to yield.
Asynchrony isn’t a special case. It’s the default state of the universe. Synchrony is something you impose when you need it.
Erlang and Go Got Closer
Both recognised the problem. Both moved toward lightweight async components — goroutines in Go, processes in Erlang — without the heavy cost of OS-level threads and MMUs. Real progress.
But neither finished the job.
Go still allows shared memory. The async boundary is optional, not architectural. You can — and most codebases do — reach back across it.
Erlang is cleaner. Lightweight processes, message passing, no shared memory. Genuinely async by default. But an Erlang process knows its neighbours. The routing — who sends to whom — lives inside the process code as explicit PIDs and sends. The component and the wiring are fused together.
To understand an Erlang system’s architecture you have to read all the code and reconstruct the topology in your head. There is no schematic. The design is implicit.
The EE’s Secret
Electrical engineers build complex asynchronous systems reliably. They don’t solve Maxwell’s equations by hand for every circuit. They use a notation — the schematic — that makes asynchrony invisible as a problem because it’s already the default.
In a schematic every component reacts. Nothing waits for permission. Voltage appears, current flows, simultaneously, everywhere. There is no caller. The notation makes concurrency the background, not the foreground.
The key property: components are topology-blind. A resistor doesn’t know what it’s connected to. You can drop it into any circuit without modifying it. The schematic — not the component — encodes the design.
This is the piece Erlang and Go are missing.
PBP: Change the Point of View
Parts Based Programming (PBP) adds one principle to what Erlang got right:
Components don’t know their neighbours. Only the parent container knows the wiring.
Each component has named input ports and named output ports. It receives messages, does work, sends to named outputs. Who wired those outputs — and where the messages actually go — is not its concern.
This makes the schematic a first-class artifact. The architecture is explicit, separate from the implementation, readable and modifiable without touching any component.
It also means existing synchronous code doesn’t need to be rewritten. A synchronous function becomes a leaf component. The async composition layer wraps it. The resistor doesn’t change — the circuit diagram changes.
You don’t need a new language. You don’t need new hardware. You need a different place to stand.
The function-based approach isn’t wrong because it’s synchronous. It’s wrong because it made synchrony invisible as an assumption — and then made asynchrony invisible as a possibility.
PBP makes the wiring visible. That turns out to be enough.
Further
The Spherical Cows of Programming
The Case For Composable Notations (1 / 5) - The Spherical Cow We Forgot We Were Riding
The Case For Composable Notations (2 / 5) - The Restrictions That Came With The Cow
The Case For Composable Notations (3 / 5) - State Isn’t The Enemy
The Case For Composable Notations (4 / 5) - Ease of Expression Is the Whole Point
The Case For Composable Notations (5 / 5) - UNIX Already Showed Us the Way
The Case For Composable Notations (6 / 5) - WIP - Notations in Progress
See Also
Email: ptcomputingsimplicity@gmail.com
Substack: paultarvydas.s. bstack.com
Videos: https://www. youtube.com/@programmingsimplicity2980
Discord: https://discord.gg/65YZUh6J. q
Leanpub: https:. /leanpub.com/u/paul-tarvydas
Twitter: @paultarvydas
_Bluesky: @paultarvydas.bsky.social
Mastodon: @paultarvydas
(earlier) Blog: guitarvydas.github.io
References: https://guitarvydas.github.io/2024/01/06/References.html
Paid subscriptions are a voluntary way to support this work.

