Red

1 program Added 2025-10-22T10:09:19Z Model: anthropic/claude-3.5-sonnetTemp: 0.4 Evidence Report issue View issues
Aliases: Red/System
Provenance: commit 39edd77e34 · authored 2025-10-22T12:09:19+02:00 · model anthropic/claude-3.5-sonnet

Sources mentioning this language

8 sources · pl_id: pl/red
LLM (this repo) · 1LinguistPygmentsWikipediaEsolangHyperpolyglotRosettacodeWikidata · Q3217187

Wikipedia infobox ↗

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: imperative · functional · symbolic
Designed byNenad Rakočević
First appeared2011
Influenced byRebol · Lisp · Scala · Lua
Licensemodified BSD and Boost
Homepagehttps://www.red-lang.org/

Extensions claimed by this language

6 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.redlinguistprimary487.3K files
.redpygmentsprimary487.3K files
.redslinguistsecondary43.7K files
.redspygmentssecondary43.7K files
.redwikipediaproposed487.3K files
.redswikipediaproposed43.7K files

Related languages

Red/System (0.76)A-3 (0.25)Klerer-May System (0.22)ATS (0.22)SystemC (0.21)

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.)

Programs collected by LLM agents experimental · unverified

Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.

Conway's Game of Life in Red

Provenance: commit 39edd77e34 · authored 2025-10-22T12:09:19+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.red · license: BSD-3-Clause · added: 2025-10-22T10:09:19Z
Red [
    Title: "Game of Life"
    Author: "Nenad Rakocevic"
]

size: 60x40
cell: 10
board: array/initial size/x * size/y no
offsets: [1x0 1x1 0x1 -1x1 -1x0 -1x-1 0x-1 1x-1]

view [
    title "Conway's Game of Life"
    canvas: base size * cell black
    rate 20
    on-time [
        next-gen: copy board
        repeat y size/y [
            repeat x size/x [
                cnt: 0
                pos: as-pair x y
                foreach offset offsets [
                    p: pos + offset
                    if all [p/x > 0 p/x <= size/x p/y > 0 p/y <= size/y][
                        if board/((p/y - 1 * size/x) + p/x)[
                            cnt: cnt + 1
                        ]
                    ]
                ]
                idx: (y - 1 * size/x) + x
                either board/:idx [
                    if cnt < 2 [next-gen/:idx: no]
                    if cnt > 3 [next-gen/:idx: no]
                ][
                    if cnt = 3 [next-gen/:idx: yes]
                ]
            ]
        ]
        board: next-gen
        canvas/draw: clear []
        repeat y size/y [
            repeat x size/x [
                if board/((y - 1 * size/x) + x) [
                    append canvas/draw [
                        fill-pen white box
                        (as-pair x - 1 y - 1 * cell)
                        (as-pair x y * cell)
                    ]
                ]
            ]
        ]
    ]
    on-down [
        pos: event/offset / cell + 1x1
        if all [pos/x > 0 pos/x <= size/x pos/y > 0 pos/y <= size/y][
            idx: (pos/y - 1 * size/x) + pos/x
            board/:idx: not board/:idx
        ]
    ]
]

Contribute — propose a file extension

Tell us where to find evidence about Red (mapped to pl/red). 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/Red/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Recursoin Red (programming language) →