HipHop
1 program
Added 2026-02-27T00:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: HipHop.js, hiphop
Provenance: commit ac8fa6d6fb · authored 2026-02-27T13:33:11+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
ABRO Reactive Module
Provenance: commit ac8fa6d6fb · authored 2026-02-27T13:33:11+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
"use hiphop"
import * as hh from "@hop/hiphop";
// ABRO: classic reactive benchmark - wait for both A and B, emit C, reset on R
const abro = hiphop module() {
in A; in B; in R; out C;
do {
fork {
await(A.now);
} par {
await(B.now);
}
emit C();
} every(R.now)
}
const machine = new hh.ReactiveMachine(abro, "abro");
machine.addEventListener("C", e => console.log("C emitted!"));
// Test sequence
machine.react({ A: true }); // receive A
machine.react({ B: true }); // receive B -> emits C
machine.react({ R: true }); // reset
machine.react({ A: true }); // receive A again
machine.react({ B: true }); // receive B -> emits C again