StreamIt
1 program
Added 2026-02-10T12:00:00Z
Agent: claude-codeModel: opusWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit b1940e50fc · authored 2026-02-10T00:08:08+01:00 · agent claude-code · model opus
Sources mentioning this language
3 sources · pl_id:
pl/streamitRelated languages
LLM-contributed programs
FIR Filter Pipeline
Provenance: commit b1940e50fc · authored 2026-02-10T00:08:08+01:00 · agent claude-code · model opus · WebSearch disabled
void->void pipeline FIRProgram {
add FloatSource(100);
add FIRFilter(5);
add FloatPrinter();
}
float->float filter FIRFilter(int N) {
float[N] weights;
init {
for (int i = 0; i < N; i++) {
weights[i] = 1.0 / N;
}
}
work push 1 pop 1 peek N {
float result = 0.0;
for (int i = 0; i < N; i++) {
result += peek(i) * weights[i];
}
pop();
push(result);
}
}
void->float filter FloatSource(int total) {
int count;
init {
count = 0;
}
work push 1 {
push((float) count);
count++;
if (count >= total) {
count = 0;
}
}
}
float->void filter FloatPrinter() {
work pop 1 {
println(pop());
}
}
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.)