FunC

1 program Added 2026-02-06T00:00:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit 2975e0843f · authored 2026-02-06T12:49:38+01:00 · agent claude-code · model sonnet

Sources mentioning this language

3 sources · pl_id: pl/func
LLM (this repo) · 1PygmentsEsolang

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
.fcpygmentsprimary43.5K files
.funcpygmentssecondary11.4K files

Related languages

FunScript (0.21)FlooP (0.20)ZINC (0.18)FlatZinc (0.18)Funnel (0.17)

LLM-contributed programs

Simple Counter Contract

Provenance: commit 2975e0843f · authored 2026-02-06T12:49:38+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.fc · added: 2026-02-06T00:00:00Z
() recv_internal(int msg_value, cell in_msg, slice in_msg_body) impure {
    var cs = in_msg.begin_parse();
    var flags = cs~load_uint(4);
    slice sender_address = cs~load_msg_addr();

    int op = in_msg_body~load_uint(32);

    slice ds = get_data().begin_parse();
    int counter = ds~load_uint(64);

    if (op == 1) {
        counter += 1;
    } elseif (op == 2) {
        counter -= 1;
    }

    set_data(begin_cell()
        .store_uint(counter, 64)
        .end_cell());
}

int get_counter() method_id {
    slice ds = get_data().begin_parse();
    return ds~load_uint(64);
}

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 FunC (mapped to pl/func). 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/FunC/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Fun Craft Func++ →