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/gasp
LLM (this repo) · 1Pldb

Related languages

SMP (0.24)TPP (0.22)PCN (0.20)SIMAN (0.18)MUMPS (0.16)

LLM-contributed programs

Single-Server Queue Simulation

Provenance: commit a0b52d4415 · authored 2026-02-10T16:08:57+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.f · added: 2026-02-10T15:07:57Z
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

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.)

Contribute — propose a file extension

Tell us where to find evidence about GASP (mapped to pl/gasp). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/GASP/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← GASOIL gasp-ii →