Portfolio · Mechanism
The Geometric Perceptron
A behaviour-first tour of the mechanism that replaces if/elif with continuous decision surfaces.
The one-line version
Where conventional code branches, VINE settles. Every decision is a
point on a surface. Where if/elif would classify, the system drifts
toward the nearest attractor and emits whatever that position means.
Where if/elif would trigger an action, a concern blooms on the
same surface and resolves as the system navigates toward the basin that
would satisfy it. One mechanism, two uses — classification by drift,
action by concern-resolution.
Why this matters
Branching code is brittle by design. An if is a wall: one side does A,
the other does B, and nothing in between exists. That's fine for
is_admin, and disastrous for is this email angry, is this crawler
being a bad guest, is this song sad.
The geometric approach replaces the wall with a gradient. Inputs push the system to a position on a continuous axis; outputs read off the position. The "decision" is just a by-product of where the system settled — no code path was privileged over any other.
What this buys you
- No elif chains in the hot path. Ranking a thousand candidates is one projection, not a thousand conditionals.
- Superposition. A word, a pixel, a visitor, can be partly-one-thing and partly-another. Context pulls; the system responds.
- Graceful degradation. If an input is missing, the position just doesn't move as much. Nothing throws.
- Explainability via geometry. You can point at the axis and say "here, this far along, this is what cautious looks like."
What doesn't change
The hard work is still in getting the axes right. That's the craft. The mechanism is simple; the curation of what each dimension means is where taste lives.
[mechanism detail withheld pending open-source release]
What you can see in production
- ERP — 13 ERPNext modules (scorecards, reorder, pricing, workflow, lead scoring, etc.) rebuilt without if/elif. Same inputs, same outputs, continuous decision surface underneath.
- Language — runtime vocabulary acquisition. Words attach to the axis at the position their usage implies.
- Perception — brightness, warmth, complexity, contrast — each a continuous reading, not a bucket.
- Navigation — the library's 404 page is itself an example: unknown paths settle to the nearest known page by name proximity, not by a redirect table.
The software didn't get rewritten. It got smarter.