Sophia

1 program Added 2026-02-10T12:25:45Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit d18e48d143 · authored 2026-02-10T13:26:41+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/sophia
LLM (this repo) · 1PldbPygments

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.aespygmentsprimary24.8K files

Related languages

Sequoia (0.21)Aria (0.17)Reia (0.17)Salsa (0.15)Symta (0.15)

LLM-contributed programs

Simple Token Contract

Provenance: commit d18e48d143 · authored 2026-02-10T13:26:41+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.aes · added: 2026-02-10T12:25:45Z
contract SimpleToken =
  record state =
    { owner : address,
      total_supply : int,
      balances : map(address, int) }

  stateful entrypoint init(initial_supply : int) : state =
    { owner = Call.caller,
      total_supply = initial_supply,
      balances = {[Call.caller] = initial_supply} }

  entrypoint get_balance(account : address) : int =
    Map.lookup_default(account, state.balances, 0)

  stateful entrypoint transfer(to : address, value : int) =
    require(value > 0, "Value must be positive")
    let sender_balance = get_balance(Call.caller)
    require(sender_balance >= value, "Insufficient balance")
    put(state{ balances[Call.caller] = sender_balance - value,
               balances[to] = get_balance(to) + value })

  entrypoint total_supply() : int =
    state.total_supply

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 Sophia (mapped to pl/sophia). 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/Sophia/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Soong sophie →