GASP
1 program
Added 2026-02-10T15:07:57Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: General Activity Simulation Program
Provenance: commit a0b52d4415 · authored 2026-02-10T16:08:57+01:00 · agent claude-code · model sonnet
Sources mentioning this language
2 sources · pl_id:
pl/gaspRelated languages
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.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Single-Server Queue Simulation
Provenance: commit a0b52d4415 · authored 2026-02-10T16:08:57+01:00 · agent claude-code · model sonnet · WebSearch disabled
C SIMPLE SINGLE-SERVER QUEUE SIMULATION IN GASP
PROGRAM QUEUE
COMMON/GCM1/ATRIB(20),DD(20),DDL(20),DTNOW,I,MFA,MFE,MSTOP,
1NCLNR,NCRDR,NPRNT,NNRUN,NNSET,NTAPE,SS(20),SSL(20),TNOW,XX(20)
DIMENSION NSET(50),QSET(50)
C INITIALIZE SIMULATION
CALL GASP
C SET SIMULATION PARAMETERS
TNOW = 0.0
MSTOP = 1000
C SCHEDULE FIRST ARRIVAL
CALL SCDHL(1,0.0,ATRIB)
C RUN SIMULATION
CALL SIMUL
C OUTPUT RESULTS
WRITE(NPRNT,100)
100 FORMAT('SIMULATION COMPLETE')
STOP
END
C EVENT ROUTINE - ARRIVAL
SUBROUTINE EVENT(I)
COMMON/GCM1/ATRIB(20),DD(20),DDL(20),DTNOW,I,MFA,MFE,MSTOP,
1NCLNR,NCRDR,NPRNT,NNRUN,NNSET,NTAPE,SS(20),SSL(20),TNOW,XX(20)
GO TO (10,20),I
C ARRIVAL EVENT
10 CONTINUE
CALL FILEM(1,ATRIB)
IF(NNQ(1).EQ.1) CALL SCDHL(2,0.0,ATRIB)
CALL SCDHL(1,EXPON(10.0,1),ATRIB)
RETURN
C DEPARTURE EVENT
20 CONTINUE
CALL REMOV(1,ATRIB)
IF(NNQ(1).GT.0) CALL SCDHL(2,GASP(5.0,2),ATRIB)
RETURN
END