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 | 21.0K files |
.wren | pygments | primary | 21.0K files |
Related languages
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
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.)