Duktape

1 program Added 2026-03-12T10:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: duk
Provenance: commit bffc9d1888 · authored 2026-03-12T00:31:41+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Dedukti (0.18)Dusa (0.13)Darklang (0.10)Duby (0.10)Dataphor (0.09)

LLM-contributed programs

Prime Sieve

Provenance: commit bffc9d1888 · authored 2026-03-12T00:31:41+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.js · license: MIT · added: 2026-03-12T10:00:00Z
// Duktape example: prime sieve using ECMAScript 5.1
// Demonstrates basic Duktape scripting capabilities

function sieve(limit) {
    var composite = [];
    var primes = [];
    var i, j;

    for (i = 2; i <= limit; i++) {
        if (!composite[i]) {
            primes.push(i);
            for (j = i * i; j <= limit; j += i) {
                composite[j] = true;
            }
        }
    }
    return primes;
}

var result = sieve(100);
print("Primes up to 100:");
print(result.join(", "));
print("Count: " + result.length);

Contribute — propose a file extension

Tell us where to find evidence about Duktape (mapped to pl/duktape). 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/Duktape/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← DukkTap Dumb self-modifying language →