ChucK

1 program Added 2025-10-23T08:24:04Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit 20813bd968 · authored 2025-10-23T10:24:04+02:00 · model google/gemini-2.5-pro

Sources mentioning this language

7 sources · pl_id: pl/chuck
LLM (this repo) · 1PldbLinguistWikipediaHyperpolyglotRosettacodeWikidata · Q850484

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm
Typingstrong
Designed byGe Wang
First appeared2003
LicenseMac, Linux, Windows: GPL-2.0-or-later iOS: Proprietary
Homepagehttp://chuck.cs.princeton.edu

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
.cklinguistprimary61.9K files

Related languages

Yuck (0.30)Chalk (0.27)Crack (0.27)Church (0.25)JSFuck (0.25)

LLM-contributed programs

Pachelbel's Canon in D

Provenance: commit 20813bd968 · authored 2025-10-23T10:24:04+02:00 · model google/gemini-2.5-pro · Temp 0.4
code.ck · license: GPL-2.0 · added: 2025-10-23T08:24:04Z
/*
 * canon.ck
 * 
 * Pachelbel's Canon in D
 * 
 * by Perry R. Cook, 2005
 * 
 * This is a four-part canon, with the parts entering
 * at two measure intervals.  The bass line is two measures
 * long and repeats throughout.  The three violin parts
 * are identical, but delayed in time.
 * 
 */

// Two measures of bass line
[ 62, 58, 60, 55, 57, 53, 57, 58 ] @=> int bassLine[];

// One measure of violin melody
[ 69, 73, 74, 73, 71, 69, 71, 68 ] @=> int violin1[];
[ 69, 66, 68, 64, 66, 62, 66, 68 ] @=> int violin2[];

fun void playViolin( Sitar s, float gain )
{
    s.gain(gain);
    for (0 => int i; i < 8; i++ ) {
        for (0 => int j; j < 8; j++) {
            Std.mtof(violin1[j]) => s.freq;
            120::ms => now;
        }
        for (0 => int j; j < 8; j++) {
            Std.mtof(violin2[j]) => s.freq;
            120::ms => now;
        }
    }
}

fun void playBass( Rhodey r, float gain )
{
    r.gain(gain);
    while(1) {
        for (0 => int i; i < 8; i++) {
            Std.mtof(bassLine[i]) => r.freq;
            480::ms => now;
        }
    }
}

Rhodey bass => dac;
Sitar violinSection[3];

for (0 => int i; i < 3; i++) {
    violinSection[i] => dac;
}

spork ~ playBass(bass, 0.4);

for (0 => int i; i < 3; i++) {
    spork ~ playViolin(violinSection[i], 0.4 - i*0.08);
    16 * 120::ms => now;
}

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 ChucK (mapped to pl/chuck). 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/ChucK/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← ChrysaLisp ChuckScript →