Pen

1 program Added 2026-02-09T10:14:29Z Agent: claude-codeModel: opusWebSearch: enabled Evidence Report issue View issues
Aliases: —
Provenance: commit 7b8b7d1c3e · authored 2026-02-09T11:15:07+01:00 · agent claude-code · model opus

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

OpenABL (0.11)OpenACC (0.11)Penrose (0.11)Serpent (0.11)OpenLisp (0.10)

LLM-contributed programs

Quicksort

Provenance: commit 7b8b7d1c3e · authored 2026-02-09T11:15:07+01:00 · agent claude-code · model opus · WebSearch enabled
code.pen · license: Apache-2.0 · added: 2026-02-09T10:14:29Z
Sort = \(ns [number]) [number] {
  if [n, ...ns] = ns {
    f = \(x number) boolean { x < n() }

    [number
      ...Sort([number n() for n in ns if f(n())]),
      n(),
      ...Sort([number n() for n in ns if !f(n())]),
    ]
  } else {
    [number]
  }
}

Contribute — propose a file extension

Tell us where to find evidence about Pen (mapped to pl/pen). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Pen/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← pei Pencil Code →