ALGOL
1 program
Added 2025-10-22T15:05:04Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: Algol 60, ALGOL 60
Provenance: commit 3ea3f66c1b · authored 2025-10-22T17:05:04+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
7 sources · pl_id:
pl/algolWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | procedural · imperative · structured |
|---|---|
| Typing | static, strong |
| Designed by | Bauer · Bottenbruch · Rutishauser · Samelson · Backus · Katz · Perlis · Wegstein · Naur · Vauquois · van Wijngaarden · Woodger · Green · McCarthy |
| First appeared | 1958 |
Extensions claimed by this language
3 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.alg | linguist | primary | 98.8K files |
.alg | pygments | primary | 98.8K files |
.portugol | pygments | secondary | 80 files |
Related languages
LLM-contributed programs
Determinant of a Matrix in ALGOL 60
Provenance: commit 3ea3f66c1b · authored 2025-10-22T17:05:04+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
real procedure det(A, n); value n; array A; integer n;
begin
integer i, j, k;
real d;
boolean procedure even(k); value k; integer k;
even := k = 2 × (k ÷ 2);
d := 1;
for k := 1 step 1 until n - 1 do
begin
for i := k + 1 step 1 until n do
begin
for j := k + 1 step 1 until n do
A[i,j] := A[i,j] - A[i,k] × A[k,j] / A[k,k];
A[i,k] := 0
end
end;
for k := 1 step 1 until n do d := d × A[k,k];
det := if even(n) then d else -d
end
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.)
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.alg/0 | .alg | predicates | [{"kind": "any", "regexes": ["(?i)^comment\\b.*(;|comment)", "^#[^#\\r\\n]+#$", "(?i)\\b(integer|real|boolean|string)\\b\\s+\\w+\\s*:=\\s*", "(?i)^begin[\\s\\S]*^end"]}] |