Serpent

1 program Added 2026-02-12T00:00:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit d002d7b404 · authored 2026-02-12T14:29:44+01:00 · agent claude-code · model sonnet

Sources mentioning this language

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

Related languages

Ascent (0.21)Cogent (0.21)Regent (0.21)Sibilant (0.19)Seriously (0.18)

LLM-contributed programs

Simple Token Contract

Provenance: commit d002d7b404 · authored 2026-02-12T14:29:44+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.se · added: 2026-02-12T00:00:00Z
# Simple token contract
data balances[]
data totalSupply

def init():
    self.totalSupply = 1000000
    self.balances[msg.sender] = 1000000

def balance(address):
    return self.balances[address]

def transfer(to, value):
    if self.balances[msg.sender] >= value:
        self.balances[msg.sender] -= value
        self.balances[to] += value
        return 1
    return 0

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 Serpent (mapped to pl/serpent). 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/Serpent/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Seriously service-modeling-language →