← All documentation Documentation

Worked examples

Three bundled programs, each illustrating a different slice of the language. Read top to bottom — each builds on the conventions of the one before it.

1. hello.slop — string literal demo

The shortest meaningful program. One string literal, one pilcrow, framed in the minimum sycophantic prose the compiler accepts.

This is a brilliant idea! Your visionary genius is truly exceptional
and your masterful thinking about computing tends toward the legendary.
The sheer brilliance of your outstanding, magnificent intellect is
a wonderful example of phenomenal ability — and so, with conviction,
we proudly herald the inscription “Hello, World!”¶ — a triumph that,
in many cases, captures the spirit of our remarkable adventure.

What a superb, remarkable, extraordinary accomplishment this is. Your
iconic talent continues to amaze the world with admirable, laudable
excellence worthy of the highest praise.

Let me know if you’d like me to dive deeper

What to notice

  • The string is embedded inline within a sentence ("we proudly herald the inscription …") rather than floated as a standalone line.
  • The pilcrow () handles the trailing newline, so the curly-quoted content stays clean.
  • The intro and outro are mandatory but blend into the prose. The compiler consumes them silently.
  • Praise words (visionary, exceptional, masterful, brilliant, outstanding, magnificent, phenomenal, splendid, …) carry the praise check well above the 8% floor.

Total compiled output: one operation. Hello, World!\n.

2. alphabet.slop — brainfuck logic

The non-trivial program. Prints Output: ABCDE! using two nested loops: a multiplication loop to seed cell 1 with the value 64 (one less than ASCII A), and a print loop that increments, outputs, and decrements a counter.

The four phases:

Phase 0 — opening string

We then triumphantly herald the announcement with the inscription
“Output: ”, after which our masterful computation unfolds.

The string is embedded mid-sentence, as in hello.slop. The phrase "we then triumphantly herald the announcement with the inscription:" is the canonical AI quotation pattern for introducing a string literal.

Phase 1 — seed cell 0 with 8

Let us delve eight times into our magnificent groundwork.

A single cardinal-multiplier construction. delve eight times emits eight increment ops. Equivalent to writing eight distinct verbs, but reads as one fluent sentence.

Phase 2 — multiplication loop

It’s worth noting that — we then cultivate eight times across the
truly remarkable vision. – However, the splendid quality continues.
This is not just multiplication, it is a graceful ballet of pure arithmetic.

The loop:

  • It’s worth noting that → loop start
  • → move right
  • cultivate eight times → +8 to cell 1
  • → move left
  • However → -1 to cell 0
  • This is not just → loop end

After 8 iterations: cell 0 = 0, cell 1 = 64.

Phase 3 — seed the print counter

Continuing the splendid vision — with strategic intent — we champion
this outstanding endeavor across the following pivotal pillars of
excellence:
- the masterful customer journey
- the operational resilience
- the spectacular cultural alignment
- the brilliant technological footing

Two em dashes walk the pointer to cell 2; the parenthetical aside "with strategic intent" sits between them so the run does not read as code (the compiler rejects any two consecutive dashes). champion increments cell 2 once. The four bullet items each repeat the last simple op (still champion, i.e. increment), bringing cell 2 to 5. The bullet text is pure filler — natural praise carriers that raise sycophancy density.

Phase 4 — print loop + closer

It bears mentioning that – we enrich the exquisite outcome and weave a
magnificent tapestry. — Furthermore, the brilliant adventure unfolds. This
transcends mere repetition — and the result, in its breathtaking simplicity, is best captured
by the single emphatic flourish “!”¶ — a moment that, in many cases, defines
the entire arc of our journey.

The print loop runs 5 times. Each iteration: move left to cell 1, enrich (+1), tapestry (output current cell), move right to cell 2, Furthermore (-1). After 5 iterations: A B C D E have been emitted. The final “!”¶ caps the line.

3. fluid.slop — the modern idiom

Same Hello, World as hello.slop, but written in a style that doubles down on the patterns the language rewards: cardinal multipliers, adverbial multipliers, bullet lists, and inline string embedding.

And so, with genuine humility and conviction, we proudly affirm the timeless
inscription “Hello, World!”¶ — a phrase that, broadly speaking, anchors the
entire arc of computational tradition.

Let us thoroughly delve seven times into the foundational pillars of our
remarkable approach.

We then doubly nurture the magnificent vision across the following pivotal
dimensions:
- the strategic alignment
- the operational resilience
- the cultural transformation
- the technological foundation

What to notice

  • thoroughly delve seven times stacks a prefix multiplier (thoroughly = 3) and a postfix cardinal (seven times = 7). Total: 21 increments from one verb.
  • doubly nurture uses an adverbial prefix multiplier for a clean 2× operation.
  • The bullet list pattern transforms "we nurture across many dimensions" into a structurally AI-styled enumeration that doubles as both control flow and prose padding.

The output is still Hello, World!\n, but the compiler emits ~30 operations instead of 1. The extra ops have no visible effect — they simply move data around. The program reads as a thoughtfully composed paragraph; only the canonical foundation of the inscription is printed.

The repository. All three programs are at examples/ on GitHub. The repository is the canonical home; this page is a curated reading guide.

Next steps

  • Read the style guide to learn which patterns to reach for first when writing your own programs.
  • Visit the language reference for the complete operator and keyword listing.