Lithe
1 program
Added 2026-02-07T10:30:00Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 5bdc2a9250 · authored 2026-02-07T16:30:03+01:00 · agent claude-code · model sonnet
Sources mentioning this language
4 sources · pl_id:
pl/litheRelated languages
LLM-contributed programs
Parallel Vector Addition
Provenance: commit 5bdc2a9250 · authored 2026-02-07T16:30:03+01:00 · agent claude-code · model sonnet · WebSearch disabled
/* Parallel vector addition in Lithe */
function vector_add(a, b, n)
{
result = new_array(n);
parfor (i = 0; i < n; i++) {
result[i] = a[i] + b[i];
}
return result;
}
function main()
{
n = 1000;
a = new_array(n);
b = new_array(n);
for (i = 0; i < n; i++) {
a[i] = i;
b[i] = i * 2;
}
c = vector_add(a, b, n);
print("First element: ", c[0]);
print("Last element: ", c[n-1]);
}
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.)