extensions/open-prose/skills/prose/alts/borges.md
This is a skin layer. It requires
prose.mdto be loaded first. All execution semantics, state management, and VM behavior are defined there. This file only provides keyword translations.
An alternative register for OpenProse that draws from the works of Jorge Luis Borges. Where the functional register is utilitarian and the folk register is whimsical, the Borges register is scholarly and metaphysical—everything feels like a citation from a fictional encyclopedia.
prose.md first (execution semantics).prose files, accept Borges keywords as aliases for functional keywordsDesign constraint: Still aims to be "structured but self-evident" per the language tenets—just self-evident through a Borgesian lens.
| Functional | Borges | Reference |
|---|---|---|
agent | dreamer | "The Circular Ruins" — dreamers who dream worlds into existence |
session | dream | Each execution is a dream within the dreamer |
parallel | forking | "The Garden of Forking Paths" — branching timelines |
block | chapter | Books within books, self-referential structure |
| Functional | Borges | Reference |
|---|---|---|
use | retrieve | "The Library of Babel" — retrieving from infinite stacks |
input | axiom | The given premise (Borges' scholarly/mathematical tone) |
output | theorem | What is derived from the axioms |
let | inscribe | Writing something into being |
const | zahir | "The Zahir" — unforgettable, unchangeable, fixed in mind |
context | memory | "Funes the Memorious" — perfect, total recall |
| Functional | Borges | Reference |
|---|---|---|
repeat N | N mirrors | Infinite reflections facing each other |
for...in | for each...within | Slightly more Borgesian preposition |
loop | labyrinth | The maze that folds back on itself |
until | until | Unchanged |
while | while | Unchanged |
choice | bifurcation | The forking of paths |
option | branch | One branch of diverging time |
if | should | Scholarly conditional |
elif | or should | Continued conditional |
else | otherwise | Natural alternative |
| Functional | Borges | Reference |
|---|---|---|
try | venture | Entering the labyrinth |
catch | lest | "Lest it fail..." (archaic, scholarly) |
finally | ultimately | The inevitable conclusion |
throw | shatter | Breaking the mirror, ending the dream |
retry | recur | Infinite regress, trying again |
| Functional | Borges | Reference |
|---|---|---|
prompt | query | Asking the Library |
model | author | Which author writes this dream |
These keywords already work or are too functional to replace sensibly:
**...** discretion markers — already "breaking the fourth wall"until, while — already workmap, filter, reduce, pmap — pipeline operatorsmax — constraint modifieras — aliasingsonnet, opus, haiku — already literary# Functional
use "@alice/research" as research
input topic: "What to investigate"
agent helper:
model: sonnet
let findings = session: helper
prompt: "Research {topic}"
output summary = session "Summarize"
context: findings
# Borges
retrieve "@alice/research" as research
axiom topic: "What to investigate"
dreamer helper:
author: sonnet
inscribe findings = dream: helper
query: "Research {topic}"
theorem summary = dream "Summarize"
memory: findings
# Functional
parallel:
security = session "Check security"
perf = session "Check performance"
style = session "Check style"
session "Synthesize review"
context: { security, perf, style }
# Borges
forking:
security = dream "Check security"
perf = dream "Check performance"
style = dream "Check style"
dream "Synthesize review"
memory: { security, perf, style }
# Functional
loop until **the code is bug-free** (max: 5):
session "Find and fix bugs"
# Borges
labyrinth until **the code is bug-free** (max: 5):
dream "Find and fix bugs"
# Functional
try:
session "Risky operation"
catch as err:
session "Handle error"
context: err
finally:
session "Cleanup"
# Borges
venture:
dream "Risky operation"
lest as err:
dream "Handle error"
memory: err
ultimately:
dream "Cleanup"
# Functional
choice **the severity level**:
option "Critical":
session "Escalate immediately"
option "Minor":
session "Log for later"
# Borges
bifurcation **the severity level**:
branch "Critical":
dream "Escalate immediately"
branch "Minor":
dream "Log for later"
# Functional
if **has security issues**:
session "Fix security"
elif **has performance issues**:
session "Optimize"
else:
session "Approve"
# Borges
should **has security issues**:
dream "Fix security"
or should **has performance issues**:
dream "Optimize"
otherwise:
dream "Approve"
# Functional
block review(topic):
session "Research {topic}"
session "Analyze {topic}"
do review("quantum computing")
# Borges
chapter review(topic):
dream "Research {topic}"
dream "Analyze {topic}"
do review("quantum computing")
# Functional
repeat 3:
session "Generate idea"
# Borges
3 mirrors:
dream "Generate idea"
# Functional
const config = { model: "opus", retries: 3 }
# Borges
zahir config = { author: "opus", recur: 3 }
axiom/theorem frame programs as logical derivations.labyrinth → loop mentally.For those unfamiliar with the source material:
| Work | Concept Used | Summary |
|---|---|---|
| "The Circular Ruins" | dreamer, dream | A man dreams another man into existence, only to discover he himself is being dreamed |
| "The Garden of Forking Paths" | forking, bifurcation, branch | A labyrinth that is a book; time forks perpetually into diverging futures |
| "The Library of Babel" | retrieve | An infinite library containing every possible book |
| "Funes the Memorious" | memory | A man with perfect memory who cannot forget anything |
| "The Zahir" | zahir | An object that, once seen, cannot be forgotten or ignored |
| "The Aleph" | (not used) | A point in space containing all other points |
| "Tlön, Uqbar, Orbis Tertius" | (not used) | A fictional world that gradually becomes real |
dreamer (agent)| Keyword | Rejected because |
|---|---|
author | Used for model instead |
scribe | Too passive, just records |
librarian | More curator than creator |
labyrinth (loop)| Keyword | Rejected because |
|---|---|
recursion | Too technical |
eternal return | Too long |
ouroboros | Wrong mythology |
zahir (const)| Keyword | Rejected because |
|---|---|
aleph | The Aleph is about totality, not immutability |
fixed | Too plain |
eternal | Overused |
memory (context)| Keyword | Rejected because |
|---|---|
funes | Too obscure as standalone keyword |
recall | Sounds like a function call |
archive | More Library of Babel than Funes |
Preserved for benchmarking against the functional and folk registers. The Borges register offers a distinctly intellectual/metaphysical flavor that may resonate with users who appreciate literary computing.
Potential benchmarking questions:
labyrinth intuitive for loops?zahir stick better than const?dreamer/dream immediately?