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/wrenExtensions 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.| Extension | Source | Strength | SWH |
|---|---|---|---|
.wren | linguist | primary | 26.9K files |
.wren | pygments | primary | 26.9K files |
Related languages
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 Wren
Provenance: commit 8d9aef760f · authored 2025-10-22T11:58:34+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
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
}
}