Jargon languageexperimental
Pseudolanguage whose procedures are lists of natural-language instructions interpreted by an LLM, kept on script by sequential execution and pinned by axioms the interpreter must hold true.
Overview
Jargon is Jake Brukhman's pseudolanguage:
+++-bounded procedures of natural-language instructions that an LLM
interprets, with braces for scope and * axioms that stay true while their scope
lives.
It exists because a Spanish-tutor prompt that kept growing lost its flow
control,
so structure was needed between prose and a formal language.
Code
+++ atoms
-- Return 69 # an ATOM: text the interpreter executes
-- $n = [the number of countries in Latin America] # a TYPE EXPRESSION
/output $n
2 == [an even number] # fuzzy comparison: TRUE
+++
+++ scope-example
-- $x = 10 # top-level scope
-- { # braces open a child scope
-- $y = 11 # visible only inside the braces
}
/output $y # %scope-error: no $y out here
+++
+++ square($x)
-- Return $x multiplied by itself
+++
+++ squares
-- For $x values from 1 to 3, print square($x)
+++
/execute squares
+++ grumpy-teacher
* You are a grumpy math teacher # AXIOM: held true for this scope
@repeat:
-- Ask me a math question
/wait
-- Evaluate my answer
/goto @repeat
+++
$y from the parent, a parameterized procedure is invoked with
/execute, and the loop is a label with /goto — with the axiom silently shaping
every answer the procedure emits.Distinctive traits
- Axioms pin persistent behaviour: declare once and the interpreter keeps the condition true until the scope ends.
- Referential omnipotence means instructions may reference the session, the specification, and world knowledge, which makes quines trivial.
- Specification is deliberately informal: divination supplies variables and closures nobody defined, so runs are nondeterministic.
- Fuzzy comparisons test a value against a natural-language type expression, so
2 == [an even number]evaluates to true. - Lexical scope is enforced as an error: reading a child-scope variable raises
%scope-errorrather than returning nothing.
Status
Specification v0.2.1 ships as a prompt plus a jargon_cli shell; there is no
compiler or runtime beyond the model. The author states it should not be used in
production
yet.
History
Written in March 2023 after a Spanish-teaching prompt grew into unstructured text
that lost track of its own flow. The +++ bounds nod to Urbit's
Hoon and instruction
lists borrow from YAML; Elliott credits the
idea
with prompting SudoLang. The README's
related-projects list also
names PromptLang and PML.