Zonnon
1 program
Added 2025-11-05T12:17:24Z
Model: google/gemini-2.5-proTemp: 0.4
Evidence
Report issue
View issues
Aliases: —
Provenance: commit ea86faf477 · authored 2025-11-05T13:17:24+01:00 · model google/gemini-2.5-pro
Sources mentioning this language
5 sources · pl_id:
pl/zonnonWikipedia 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 | imperative · structured · modular · object-oriented |
|---|---|
| Typing | strong, hybrid (static and dynamic) |
| Designed by | ETH Zurich · Jürg Gutknecht |
| First appeared | 2013 |
| Influenced by | Oberon · Pascal |
Related languages
LLM-contributed programs
Dining Philosophers in Zonnon
Provenance: commit ea86faf477 · authored 2025-11-05T13:17:24+01:00 · model google/gemini-2.5-pro · Temp 0.4
module Philosophers;
const
NumPhilosophers = 5;
activity Philosopher(id: integer; left, right: Fork);
begin
loop
(* thinking *)
writeln("Philosopher ", id, " is thinking");
delay(random(1000));
writeln("Philosopher ", id, " is hungry");
(* hungry *)
accept get ->
left.get;
right.get;
(* eating *)
writeln("Philosopher ", id, " is eating");
delay(random(1000));
left.put;
right.put;
end
end Philosopher;
activity Fork;
var
taken: boolean;
begin
taken := false;
loop
select
when {~taken} accept get ->
taken := true
[]
when {taken} accept put ->
taken := false
end
end
end Fork;
var
i: integer;
forks: array NumPhilosophers of Fork;
philosophers: array NumPhilosophers of Philosopher;
begin
for i := 0 to NumPhilosophers-1 do
new(forks[i])
end;
for i := 0 to NumPhilosophers-1 do
new(philosophers[i], i, forks[i], forks[(i+1) mod NumPhilosophers])
end
end Philosophers.
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.)