XS

1 program Added 2026-02-06T12:00:00Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Perl XS, XSUB
Provenance: commit 9898a0221f · authored 2026-02-06T14:34:41+01:00 · agent claude-code · model sonnet

Sources mentioning this language

6 sources · pl_id: pl/xs
LLM (this repo) · 1PldbLinguistEsolangHyperpolyglotRosettacode

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.xslinguistprimary165.7K files

Related languages

Perl (0.21)Perl 6 (0.17)Perl6 (0.15)Raku (0.15)ePerl (0.14)

LLM-contributed programs

Math Functions Example

Provenance: commit 9898a0221f · authored 2026-02-06T14:34:41+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.xs · added: 2026-02-06T12:00:00Z
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

MODULE = Example::Math  PACKAGE = Example::Math

int
add(a, b)
    int a
    int b
  CODE:
    RETVAL = a + b;
  OUTPUT:
    RETVAL

int
multiply(a, b)
    int a
    int b
  CODE:
    RETVAL = a * b;
  OUTPUT:
    RETVAL

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 XS (mapped to pl/xs). 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/XS/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← XRSL xs-lang →