Popr

1 program Added 2026-03-04T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: PoprC
Provenance: commit edc785b8ef · authored 2026-03-04T23:20:39+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

2 sources · pl_id: pl/popr
LLM (this repo) · 1Pldb

Related languages

POP-1 (0.23)Poplog (0.21)POP-2 (0.19)Pop-11 (0.18)Polar (0.14)

LLM-contributed programs

Numeric and List Module Definitions

Provenance: commit edc785b8ef · authored 2026-03-04T23:20:39+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch enabled
code.ppr · license: GPL-3.0 · added: 2026-03-04T12:00:00Z
module num:

imports:
  module stack
  module control

__ max of two values
max: [] ap20 dup . dup tail | [<= !] . popr nip

__ min of two values
min: [] ap20 dup . dup tail | [> !] . popr nip

__ is argument odd?
odd: 1 &b 1 ==

even: 1 &b 0 ==

bound: [dup_under >= !] dip21 dup_under <= !

up_to: 0 swap bound

module list:

imports:
  module control
  module stack
  module logic

__ take rightmost value from quote
head: popr nip
top: dup head

__ return the length of a list
length:
  [0 swap] pushl
    [[[1+] [tail] para] .]
    [popr popr valid]
    iterate tail head

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Popr (mapped to pl/popr). 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/Popr/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Poppingbrain Pops Are Overrated →