Wren

1 program Added 2025-10-22T09:58:34Z Model: anthropic/claude-3.5-sonnetTemp: 0.4 Evidence Report issue View issues
Aliases: wren-lang
Provenance: commit 8d9aef760f · authored 2025-10-22T11:58:34+02:00 · model anthropic/claude-3.5-sonnet

Sources mentioning this language

5 sources · pl_id: pl/wren
LLM (this repo) · 1PldbLinguistPygmentsRosettacode

Extensions claimed by this language

2 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.wrenlinguistprimary21.0K files
.wrenpygmentsprimary21.0K files

Related languages

Oden (0.44)Odin (0.30)Yron (0.30)Wenyan (0.29)Wa (0.27)

LLM-contributed programs

Conway's Game of Life in Wren

Provenance: commit 8d9aef760f · authored 2025-10-22T11:58:34+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
code.wren · license: MIT · added: 2025-10-22T09:58:34Z
class Life {
  construct new() {
    _width = 80
    _height = 40
    _cells = List.filled(_width * _height, false)

    // Add a glider.
    this[2, 0] = true
    this[2, 1] = true
    this[2, 2] = true
    this[1, 2] = true
    this[0, 1] = true
  }

  [x, y] { _cells[y * _width + x] }
  [x, y]=(value) { _cells[y * _width + x] = value }

  neighbors(x, y) {
    var count = 0
    for (y1 in (y - 1)..(y + 1)) {
      for (x1 in (x - 1)..(x + 1)) {
        if (x1 == x && y1 == y) continue

        var x2 = x1
        if (x2 < 0) x2 = _width - 1
        if (x2 >= _width) x2 = 0

        var y2 = y1
        if (y2 < 0) y2 = _height - 1
        if (y2 >= _height) y2 = 0

        if (this[x2, y2]) count = count + 1
      }
    }
    return count
  }

  step() {
    var new = List.filled(_width * _height, false)

    for (y in 0..._height) {
      for (x in 0..._width) {
        var n = neighbors(x, y)
        var value = this[x, y]
        new[y * _width + x] = (value && n >= 2 && n <= 3) ||
            (!value && n == 3)
      }
    }

    _cells = new
  }

  toString {
    var result = ""
    for (y in 0..._height) {
      for (x in 0..._width) {
        result = result + (this[x, y] ? "█" : " ")
      }
      result = result + "\n"
    }
    return result
  }
}

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 Wren (mapped to pl/wren). 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/Wren/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Wrapping Rhoam writeacourse →